mirror of
https://gitee.com/270580156/weiyu.git
synced 2026-05-17 12:48:08 +00:00
1228 lines
3.8 MiB
1228 lines
3.8 MiB
var z9e=Object.defineProperty;var hY=e=>{throw TypeError(e)};var U9e=(e,t,n)=>t in e?z9e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var xi=(e,t,n)=>U9e(e,typeof t!="symbol"?t+"":t,n),ZI=(e,t,n)=>t.has(e)||hY("Cannot "+n);var Xe=(e,t,n)=>(ZI(e,t,"read from private field"),n?n.call(e):t.get(e)),ar=(e,t,n)=>t.has(e)?hY("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Nn=(e,t,n,r)=>(ZI(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Zn=(e,t,n)=>(ZI(e,t,"access private method"),n);var jg=(e,t,n,r)=>({set _(i){Nn(e,t,i,n)},get _(){return Xe(e,t,r)}});function Qk(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 yo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function hi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Y_(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var Sue={exports:{}},Zk={},Cue={exports:{}},si={};/**
|
||
* @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 X_=Symbol.for("react.element"),W9e=Symbol.for("react.portal"),V9e=Symbol.for("react.fragment"),K9e=Symbol.for("react.strict_mode"),q9e=Symbol.for("react.profiler"),G9e=Symbol.for("react.provider"),Y9e=Symbol.for("react.context"),X9e=Symbol.for("react.forward_ref"),Q9e=Symbol.for("react.suspense"),Z9e=Symbol.for("react.memo"),J9e=Symbol.for("react.lazy"),pY=Symbol.iterator;function eke(e){return e===null||typeof e!="object"?null:(e=pY&&e[pY]||e["@@iterator"],typeof e=="function"?e:null)}var xue={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},wue=Object.assign,_ue={};function IS(e,t,n){this.props=e,this.context=t,this.refs=_ue,this.updater=n||xue}IS.prototype.isReactComponent={};IS.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")};IS.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Eue(){}Eue.prototype=IS.prototype;function IH(e,t,n){this.props=e,this.context=t,this.refs=_ue,this.updater=n||xue}var $H=IH.prototype=new Eue;$H.constructor=IH;wue($H,IS.prototype);$H.isPureReactComponent=!0;var mY=Array.isArray,Tue=Object.prototype.hasOwnProperty,RH={current:null},kue={key:!0,ref:!0,__self:!0,__source:!0};function Oue(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)Tue.call(t,r)&&!kue.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var l=Array(s),c=0;c<s;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:X_,type:e,key:o,ref:a,props:i,_owner:RH.current}}function tke(e,t){return{$$typeof:X_,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function AH(e){return typeof e=="object"&&e!==null&&e.$$typeof===X_}function nke(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var gY=/\/+/g;function JI(e,t){return typeof e=="object"&&e!==null&&e.key!=null?nke(""+e.key):t.toString(36)}function Z5(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 X_:case W9e:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+JI(a,0):r,mY(i)?(n="",e!=null&&(n=e.replace(gY,"$&/")+"/"),Z5(i,t,n,"",function(c){return c})):i!=null&&(AH(i)&&(i=tke(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(gY,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",mY(e))for(var s=0;s<e.length;s++){o=e[s];var l=r+JI(o,s);a+=Z5(o,t,n,l,i)}else if(l=eke(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=r+JI(o,s++),a+=Z5(o,t,n,l,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 sT(e,t,n){if(e==null)return e;var r=[],i=0;return Z5(e,r,"","",function(o){return t.call(n,o,i++)}),r}function rke(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 yl={current:null},J5={transition:null},ike={ReactCurrentDispatcher:yl,ReactCurrentBatchConfig:J5,ReactCurrentOwner:RH};function Pue(){throw Error("act(...) is not supported in production builds of React.")}si.Children={map:sT,forEach:function(e,t,n){sT(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return sT(e,function(){t++}),t},toArray:function(e){return sT(e,function(t){return t})||[]},only:function(e){if(!AH(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};si.Component=IS;si.Fragment=V9e;si.Profiler=q9e;si.PureComponent=IH;si.StrictMode=K9e;si.Suspense=Q9e;si.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ike;si.act=Pue;si.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=wue({},e.props),i=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=RH.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)Tue.call(t,l)&&!kue.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&s!==void 0?s[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){s=Array(l);for(var c=0;c<l;c++)s[c]=arguments[c+2];r.children=s}return{$$typeof:X_,type:e.type,key:i,ref:o,props:r,_owner:a}};si.createContext=function(e){return e={$$typeof:Y9e,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:G9e,_context:e},e.Consumer=e};si.createElement=Oue;si.createFactory=function(e){var t=Oue.bind(null,e);return t.type=e,t};si.createRef=function(){return{current:null}};si.forwardRef=function(e){return{$$typeof:X9e,render:e}};si.isValidElement=AH;si.lazy=function(e){return{$$typeof:J9e,_payload:{_status:-1,_result:e},_init:rke}};si.memo=function(e,t){return{$$typeof:Z9e,type:e,compare:t===void 0?null:t}};si.startTransition=function(e){var t=J5.transition;J5.transition={};try{e()}finally{J5.transition=t}};si.unstable_act=Pue;si.useCallback=function(e,t){return yl.current.useCallback(e,t)};si.useContext=function(e){return yl.current.useContext(e)};si.useDebugValue=function(){};si.useDeferredValue=function(e){return yl.current.useDeferredValue(e)};si.useEffect=function(e,t){return yl.current.useEffect(e,t)};si.useId=function(){return yl.current.useId()};si.useImperativeHandle=function(e,t,n){return yl.current.useImperativeHandle(e,t,n)};si.useInsertionEffect=function(e,t){return yl.current.useInsertionEffect(e,t)};si.useLayoutEffect=function(e,t){return yl.current.useLayoutEffect(e,t)};si.useMemo=function(e,t){return yl.current.useMemo(e,t)};si.useReducer=function(e,t,n){return yl.current.useReducer(e,t,n)};si.useRef=function(e){return yl.current.useRef(e)};si.useState=function(e){return yl.current.useState(e)};si.useSyncExternalStore=function(e,t,n){return yl.current.useSyncExternalStore(e,t,n)};si.useTransition=function(){return yl.current.useTransition()};si.version="18.3.1";Cue.exports=si;var f=Cue.exports;const ge=hi(f),Q_=Qk({__proto__:null,default:ge},[f]);/**
|
||
* @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 oke=f,ake=Symbol.for("react.element"),ske=Symbol.for("react.fragment"),lke=Object.prototype.hasOwnProperty,cke=oke.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,uke={key:!0,ref:!0,__self:!0,__source:!0};function Mue(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)lke.call(t,r)&&!uke.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:ake,type:e,key:o,ref:a,props:i,_owner:cke.current}}Zk.Fragment=ske;Zk.jsx=Mue;Zk.jsxs=Mue;Sue.exports=Zk;var U=Sue.exports,n7={},Iue={exports:{}},zc={},$ue={exports:{}},Rue={};/**
|
||
* @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(q,Z){var N=q.length;q.push(Z);e:for(;0<N;){var B=N-1>>>1,V=q[B];if(0<i(V,Z))q[B]=Z,q[N]=V,N=B;else break e}}function n(q){return q.length===0?null:q[0]}function r(q){if(q.length===0)return null;var Z=q[0],N=q.pop();if(N!==Z){q[0]=N;e:for(var B=0,V=q.length,Y=V>>>1;B<Y;){var ie=2*(B+1)-1,ce=q[ie],fe=ie+1,ee=q[fe];if(0>i(ce,N))fe<V&&0>i(ee,ce)?(q[B]=ee,q[fe]=N,B=fe):(q[B]=ce,q[ie]=N,B=ie);else if(fe<V&&0>i(ee,N))q[B]=ee,q[fe]=N,B=fe;else break e}}return Z}function i(q,Z){var N=q.sortIndex-Z.sortIndex;return N!==0?N:q.id-Z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],u=1,d=null,h=3,p=!1,m=!1,v=!1,y=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function C(q){for(var Z=n(c);Z!==null;){if(Z.callback===null)r(c);else if(Z.startTime<=q)r(c),Z.sortIndex=Z.expirationTime,t(l,Z);else break;Z=n(c)}}function _(q){if(v=!1,C(q),!m)if(n(l)!==null)m=!0,z(T);else{var Z=n(c);Z!==null&&W(_,Z.startTime-q)}}function T(q,Z){m=!1,v&&(v=!1,S(k),k=-1),p=!0;var N=h;try{for(C(Z),d=n(l);d!==null&&(!(d.expirationTime>Z)||q&&!D());){var B=d.callback;if(typeof B=="function"){d.callback=null,h=d.priorityLevel;var V=B(d.expirationTime<=Z);Z=e.unstable_now(),typeof V=="function"?d.callback=V:d===n(l)&&r(l),C(Z)}else r(l);d=n(l)}if(d!==null)var Y=!0;else{var ie=n(c);ie!==null&&W(_,ie.startTime-Z),Y=!1}return Y}finally{d=null,h=N,p=!1}}var x=!1,E=null,k=-1,M=5,P=-1;function D(){return!(e.unstable_now()-P<M)}function R(){if(E!==null){var q=e.unstable_now();P=q;var Z=!0;try{Z=E(!0,q)}finally{Z?A():(x=!1,E=null)}}else x=!1}var A;if(typeof b=="function")A=function(){b(R)};else if(typeof MessageChannel<"u"){var H=new MessageChannel,F=H.port2;H.port1.onmessage=R,A=function(){F.postMessage(null)}}else A=function(){y(R,0)};function z(q){E=q,x||(x=!0,A())}function W(q,Z){k=y(function(){q(e.unstable_now())},Z)}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(q){q.callback=null},e.unstable_continueExecution=function(){m||p||(m=!0,z(T))},e.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<q?Math.floor(1e3/q):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(q){switch(h){case 1:case 2:case 3:var Z=3;break;default:Z=h}var N=h;h=Z;try{return q()}finally{h=N}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(q,Z){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var N=h;h=q;try{return Z()}finally{h=N}},e.unstable_scheduleCallback=function(q,Z,N){var B=e.unstable_now();switch(typeof N=="object"&&N!==null?(N=N.delay,N=typeof N=="number"&&0<N?B+N:B):N=B,q){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=N+V,q={id:u++,callback:Z,priorityLevel:q,startTime:N,expirationTime:V,sortIndex:-1},N>B?(q.sortIndex=N,t(c,q),n(l)===null&&q===n(c)&&(v?(S(k),k=-1):v=!0,W(_,N-B))):(q.sortIndex=V,t(l,q),m||p||(m=!0,z(T))),q},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(q){var Z=h;return function(){var N=h;h=Z;try{return q.apply(this,arguments)}finally{h=N}}}})(Rue);$ue.exports=Rue;var dke=$ue.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 fke=f,Ac=dke;function Mn(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 Aue=new Set,Tw={};function Dv(e,t){Rb(e,t),Rb(e+"Capture",t)}function Rb(e,t){for(Tw[e]=t,e=0;e<t.length;e++)Aue.add(t[e])}var rp=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),r7=Object.prototype.hasOwnProperty,hke=/^[: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]*$/,vY={},yY={};function pke(e){return r7.call(yY,e)?!0:r7.call(vY,e)?!1:hke.test(e)?yY[e]=!0:(vY[e]=!0,!1)}function mke(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 gke(e,t,n,r){if(t===null||typeof t>"u"||mke(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 bl(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 xs={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){xs[e]=new bl(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];xs[t]=new bl(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){xs[e]=new bl(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){xs[e]=new bl(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){xs[e]=new bl(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){xs[e]=new bl(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){xs[e]=new bl(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){xs[e]=new bl(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){xs[e]=new bl(e,5,!1,e.toLowerCase(),null,!1,!1)});var NH=/[\-:]([a-z])/g;function DH(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(NH,DH);xs[t]=new bl(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(NH,DH);xs[t]=new bl(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(NH,DH);xs[t]=new bl(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){xs[e]=new bl(e,1,!1,e.toLowerCase(),null,!1,!1)});xs.xlinkHref=new bl("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){xs[e]=new bl(e,1,!1,e.toLowerCase(),null,!0,!0)});function LH(e,t,n,r){var i=xs.hasOwnProperty(t)?xs[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(gke(t,n,i,r)&&(n=null),r||i===null?pke(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 Sp=fke.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,lT=Symbol.for("react.element"),Oy=Symbol.for("react.portal"),Py=Symbol.for("react.fragment"),FH=Symbol.for("react.strict_mode"),i7=Symbol.for("react.profiler"),Nue=Symbol.for("react.provider"),Due=Symbol.for("react.context"),jH=Symbol.for("react.forward_ref"),o7=Symbol.for("react.suspense"),a7=Symbol.for("react.suspense_list"),BH=Symbol.for("react.memo"),gm=Symbol.for("react.lazy"),Lue=Symbol.for("react.offscreen"),bY=Symbol.iterator;function vx(e){return e===null||typeof e!="object"?null:(e=bY&&e[bY]||e["@@iterator"],typeof e=="function"?e:null)}var zo=Object.assign,e$;function f2(e){if(e$===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);e$=t&&t[1]||""}return`
|
||
`+e$+e}var t$=!1;function n$(e,t){if(!e||t$)return"";t$=!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(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var i=c.stack.split(`
|
||
`),o=r.stack.split(`
|
||
`),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(a!==1||s!==1)do if(a--,s--,0>s||i[a]!==o[s]){var l=`
|
||
`+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{t$=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?f2(e):""}function vke(e){switch(e.tag){case 5:return f2(e.type);case 16:return f2("Lazy");case 13:return f2("Suspense");case 19:return f2("SuspenseList");case 0:case 2:case 15:return e=n$(e.type,!1),e;case 11:return e=n$(e.type.render,!1),e;case 1:return e=n$(e.type,!0),e;default:return""}}function s7(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 Py:return"Fragment";case Oy:return"Portal";case i7:return"Profiler";case FH:return"StrictMode";case o7:return"Suspense";case a7:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Due:return(e.displayName||"Context")+".Consumer";case Nue:return(e._context.displayName||"Context")+".Provider";case jH:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case BH:return t=e.displayName||null,t!==null?t:s7(e.type)||"Memo";case gm:t=e._payload,e=e._init;try{return s7(e(t))}catch{}}return null}function yke(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 s7(t);case 8:return t===FH?"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 Jm(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Fue(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function bke(e){var t=Fue(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 cT(e){e._valueTracker||(e._valueTracker=bke(e))}function jue(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Fue(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function T8(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 l7(e,t){var n=t.checked;return zo({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function SY(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Jm(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 Bue(e,t){t=t.checked,t!=null&&LH(e,"checked",t,!1)}function c7(e,t){Bue(e,t);var n=Jm(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")?u7(e,t.type,n):t.hasOwnProperty("defaultValue")&&u7(e,t.type,Jm(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function CY(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 u7(e,t,n){(t!=="number"||T8(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var h2=Array.isArray;function eb(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=""+Jm(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 d7(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Mn(91));return zo({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function xY(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(Mn(92));if(h2(n)){if(1<n.length)throw Error(Mn(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Jm(n)}}function Hue(e,t){var n=Jm(t.value),r=Jm(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 wY(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function zue(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 f7(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?zue(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var uT,Uue=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(uT=uT||document.createElement("div"),uT.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=uT.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function kw(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var N2={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},Ske=["Webkit","ms","Moz","O"];Object.keys(N2).forEach(function(e){Ske.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),N2[t]=N2[e]})});function Wue(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||N2.hasOwnProperty(e)&&N2[e]?(""+t).trim():t+"px"}function Vue(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Wue(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Cke=zo({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 h7(e,t){if(t){if(Cke[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Mn(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Mn(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Mn(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Mn(62))}}function p7(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 m7=null;function HH(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var g7=null,tb=null,nb=null;function _Y(e){if(e=eE(e)){if(typeof g7!="function")throw Error(Mn(280));var t=e.stateNode;t&&(t=r6(t),g7(e.stateNode,e.type,t))}}function Kue(e){tb?nb?nb.push(e):nb=[e]:tb=e}function que(){if(tb){var e=tb,t=nb;if(nb=tb=null,_Y(e),t)for(e=0;e<t.length;e++)_Y(t[e])}}function Gue(e,t){return e(t)}function Yue(){}var r$=!1;function Xue(e,t,n){if(r$)return e(t,n);r$=!0;try{return Gue(e,t,n)}finally{r$=!1,(tb!==null||nb!==null)&&(Yue(),que())}}function Ow(e,t){var n=e.stateNode;if(n===null)return null;var r=r6(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(Mn(231,t,typeof n));return n}var v7=!1;if(rp)try{var yx={};Object.defineProperty(yx,"passive",{get:function(){v7=!0}}),window.addEventListener("test",yx,yx),window.removeEventListener("test",yx,yx)}catch{v7=!1}function xke(e,t,n,r,i,o,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var D2=!1,k8=null,O8=!1,y7=null,wke={onError:function(e){D2=!0,k8=e}};function _ke(e,t,n,r,i,o,a,s,l){D2=!1,k8=null,xke.apply(wke,arguments)}function Eke(e,t,n,r,i,o,a,s,l){if(_ke.apply(this,arguments),D2){if(D2){var c=k8;D2=!1,k8=null}else throw Error(Mn(198));O8||(O8=!0,y7=c)}}function Lv(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 Que(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 EY(e){if(Lv(e)!==e)throw Error(Mn(188))}function Tke(e){var t=e.alternate;if(!t){if(t=Lv(e),t===null)throw Error(Mn(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 EY(i),e;if(o===r)return EY(i),t;o=o.sibling}throw Error(Mn(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a)throw Error(Mn(189))}}if(n.alternate!==r)throw Error(Mn(190))}if(n.tag!==3)throw Error(Mn(188));return n.stateNode.current===n?e:t}function Zue(e){return e=Tke(e),e!==null?Jue(e):null}function Jue(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Jue(e);if(t!==null)return t;e=e.sibling}return null}var ede=Ac.unstable_scheduleCallback,TY=Ac.unstable_cancelCallback,kke=Ac.unstable_shouldYield,Oke=Ac.unstable_requestPaint,da=Ac.unstable_now,Pke=Ac.unstable_getCurrentPriorityLevel,zH=Ac.unstable_ImmediatePriority,tde=Ac.unstable_UserBlockingPriority,P8=Ac.unstable_NormalPriority,Mke=Ac.unstable_LowPriority,nde=Ac.unstable_IdlePriority,Jk=null,Ff=null;function Ike(e){if(Ff&&typeof Ff.onCommitFiberRoot=="function")try{Ff.onCommitFiberRoot(Jk,e,void 0,(e.current.flags&128)===128)}catch{}}var wd=Math.clz32?Math.clz32:Ake,$ke=Math.log,Rke=Math.LN2;function Ake(e){return e>>>=0,e===0?32:31-($ke(e)/Rke|0)|0}var dT=64,fT=4194304;function p2(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 M8(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 s=a&~i;s!==0?r=p2(s):(o&=a,o!==0&&(r=p2(o)))}else a=n&~i,a!==0?r=p2(a):o!==0&&(r=p2(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-wd(t),i=1<<n,r|=e[n],t&=~i;return r}function Nke(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 Dke(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-wd(o),s=1<<a,l=i[a];l===-1?(!(s&n)||s&r)&&(i[a]=Nke(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}function b7(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function rde(){var e=dT;return dT<<=1,!(dT&4194240)&&(dT=64),e}function i$(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Z_(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-wd(t),e[t]=n}function Lke(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-wd(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function UH(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-wd(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Bi=0;function ide(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var ode,WH,ade,sde,lde,S7=!1,hT=[],Fm=null,jm=null,Bm=null,Pw=new Map,Mw=new Map,Cm=[],Fke="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 kY(e,t){switch(e){case"focusin":case"focusout":Fm=null;break;case"dragenter":case"dragleave":jm=null;break;case"mouseover":case"mouseout":Bm=null;break;case"pointerover":case"pointerout":Pw.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Mw.delete(t.pointerId)}}function bx(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=eE(t),t!==null&&WH(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function jke(e,t,n,r,i){switch(t){case"focusin":return Fm=bx(Fm,e,t,n,r,i),!0;case"dragenter":return jm=bx(jm,e,t,n,r,i),!0;case"mouseover":return Bm=bx(Bm,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Pw.set(o,bx(Pw.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Mw.set(o,bx(Mw.get(o)||null,e,t,n,r,i)),!0}return!1}function cde(e){var t=y1(e.target);if(t!==null){var n=Lv(t);if(n!==null){if(t=n.tag,t===13){if(t=Que(n),t!==null){e.blockedOn=t,lde(e.priority,function(){ade(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 e3(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=C7(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);m7=r,n.target.dispatchEvent(r),m7=null}else return t=eE(n),t!==null&&WH(t),e.blockedOn=n,!1;t.shift()}return!0}function OY(e,t,n){e3(e)&&n.delete(t)}function Bke(){S7=!1,Fm!==null&&e3(Fm)&&(Fm=null),jm!==null&&e3(jm)&&(jm=null),Bm!==null&&e3(Bm)&&(Bm=null),Pw.forEach(OY),Mw.forEach(OY)}function Sx(e,t){e.blockedOn===t&&(e.blockedOn=null,S7||(S7=!0,Ac.unstable_scheduleCallback(Ac.unstable_NormalPriority,Bke)))}function Iw(e){function t(i){return Sx(i,e)}if(0<hT.length){Sx(hT[0],e);for(var n=1;n<hT.length;n++){var r=hT[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Fm!==null&&Sx(Fm,e),jm!==null&&Sx(jm,e),Bm!==null&&Sx(Bm,e),Pw.forEach(t),Mw.forEach(t),n=0;n<Cm.length;n++)r=Cm[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Cm.length&&(n=Cm[0],n.blockedOn===null);)cde(n),n.blockedOn===null&&Cm.shift()}var rb=Sp.ReactCurrentBatchConfig,I8=!0;function Hke(e,t,n,r){var i=Bi,o=rb.transition;rb.transition=null;try{Bi=1,VH(e,t,n,r)}finally{Bi=i,rb.transition=o}}function zke(e,t,n,r){var i=Bi,o=rb.transition;rb.transition=null;try{Bi=4,VH(e,t,n,r)}finally{Bi=i,rb.transition=o}}function VH(e,t,n,r){if(I8){var i=C7(e,t,n,r);if(i===null)p$(e,t,r,$8,n),kY(e,r);else if(jke(i,e,t,n,r))r.stopPropagation();else if(kY(e,r),t&4&&-1<Fke.indexOf(e)){for(;i!==null;){var o=eE(i);if(o!==null&&ode(o),o=C7(e,t,n,r),o===null&&p$(e,t,r,$8,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else p$(e,t,r,null,n)}}var $8=null;function C7(e,t,n,r){if($8=null,e=HH(r),e=y1(e),e!==null)if(t=Lv(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Que(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 $8=e,null}function ude(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(Pke()){case zH:return 1;case tde:return 4;case P8:case Mke:return 16;case nde:return 536870912;default:return 16}default:return 16}}var Om=null,KH=null,t3=null;function dde(){if(t3)return t3;var e,t=KH,n=t.length,r,i="value"in Om?Om.value:Om.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 t3=i.slice(e,1<r?1-r:void 0)}function n3(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 pT(){return!0}function PY(){return!1}function Uc(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 s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(o):o[s]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?pT:PY,this.isPropagationStopped=PY,this}return zo(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=pT)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=pT)},persist:function(){},isPersistent:pT}),t}var $S={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},qH=Uc($S),J_=zo({},$S,{view:0,detail:0}),Uke=Uc(J_),o$,a$,Cx,e6=zo({},J_,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:GH,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!==Cx&&(Cx&&e.type==="mousemove"?(o$=e.screenX-Cx.screenX,a$=e.screenY-Cx.screenY):a$=o$=0,Cx=e),o$)},movementY:function(e){return"movementY"in e?e.movementY:a$}}),MY=Uc(e6),Wke=zo({},e6,{dataTransfer:0}),Vke=Uc(Wke),Kke=zo({},J_,{relatedTarget:0}),s$=Uc(Kke),qke=zo({},$S,{animationName:0,elapsedTime:0,pseudoElement:0}),Gke=Uc(qke),Yke=zo({},$S,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Xke=Uc(Yke),Qke=zo({},$S,{data:0}),IY=Uc(Qke),Zke={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Jke={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"},e6e={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function t6e(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=e6e[e])?!!t[e]:!1}function GH(){return t6e}var n6e=zo({},J_,{key:function(e){if(e.key){var t=Zke[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=n3(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Jke[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:GH,charCode:function(e){return e.type==="keypress"?n3(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?n3(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),r6e=Uc(n6e),i6e=zo({},e6,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),$Y=Uc(i6e),o6e=zo({},J_,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:GH}),a6e=Uc(o6e),s6e=zo({},$S,{propertyName:0,elapsedTime:0,pseudoElement:0}),l6e=Uc(s6e),c6e=zo({},e6,{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}),u6e=Uc(c6e),d6e=[9,13,27,32],YH=rp&&"CompositionEvent"in window,L2=null;rp&&"documentMode"in document&&(L2=document.documentMode);var f6e=rp&&"TextEvent"in window&&!L2,fde=rp&&(!YH||L2&&8<L2&&11>=L2),RY=" ",AY=!1;function hde(e,t){switch(e){case"keyup":return d6e.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function pde(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var My=!1;function h6e(e,t){switch(e){case"compositionend":return pde(t);case"keypress":return t.which!==32?null:(AY=!0,RY);case"textInput":return e=t.data,e===RY&&AY?null:e;default:return null}}function p6e(e,t){if(My)return e==="compositionend"||!YH&&hde(e,t)?(e=dde(),t3=KH=Om=null,My=!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 fde&&t.locale!=="ko"?null:t.data;default:return null}}var m6e={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 NY(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!m6e[e.type]:t==="textarea"}function mde(e,t,n,r){Kue(r),t=R8(t,"onChange"),0<t.length&&(n=new qH("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var F2=null,$w=null;function g6e(e){Tde(e,0)}function t6(e){var t=Ry(e);if(jue(t))return e}function v6e(e,t){if(e==="change")return t}var gde=!1;if(rp){var l$;if(rp){var c$="oninput"in document;if(!c$){var DY=document.createElement("div");DY.setAttribute("oninput","return;"),c$=typeof DY.oninput=="function"}l$=c$}else l$=!1;gde=l$&&(!document.documentMode||9<document.documentMode)}function LY(){F2&&(F2.detachEvent("onpropertychange",vde),$w=F2=null)}function vde(e){if(e.propertyName==="value"&&t6($w)){var t=[];mde(t,$w,e,HH(e)),Xue(g6e,t)}}function y6e(e,t,n){e==="focusin"?(LY(),F2=t,$w=n,F2.attachEvent("onpropertychange",vde)):e==="focusout"&&LY()}function b6e(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return t6($w)}function S6e(e,t){if(e==="click")return t6(t)}function C6e(e,t){if(e==="input"||e==="change")return t6(t)}function x6e(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ad=typeof Object.is=="function"?Object.is:x6e;function Rw(e,t){if(Ad(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(!r7.call(t,i)||!Ad(e[i],t[i]))return!1}return!0}function FY(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function jY(e,t){var n=FY(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=FY(n)}}function yde(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?yde(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function bde(){for(var e=window,t=T8();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=T8(e.document)}return t}function XH(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 w6e(e){var t=bde(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&yde(n.ownerDocument.documentElement,n)){if(r!==null&&XH(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=jY(n,o);var a=jY(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 _6e=rp&&"documentMode"in document&&11>=document.documentMode,Iy=null,x7=null,j2=null,w7=!1;function BY(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;w7||Iy==null||Iy!==T8(r)||(r=Iy,"selectionStart"in r&&XH(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}),j2&&Rw(j2,r)||(j2=r,r=R8(x7,"onSelect"),0<r.length&&(t=new qH("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Iy)))}function mT(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var $y={animationend:mT("Animation","AnimationEnd"),animationiteration:mT("Animation","AnimationIteration"),animationstart:mT("Animation","AnimationStart"),transitionend:mT("Transition","TransitionEnd")},u$={},Sde={};rp&&(Sde=document.createElement("div").style,"AnimationEvent"in window||(delete $y.animationend.animation,delete $y.animationiteration.animation,delete $y.animationstart.animation),"TransitionEvent"in window||delete $y.transitionend.transition);function n6(e){if(u$[e])return u$[e];if(!$y[e])return e;var t=$y[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Sde)return u$[e]=t[n];return e}var Cde=n6("animationend"),xde=n6("animationiteration"),wde=n6("animationstart"),_de=n6("transitionend"),Ede=new Map,HY="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 ug(e,t){Ede.set(e,t),Dv(t,[e])}for(var d$=0;d$<HY.length;d$++){var f$=HY[d$],E6e=f$.toLowerCase(),T6e=f$[0].toUpperCase()+f$.slice(1);ug(E6e,"on"+T6e)}ug(Cde,"onAnimationEnd");ug(xde,"onAnimationIteration");ug(wde,"onAnimationStart");ug("dblclick","onDoubleClick");ug("focusin","onFocus");ug("focusout","onBlur");ug(_de,"onTransitionEnd");Rb("onMouseEnter",["mouseout","mouseover"]);Rb("onMouseLeave",["mouseout","mouseover"]);Rb("onPointerEnter",["pointerout","pointerover"]);Rb("onPointerLeave",["pointerout","pointerover"]);Dv("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Dv("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Dv("onBeforeInput",["compositionend","keypress","textInput","paste"]);Dv("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Dv("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Dv("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var m2="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(" "),k6e=new Set("cancel close invalid load scroll toggle".split(" ").concat(m2));function zY(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Eke(r,t,void 0,e),e.currentTarget=null}function Tde(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 s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;zY(i,s,c),o=l}else for(a=0;a<r.length;a++){if(s=r[a],l=s.instance,c=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;zY(i,s,c),o=l}}}if(O8)throw e=y7,O8=!1,y7=null,e}function fo(e,t){var n=t[O7];n===void 0&&(n=t[O7]=new Set);var r=e+"__bubble";n.has(r)||(kde(t,e,2,!1),n.add(r))}function h$(e,t,n){var r=0;t&&(r|=4),kde(n,e,r,t)}var gT="_reactListening"+Math.random().toString(36).slice(2);function Aw(e){if(!e[gT]){e[gT]=!0,Aue.forEach(function(n){n!=="selectionchange"&&(k6e.has(n)||h$(n,!1,e),h$(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[gT]||(t[gT]=!0,h$("selectionchange",!1,t))}}function kde(e,t,n,r){switch(ude(t)){case 1:var i=Hke;break;case 4:i=zke;break;default:i=VH}n=i.bind(null,t,n,e),i=void 0,!v7||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 p$(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 s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(a===4)for(a=r.return;a!==null;){var l=a.tag;if((l===3||l===4)&&(l=a.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;a=a.return}for(;s!==null;){if(a=y1(s),a===null)return;if(l=a.tag,l===5||l===6){r=o=a;continue e}s=s.parentNode}}r=r.return}Xue(function(){var c=o,u=HH(n),d=[];e:{var h=Ede.get(e);if(h!==void 0){var p=qH,m=e;switch(e){case"keypress":if(n3(n)===0)break e;case"keydown":case"keyup":p=r6e;break;case"focusin":m="focus",p=s$;break;case"focusout":m="blur",p=s$;break;case"beforeblur":case"afterblur":p=s$;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":p=MY;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=Vke;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=a6e;break;case Cde:case xde:case wde:p=Gke;break;case _de:p=l6e;break;case"scroll":p=Uke;break;case"wheel":p=u6e;break;case"copy":case"cut":case"paste":p=Xke;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=$Y}var v=(t&4)!==0,y=!v&&e==="scroll",S=v?h!==null?h+"Capture":null:h;v=[];for(var b=c,C;b!==null;){C=b;var _=C.stateNode;if(C.tag===5&&_!==null&&(C=_,S!==null&&(_=Ow(b,S),_!=null&&v.push(Nw(b,_,C)))),y)break;b=b.return}0<v.length&&(h=new p(h,m,null,n,u),d.push({event:h,listeners:v}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",h&&n!==m7&&(m=n.relatedTarget||n.fromElement)&&(y1(m)||m[ip]))break e;if((p||h)&&(h=u.window===u?u:(h=u.ownerDocument)?h.defaultView||h.parentWindow:window,p?(m=n.relatedTarget||n.toElement,p=c,m=m?y1(m):null,m!==null&&(y=Lv(m),m!==y||m.tag!==5&&m.tag!==6)&&(m=null)):(p=null,m=c),p!==m)){if(v=MY,_="onMouseLeave",S="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(v=$Y,_="onPointerLeave",S="onPointerEnter",b="pointer"),y=p==null?h:Ry(p),C=m==null?h:Ry(m),h=new v(_,b+"leave",p,n,u),h.target=y,h.relatedTarget=C,_=null,y1(u)===c&&(v=new v(S,b+"enter",m,n,u),v.target=C,v.relatedTarget=y,_=v),y=_,p&&m)t:{for(v=p,S=m,b=0,C=v;C;C=W0(C))b++;for(C=0,_=S;_;_=W0(_))C++;for(;0<b-C;)v=W0(v),b--;for(;0<C-b;)S=W0(S),C--;for(;b--;){if(v===S||S!==null&&v===S.alternate)break t;v=W0(v),S=W0(S)}v=null}else v=null;p!==null&&UY(d,h,p,v,!1),m!==null&&y!==null&&UY(d,y,m,v,!0)}}e:{if(h=c?Ry(c):window,p=h.nodeName&&h.nodeName.toLowerCase(),p==="select"||p==="input"&&h.type==="file")var T=v6e;else if(NY(h))if(gde)T=C6e;else{T=b6e;var x=y6e}else(p=h.nodeName)&&p.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(T=S6e);if(T&&(T=T(e,c))){mde(d,T,n,u);break e}x&&x(e,h,c),e==="focusout"&&(x=h._wrapperState)&&x.controlled&&h.type==="number"&&u7(h,"number",h.value)}switch(x=c?Ry(c):window,e){case"focusin":(NY(x)||x.contentEditable==="true")&&(Iy=x,x7=c,j2=null);break;case"focusout":j2=x7=Iy=null;break;case"mousedown":w7=!0;break;case"contextmenu":case"mouseup":case"dragend":w7=!1,BY(d,n,u);break;case"selectionchange":if(_6e)break;case"keydown":case"keyup":BY(d,n,u)}var E;if(YH)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 My?hde(e,n)&&(k="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(k="onCompositionStart");k&&(fde&&n.locale!=="ko"&&(My||k!=="onCompositionStart"?k==="onCompositionEnd"&&My&&(E=dde()):(Om=u,KH="value"in Om?Om.value:Om.textContent,My=!0)),x=R8(c,k),0<x.length&&(k=new IY(k,e,null,n,u),d.push({event:k,listeners:x}),E?k.data=E:(E=pde(n),E!==null&&(k.data=E)))),(E=f6e?h6e(e,n):p6e(e,n))&&(c=R8(c,"onBeforeInput"),0<c.length&&(u=new IY("onBeforeInput","beforeinput",null,n,u),d.push({event:u,listeners:c}),u.data=E))}Tde(d,t)})}function Nw(e,t,n){return{instance:e,listener:t,currentTarget:n}}function R8(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Ow(e,n),o!=null&&r.unshift(Nw(e,o,i)),o=Ow(e,t),o!=null&&r.push(Nw(e,o,i))),e=e.return}return r}function W0(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function UY(e,t,n,r,i){for(var o=t._reactName,a=[];n!==null&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(l!==null&&l===r)break;s.tag===5&&c!==null&&(s=c,i?(l=Ow(n,o),l!=null&&a.unshift(Nw(n,l,s))):i||(l=Ow(n,o),l!=null&&a.push(Nw(n,l,s)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var O6e=/\r\n?/g,P6e=/\u0000|\uFFFD/g;function WY(e){return(typeof e=="string"?e:""+e).replace(O6e,`
|
||
`).replace(P6e,"")}function vT(e,t,n){if(t=WY(t),WY(e)!==t&&n)throw Error(Mn(425))}function A8(){}var _7=null,E7=null;function T7(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 k7=typeof setTimeout=="function"?setTimeout:void 0,M6e=typeof clearTimeout=="function"?clearTimeout:void 0,VY=typeof Promise=="function"?Promise:void 0,I6e=typeof queueMicrotask=="function"?queueMicrotask:typeof VY<"u"?function(e){return VY.resolve(null).then(e).catch($6e)}:k7;function $6e(e){setTimeout(function(){throw e})}function m$(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),Iw(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Iw(t)}function Hm(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 KY(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 RS=Math.random().toString(36).slice(2),Of="__reactFiber$"+RS,Dw="__reactProps$"+RS,ip="__reactContainer$"+RS,O7="__reactEvents$"+RS,R6e="__reactListeners$"+RS,A6e="__reactHandles$"+RS;function y1(e){var t=e[Of];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ip]||n[Of]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=KY(e);e!==null;){if(n=e[Of])return n;e=KY(e)}return t}e=n,n=e.parentNode}return null}function eE(e){return e=e[Of]||e[ip],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ry(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Mn(33))}function r6(e){return e[Dw]||null}var P7=[],Ay=-1;function dg(e){return{current:e}}function bo(e){0>Ay||(e.current=P7[Ay],P7[Ay]=null,Ay--)}function lo(e,t){Ay++,P7[Ay]=e.current,e.current=t}var eg={},Vs=dg(eg),Ul=dg(!1),sv=eg;function Ab(e,t){var n=e.type.contextTypes;if(!n)return eg;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 Wl(e){return e=e.childContextTypes,e!=null}function N8(){bo(Ul),bo(Vs)}function qY(e,t,n){if(Vs.current!==eg)throw Error(Mn(168));lo(Vs,t),lo(Ul,n)}function Ode(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(Mn(108,yke(e)||"Unknown",i));return zo({},n,r)}function D8(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||eg,sv=Vs.current,lo(Vs,e),lo(Ul,Ul.current),!0}function GY(e,t,n){var r=e.stateNode;if(!r)throw Error(Mn(169));n?(e=Ode(e,t,sv),r.__reactInternalMemoizedMergedChildContext=e,bo(Ul),bo(Vs),lo(Vs,e)):bo(Ul),lo(Ul,n)}var Bh=null,i6=!1,g$=!1;function Pde(e){Bh===null?Bh=[e]:Bh.push(e)}function N6e(e){i6=!0,Pde(e)}function fg(){if(!g$&&Bh!==null){g$=!0;var e=0,t=Bi;try{var n=Bh;for(Bi=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Bh=null,i6=!1}catch(i){throw Bh!==null&&(Bh=Bh.slice(e+1)),ede(zH,fg),i}finally{Bi=t,g$=!1}}return null}var Ny=[],Dy=0,L8=null,F8=0,uu=[],du=0,lv=null,Vh=1,Kh="";function r1(e,t){Ny[Dy++]=F8,Ny[Dy++]=L8,L8=e,F8=t}function Mde(e,t,n){uu[du++]=Vh,uu[du++]=Kh,uu[du++]=lv,lv=e;var r=Vh;e=Kh;var i=32-wd(r)-1;r&=~(1<<i),n+=1;var o=32-wd(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Vh=1<<32-wd(t)+i|n<<i|r,Kh=o+e}else Vh=1<<o|n<<i|r,Kh=e}function QH(e){e.return!==null&&(r1(e,1),Mde(e,1,0))}function ZH(e){for(;e===L8;)L8=Ny[--Dy],Ny[Dy]=null,F8=Ny[--Dy],Ny[Dy]=null;for(;e===lv;)lv=uu[--du],uu[du]=null,Kh=uu[--du],uu[du]=null,Vh=uu[--du],uu[du]=null}var Ic=null,_c=null,Io=!1,md=null;function Ide(e,t){var n=gu(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 YY(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,Ic=e,_c=Hm(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ic=e,_c=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=lv!==null?{id:Vh,overflow:Kh}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=gu(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ic=e,_c=null,!0):!1;default:return!1}}function M7(e){return(e.mode&1)!==0&&(e.flags&128)===0}function I7(e){if(Io){var t=_c;if(t){var n=t;if(!YY(e,t)){if(M7(e))throw Error(Mn(418));t=Hm(n.nextSibling);var r=Ic;t&&YY(e,t)?Ide(r,n):(e.flags=e.flags&-4097|2,Io=!1,Ic=e)}}else{if(M7(e))throw Error(Mn(418));e.flags=e.flags&-4097|2,Io=!1,Ic=e}}}function XY(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ic=e}function yT(e){if(e!==Ic)return!1;if(!Io)return XY(e),Io=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!T7(e.type,e.memoizedProps)),t&&(t=_c)){if(M7(e))throw $de(),Error(Mn(418));for(;t;)Ide(e,t),t=Hm(t.nextSibling)}if(XY(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Mn(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){_c=Hm(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}_c=null}}else _c=Ic?Hm(e.stateNode.nextSibling):null;return!0}function $de(){for(var e=_c;e;)e=Hm(e.nextSibling)}function Nb(){_c=Ic=null,Io=!1}function JH(e){md===null?md=[e]:md.push(e)}var D6e=Sp.ReactCurrentBatchConfig;function xx(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(Mn(309));var r=n.stateNode}if(!r)throw Error(Mn(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 s=i.refs;a===null?delete s[o]:s[o]=a},t._stringRef=o,t)}if(typeof e!="string")throw Error(Mn(284));if(!n._owner)throw Error(Mn(290,e))}return e}function bT(e,t){throw e=Object.prototype.toString.call(t),Error(Mn(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function QY(e){var t=e._init;return t(e._payload)}function Rde(e){function t(S,b){if(e){var C=S.deletions;C===null?(S.deletions=[b],S.flags|=16):C.push(b)}}function n(S,b){if(!e)return null;for(;b!==null;)t(S,b),b=b.sibling;return null}function r(S,b){for(S=new Map;b!==null;)b.key!==null?S.set(b.key,b):S.set(b.index,b),b=b.sibling;return S}function i(S,b){return S=Vm(S,b),S.index=0,S.sibling=null,S}function o(S,b,C){return S.index=C,e?(C=S.alternate,C!==null?(C=C.index,C<b?(S.flags|=2,b):C):(S.flags|=2,b)):(S.flags|=1048576,b)}function a(S){return e&&S.alternate===null&&(S.flags|=2),S}function s(S,b,C,_){return b===null||b.tag!==6?(b=w$(C,S.mode,_),b.return=S,b):(b=i(b,C),b.return=S,b)}function l(S,b,C,_){var T=C.type;return T===Py?u(S,b,C.props.children,_,C.key):b!==null&&(b.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===gm&&QY(T)===b.type)?(_=i(b,C.props),_.ref=xx(S,b,C),_.return=S,_):(_=c3(C.type,C.key,C.props,null,S.mode,_),_.ref=xx(S,b,C),_.return=S,_)}function c(S,b,C,_){return b===null||b.tag!==4||b.stateNode.containerInfo!==C.containerInfo||b.stateNode.implementation!==C.implementation?(b=_$(C,S.mode,_),b.return=S,b):(b=i(b,C.children||[]),b.return=S,b)}function u(S,b,C,_,T){return b===null||b.tag!==7?(b=H1(C,S.mode,_,T),b.return=S,b):(b=i(b,C),b.return=S,b)}function d(S,b,C){if(typeof b=="string"&&b!==""||typeof b=="number")return b=w$(""+b,S.mode,C),b.return=S,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case lT:return C=c3(b.type,b.key,b.props,null,S.mode,C),C.ref=xx(S,null,b),C.return=S,C;case Oy:return b=_$(b,S.mode,C),b.return=S,b;case gm:var _=b._init;return d(S,_(b._payload),C)}if(h2(b)||vx(b))return b=H1(b,S.mode,C,null),b.return=S,b;bT(S,b)}return null}function h(S,b,C,_){var T=b!==null?b.key:null;if(typeof C=="string"&&C!==""||typeof C=="number")return T!==null?null:s(S,b,""+C,_);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case lT:return C.key===T?l(S,b,C,_):null;case Oy:return C.key===T?c(S,b,C,_):null;case gm:return T=C._init,h(S,b,T(C._payload),_)}if(h2(C)||vx(C))return T!==null?null:u(S,b,C,_,null);bT(S,C)}return null}function p(S,b,C,_,T){if(typeof _=="string"&&_!==""||typeof _=="number")return S=S.get(C)||null,s(b,S,""+_,T);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case lT:return S=S.get(_.key===null?C:_.key)||null,l(b,S,_,T);case Oy:return S=S.get(_.key===null?C:_.key)||null,c(b,S,_,T);case gm:var x=_._init;return p(S,b,C,x(_._payload),T)}if(h2(_)||vx(_))return S=S.get(C)||null,u(b,S,_,T,null);bT(b,_)}return null}function m(S,b,C,_){for(var T=null,x=null,E=b,k=b=0,M=null;E!==null&&k<C.length;k++){E.index>k?(M=E,E=null):M=E.sibling;var P=h(S,E,C[k],_);if(P===null){E===null&&(E=M);break}e&&E&&P.alternate===null&&t(S,E),b=o(P,b,k),x===null?T=P:x.sibling=P,x=P,E=M}if(k===C.length)return n(S,E),Io&&r1(S,k),T;if(E===null){for(;k<C.length;k++)E=d(S,C[k],_),E!==null&&(b=o(E,b,k),x===null?T=E:x.sibling=E,x=E);return Io&&r1(S,k),T}for(E=r(S,E);k<C.length;k++)M=p(E,S,k,C[k],_),M!==null&&(e&&M.alternate!==null&&E.delete(M.key===null?k:M.key),b=o(M,b,k),x===null?T=M:x.sibling=M,x=M);return e&&E.forEach(function(D){return t(S,D)}),Io&&r1(S,k),T}function v(S,b,C,_){var T=vx(C);if(typeof T!="function")throw Error(Mn(150));if(C=T.call(C),C==null)throw Error(Mn(151));for(var x=T=null,E=b,k=b=0,M=null,P=C.next();E!==null&&!P.done;k++,P=C.next()){E.index>k?(M=E,E=null):M=E.sibling;var D=h(S,E,P.value,_);if(D===null){E===null&&(E=M);break}e&&E&&D.alternate===null&&t(S,E),b=o(D,b,k),x===null?T=D:x.sibling=D,x=D,E=M}if(P.done)return n(S,E),Io&&r1(S,k),T;if(E===null){for(;!P.done;k++,P=C.next())P=d(S,P.value,_),P!==null&&(b=o(P,b,k),x===null?T=P:x.sibling=P,x=P);return Io&&r1(S,k),T}for(E=r(S,E);!P.done;k++,P=C.next())P=p(E,S,k,P.value,_),P!==null&&(e&&P.alternate!==null&&E.delete(P.key===null?k:P.key),b=o(P,b,k),x===null?T=P:x.sibling=P,x=P);return e&&E.forEach(function(R){return t(S,R)}),Io&&r1(S,k),T}function y(S,b,C,_){if(typeof C=="object"&&C!==null&&C.type===Py&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case lT:e:{for(var T=C.key,x=b;x!==null;){if(x.key===T){if(T=C.type,T===Py){if(x.tag===7){n(S,x.sibling),b=i(x,C.props.children),b.return=S,S=b;break e}}else if(x.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===gm&&QY(T)===x.type){n(S,x.sibling),b=i(x,C.props),b.ref=xx(S,x,C),b.return=S,S=b;break e}n(S,x);break}else t(S,x);x=x.sibling}C.type===Py?(b=H1(C.props.children,S.mode,_,C.key),b.return=S,S=b):(_=c3(C.type,C.key,C.props,null,S.mode,_),_.ref=xx(S,b,C),_.return=S,S=_)}return a(S);case Oy:e:{for(x=C.key;b!==null;){if(b.key===x)if(b.tag===4&&b.stateNode.containerInfo===C.containerInfo&&b.stateNode.implementation===C.implementation){n(S,b.sibling),b=i(b,C.children||[]),b.return=S,S=b;break e}else{n(S,b);break}else t(S,b);b=b.sibling}b=_$(C,S.mode,_),b.return=S,S=b}return a(S);case gm:return x=C._init,y(S,b,x(C._payload),_)}if(h2(C))return m(S,b,C,_);if(vx(C))return v(S,b,C,_);bT(S,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,b!==null&&b.tag===6?(n(S,b.sibling),b=i(b,C),b.return=S,S=b):(n(S,b),b=w$(C,S.mode,_),b.return=S,S=b),a(S)):n(S,b)}return y}var Db=Rde(!0),Ade=Rde(!1),j8=dg(null),B8=null,Ly=null,ez=null;function tz(){ez=Ly=B8=null}function nz(e){var t=j8.current;bo(j8),e._currentValue=t}function $7(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 ib(e,t){B8=e,ez=Ly=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Bl=!0),e.firstContext=null)}function wu(e){var t=e._currentValue;if(ez!==e)if(e={context:e,memoizedValue:t,next:null},Ly===null){if(B8===null)throw Error(Mn(308));Ly=e,B8.dependencies={lanes:0,firstContext:e}}else Ly=Ly.next=e;return t}var b1=null;function rz(e){b1===null?b1=[e]:b1.push(e)}function Nde(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,rz(t)):(n.next=i.next,i.next=n),t.interleaved=n,op(e,r)}function op(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 vm=!1;function iz(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Dde(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 Zh(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function zm(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,wi&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,op(e,n)}return i=r.interleaved,i===null?(t.next=t,rz(r)):(t.next=i.next,i.next=t),r.interleaved=t,op(e,n)}function r3(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,UH(e,n)}}function ZY(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 H8(e,t,n,r){var i=e.updateQueue;vm=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?o=c:a.next=c,a=l;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==a&&(s===null?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(o!==null){var d=i.baseState;a=0,u=c=l=null,s=o;do{var h=s.lane,p=s.eventTime;if((r&h)===h){u!==null&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=e,v=s;switch(h=t,p=n,v.tag){case 1:if(m=v.payload,typeof m=="function"){d=m.call(p,d,h);break e}d=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=v.payload,h=typeof m=="function"?m.call(p,d,h):m,h==null)break e;d=zo({},d,h);break e;case 2:vm=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,h=i.effects,h===null?i.effects=[s]:h.push(s))}else p={eventTime:p,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=p,l=d):u=u.next=p,a|=h;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;h=s,s=h.next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}while(!0);if(u===null&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,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);uv|=a,e.lanes=a,e.memoizedState=d}}function JY(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(Mn(191,i));i.call(r)}}}var tE={},jf=dg(tE),Lw=dg(tE),Fw=dg(tE);function S1(e){if(e===tE)throw Error(Mn(174));return e}function oz(e,t){switch(lo(Fw,t),lo(Lw,e),lo(jf,tE),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:f7(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=f7(t,e)}bo(jf),lo(jf,t)}function Lb(){bo(jf),bo(Lw),bo(Fw)}function Lde(e){S1(Fw.current);var t=S1(jf.current),n=f7(t,e.type);t!==n&&(lo(Lw,e),lo(jf,n))}function az(e){Lw.current===e&&(bo(jf),bo(Lw))}var jo=dg(0);function z8(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 v$=[];function sz(){for(var e=0;e<v$.length;e++)v$[e]._workInProgressVersionPrimary=null;v$.length=0}var i3=Sp.ReactCurrentDispatcher,y$=Sp.ReactCurrentBatchConfig,cv=0,Ho=null,Ha=null,es=null,U8=!1,B2=!1,jw=0,L6e=0;function $s(){throw Error(Mn(321))}function lz(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ad(e[n],t[n]))return!1;return!0}function cz(e,t,n,r,i,o){if(cv=o,Ho=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,i3.current=e===null||e.memoizedState===null?H6e:z6e,e=n(r,i),B2){o=0;do{if(B2=!1,jw=0,25<=o)throw Error(Mn(301));o+=1,es=Ha=null,t.updateQueue=null,i3.current=U6e,e=n(r,i)}while(B2)}if(i3.current=W8,t=Ha!==null&&Ha.next!==null,cv=0,es=Ha=Ho=null,U8=!1,t)throw Error(Mn(300));return e}function uz(){var e=jw!==0;return jw=0,e}function yf(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return es===null?Ho.memoizedState=es=e:es=es.next=e,es}function _u(){if(Ha===null){var e=Ho.alternate;e=e!==null?e.memoizedState:null}else e=Ha.next;var t=es===null?Ho.memoizedState:es.next;if(t!==null)es=t,Ha=e;else{if(e===null)throw Error(Mn(310));Ha=e,e={memoizedState:Ha.memoizedState,baseState:Ha.baseState,baseQueue:Ha.baseQueue,queue:Ha.queue,next:null},es===null?Ho.memoizedState=es=e:es=es.next=e}return es}function Bw(e,t){return typeof t=="function"?t(e):t}function b$(e){var t=_u(),n=t.queue;if(n===null)throw Error(Mn(311));n.lastRenderedReducer=e;var r=Ha,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 s=a=null,l=null,c=o;do{var u=c.lane;if((cv&u)===u)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(s=l=d,a=r):l=l.next=d,Ho.lanes|=u,uv|=u}c=c.next}while(c!==null&&c!==o);l===null?a=r:l.next=s,Ad(r,t.memoizedState)||(Bl=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,Ho.lanes|=o,uv|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function S$(e){var t=_u(),n=t.queue;if(n===null)throw Error(Mn(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);Ad(o,t.memoizedState)||(Bl=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Fde(){}function jde(e,t){var n=Ho,r=_u(),i=t(),o=!Ad(r.memoizedState,i);if(o&&(r.memoizedState=i,Bl=!0),r=r.queue,dz(zde.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||es!==null&&es.memoizedState.tag&1){if(n.flags|=2048,Hw(9,Hde.bind(null,n,r,i,t),void 0,null),is===null)throw Error(Mn(349));cv&30||Bde(n,t,i)}return i}function Bde(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ho.updateQueue,t===null?(t={lastEffect:null,stores:null},Ho.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Hde(e,t,n,r){t.value=n,t.getSnapshot=r,Ude(t)&&Wde(e)}function zde(e,t,n){return n(function(){Ude(t)&&Wde(e)})}function Ude(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ad(e,n)}catch{return!0}}function Wde(e){var t=op(e,1);t!==null&&_d(t,e,1,-1)}function eX(e){var t=yf();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Bw,lastRenderedState:e},t.queue=e,e=e.dispatch=B6e.bind(null,Ho,e),[t.memoizedState,e]}function Hw(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Ho.updateQueue,t===null?(t={lastEffect:null,stores:null},Ho.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 Vde(){return _u().memoizedState}function o3(e,t,n,r){var i=yf();Ho.flags|=e,i.memoizedState=Hw(1|t,n,void 0,r===void 0?null:r)}function o6(e,t,n,r){var i=_u();r=r===void 0?null:r;var o=void 0;if(Ha!==null){var a=Ha.memoizedState;if(o=a.destroy,r!==null&&lz(r,a.deps)){i.memoizedState=Hw(t,n,o,r);return}}Ho.flags|=e,i.memoizedState=Hw(1|t,n,o,r)}function tX(e,t){return o3(8390656,8,e,t)}function dz(e,t){return o6(2048,8,e,t)}function Kde(e,t){return o6(4,2,e,t)}function qde(e,t){return o6(4,4,e,t)}function Gde(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 Yde(e,t,n){return n=n!=null?n.concat([e]):null,o6(4,4,Gde.bind(null,t,e),n)}function fz(){}function Xde(e,t){var n=_u();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&lz(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Qde(e,t){var n=_u();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&lz(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Zde(e,t,n){return cv&21?(Ad(n,t)||(n=rde(),Ho.lanes|=n,uv|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Bl=!0),e.memoizedState=n)}function F6e(e,t){var n=Bi;Bi=n!==0&&4>n?n:4,e(!0);var r=y$.transition;y$.transition={};try{e(!1),t()}finally{Bi=n,y$.transition=r}}function Jde(){return _u().memoizedState}function j6e(e,t,n){var r=Wm(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},efe(e))tfe(t,n);else if(n=Nde(e,t,n,r),n!==null){var i=pl();_d(n,e,r,i),nfe(n,t,r)}}function B6e(e,t,n){var r=Wm(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(efe(e))tfe(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,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,Ad(s,a)){var l=t.interleaved;l===null?(i.next=i,rz(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=Nde(e,t,i,r),n!==null&&(i=pl(),_d(n,e,r,i),nfe(n,t,r))}}function efe(e){var t=e.alternate;return e===Ho||t!==null&&t===Ho}function tfe(e,t){B2=U8=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function nfe(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,UH(e,n)}}var W8={readContext:wu,useCallback:$s,useContext:$s,useEffect:$s,useImperativeHandle:$s,useInsertionEffect:$s,useLayoutEffect:$s,useMemo:$s,useReducer:$s,useRef:$s,useState:$s,useDebugValue:$s,useDeferredValue:$s,useTransition:$s,useMutableSource:$s,useSyncExternalStore:$s,useId:$s,unstable_isNewReconciler:!1},H6e={readContext:wu,useCallback:function(e,t){return yf().memoizedState=[e,t===void 0?null:t],e},useContext:wu,useEffect:tX,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,o3(4194308,4,Gde.bind(null,t,e),n)},useLayoutEffect:function(e,t){return o3(4194308,4,e,t)},useInsertionEffect:function(e,t){return o3(4,2,e,t)},useMemo:function(e,t){var n=yf();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=yf();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=j6e.bind(null,Ho,e),[r.memoizedState,e]},useRef:function(e){var t=yf();return e={current:e},t.memoizedState=e},useState:eX,useDebugValue:fz,useDeferredValue:function(e){return yf().memoizedState=e},useTransition:function(){var e=eX(!1),t=e[0];return e=F6e.bind(null,e[1]),yf().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ho,i=yf();if(Io){if(n===void 0)throw Error(Mn(407));n=n()}else{if(n=t(),is===null)throw Error(Mn(349));cv&30||Bde(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,tX(zde.bind(null,r,o,e),[e]),r.flags|=2048,Hw(9,Hde.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=yf(),t=is.identifierPrefix;if(Io){var n=Kh,r=Vh;n=(r&~(1<<32-wd(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=jw++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=L6e++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},z6e={readContext:wu,useCallback:Xde,useContext:wu,useEffect:dz,useImperativeHandle:Yde,useInsertionEffect:Kde,useLayoutEffect:qde,useMemo:Qde,useReducer:b$,useRef:Vde,useState:function(){return b$(Bw)},useDebugValue:fz,useDeferredValue:function(e){var t=_u();return Zde(t,Ha.memoizedState,e)},useTransition:function(){var e=b$(Bw)[0],t=_u().memoizedState;return[e,t]},useMutableSource:Fde,useSyncExternalStore:jde,useId:Jde,unstable_isNewReconciler:!1},U6e={readContext:wu,useCallback:Xde,useContext:wu,useEffect:dz,useImperativeHandle:Yde,useInsertionEffect:Kde,useLayoutEffect:qde,useMemo:Qde,useReducer:S$,useRef:Vde,useState:function(){return S$(Bw)},useDebugValue:fz,useDeferredValue:function(e){var t=_u();return Ha===null?t.memoizedState=e:Zde(t,Ha.memoizedState,e)},useTransition:function(){var e=S$(Bw)[0],t=_u().memoizedState;return[e,t]},useMutableSource:Fde,useSyncExternalStore:jde,useId:Jde,unstable_isNewReconciler:!1};function ld(e,t){if(e&&e.defaultProps){t=zo({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function R7(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:zo({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var a6={isMounted:function(e){return(e=e._reactInternals)?Lv(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=pl(),i=Wm(e),o=Zh(r,i);o.payload=t,n!=null&&(o.callback=n),t=zm(e,o,i),t!==null&&(_d(t,e,i,r),r3(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=pl(),i=Wm(e),o=Zh(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=zm(e,o,i),t!==null&&(_d(t,e,i,r),r3(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=pl(),r=Wm(e),i=Zh(n,r);i.tag=2,t!=null&&(i.callback=t),t=zm(e,i,r),t!==null&&(_d(t,e,r,n),r3(t,e,r))}};function nX(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?!Rw(n,r)||!Rw(i,o):!0}function rfe(e,t,n){var r=!1,i=eg,o=t.contextType;return typeof o=="object"&&o!==null?o=wu(o):(i=Wl(t)?sv:Vs.current,r=t.contextTypes,o=(r=r!=null)?Ab(e,i):eg),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=a6,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function rX(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&&a6.enqueueReplaceState(t,t.state,null)}function A7(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},iz(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=wu(o):(o=Wl(t)?sv:Vs.current,i.context=Ab(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(R7(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&&a6.enqueueReplaceState(i,i.state,null),H8(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Fb(e,t){try{var n="",r=t;do n+=vke(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 C$(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function N7(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var W6e=typeof WeakMap=="function"?WeakMap:Map;function ife(e,t,n){n=Zh(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){K8||(K8=!0,V7=r),N7(e,t)},n}function ofe(e,t,n){n=Zh(-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(){N7(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){N7(e,t),typeof r!="function"&&(Um===null?Um=new Set([this]):Um.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function iX(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new W6e;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=iOe.bind(null,e,t,n),t.then(e,e))}function oX(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 aX(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=Zh(-1,1),t.tag=2,zm(n,t,1))),n.lanes|=1),e)}var V6e=Sp.ReactCurrentOwner,Bl=!1;function ol(e,t,n,r){t.child=e===null?Ade(t,null,n,r):Db(t,e.child,n,r)}function sX(e,t,n,r,i){n=n.render;var o=t.ref;return ib(t,i),r=cz(e,t,n,r,o,i),n=uz(),e!==null&&!Bl?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ap(e,t,i)):(Io&&n&&QH(t),t.flags|=1,ol(e,t,r,i),t.child)}function lX(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Sz(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,afe(e,t,o,r,i)):(e=c3(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:Rw,n(a,r)&&e.ref===t.ref)return ap(e,t,i)}return t.flags|=1,e=Vm(o,r),e.ref=t.ref,e.return=t,t.child=e}function afe(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Rw(o,r)&&e.ref===t.ref)if(Bl=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(Bl=!0);else return t.lanes=e.lanes,ap(e,t,i)}return D7(e,t,n,r,i)}function sfe(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},lo(jy,bc),bc|=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,lo(jy,bc),bc|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,lo(jy,bc),bc|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,lo(jy,bc),bc|=r;return ol(e,t,i,n),t.child}function lfe(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function D7(e,t,n,r,i){var o=Wl(n)?sv:Vs.current;return o=Ab(t,o),ib(t,i),n=cz(e,t,n,r,o,i),r=uz(),e!==null&&!Bl?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ap(e,t,i)):(Io&&r&&QH(t),t.flags|=1,ol(e,t,n,i),t.child)}function cX(e,t,n,r,i){if(Wl(n)){var o=!0;D8(t)}else o=!1;if(ib(t,i),t.stateNode===null)a3(e,t),rfe(t,n,r),A7(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;typeof c=="object"&&c!==null?c=wu(c):(c=Wl(n)?sv:Vs.current,c=Ab(t,c));var u=n.getDerivedStateFromProps,d=typeof u=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==c)&&rX(t,a,r,c),vm=!1;var h=t.memoizedState;a.state=h,H8(t,r,a,i),l=t.memoizedState,s!==r||h!==l||Ul.current||vm?(typeof u=="function"&&(R7(t,n,u,r),l=t.memoizedState),(s=vm||nX(t,n,s,r,h,l,c))?(d||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=l),a.props=r,a.state=l,a.context=c,r=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Dde(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:ld(t.type,s),a.props=c,d=t.pendingProps,h=a.context,l=n.contextType,typeof l=="object"&&l!==null?l=wu(l):(l=Wl(n)?sv:Vs.current,l=Ab(t,l));var p=n.getDerivedStateFromProps;(u=typeof p=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==d||h!==l)&&rX(t,a,r,l),vm=!1,h=t.memoizedState,a.state=h,H8(t,r,a,i);var m=t.memoizedState;s!==d||h!==m||Ul.current||vm?(typeof p=="function"&&(R7(t,n,p,r),m=t.memoizedState),(c=vm||nX(t,n,c,r,h,m,l)||!1)?(u||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,m,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,m,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),a.props=r,a.state=m,a.context=l,r=c):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return L7(e,t,n,r,o,i)}function L7(e,t,n,r,i,o){lfe(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return i&&GY(t,n,!1),ap(e,t,o);r=t.stateNode,V6e.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Db(t,e.child,null,o),t.child=Db(t,null,s,o)):ol(e,t,s,o),t.memoizedState=r.state,i&&GY(t,n,!0),t.child}function cfe(e){var t=e.stateNode;t.pendingContext?qY(e,t.pendingContext,t.pendingContext!==t.context):t.context&&qY(e,t.context,!1),oz(e,t.containerInfo)}function uX(e,t,n,r,i){return Nb(),JH(i),t.flags|=256,ol(e,t,n,r),t.child}var F7={dehydrated:null,treeContext:null,retryLane:0};function j7(e){return{baseLanes:e,cachePool:null,transitions:null}}function ufe(e,t,n){var r=t.pendingProps,i=jo.current,o=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),lo(jo,i&1),e===null)return I7(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=c6(a,r,0,null),e=H1(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=j7(n),t.memoizedState=F7,e):hz(t,a));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return K6e(e,t,a,r,s,i,n);if(o){o=r.fallback,a=t.mode,i=e.child,s=i.sibling;var l={mode:"hidden",children:r.children};return!(a&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Vm(i,l),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?o=Vm(s,o):(o=H1(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?j7(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~n,t.memoizedState=F7,r}return o=e.child,e=o.sibling,r=Vm(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 hz(e,t){return t=c6({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ST(e,t,n,r){return r!==null&&JH(r),Db(t,e.child,null,n),e=hz(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function K6e(e,t,n,r,i,o,a){if(n)return t.flags&256?(t.flags&=-257,r=C$(Error(Mn(422))),ST(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=c6({mode:"visible",children:r.children},i,0,null),o=H1(o,i,a,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Db(t,e.child,null,a),t.child.memoizedState=j7(a),t.memoizedState=F7,o);if(!(t.mode&1))return ST(e,t,a,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,o=Error(Mn(419)),r=C$(o,r,void 0),ST(e,t,a,r)}if(s=(a&e.childLanes)!==0,Bl||s){if(r=is,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,op(e,i),_d(r,e,i,-1))}return bz(),r=C$(Error(Mn(421))),ST(e,t,a,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=oOe.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,_c=Hm(i.nextSibling),Ic=t,Io=!0,md=null,e!==null&&(uu[du++]=Vh,uu[du++]=Kh,uu[du++]=lv,Vh=e.id,Kh=e.overflow,lv=t),t=hz(t,r.children),t.flags|=4096,t)}function dX(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),$7(e.return,t,n)}function x$(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 dfe(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(ol(e,t,r.children,n),r=jo.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&&dX(e,n,t);else if(e.tag===19)dX(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(lo(jo,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&&z8(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),x$(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&&z8(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}x$(t,!0,n,null,o);break;case"together":x$(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function a3(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ap(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),uv|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Mn(153));if(t.child!==null){for(e=t.child,n=Vm(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Vm(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function q6e(e,t,n){switch(t.tag){case 3:cfe(t),Nb();break;case 5:Lde(t);break;case 1:Wl(t.type)&&D8(t);break;case 4:oz(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;lo(j8,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(lo(jo,jo.current&1),t.flags|=128,null):n&t.child.childLanes?ufe(e,t,n):(lo(jo,jo.current&1),e=ap(e,t,n),e!==null?e.sibling:null);lo(jo,jo.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return dfe(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),lo(jo,jo.current),r)break;return null;case 22:case 23:return t.lanes=0,sfe(e,t,n)}return ap(e,t,n)}var ffe,B7,hfe,pfe;ffe=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}};B7=function(){};hfe=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,S1(jf.current);var o=null;switch(n){case"input":i=l7(e,i),r=l7(e,r),o=[];break;case"select":i=zo({},i,{value:void 0}),r=zo({},r,{value:void 0}),o=[];break;case"textarea":i=d7(e,i),r=d7(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=A8)}h7(n,r);var a;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var s=i[c];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Tw.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var l=r[c];if(s=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&l!==s&&(l!=null||s!=null))if(c==="style")if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(n||(n={}),n[a]=l[a])}else n||(o||(o=[]),o.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(o=o||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Tw.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&fo("scroll",e),o||s===l||(o=[])):(o=o||[]).push(c,l))}n&&(o=o||[]).push("style",n);var c=o;(t.updateQueue=c)&&(t.flags|=4)}};pfe=function(e,t,n,r){n!==r&&(t.flags|=4)};function _x(e,t){if(!Io)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 Rs(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 G6e(e,t,n){var r=t.pendingProps;switch(ZH(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Rs(t),null;case 1:return Wl(t.type)&&N8(),Rs(t),null;case 3:return r=t.stateNode,Lb(),bo(Ul),bo(Vs),sz(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(yT(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,md!==null&&(G7(md),md=null))),B7(e,t),Rs(t),null;case 5:az(t);var i=S1(Fw.current);if(n=t.type,e!==null&&t.stateNode!=null)hfe(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Mn(166));return Rs(t),null}if(e=S1(jf.current),yT(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Of]=t,r[Dw]=o,e=(t.mode&1)!==0,n){case"dialog":fo("cancel",r),fo("close",r);break;case"iframe":case"object":case"embed":fo("load",r);break;case"video":case"audio":for(i=0;i<m2.length;i++)fo(m2[i],r);break;case"source":fo("error",r);break;case"img":case"image":case"link":fo("error",r),fo("load",r);break;case"details":fo("toggle",r);break;case"input":SY(r,o),fo("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},fo("invalid",r);break;case"textarea":xY(r,o),fo("invalid",r)}h7(n,o),i=null;for(var a in o)if(o.hasOwnProperty(a)){var s=o[a];a==="children"?typeof s=="string"?r.textContent!==s&&(o.suppressHydrationWarning!==!0&&vT(r.textContent,s,e),i=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(o.suppressHydrationWarning!==!0&&vT(r.textContent,s,e),i=["children",""+s]):Tw.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&fo("scroll",r)}switch(n){case"input":cT(r),CY(r,o,!0);break;case"textarea":cT(r),wY(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=A8)}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=zue(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[Of]=t,e[Dw]=r,ffe(e,t,!1,!1),t.stateNode=e;e:{switch(a=p7(n,r),n){case"dialog":fo("cancel",e),fo("close",e),i=r;break;case"iframe":case"object":case"embed":fo("load",e),i=r;break;case"video":case"audio":for(i=0;i<m2.length;i++)fo(m2[i],e);i=r;break;case"source":fo("error",e),i=r;break;case"img":case"image":case"link":fo("error",e),fo("load",e),i=r;break;case"details":fo("toggle",e),i=r;break;case"input":SY(e,r),i=l7(e,r),fo("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=zo({},r,{value:void 0}),fo("invalid",e);break;case"textarea":xY(e,r),i=d7(e,r),fo("invalid",e);break;default:i=r}h7(n,i),s=i;for(o in s)if(s.hasOwnProperty(o)){var l=s[o];o==="style"?Vue(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Uue(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&kw(e,l):typeof l=="number"&&kw(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Tw.hasOwnProperty(o)?l!=null&&o==="onScroll"&&fo("scroll",e):l!=null&&LH(e,o,l,a))}switch(n){case"input":cT(e),CY(e,r,!1);break;case"textarea":cT(e),wY(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Jm(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?eb(e,!!r.multiple,o,!1):r.defaultValue!=null&&eb(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=A8)}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 Rs(t),null;case 6:if(e&&t.stateNode!=null)pfe(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Mn(166));if(n=S1(Fw.current),S1(jf.current),yT(t)){if(r=t.stateNode,n=t.memoizedProps,r[Of]=t,(o=r.nodeValue!==n)&&(e=Ic,e!==null))switch(e.tag){case 3:vT(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&vT(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Of]=t,t.stateNode=r}return Rs(t),null;case 13:if(bo(jo),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Io&&_c!==null&&t.mode&1&&!(t.flags&128))$de(),Nb(),t.flags|=98560,o=!1;else if(o=yT(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(Mn(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(Mn(317));o[Of]=t}else Nb(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Rs(t),o=!1}else md!==null&&(G7(md),md=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||jo.current&1?za===0&&(za=3):bz())),t.updateQueue!==null&&(t.flags|=4),Rs(t),null);case 4:return Lb(),B7(e,t),e===null&&Aw(t.stateNode.containerInfo),Rs(t),null;case 10:return nz(t.type._context),Rs(t),null;case 17:return Wl(t.type)&&N8(),Rs(t),null;case 19:if(bo(jo),o=t.memoizedState,o===null)return Rs(t),null;if(r=(t.flags&128)!==0,a=o.rendering,a===null)if(r)_x(o,!1);else{if(za!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=z8(e),a!==null){for(t.flags|=128,_x(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 lo(jo,jo.current&1|2),t.child}e=e.sibling}o.tail!==null&&da()>jb&&(t.flags|=128,r=!0,_x(o,!1),t.lanes=4194304)}else{if(!r)if(e=z8(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),_x(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!Io)return Rs(t),null}else 2*da()-o.renderingStartTime>jb&&n!==1073741824&&(t.flags|=128,r=!0,_x(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=da(),t.sibling=null,n=jo.current,lo(jo,r?n&1|2:n&1),t):(Rs(t),null);case 22:case 23:return yz(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?bc&1073741824&&(Rs(t),t.subtreeFlags&6&&(t.flags|=8192)):Rs(t),null;case 24:return null;case 25:return null}throw Error(Mn(156,t.tag))}function Y6e(e,t){switch(ZH(t),t.tag){case 1:return Wl(t.type)&&N8(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Lb(),bo(Ul),bo(Vs),sz(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return az(t),null;case 13:if(bo(jo),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Mn(340));Nb()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return bo(jo),null;case 4:return Lb(),null;case 10:return nz(t.type._context),null;case 22:case 23:return yz(),null;case 24:return null;default:return null}}var CT=!1,Fs=!1,X6e=typeof WeakSet=="function"?WeakSet:Set,ir=null;function Fy(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Zo(e,t,r)}else n.current=null}function H7(e,t,n){try{n()}catch(r){Zo(e,t,r)}}var fX=!1;function Q6e(e,t){if(_7=I8,e=bde(),XH(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,s=-1,l=-1,c=0,u=0,d=e,h=null;t:for(;;){for(var p;d!==n||i!==0&&d.nodeType!==3||(s=a+i),d!==o||r!==0&&d.nodeType!==3||(l=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(p=d.firstChild)!==null;)h=d,d=p;for(;;){if(d===e)break t;if(h===n&&++c===i&&(s=a),h===o&&++u===r&&(l=a),(p=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=p}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(E7={focusedElem:e,selectionRange:n},I8=!1,ir=t;ir!==null;)if(t=ir,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ir=e;else for(;ir!==null;){t=ir;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var v=m.memoizedProps,y=m.memoizedState,S=t.stateNode,b=S.getSnapshotBeforeUpdate(t.elementType===t.type?v:ld(t.type,v),y);S.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var C=t.stateNode.containerInfo;C.nodeType===1?C.textContent="":C.nodeType===9&&C.documentElement&&C.removeChild(C.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Mn(163))}}catch(_){Zo(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,ir=e;break}ir=t.return}return m=fX,fX=!1,m}function H2(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&&H7(t,n,o)}i=i.next}while(i!==r)}}function s6(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 z7(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 mfe(e){var t=e.alternate;t!==null&&(e.alternate=null,mfe(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Of],delete t[Dw],delete t[O7],delete t[R6e],delete t[A6e])),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 gfe(e){return e.tag===5||e.tag===3||e.tag===4}function hX(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||gfe(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 U7(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=A8));else if(r!==4&&(e=e.child,e!==null))for(U7(e,t,n),e=e.sibling;e!==null;)U7(e,t,n),e=e.sibling}function W7(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(W7(e,t,n),e=e.sibling;e!==null;)W7(e,t,n),e=e.sibling}var ms=null,dd=!1;function qp(e,t,n){for(n=n.child;n!==null;)vfe(e,t,n),n=n.sibling}function vfe(e,t,n){if(Ff&&typeof Ff.onCommitFiberUnmount=="function")try{Ff.onCommitFiberUnmount(Jk,n)}catch{}switch(n.tag){case 5:Fs||Fy(n,t);case 6:var r=ms,i=dd;ms=null,qp(e,t,n),ms=r,dd=i,ms!==null&&(dd?(e=ms,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ms.removeChild(n.stateNode));break;case 18:ms!==null&&(dd?(e=ms,n=n.stateNode,e.nodeType===8?m$(e.parentNode,n):e.nodeType===1&&m$(e,n),Iw(e)):m$(ms,n.stateNode));break;case 4:r=ms,i=dd,ms=n.stateNode.containerInfo,dd=!0,qp(e,t,n),ms=r,dd=i;break;case 0:case 11:case 14:case 15:if(!Fs&&(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)&&H7(n,t,a),i=i.next}while(i!==r)}qp(e,t,n);break;case 1:if(!Fs&&(Fy(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Zo(n,t,s)}qp(e,t,n);break;case 21:qp(e,t,n);break;case 22:n.mode&1?(Fs=(r=Fs)||n.memoizedState!==null,qp(e,t,n),Fs=r):qp(e,t,n);break;default:qp(e,t,n)}}function pX(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new X6e),t.forEach(function(r){var i=aOe.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Zu(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,s=a;e:for(;s!==null;){switch(s.tag){case 5:ms=s.stateNode,dd=!1;break e;case 3:ms=s.stateNode.containerInfo,dd=!0;break e;case 4:ms=s.stateNode.containerInfo,dd=!0;break e}s=s.return}if(ms===null)throw Error(Mn(160));vfe(o,a,i),ms=null,dd=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(c){Zo(i,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)yfe(t,e),t=t.sibling}function yfe(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Zu(t,e),df(e),r&4){try{H2(3,e,e.return),s6(3,e)}catch(v){Zo(e,e.return,v)}try{H2(5,e,e.return)}catch(v){Zo(e,e.return,v)}}break;case 1:Zu(t,e),df(e),r&512&&n!==null&&Fy(n,n.return);break;case 5:if(Zu(t,e),df(e),r&512&&n!==null&&Fy(n,n.return),e.flags&32){var i=e.stateNode;try{kw(i,"")}catch(v){Zo(e,e.return,v)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,a=n!==null?n.memoizedProps:o,s=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{s==="input"&&o.type==="radio"&&o.name!=null&&Bue(i,o),p7(s,a);var c=p7(s,o);for(a=0;a<l.length;a+=2){var u=l[a],d=l[a+1];u==="style"?Vue(i,d):u==="dangerouslySetInnerHTML"?Uue(i,d):u==="children"?kw(i,d):LH(i,u,d,c)}switch(s){case"input":c7(i,o);break;case"textarea":Hue(i,o);break;case"select":var h=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var p=o.value;p!=null?eb(i,!!o.multiple,p,!1):h!==!!o.multiple&&(o.defaultValue!=null?eb(i,!!o.multiple,o.defaultValue,!0):eb(i,!!o.multiple,o.multiple?[]:"",!1))}i[Dw]=o}catch(v){Zo(e,e.return,v)}}break;case 6:if(Zu(t,e),df(e),r&4){if(e.stateNode===null)throw Error(Mn(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(v){Zo(e,e.return,v)}}break;case 3:if(Zu(t,e),df(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Iw(t.containerInfo)}catch(v){Zo(e,e.return,v)}break;case 4:Zu(t,e),df(e);break;case 13:Zu(t,e),df(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(gz=da())),r&4&&pX(e);break;case 22:if(u=n!==null&&n.memoizedState!==null,e.mode&1?(Fs=(c=Fs)||u,Zu(t,e),Fs=c):Zu(t,e),df(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!u&&e.mode&1)for(ir=e,u=e.child;u!==null;){for(d=ir=u;ir!==null;){switch(h=ir,p=h.child,h.tag){case 0:case 11:case 14:case 15:H2(4,h,h.return);break;case 1:Fy(h,h.return);var m=h.stateNode;if(typeof m.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(v){Zo(r,n,v)}}break;case 5:Fy(h,h.return);break;case 22:if(h.memoizedState!==null){gX(d);continue}}p!==null?(p.return=h,ir=p):gX(d)}u=u.sibling}e:for(u=null,d=e;;){if(d.tag===5){if(u===null){u=d;try{i=d.stateNode,c?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(s=d.stateNode,l=d.memoizedProps.style,a=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=Wue("display",a))}catch(v){Zo(e,e.return,v)}}}else if(d.tag===6){if(u===null)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(v){Zo(e,e.return,v)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Zu(t,e),df(e),r&4&&pX(e);break;case 21:break;default:Zu(t,e),df(e)}}function df(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(gfe(n)){var r=n;break e}n=n.return}throw Error(Mn(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(kw(i,""),r.flags&=-33);var o=hX(e);W7(e,o,i);break;case 3:case 4:var a=r.stateNode.containerInfo,s=hX(e);U7(e,s,a);break;default:throw Error(Mn(161))}}catch(l){Zo(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Z6e(e,t,n){ir=e,bfe(e)}function bfe(e,t,n){for(var r=(e.mode&1)!==0;ir!==null;){var i=ir,o=i.child;if(i.tag===22&&r){var a=i.memoizedState!==null||CT;if(!a){var s=i.alternate,l=s!==null&&s.memoizedState!==null||Fs;s=CT;var c=Fs;if(CT=a,(Fs=l)&&!c)for(ir=i;ir!==null;)a=ir,l=a.child,a.tag===22&&a.memoizedState!==null?vX(i):l!==null?(l.return=a,ir=l):vX(i);for(;o!==null;)ir=o,bfe(o),o=o.sibling;ir=i,CT=s,Fs=c}mX(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,ir=o):mX(e)}}function mX(e){for(;ir!==null;){var t=ir;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Fs||s6(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Fs)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:ld(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&JY(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}JY(t,a,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var u=c.memoizedState;if(u!==null){var d=u.dehydrated;d!==null&&Iw(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Mn(163))}Fs||t.flags&512&&z7(t)}catch(h){Zo(t,t.return,h)}}if(t===e){ir=null;break}if(n=t.sibling,n!==null){n.return=t.return,ir=n;break}ir=t.return}}function gX(e){for(;ir!==null;){var t=ir;if(t===e){ir=null;break}var n=t.sibling;if(n!==null){n.return=t.return,ir=n;break}ir=t.return}}function vX(e){for(;ir!==null;){var t=ir;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{s6(4,t)}catch(l){Zo(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){Zo(t,i,l)}}var o=t.return;try{z7(t)}catch(l){Zo(t,o,l)}break;case 5:var a=t.return;try{z7(t)}catch(l){Zo(t,a,l)}}}catch(l){Zo(t,t.return,l)}if(t===e){ir=null;break}var s=t.sibling;if(s!==null){s.return=t.return,ir=s;break}ir=t.return}}var J6e=Math.ceil,V8=Sp.ReactCurrentDispatcher,pz=Sp.ReactCurrentOwner,yu=Sp.ReactCurrentBatchConfig,wi=0,is=null,Oa=null,ys=0,bc=0,jy=dg(0),za=0,zw=null,uv=0,l6=0,mz=0,z2=null,Fl=null,gz=0,jb=1/0,Rh=null,K8=!1,V7=null,Um=null,xT=!1,Pm=null,q8=0,U2=0,K7=null,s3=-1,l3=0;function pl(){return wi&6?da():s3!==-1?s3:s3=da()}function Wm(e){return e.mode&1?wi&2&&ys!==0?ys&-ys:D6e.transition!==null?(l3===0&&(l3=rde()),l3):(e=Bi,e!==0||(e=window.event,e=e===void 0?16:ude(e.type)),e):1}function _d(e,t,n,r){if(50<U2)throw U2=0,K7=null,Error(Mn(185));Z_(e,n,r),(!(wi&2)||e!==is)&&(e===is&&(!(wi&2)&&(l6|=n),za===4&&xm(e,ys)),Vl(e,r),n===1&&wi===0&&!(t.mode&1)&&(jb=da()+500,i6&&fg()))}function Vl(e,t){var n=e.callbackNode;Dke(e,t);var r=M8(e,e===is?ys:0);if(r===0)n!==null&&TY(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&TY(n),t===1)e.tag===0?N6e(yX.bind(null,e)):Pde(yX.bind(null,e)),I6e(function(){!(wi&6)&&fg()}),n=null;else{switch(ide(r)){case 1:n=zH;break;case 4:n=tde;break;case 16:n=P8;break;case 536870912:n=nde;break;default:n=P8}n=kfe(n,Sfe.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Sfe(e,t){if(s3=-1,l3=0,wi&6)throw Error(Mn(327));var n=e.callbackNode;if(ob()&&e.callbackNode!==n)return null;var r=M8(e,e===is?ys:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=G8(e,r);else{t=r;var i=wi;wi|=2;var o=xfe();(is!==e||ys!==t)&&(Rh=null,jb=da()+500,B1(e,t));do try{nOe();break}catch(s){Cfe(e,s)}while(!0);tz(),V8.current=o,wi=i,Oa!==null?t=0:(is=null,ys=0,t=za)}if(t!==0){if(t===2&&(i=b7(e),i!==0&&(r=i,t=q7(e,i))),t===1)throw n=zw,B1(e,0),xm(e,r),Vl(e,da()),n;if(t===6)xm(e,r);else{if(i=e.current.alternate,!(r&30)&&!eOe(i)&&(t=G8(e,r),t===2&&(o=b7(e),o!==0&&(r=o,t=q7(e,o))),t===1))throw n=zw,B1(e,0),xm(e,r),Vl(e,da()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(Mn(345));case 2:i1(e,Fl,Rh);break;case 3:if(xm(e,r),(r&130023424)===r&&(t=gz+500-da(),10<t)){if(M8(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){pl(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=k7(i1.bind(null,e,Fl,Rh),t);break}i1(e,Fl,Rh);break;case 4:if(xm(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var a=31-wd(r);o=1<<a,a=t[a],a>i&&(i=a),r&=~o}if(r=i,r=da()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*J6e(r/1960))-r,10<r){e.timeoutHandle=k7(i1.bind(null,e,Fl,Rh),r);break}i1(e,Fl,Rh);break;case 5:i1(e,Fl,Rh);break;default:throw Error(Mn(329))}}}return Vl(e,da()),e.callbackNode===n?Sfe.bind(null,e):null}function q7(e,t){var n=z2;return e.current.memoizedState.isDehydrated&&(B1(e,t).flags|=256),e=G8(e,t),e!==2&&(t=Fl,Fl=n,t!==null&&G7(t)),e}function G7(e){Fl===null?Fl=e:Fl.push.apply(Fl,e)}function eOe(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(!Ad(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 xm(e,t){for(t&=~mz,t&=~l6,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-wd(t),r=1<<n;e[n]=-1,t&=~r}}function yX(e){if(wi&6)throw Error(Mn(327));ob();var t=M8(e,0);if(!(t&1))return Vl(e,da()),null;var n=G8(e,t);if(e.tag!==0&&n===2){var r=b7(e);r!==0&&(t=r,n=q7(e,r))}if(n===1)throw n=zw,B1(e,0),xm(e,t),Vl(e,da()),n;if(n===6)throw Error(Mn(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,i1(e,Fl,Rh),Vl(e,da()),null}function vz(e,t){var n=wi;wi|=1;try{return e(t)}finally{wi=n,wi===0&&(jb=da()+500,i6&&fg())}}function dv(e){Pm!==null&&Pm.tag===0&&!(wi&6)&&ob();var t=wi;wi|=1;var n=yu.transition,r=Bi;try{if(yu.transition=null,Bi=1,e)return e()}finally{Bi=r,yu.transition=n,wi=t,!(wi&6)&&fg()}}function yz(){bc=jy.current,bo(jy)}function B1(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,M6e(n)),Oa!==null)for(n=Oa.return;n!==null;){var r=n;switch(ZH(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&N8();break;case 3:Lb(),bo(Ul),bo(Vs),sz();break;case 5:az(r);break;case 4:Lb();break;case 13:bo(jo);break;case 19:bo(jo);break;case 10:nz(r.type._context);break;case 22:case 23:yz()}n=n.return}if(is=e,Oa=e=Vm(e.current,null),ys=bc=t,za=0,zw=null,mz=l6=uv=0,Fl=z2=null,b1!==null){for(t=0;t<b1.length;t++)if(n=b1[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}b1=null}return e}function Cfe(e,t){do{var n=Oa;try{if(tz(),i3.current=W8,U8){for(var r=Ho.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}U8=!1}if(cv=0,es=Ha=Ho=null,B2=!1,jw=0,pz.current=null,n===null||n.return===null){za=1,zw=t,Oa=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=ys,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,u=s,d=u.tag;if(!(u.mode&1)&&(d===0||d===11||d===15)){var h=u.alternate;h?(u.updateQueue=h.updateQueue,u.memoizedState=h.memoizedState,u.lanes=h.lanes):(u.updateQueue=null,u.memoizedState=null)}var p=oX(a);if(p!==null){p.flags&=-257,aX(p,a,s,o,t),p.mode&1&&iX(o,c,t),t=p,l=c;var m=t.updateQueue;if(m===null){var v=new Set;v.add(l),t.updateQueue=v}else m.add(l);break e}else{if(!(t&1)){iX(o,c,t),bz();break e}l=Error(Mn(426))}}else if(Io&&s.mode&1){var y=oX(a);if(y!==null){!(y.flags&65536)&&(y.flags|=256),aX(y,a,s,o,t),JH(Fb(l,s));break e}}o=l=Fb(l,s),za!==4&&(za=2),z2===null?z2=[o]:z2.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var S=ife(o,l,t);ZY(o,S);break e;case 1:s=l;var b=o.type,C=o.stateNode;if(!(o.flags&128)&&(typeof b.getDerivedStateFromError=="function"||C!==null&&typeof C.componentDidCatch=="function"&&(Um===null||!Um.has(C)))){o.flags|=65536,t&=-t,o.lanes|=t;var _=ofe(o,s,t);ZY(o,_);break e}}o=o.return}while(o!==null)}_fe(n)}catch(T){t=T,Oa===n&&n!==null&&(Oa=n=n.return);continue}break}while(!0)}function xfe(){var e=V8.current;return V8.current=W8,e===null?W8:e}function bz(){(za===0||za===3||za===2)&&(za=4),is===null||!(uv&268435455)&&!(l6&268435455)||xm(is,ys)}function G8(e,t){var n=wi;wi|=2;var r=xfe();(is!==e||ys!==t)&&(Rh=null,B1(e,t));do try{tOe();break}catch(i){Cfe(e,i)}while(!0);if(tz(),wi=n,V8.current=r,Oa!==null)throw Error(Mn(261));return is=null,ys=0,za}function tOe(){for(;Oa!==null;)wfe(Oa)}function nOe(){for(;Oa!==null&&!kke();)wfe(Oa)}function wfe(e){var t=Tfe(e.alternate,e,bc);e.memoizedProps=e.pendingProps,t===null?_fe(e):Oa=t,pz.current=null}function _fe(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Y6e(n,t),n!==null){n.flags&=32767,Oa=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{za=6,Oa=null;return}}else if(n=G6e(n,t,bc),n!==null){Oa=n;return}if(t=t.sibling,t!==null){Oa=t;return}Oa=t=e}while(t!==null);za===0&&(za=5)}function i1(e,t,n){var r=Bi,i=yu.transition;try{yu.transition=null,Bi=1,rOe(e,t,n,r)}finally{yu.transition=i,Bi=r}return null}function rOe(e,t,n,r){do ob();while(Pm!==null);if(wi&6)throw Error(Mn(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(Mn(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(Lke(e,o),e===is&&(Oa=is=null,ys=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||xT||(xT=!0,kfe(P8,function(){return ob(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=yu.transition,yu.transition=null;var a=Bi;Bi=1;var s=wi;wi|=4,pz.current=null,Q6e(e,n),yfe(n,e),w6e(E7),I8=!!_7,E7=_7=null,e.current=n,Z6e(n),Oke(),wi=s,Bi=a,yu.transition=o}else e.current=n;if(xT&&(xT=!1,Pm=e,q8=i),o=e.pendingLanes,o===0&&(Um=null),Ike(n.stateNode),Vl(e,da()),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(K8)throw K8=!1,e=V7,V7=null,e;return q8&1&&e.tag!==0&&ob(),o=e.pendingLanes,o&1?e===K7?U2++:(U2=0,K7=e):U2=0,fg(),null}function ob(){if(Pm!==null){var e=ide(q8),t=yu.transition,n=Bi;try{if(yu.transition=null,Bi=16>e?16:e,Pm===null)var r=!1;else{if(e=Pm,Pm=null,q8=0,wi&6)throw Error(Mn(331));var i=wi;for(wi|=4,ir=e.current;ir!==null;){var o=ir,a=o.child;if(ir.flags&16){var s=o.deletions;if(s!==null){for(var l=0;l<s.length;l++){var c=s[l];for(ir=c;ir!==null;){var u=ir;switch(u.tag){case 0:case 11:case 15:H2(8,u,o)}var d=u.child;if(d!==null)d.return=u,ir=d;else for(;ir!==null;){u=ir;var h=u.sibling,p=u.return;if(mfe(u),u===c){ir=null;break}if(h!==null){h.return=p,ir=h;break}ir=p}}}var m=o.alternate;if(m!==null){var v=m.child;if(v!==null){m.child=null;do{var y=v.sibling;v.sibling=null,v=y}while(v!==null)}}ir=o}}if(o.subtreeFlags&2064&&a!==null)a.return=o,ir=a;else e:for(;ir!==null;){if(o=ir,o.flags&2048)switch(o.tag){case 0:case 11:case 15:H2(9,o,o.return)}var S=o.sibling;if(S!==null){S.return=o.return,ir=S;break e}ir=o.return}}var b=e.current;for(ir=b;ir!==null;){a=ir;var C=a.child;if(a.subtreeFlags&2064&&C!==null)C.return=a,ir=C;else e:for(a=b;ir!==null;){if(s=ir,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:s6(9,s)}}catch(T){Zo(s,s.return,T)}if(s===a){ir=null;break e}var _=s.sibling;if(_!==null){_.return=s.return,ir=_;break e}ir=s.return}}if(wi=i,fg(),Ff&&typeof Ff.onPostCommitFiberRoot=="function")try{Ff.onPostCommitFiberRoot(Jk,e)}catch{}r=!0}return r}finally{Bi=n,yu.transition=t}}return!1}function bX(e,t,n){t=Fb(n,t),t=ife(e,t,1),e=zm(e,t,1),t=pl(),e!==null&&(Z_(e,1,t),Vl(e,t))}function Zo(e,t,n){if(e.tag===3)bX(e,e,n);else for(;t!==null;){if(t.tag===3){bX(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Um===null||!Um.has(r))){e=Fb(n,e),e=ofe(t,e,1),t=zm(t,e,1),e=pl(),t!==null&&(Z_(t,1,e),Vl(t,e));break}}t=t.return}}function iOe(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=pl(),e.pingedLanes|=e.suspendedLanes&n,is===e&&(ys&n)===n&&(za===4||za===3&&(ys&130023424)===ys&&500>da()-gz?B1(e,0):mz|=n),Vl(e,t)}function Efe(e,t){t===0&&(e.mode&1?(t=fT,fT<<=1,!(fT&130023424)&&(fT=4194304)):t=1);var n=pl();e=op(e,t),e!==null&&(Z_(e,t,n),Vl(e,n))}function oOe(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Efe(e,n)}function aOe(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(Mn(314))}r!==null&&r.delete(t),Efe(e,n)}var Tfe;Tfe=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ul.current)Bl=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Bl=!1,q6e(e,t,n);Bl=!!(e.flags&131072)}else Bl=!1,Io&&t.flags&1048576&&Mde(t,F8,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;a3(e,t),e=t.pendingProps;var i=Ab(t,Vs.current);ib(t,n),i=cz(null,t,r,e,i,n);var o=uz();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,Wl(r)?(o=!0,D8(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,iz(t),i.updater=a6,t.stateNode=i,i._reactInternals=t,A7(t,r,e,n),t=L7(null,t,r,!0,o,n)):(t.tag=0,Io&&o&&QH(t),ol(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(a3(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=lOe(r),e=ld(r,e),i){case 0:t=D7(null,t,r,e,n);break e;case 1:t=cX(null,t,r,e,n);break e;case 11:t=sX(null,t,r,e,n);break e;case 14:t=lX(null,t,r,ld(r.type,e),n);break e}throw Error(Mn(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ld(r,i),D7(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ld(r,i),cX(e,t,r,i,n);case 3:e:{if(cfe(t),e===null)throw Error(Mn(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Dde(e,t),H8(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=Fb(Error(Mn(423)),t),t=uX(e,t,r,n,i);break e}else if(r!==i){i=Fb(Error(Mn(424)),t),t=uX(e,t,r,n,i);break e}else for(_c=Hm(t.stateNode.containerInfo.firstChild),Ic=t,Io=!0,md=null,n=Ade(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Nb(),r===i){t=ap(e,t,n);break e}ol(e,t,r,n)}t=t.child}return t;case 5:return Lde(t),e===null&&I7(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,T7(r,i)?a=null:o!==null&&T7(r,o)&&(t.flags|=32),lfe(e,t),ol(e,t,a,n),t.child;case 6:return e===null&&I7(t),null;case 13:return ufe(e,t,n);case 4:return oz(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Db(t,null,r,n):ol(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ld(r,i),sX(e,t,r,i,n);case 7:return ol(e,t,t.pendingProps,n),t.child;case 8:return ol(e,t,t.pendingProps.children,n),t.child;case 12:return ol(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,lo(j8,r._currentValue),r._currentValue=a,o!==null)if(Ad(o.value,a)){if(o.children===i.children&&!Ul.current){t=ap(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=Zh(-1,n&-n),l.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),$7(o.return,n,t),s.lanes|=n;break}l=l.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(Mn(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),$7(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}ol(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,ib(t,n),i=wu(i),r=r(i),t.flags|=1,ol(e,t,r,n),t.child;case 14:return r=t.type,i=ld(r,t.pendingProps),i=ld(r.type,i),lX(e,t,r,i,n);case 15:return afe(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ld(r,i),a3(e,t),t.tag=1,Wl(r)?(e=!0,D8(t)):e=!1,ib(t,n),rfe(t,r,i),A7(t,r,i,n),L7(null,t,r,!0,e,n);case 19:return dfe(e,t,n);case 22:return sfe(e,t,n)}throw Error(Mn(156,t.tag))};function kfe(e,t){return ede(e,t)}function sOe(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 gu(e,t,n,r){return new sOe(e,t,n,r)}function Sz(e){return e=e.prototype,!(!e||!e.isReactComponent)}function lOe(e){if(typeof e=="function")return Sz(e)?1:0;if(e!=null){if(e=e.$$typeof,e===jH)return 11;if(e===BH)return 14}return 2}function Vm(e,t){var n=e.alternate;return n===null?(n=gu(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 c3(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")Sz(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Py:return H1(n.children,i,o,t);case FH:a=8,i|=8;break;case i7:return e=gu(12,n,t,i|2),e.elementType=i7,e.lanes=o,e;case o7:return e=gu(13,n,t,i),e.elementType=o7,e.lanes=o,e;case a7:return e=gu(19,n,t,i),e.elementType=a7,e.lanes=o,e;case Lue:return c6(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Nue:a=10;break e;case Due:a=9;break e;case jH:a=11;break e;case BH:a=14;break e;case gm:a=16,r=null;break e}throw Error(Mn(130,e==null?e:typeof e,""))}return t=gu(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function H1(e,t,n,r){return e=gu(7,e,r,t),e.lanes=n,e}function c6(e,t,n,r){return e=gu(22,e,r,t),e.elementType=Lue,e.lanes=n,e.stateNode={isHidden:!1},e}function w$(e,t,n){return e=gu(6,e,null,t),e.lanes=n,e}function _$(e,t,n){return t=gu(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function cOe(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=i$(0),this.expirationTimes=i$(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=i$(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Cz(e,t,n,r,i,o,a,s,l){return e=new cOe(e,t,n,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=gu(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},iz(o),e}function uOe(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Oy,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Ofe(e){if(!e)return eg;e=e._reactInternals;e:{if(Lv(e)!==e||e.tag!==1)throw Error(Mn(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Wl(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Mn(171))}if(e.tag===1){var n=e.type;if(Wl(n))return Ode(e,n,t)}return t}function Pfe(e,t,n,r,i,o,a,s,l){return e=Cz(n,r,!0,e,i,o,a,s,l),e.context=Ofe(null),n=e.current,r=pl(),i=Wm(n),o=Zh(r,i),o.callback=t??null,zm(n,o,i),e.current.lanes=i,Z_(e,i,r),Vl(e,r),e}function u6(e,t,n,r){var i=t.current,o=pl(),a=Wm(i);return n=Ofe(n),t.context===null?t.context=n:t.pendingContext=n,t=Zh(o,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=zm(i,t,a),e!==null&&(_d(e,i,a,o),r3(e,i,a)),a}function Y8(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 SX(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function xz(e,t){SX(e,t),(e=e.alternate)&&SX(e,t)}function dOe(){return null}var Mfe=typeof reportError=="function"?reportError:function(e){console.error(e)};function wz(e){this._internalRoot=e}d6.prototype.render=wz.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Mn(409));u6(e,t,null,null)};d6.prototype.unmount=wz.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;dv(function(){u6(null,e,null,null)}),t[ip]=null}};function d6(e){this._internalRoot=e}d6.prototype.unstable_scheduleHydration=function(e){if(e){var t=sde();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Cm.length&&t!==0&&t<Cm[n].priority;n++);Cm.splice(n,0,e),n===0&&cde(e)}};function _z(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f6(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function CX(){}function fOe(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var c=Y8(a);o.call(c)}}var a=Pfe(t,r,e,0,null,!1,!1,"",CX);return e._reactRootContainer=a,e[ip]=a.current,Aw(e.nodeType===8?e.parentNode:e),dv(),a}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var s=r;r=function(){var c=Y8(l);s.call(c)}}var l=Cz(e,0,!1,null,null,!1,!1,"",CX);return e._reactRootContainer=l,e[ip]=l.current,Aw(e.nodeType===8?e.parentNode:e),dv(function(){u6(t,l,n,r)}),l}function h6(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if(typeof i=="function"){var s=i;i=function(){var l=Y8(a);s.call(l)}}u6(t,a,e,i)}else a=fOe(n,t,e,i,r);return Y8(a)}ode=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=p2(t.pendingLanes);n!==0&&(UH(t,n|1),Vl(t,da()),!(wi&6)&&(jb=da()+500,fg()))}break;case 13:dv(function(){var r=op(e,1);if(r!==null){var i=pl();_d(r,e,1,i)}}),xz(e,1)}};WH=function(e){if(e.tag===13){var t=op(e,134217728);if(t!==null){var n=pl();_d(t,e,134217728,n)}xz(e,134217728)}};ade=function(e){if(e.tag===13){var t=Wm(e),n=op(e,t);if(n!==null){var r=pl();_d(n,e,t,r)}xz(e,t)}};sde=function(){return Bi};lde=function(e,t){var n=Bi;try{return Bi=e,t()}finally{Bi=n}};g7=function(e,t,n){switch(t){case"input":if(c7(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=r6(r);if(!i)throw Error(Mn(90));jue(r),c7(r,i)}}}break;case"textarea":Hue(e,n);break;case"select":t=n.value,t!=null&&eb(e,!!n.multiple,t,!1)}};Gue=vz;Yue=dv;var hOe={usingClientEntryPoint:!1,Events:[eE,Ry,r6,Kue,que,vz]},Ex={findFiberByHostInstance:y1,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},pOe={bundleType:Ex.bundleType,version:Ex.version,rendererPackageName:Ex.rendererPackageName,rendererConfig:Ex.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Sp.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Zue(e),e===null?null:e.stateNode},findFiberByHostInstance:Ex.findFiberByHostInstance||dOe,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 wT=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!wT.isDisabled&&wT.supportsFiber)try{Jk=wT.inject(pOe),Ff=wT}catch{}}zc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=hOe;zc.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!_z(t))throw Error(Mn(200));return uOe(e,t,null,n)};zc.createRoot=function(e,t){if(!_z(e))throw Error(Mn(299));var n=!1,r="",i=Mfe;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Cz(e,1,!1,null,null,n,!1,r,i),e[ip]=t.current,Aw(e.nodeType===8?e.parentNode:e),new wz(t)};zc.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(Mn(188)):(e=Object.keys(e).join(","),Error(Mn(268,e)));return e=Zue(t),e=e===null?null:e.stateNode,e};zc.flushSync=function(e){return dv(e)};zc.hydrate=function(e,t,n){if(!f6(t))throw Error(Mn(200));return h6(null,e,t,!0,n)};zc.hydrateRoot=function(e,t,n){if(!_z(e))throw Error(Mn(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",a=Mfe;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=Pfe(t,null,e,1,n??null,i,!1,o,a),e[ip]=t.current,Aw(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 d6(t)};zc.render=function(e,t,n){if(!f6(t))throw Error(Mn(200));return h6(null,e,t,!1,n)};zc.unmountComponentAtNode=function(e){if(!f6(e))throw Error(Mn(40));return e._reactRootContainer?(dv(function(){h6(null,null,e,!1,function(){e._reactRootContainer=null,e[ip]=null})}),!0):!1};zc.unstable_batchedUpdates=vz;zc.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!f6(n))throw Error(Mn(200));if(e==null||e._reactInternals===void 0)throw Error(Mn(38));return h6(e,t,n,!1,r)};zc.version="18.3.1-next-f1338f8080-20240426";function Ife(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ife)}catch(e){console.error(e)}}Ife(),Iue.exports=zc;var Nc=Iue.exports;const Uw=hi(Nc),$fe=Qk({__proto__:null,default:Uw},[Nc]);var xX=Nc;n7.createRoot=xX.createRoot,n7.hydrateRoot=xX.hydrateRoot;const mOe={BASE_URL:"/notebase",DEV:!1,MODE:"open",PROD:!0,SSR:!1,VITE_CONFIG_ENV:"prod-open"},wX=e=>{let t;const n=new Set,r=(u,d)=>{const h=typeof u=="function"?u(t):u;if(!Object.is(h,t)){const p=t;t=d??(typeof h!="object"||h===null)?h:Object.assign({},t,h),n.forEach(m=>m(t,p))}},i=()=>t,l={setState:r,getState:i,getInitialState:()=>c,subscribe:u=>(n.add(u),()=>n.delete(u)),destroy:()=>{(mOe?"open":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()}},c=t=e(r,i,l);return l},gOe=e=>e?wX(e):wX;var Rfe={exports:{}},Afe={},Nfe={exports:{}},Dfe={};/**
|
||
* @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 Bb=f;function vOe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var yOe=typeof Object.is=="function"?Object.is:vOe,bOe=Bb.useState,SOe=Bb.useEffect,COe=Bb.useLayoutEffect,xOe=Bb.useDebugValue;function wOe(e,t){var n=t(),r=bOe({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return COe(function(){i.value=n,i.getSnapshot=t,E$(i)&&o({inst:i})},[e,n,t]),SOe(function(){return E$(i)&&o({inst:i}),e(function(){E$(i)&&o({inst:i})})},[e]),xOe(n),n}function E$(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!yOe(e,n)}catch{return!0}}function _Oe(e,t){return t()}var EOe=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?_Oe:wOe;Dfe.useSyncExternalStore=Bb.useSyncExternalStore!==void 0?Bb.useSyncExternalStore:EOe;Nfe.exports=Dfe;var Lfe=Nfe.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 p6=f,TOe=Lfe;function kOe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var OOe=typeof Object.is=="function"?Object.is:kOe,POe=TOe.useSyncExternalStore,MOe=p6.useRef,IOe=p6.useEffect,$Oe=p6.useMemo,ROe=p6.useDebugValue;Afe.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=MOe(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=$Oe(function(){function l(p){if(!c){if(c=!0,u=p,p=r(p),i!==void 0&&a.hasValue){var m=a.value;if(i(m,p))return d=m}return d=p}if(m=d,OOe(u,p))return m;var v=r(p);return i!==void 0&&i(m,v)?m:(u=p,d=v)}var c=!1,u,d,h=n===void 0?null:n;return[function(){return l(t())},h===null?void 0:function(){return l(h())}]},[t,n,r,i]);var s=POe(e,o[0],o[1]);return IOe(function(){a.hasValue=!0,a.value=s},[s]),ROe(s),s};Rfe.exports=Afe;var AOe=Rfe.exports;const NOe=hi(AOe),Ffe={BASE_URL:"/notebase",DEV:!1,MODE:"open",PROD:!0,SSR:!1,VITE_CONFIG_ENV:"prod-open"},{useDebugValue:DOe}=ge,{useSyncExternalStoreWithSelector:LOe}=NOe;let _X=!1;const FOe=e=>e;function jOe(e,t=FOe,n){(Ffe?"open":void 0)!=="production"&&n&&!_X&&(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"),_X=!0);const r=LOe(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return DOe(r),r}const EX=e=>{(Ffe?"open":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"?gOe(e):e,n=(r,i)=>jOe(t,r,i);return Object.assign(n,t),n},Wc=e=>e?EX(e):EX,u3={BASE_URL:"/notebase",DEV:!1,MODE:"open",PROD:!0,SSR:!1,VITE_CONFIG_ENV:"prod-open"},Y7=new Map,_T=e=>{const t=Y7.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([n,r])=>[n,r.getState()])):{}},BOe=(e,t,n)=>{if(e===void 0)return{type:"untracked",connection:t.connect(n)};const r=Y7.get(n.name);if(r)return{type:"tracked",store:e,...r};const i={connection:t.connect(n),stores:{}};return Y7.set(n.name,i),{type:"tracked",store:e,...i}},HOe=(e,t={})=>(n,r,i)=>{const{enabled:o,anonymousActionType:a,store:s,...l}=t;let c;try{c=(o??(u3?"open":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!c)return(u3?"open":void 0)!=="production"&&o&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,r,i);const{connection:u,...d}=BOe(s,c,l);let h=!0;i.setState=(v,y,S)=>{const b=n(v,y);if(!h)return b;const C=S===void 0?{type:a||"anonymous"}:typeof S=="string"?{type:S}:S;return s===void 0?(u==null||u.send(C,r()),b):(u==null||u.send({...C,type:`${s}/${C.type}`},{..._T(l.name),[s]:i.getState()}),b)};const p=(...v)=>{const y=h;h=!1,n(...v),h=y},m=e(i.setState,r,i);if(d.type==="untracked"?u==null||u.init(m):(d.stores[d.store]=i,u==null||u.init(Object.fromEntries(Object.entries(d.stores).map(([v,y])=>[v,v===d.store?m:y.getState()])))),i.dispatchFromDevtools&&typeof i.dispatch=="function"){let v=!1;const y=i.dispatch;i.dispatch=(...S)=>{(u3?"open":void 0)!=="production"&&S[0].type==="__setState"&&!v&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),v=!0),y(...S)}}return u.subscribe(v=>{var y;switch(v.type){case"ACTION":if(typeof v.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return T$(v.payload,S=>{if(S.type==="__setState"){if(s===void 0){p(S.state);return}Object.keys(S.state).length!==1&&console.error(`
|
||
[zustand devtools middleware] Unsupported __setState action format.
|
||
When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),
|
||
and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
|
||
`);const b=S.state[s];if(b==null)return;JSON.stringify(i.getState())!==JSON.stringify(b)&&p(b);return}i.dispatchFromDevtools&&typeof i.dispatch=="function"&&i.dispatch(S)});case"DISPATCH":switch(v.payload.type){case"RESET":return p(m),s===void 0?u==null?void 0:u.init(i.getState()):u==null?void 0:u.init(_T(l.name));case"COMMIT":if(s===void 0){u==null||u.init(i.getState());return}return u==null?void 0:u.init(_T(l.name));case"ROLLBACK":return T$(v.state,S=>{if(s===void 0){p(S),u==null||u.init(i.getState());return}p(S[s]),u==null||u.init(_T(l.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return T$(v.state,S=>{if(s===void 0){p(S);return}JSON.stringify(i.getState())!==JSON.stringify(S[s])&&p(S[s])});case"IMPORT_STATE":{const{nextLiftedState:S}=v.payload,b=(y=S.computedStates.slice(-1)[0])==null?void 0:y.state;if(!b)return;p(s===void 0?b:b[s]),u==null||u.send(null,S);return}case"PAUSE_RECORDING":return h=!h}return}}),m},Kd=HOe,T$=(e,t)=>{let n;try{n=JSON.parse(e)}catch(r){console.error("[zustand devtools middleware] Could not parse the received json",r)}n!==void 0&&t(n)};function zOe(e,t){let n;try{n=e()}catch{return}return{getItem:i=>{var o;const a=l=>l===null?null:JSON.parse(l,void 0),s=(o=n.getItem(i))!=null?o:null;return s instanceof Promise?s.then(a):a(s)},setItem:(i,o)=>n.setItem(i,JSON.stringify(o,void 0)),removeItem:i=>n.removeItem(i)}}const Ww=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return Ww(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return Ww(r)(n)}}}},UOe=(e,t)=>(n,r,i)=>{let o={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:y=>y,version:0,merge:(y,S)=>({...S,...y}),...t},a=!1;const s=new Set,l=new Set;let c;try{c=o.getStorage()}catch{}if(!c)return e((...y)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),n(...y)},r,i);const u=Ww(o.serialize),d=()=>{const y=o.partialize({...r()});let S;const b=u({state:y,version:o.version}).then(C=>c.setItem(o.name,C)).catch(C=>{S=C});if(S)throw S;return b},h=i.setState;i.setState=(y,S)=>{h(y,S),d()};const p=e((...y)=>{n(...y),d()},r,i);let m;const v=()=>{var y;if(!c)return;a=!1,s.forEach(b=>b(r()));const S=((y=o.onRehydrateStorage)==null?void 0:y.call(o,r()))||void 0;return Ww(c.getItem.bind(c))(o.name).then(b=>{if(b)return o.deserialize(b)}).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==o.version){if(o.migrate)return o.migrate(b.state,b.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return b.state}).then(b=>{var C;return m=o.merge(b,(C=r())!=null?C:p),n(m,!0),d()}).then(()=>{S==null||S(m,void 0),a=!0,l.forEach(b=>b(m))}).catch(b=>{S==null||S(void 0,b)})};return i.persist={setOptions:y=>{o={...o,...y},y.getStorage&&(c=y.getStorage())},clearStorage:()=>{c==null||c.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>v(),hasHydrated:()=>a,onHydrate:y=>(s.add(y),()=>{s.delete(y)}),onFinishHydration:y=>(l.add(y),()=>{l.delete(y)})},v(),m||p},WOe=(e,t)=>(n,r,i)=>{let o={storage:zOe(()=>localStorage),partialize:v=>v,version:0,merge:(v,y)=>({...y,...v}),...t},a=!1;const s=new Set,l=new Set;let c=o.storage;if(!c)return e((...v)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),n(...v)},r,i);const u=()=>{const v=o.partialize({...r()});return c.setItem(o.name,{state:v,version:o.version})},d=i.setState;i.setState=(v,y)=>{d(v,y),u()};const h=e((...v)=>{n(...v),u()},r,i);i.getInitialState=()=>h;let p;const m=()=>{var v,y;if(!c)return;a=!1,s.forEach(b=>{var C;return b((C=r())!=null?C:h)});const S=((y=o.onRehydrateStorage)==null?void 0:y.call(o,(v=r())!=null?v:h))||void 0;return Ww(c.getItem.bind(c))(o.name).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==o.version){if(o.migrate)return[!0,o.migrate(b.state,b.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,b.state];return[!1,void 0]}).then(b=>{var C;const[_,T]=b;if(p=o.merge(T,(C=r())!=null?C:h),n(p,!0),_)return u()}).then(()=>{S==null||S(p,void 0),p=r(),a=!0,l.forEach(b=>b(p))}).catch(b=>{S==null||S(void 0,b)})};return i.persist={setOptions:v=>{o={...o,...v},v.storage&&(c=v.storage)},clearStorage:()=>{c==null||c.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>m(),hasHydrated:()=>a,onHydrate:v=>(s.add(v),()=>{s.delete(v)}),onFinishHydration:v=>(l.add(v),()=>{l.delete(v)})},o.skipHydration||m(),p||h},VOe=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?((u3?"open":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),UOe(e,t)):WOe(e,t),qd=VOe;var jfe=Symbol.for("immer-nothing"),TX=Symbol.for("immer-draftable"),Dc=Symbol.for("immer-state");function gd(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Hb=Object.getPrototypeOf;function zb(e){return!!e&&!!e[Dc]}function fv(e){var t;return e?Bfe(e)||Array.isArray(e)||!!e[TX]||!!((t=e.constructor)!=null&&t[TX])||g6(e)||v6(e):!1}var KOe=Object.prototype.constructor.toString();function Bfe(e){if(!e||typeof e!="object")return!1;const t=Hb(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===KOe}function X8(e,t){m6(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function m6(e){const t=e[Dc];return t?t.type_:Array.isArray(e)?1:g6(e)?2:v6(e)?3:0}function X7(e,t){return m6(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Hfe(e,t,n){const r=m6(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function qOe(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function g6(e){return e instanceof Map}function v6(e){return e instanceof Set}function o1(e){return e.copy_||e.base_}function Q7(e,t){if(g6(e))return new Map(e);if(v6(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=Bfe(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[Dc];let i=Reflect.ownKeys(r);for(let o=0;o<i.length;o++){const a=i[o],s=r[a];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(r[a]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[a]})}return Object.create(Hb(e),r)}else{const r=Hb(e);if(r!==null&&n)return{...e};const i=Object.create(r);return Object.assign(i,e)}}function Ez(e,t=!1){return y6(e)||zb(e)||!fv(e)||(m6(e)>1&&(e.set=e.add=e.clear=e.delete=GOe),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>Ez(r,!0))),e}function GOe(){gd(2)}function y6(e){return Object.isFrozen(e)}var YOe={};function hv(e){const t=YOe[e];return t||gd(0,e),t}var Vw;function zfe(){return Vw}function XOe(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function kX(e,t){t&&(hv("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Z7(e){J7(e),e.drafts_.forEach(QOe),e.drafts_=null}function J7(e){e===Vw&&(Vw=e.parent_)}function OX(e){return Vw=XOe(Vw,e)}function QOe(e){const t=e[Dc];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function PX(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Dc].modified_&&(Z7(t),gd(4)),fv(e)&&(e=Q8(t,e),t.parent_||Z8(t,e)),t.patches_&&hv("Patches").generateReplacementPatches_(n[Dc].base_,e,t.patches_,t.inversePatches_)):e=Q8(t,n,[]),Z7(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==jfe?e:void 0}function Q8(e,t,n){if(y6(t))return t;const r=t[Dc];if(!r)return X8(t,(i,o)=>MX(e,r,t,i,o,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return Z8(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let o=i,a=!1;r.type_===3&&(o=new Set(i),i.clear(),a=!0),X8(o,(s,l)=>MX(e,r,i,s,l,n,a)),Z8(e,i,!1),n&&e.patches_&&hv("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function MX(e,t,n,r,i,o,a){if(zb(i)){const s=o&&t&&t.type_!==3&&!X7(t.assigned_,r)?o.concat(r):void 0,l=Q8(e,i,s);if(Hfe(n,r,l),zb(l))e.canAutoFreeze_=!1;else return}else a&&n.add(i);if(fv(i)&&!y6(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Q8(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&Z8(e,i)}}function Z8(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Ez(t,n)}function ZOe(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:zfe(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=Tz;n&&(i=[r],o=Kw);const{revoke:a,proxy:s}=Proxy.revocable(i,o);return r.draft_=s,r.revoke_=a,s}var Tz={get(e,t){if(t===Dc)return e;const n=o1(e);if(!X7(n,t))return JOe(e,n,t);const r=n[t];return e.finalized_||!fv(r)?r:r===k$(e.base_,t)?(O$(e),e.copy_[t]=tD(r,e)):r},has(e,t){return t in o1(e)},ownKeys(e){return Reflect.ownKeys(o1(e))},set(e,t,n){const r=Ufe(o1(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=k$(o1(e),t),o=i==null?void 0:i[Dc];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(qOe(n,i)&&(n!==void 0||X7(e.base_,t)))return!0;O$(e),eD(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return k$(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,O$(e),eD(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=o1(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){gd(11)},getPrototypeOf(e){return Hb(e.base_)},setPrototypeOf(){gd(12)}},Kw={};X8(Tz,(e,t)=>{Kw[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Kw.deleteProperty=function(e,t){return Kw.set.call(this,e,t,void 0)};Kw.set=function(e,t,n){return Tz.set.call(this,e[0],t,n,e[0])};function k$(e,t){const n=e[Dc];return(n?o1(n):e)[t]}function JOe(e,t,n){var i;const r=Ufe(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function Ufe(e,t){if(!(t in e))return;let n=Hb(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Hb(n)}}function eD(e){e.modified_||(e.modified_=!0,e.parent_&&eD(e.parent_))}function O$(e){e.copy_||(e.copy_=Q7(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var ePe=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const o=n;n=t;const a=this;return function(l=o,...c){return a.produce(l,u=>n.call(this,u,...c))}}typeof n!="function"&&gd(6),r!==void 0&&typeof r!="function"&&gd(7);let i;if(fv(t)){const o=OX(this),a=tD(t,void 0);let s=!0;try{i=n(a),s=!1}finally{s?Z7(o):J7(o)}return kX(o,r),PX(i,o)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===jfe&&(i=void 0),this.autoFreeze_&&Ez(i,!0),r){const o=[],a=[];hv("Patches").generateReplacementPatches_(t,i,o,a),r(o,a)}return i}else gd(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(a,...s)=>this.produceWithPatches(a,l=>t(l,...s));let r,i;return[this.produce(t,n,(a,s)=>{r=a,i=s}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){fv(e)||gd(8),zb(e)&&(e=tPe(e));const t=OX(this),n=tD(e,void 0);return n[Dc].isManual_=!0,J7(t),n}finishDraft(e,t){const n=e&&e[Dc];(!n||!n.isManual_)&&gd(9);const{scope_:r}=n;return kX(r,t),PX(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=hv("Patches").applyPatches_;return zb(e)?r(e,t):this.produce(e,i=>r(i,t))}};function tD(e,t){const n=g6(e)?hv("MapSet").proxyMap_(e,t):v6(e)?hv("MapSet").proxySet_(e,t):ZOe(e,t);return(t?t.scope_:zfe()).drafts_.push(n),n}function tPe(e){return zb(e)||gd(10,e),Wfe(e)}function Wfe(e){if(!fv(e)||y6(e))return e;const t=e[Dc];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Q7(e,t.scope_.immer_.useStrictShallowCopy_)}else n=Q7(e,!0);return X8(n,(r,i)=>{Hfe(n,r,Wfe(i))}),t&&(t.finalized_=!1),n}var Lc=new ePe,nPe=Lc.produce;Lc.produceWithPatches.bind(Lc);Lc.setAutoFreeze.bind(Lc);Lc.setUseStrictShallowCopy.bind(Lc);Lc.applyPatches.bind(Lc);Lc.createDraft.bind(Lc);Lc.finishDraft.bind(Lc);const rPe=e=>(t,n,r)=>(r.setState=(i,o,...a)=>{const s=typeof i=="function"?nPe(i):i;return t(s,o,...a)},e(r.setState,n,r)),Gd=rPe,iPe="dev",Vfe="open",IX="prod",Kfe="prod-open";console.log("Current VITE_CONFIG_ENV:","prod-open");let yd;switch(Kfe){case"dev":yd={API_URL:"http://127.0.0.1:9003",MQTT_URL:"ws://127.0.0.1:9885/websocket",HTML_URL:"http://127.0.0.1:9006",IS_DEBUG:!0,SERVER_MODE:iPe,CLIENT:"WEB"};break;case"prod-open":yd={API_URL:"http://127.0.0.1:9003",MQTT_URL:"ws://127.0.0.1:9885/websocket",HTML_URL:"http://127.0.0.1:9003",IS_DEBUG:!1,SERVER_MODE:Vfe,CLIENT:"WEB"};break;case"prod-web":yd={API_URL:"https://api.weiyuai.cn",MQTT_URL:"wss://api.weiyuai.cn/websocket",HTML_URL:"https://www.weiyuai.cn",IS_DEBUG:!1,SERVER_MODE:IX,CLIENT:"WEB"};break;default:yd={API_URL:"https://api.weiyuai.cn",MQTT_URL:"wss://api.weiyuai.cn/websocket",HTML_URL:"https://www.weiyuai.cn",IS_DEBUG:!1,SERVER_MODE:IX,CLIENT:"ELECTRON"}}console.log("config.API_BASE_URL: ",Kfe,yd);const os=navigator.userAgent.toLowerCase().indexOf("electron")>-1,P$=yd.API_URL,$X=yd.MQTT_URL;yd.HTML_URL;const pv=yd.IS_DEBUG,oPe=yd.SERVER_MODE,So=yd.CLIENT,Eu="BYTEDESK",RX="locale",AX="mode",ab="team",mv="agent",J8="personal",NX="i18n.",ET="i18n.new.message",qfe="ANONYMOUS",Sc="bytedesk_login_credentials",DX="THEME_MODE_TYPE",LX="THEME_NAME_TYPE",d3="PLAY_AUDIO",W2="NETWORK_STATUS_NOTIFICATION",V2="CONFIG_ENABLED_AGENT",f3="CONFIG_API_URL_AGENT",h3="CONFIG_WEBSOCKET_URL_AGENT",M$="CONFIG_HTML_URL_AGENT",By="CONFIG_CUSTOM_ENABLED_AGENT",g2="CONFIG_CUSTOM_API_URL_AGENT",v2="CONFIG_CUSTOM_WEBSOCKET_URL_AGENT",b6="CONFIG_PROPERTIES",aPe="SCREENSHOT_OK",sPe="EVENT_BUS_SERVER_ERROR_500",Km="EVENT_BUS_TOKEN_INVALID",qw="EVENT_BUS_MQTT_MESSAGE",nD="EVENT_BUS_MQTT_CONNECTED",rD="EVENT_BUS_MQTT_OFFLINE",iD="EVENT_BUS_MQTT_CLOSE",oD="EVENT_BUS_MQTT_DISCONNECTED",aD="EVENT_BUS_MQTT_ERROR",sD="EVENT_BUS_MQTT_END",Gfe="EVENT_BUS_MESSAGE_TYPE_STATUS",lPe="EVENT_BUS_MESSAGE_TYPE_TYPING",cPe="EVENT_BUS_MESSAGE_TYPE_PROCESSING",uPe="EVENT_BUS_MESSAGE_TYPE_STREAM",dPe="EVENT_BUS_MESSAGE_TYPE_PREVIEW",lD="EVENT_BUS_MESSAGE_TYPE_TRANSFER",cD="EVENT_BUS_MESSAGE_TYPE_TRANSFER_ACCEPT",uD="EVENT_BUS_MESSAGE_TYPE_TRANSFER_REJECT",fPe="EVENT_BUS_SCREEN_CAPTURE_IMAGE",hPe="AUTH_STORE",Gw="ACCESS_TOKEN",pPe="ORGANIZATION_STORE",mPe="MEMBER_STORE",gPe="MESSAGE_STORE",vPe="CONTACT_STORE",yPe="USER_STORE",bPe="SETTINGS_STORE",SPe="THREAD_STORE",CPe="DEVICE_STORE",xPe="AGENT_STORE",wPe="WORKGROUP_STORE",_Pe="member",Yfe="device",EPe="MOBILE_LOGIN",TPe="MOBILE_RESET",kPe="MOBILE_VERIFY",OPe="EMAIL_RESET",PPe="EMAIL_VERIFY",MPe="PENDING",IPe="SCANNED",$Pe="CONFIRMED",RPe="EXPIRED",APe="https://cdn.weiyuai.cn/agent/assets/sound/dingdong.wav",NPe="https://cdn.weiyuai.cn/agent/assets/css/scrollbar.css",DPe="https://www.weiyuai.cn/download.html",FX="AGENT",jX="USER",BX="AGENT",HX="WORKGROUP",zX="QUEUING",UX="CLOSED",WX="SENDING",dD="SUCCESS",LPe="TRANSFER_ACCEPT",FPe="TRANSFER_REJECT",fD="CONTINUE",Xfe="SYSTEM",jPe="QUEUE",BPe="TEXT",HPe="IMAGE",zPe="FILE",UPe="AUDIO",WPe="VIDEO",hD="TYPING",pD="PROCESSING",Yw="STREAM",VX="PREVIEW",KX="RECALL",mD="DELIVERED",gD="READ",VPe="FAQ_UP",KPe="FAQ_DOWN",qPe="ROBOT_UP",GPe="ROBOT_DOWN",YPe="RATE_SUBMIT",XPe="RATE_CANCEL",Xw="AUTO_CLOSED",Qw="AGENT_CLOSED",qX="TRANSFER",GX="TRANSFER_ACCEPT",YX="TRANSFER_REJECT",XX="AVAILABLE",I$="OFFLINE",QX="REST",QPe="org/group/",ZPe="CHAT",ZX="lastPath",JPe="ROLE_SUPER",eMe="ROLE_ADMIN",tMe="ROLE_MEMBER",nMe="ROLE_AGENT",nE=Wc()(Kd(qd(Gd((e,t)=>({accessToken:"",setAccessToken(n){localStorage.setItem(Gw,n),e({accessToken:n})},getAccessToken(){return t().accessToken},removeAccessToken(){localStorage.removeItem(Gw),e({accessToken:""})}})),{name:hPe}))),rMe=Wc()(Kd(qd(Gd(e=>({settings:{playSound:!0,showNotifications:!0,openAtStartup:!1,colors:!1,proLayoutCollapsed:!0},currentMenu:"chat",setCurrentMenu(t){e({currentMenu:t})},setProLayoutCollapsed(t){e(n=>({settings:{...n.settings,proLayoutCollapsed:t}}))}})),{name:bPe})));var Fv={},Qfe={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})(Qfe);var Vr=Qfe.exports,S6={};Object.defineProperty(S6,"__esModule",{value:!0});S6.default=void 0;var iMe={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"};S6.default=iMe;var C6={},rE={},x6={},Zfe={exports:{}},Jfe={exports:{}},ehe={exports:{}},the={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})(the);var jv=the.exports,nhe={exports:{}};(function(e){var t=jv.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})(nhe);var oMe=nhe.exports;(function(e){var t=jv.default,n=oMe;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})(ehe);var aMe=ehe.exports;(function(e){var t=aMe;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})(Jfe);var rhe=Jfe.exports;(function(e){var t=rhe;function n(i,o){var a=Object.keys(i);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(i);o&&(s=s.filter(function(l){return Object.getOwnPropertyDescriptor(i,l).enumerable})),a.push.apply(a,s)}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(s){t(i,s,a[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(a)):n(Object(a)).forEach(function(s){Object.defineProperty(i,s,Object.getOwnPropertyDescriptor(a,s))})}return i}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(Zfe);var Bv=Zfe.exports,AS={};Object.defineProperty(AS,"__esModule",{value:!0});AS.commonLocale=void 0;AS.commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0};var sMe=Vr.default;Object.defineProperty(x6,"__esModule",{value:!0});x6.default=void 0;var JX=sMe(Bv),lMe=AS,cMe=(0,JX.default)((0,JX.default)({},lMe.commonLocale),{},{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"});x6.default=cMe;var iE={};Object.defineProperty(iE,"__esModule",{value:!0});iE.default=void 0;const uMe={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};iE.default=uMe;var ihe=Vr.default;Object.defineProperty(rE,"__esModule",{value:!0});rE.default=void 0;var dMe=ihe(x6),fMe=ihe(iE);const hMe={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"]},dMe.default),timePickerLocale:Object.assign({},fMe.default)};rE.default=hMe;var pMe=Vr.default;Object.defineProperty(C6,"__esModule",{value:!0});C6.default=void 0;var mMe=pMe(rE);C6.default=mMe.default;var w6=Vr.default;Object.defineProperty(Fv,"__esModule",{value:!0});Fv.default=void 0;var gMe=w6(S6),vMe=w6(C6),yMe=w6(rE),bMe=w6(iE);const nc="${label} is not a valid ${type}",SMe={locale:"en",Pagination:gMe.default,DatePicker:yMe.default,TimePicker:bMe.default,Calendar:vMe.default,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:nc,method:nc,array:nc,object:nc,number:nc,date:nc,boolean:nc,integer:nc,float:nc,regexp:nc,email:nc,url:nc,hex:nc},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"}};Fv.default=SMe;var CMe=Fv;const eQ=hi(CMe);var _6={},E6={};Object.defineProperty(E6,"__esModule",{value:!0});E6.default=void 0;var xMe={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:"页码"};E6.default=xMe;var T6={},oE={},k6={},wMe=Vr.default;Object.defineProperty(k6,"__esModule",{value:!0});k6.default=void 0;var tQ=wMe(Bv),_Me=AS,EMe=(0,tQ.default)((0,tQ.default)({},_Me.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});k6.default=EMe;var aE={};Object.defineProperty(aE,"__esModule",{value:!0});aE.default=void 0;const TMe={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};aE.default=TMe;var ohe=Vr.default;Object.defineProperty(oE,"__esModule",{value:!0});oE.default=void 0;var kMe=ohe(k6),OMe=ohe(aE);const ahe={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},kMe.default),timePickerLocale:Object.assign({},OMe.default)};ahe.lang.ok="确定";oE.default=ahe;var PMe=Vr.default;Object.defineProperty(T6,"__esModule",{value:!0});T6.default=void 0;var MMe=PMe(oE);T6.default=MMe.default;var O6=Vr.default;Object.defineProperty(_6,"__esModule",{value:!0});_6.default=void 0;var IMe=O6(E6),$Me=O6(T6),RMe=O6(oE),AMe=O6(aE);const rc="${label}不是一个有效的${type}",NMe={locale:"zh-cn",Pagination:IMe.default,DatePicker:RMe.default,TimePicker:AMe.default,Calendar:$Me.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:rc,method:rc,array:rc,object:rc,number:rc,date:rc,boolean:rc,integer:rc,float:rc,regexp:rc,email:rc,url:rc,hex:rc},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:"渐变色"}};_6.default=NMe;var DMe=_6;const TT=hi(DMe);var P6={},M6={};Object.defineProperty(M6,"__esModule",{value:!0});M6.default=void 0;var LMe={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:"頁碼"};M6.default=LMe;var I6={},sE={},$6={},FMe=Vr.default;Object.defineProperty($6,"__esModule",{value:!0});$6.default=void 0;var nQ=FMe(Bv),jMe=AS,BMe=(0,nQ.default)((0,nQ.default)({},jMe.commonLocale),{},{locale:"zh_TW",today:"今天",now:"此刻",backToToday:"返回今天",ok:"確定",timeSelect:"選擇時間",dateSelect:"選擇日期",weekSelect:"選擇周",clear:"清除",month:"月",year:"年",previousMonth:"上個月 (翻頁上鍵)",nextMonth:"下個月 (翻頁下鍵)",monthSelect:"選擇月份",yearSelect:"選擇年份",decadeSelect:"選擇年代",yearFormat:"YYYY年",dateFormat:"YYYY年M月D日",dateTimeFormat:"YYYY年M月D日 HH時mm分ss秒",previousYear:"上一年 (Control鍵加左方向鍵)",nextYear:"下一年 (Control鍵加右方向鍵)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世紀",nextCentury:"下一世紀",cellDateFormat:"D",monthBeforeYear:!1});$6.default=BMe;var lE={};Object.defineProperty(lE,"__esModule",{value:!0});lE.default=void 0;const HMe={placeholder:"請選擇時間"};lE.default=HMe;var she=Vr.default;Object.defineProperty(sE,"__esModule",{value:!0});sE.default=void 0;var zMe=she($6),UMe=she(lE);const lhe={lang:Object.assign({placeholder:"請選擇日期",yearPlaceholder:"請選擇年份",quarterPlaceholder:"請選擇季度",monthPlaceholder:"請選擇月份",weekPlaceholder:"請選擇周",rangePlaceholder:["開始日期","結束日期"],rangeYearPlaceholder:["開始年份","結束年份"],rangeMonthPlaceholder:["開始月份","結束月份"],rangeQuarterPlaceholder:["開始季度","結束季度"],rangeWeekPlaceholder:["開始周","結束周"]},zMe.default),timePickerLocale:Object.assign({},UMe.default)};lhe.lang.ok="確 定";sE.default=lhe;var WMe=Vr.default;Object.defineProperty(I6,"__esModule",{value:!0});I6.default=void 0;var VMe=WMe(sE);I6.default=VMe.default;var R6=Vr.default;Object.defineProperty(P6,"__esModule",{value:!0});P6.default=void 0;var KMe=R6(M6),qMe=R6(I6),GMe=R6(sE),YMe=R6(lE);const ic="${label}不是一個有效的${type}",XMe={locale:"zh-tw",Pagination:KMe.default,DatePicker:GMe.default,TimePicker:YMe.default,Calendar:qMe.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:{okText:"確定",cancelText:"取消"},Transfer:{titles:["",""],searchPlaceholder:"搜尋資料",itemUnit:"項目",itemsUnit:"項目",remove:"删除",selectCurrent:"全選當頁",removeCurrent:"删除當頁",selectAll:"全選所有",removeAll:"删除全部",selectInvert:"反選當頁"},Upload:{uploading:"正在上傳...",removeFile:"刪除檔案",uploadError:"上傳失敗",previewFile:"檔案預覽",downloadFile:"下载文件"},Empty:{description:"無此資料"},Icon:{icon:"圖標"},Text:{edit:"編輯",copy:"複製",copied:"複製成功",expand:"展開"},Form:{optional:"(可選)",defaultValidateMessages:{default:"字段驗證錯誤${label}",required:"請輸入${label}",enum:"${label}必須是其中一個[${enum}]",whitespace:"${label}不能為空字符",date:{format:"${label}日期格式無效",parse:"${label}不能轉換為日期",invalid:"${label}是一個無效日期"},types:{string:ic,method:ic,array:ic,object:ic,number:ic,date:ic,boolean:ic,integer:ic,float:ic,regexp:ic,email:ic,url:ic,hex:ic},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:"已掃描"}};P6.default=XMe;var QMe=P6;const ZMe=hi(QMe);function che(){const e=localStorage.getItem(LX)||"light",[t,n]=f.useState(e),r=localStorage.getItem(DX)||"system",[i,o]=f.useState(r);return f.useEffect(()=>{r==="system"&&(window.matchMedia("(prefers-color-scheme: dark)").matches?n("dark"):n("light"),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",a=>{a.matches?n("dark"):n("light")}))},[]),f.useEffect(()=>{localStorage.setItem(DX,i),i==="light"?n("light"):i==="dark"?n("dark"):i==="system"&&(window.matchMedia("(prefers-color-scheme: dark)").matches?n("dark"):n("light"))},[i]),f.useEffect(()=>{localStorage.setItem(LX,t)},[t]),{themeName:t,setThemeName:n,themeMode:i,setThemeMode:o,isDarkMode:t==="dark",isLightMode:t==="light"}}function uhe(e,t){return function(){return e.apply(t,arguments)}}const{toString:JMe}=Object.prototype,{getPrototypeOf:kz}=Object,A6=(e=>t=>{const n=JMe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Yd=e=>(e=e.toLowerCase(),t=>A6(t)===e),N6=e=>t=>typeof t===e,{isArray:NS}=Array,Zw=N6("undefined");function eIe(e){return e!==null&&!Zw(e)&&e.constructor!==null&&!Zw(e.constructor)&&$c(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const dhe=Yd("ArrayBuffer");function tIe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&dhe(e.buffer),t}const nIe=N6("string"),$c=N6("function"),fhe=N6("number"),D6=e=>e!==null&&typeof e=="object",rIe=e=>e===!0||e===!1,p3=e=>{if(A6(e)!=="object")return!1;const t=kz(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},iIe=Yd("Date"),oIe=Yd("File"),aIe=Yd("Blob"),sIe=Yd("FileList"),lIe=e=>D6(e)&&$c(e.pipe),cIe=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||$c(e.append)&&((t=A6(e))==="formdata"||t==="object"&&$c(e.toString)&&e.toString()==="[object FormData]"))},uIe=Yd("URLSearchParams"),[dIe,fIe,hIe,pIe]=["ReadableStream","Request","Response","Headers"].map(Yd),mIe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function cE(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),NS(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let s;for(r=0;r<a;r++)s=o[r],t.call(null,e[s],s,e)}}function hhe(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const C1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,phe=e=>!Zw(e)&&e!==C1;function vD(){const{caseless:e}=phe(this)&&this||{},t={},n=(r,i)=>{const o=e&&hhe(t,i)||i;p3(t[o])&&p3(r)?t[o]=vD(t[o],r):p3(r)?t[o]=vD({},r):NS(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&cE(arguments[r],n);return t}const gIe=(e,t,n,{allOwnKeys:r}={})=>(cE(t,(i,o)=>{n&&$c(i)?e[o]=uhe(i,n):e[o]=i},{allOwnKeys:r}),e),vIe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),yIe=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},bIe=(e,t,n,r)=>{let i,o,a;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&kz(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},SIe=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},CIe=e=>{if(!e)return null;if(NS(e))return e;let t=e.length;if(!fhe(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},xIe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&kz(Uint8Array)),wIe=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},_Ie=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},EIe=Yd("HTMLFormElement"),TIe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),rQ=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),kIe=Yd("RegExp"),mhe=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};cE(n,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(r[o]=a||i)}),Object.defineProperties(e,r)},OIe=e=>{mhe(e,(t,n)=>{if($c(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if($c(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},PIe=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return NS(e)?r(e):r(String(e).split(t)),n},MIe=()=>{},IIe=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,$$="abcdefghijklmnopqrstuvwxyz",iQ="0123456789",ghe={DIGIT:iQ,ALPHA:$$,ALPHA_DIGIT:$$+$$.toUpperCase()+iQ},$Ie=(e=16,t=ghe.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function RIe(e){return!!(e&&$c(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const AIe=e=>{const t=new Array(10),n=(r,i)=>{if(D6(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=NS(r)?[]:{};return cE(r,(a,s)=>{const l=n(a,i+1);!Zw(l)&&(o[s]=l)}),t[i]=void 0,o}}return r};return n(e,0)},NIe=Yd("AsyncFunction"),DIe=e=>e&&(D6(e)||$c(e))&&$c(e.then)&&$c(e.catch),vhe=((e,t)=>e?setImmediate:t?((n,r)=>(C1.addEventListener("message",({source:i,data:o})=>{i===C1&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),C1.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",$c(C1.postMessage)),LIe=typeof queueMicrotask<"u"?queueMicrotask.bind(C1):typeof process<"u"&&process.nextTick||vhe,sn={isArray:NS,isArrayBuffer:dhe,isBuffer:eIe,isFormData:cIe,isArrayBufferView:tIe,isString:nIe,isNumber:fhe,isBoolean:rIe,isObject:D6,isPlainObject:p3,isReadableStream:dIe,isRequest:fIe,isResponse:hIe,isHeaders:pIe,isUndefined:Zw,isDate:iIe,isFile:oIe,isBlob:aIe,isRegExp:kIe,isFunction:$c,isStream:lIe,isURLSearchParams:uIe,isTypedArray:xIe,isFileList:sIe,forEach:cE,merge:vD,extend:gIe,trim:mIe,stripBOM:vIe,inherits:yIe,toFlatObject:bIe,kindOf:A6,kindOfTest:Yd,endsWith:SIe,toArray:CIe,forEachEntry:wIe,matchAll:_Ie,isHTMLForm:EIe,hasOwnProperty:rQ,hasOwnProp:rQ,reduceDescriptors:mhe,freezeMethods:OIe,toObjectSet:PIe,toCamelCase:TIe,noop:MIe,toFiniteNumber:IIe,findKey:hhe,global:C1,isContextDefined:phe,ALPHABET:ghe,generateString:$Ie,isSpecCompliantForm:RIe,toJSONObject:AIe,isAsyncFn:NIe,isThenable:DIe,setImmediate:vhe,asap:LIe};function Gr(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}sn.inherits(Gr,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:sn.toJSONObject(this.config),code:this.code,status:this.status}}});const yhe=Gr.prototype,bhe={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{bhe[e]={value:e}});Object.defineProperties(Gr,bhe);Object.defineProperty(yhe,"isAxiosError",{value:!0});Gr.from=(e,t,n,r,i,o)=>{const a=Object.create(yhe);return sn.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),Gr.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const FIe=null;function yD(e){return sn.isPlainObject(e)||sn.isArray(e)}function She(e){return sn.endsWith(e,"[]")?e.slice(0,-2):e}function oQ(e,t,n){return e?e.concat(t).map(function(i,o){return i=She(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function jIe(e){return sn.isArray(e)&&!e.some(yD)}const BIe=sn.toFlatObject(sn,{},null,function(t){return/^is[A-Z]/.test(t)});function L6(e,t,n){if(!sn.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=sn.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,y){return!sn.isUndefined(y[v])});const r=n.metaTokens,i=n.visitor||u,o=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&sn.isSpecCompliantForm(t);if(!sn.isFunction(i))throw new TypeError("visitor must be a function");function c(m){if(m===null)return"";if(sn.isDate(m))return m.toISOString();if(!l&&sn.isBlob(m))throw new Gr("Blob is not supported. Use a Buffer instead.");return sn.isArrayBuffer(m)||sn.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,v,y){let S=m;if(m&&!y&&typeof m=="object"){if(sn.endsWith(v,"{}"))v=r?v:v.slice(0,-2),m=JSON.stringify(m);else if(sn.isArray(m)&&jIe(m)||(sn.isFileList(m)||sn.endsWith(v,"[]"))&&(S=sn.toArray(m)))return v=She(v),S.forEach(function(C,_){!(sn.isUndefined(C)||C===null)&&t.append(a===!0?oQ([v],_,o):a===null?v:v+"[]",c(C))}),!1}return yD(m)?!0:(t.append(oQ(y,v,o),c(m)),!1)}const d=[],h=Object.assign(BIe,{defaultVisitor:u,convertValue:c,isVisitable:yD});function p(m,v){if(!sn.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+v.join("."));d.push(m),sn.forEach(m,function(S,b){(!(sn.isUndefined(S)||S===null)&&i.call(t,S,sn.isString(b)?b.trim():b,v,h))===!0&&p(S,v?v.concat(b):[b])}),d.pop()}}if(!sn.isObject(e))throw new TypeError("data must be an object");return p(e),t}function aQ(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Oz(e,t){this._pairs=[],e&&L6(e,this,t)}const Che=Oz.prototype;Che.append=function(t,n){this._pairs.push([t,n])};Che.toString=function(t){const n=t?function(r){return t.call(this,r,aQ)}:aQ;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function HIe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function xhe(e,t,n){if(!t)return e;const r=n&&n.encode||HIe;sn.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let o;if(i?o=i(t,n):o=sn.isURLSearchParams(t)?t.toString():new Oz(t,n).toString(r),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class sQ{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){sn.forEach(this.handlers,function(r){r!==null&&t(r)})}}const whe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},zIe=typeof URLSearchParams<"u"?URLSearchParams:Oz,UIe=typeof FormData<"u"?FormData:null,WIe=typeof Blob<"u"?Blob:null,VIe={isBrowser:!0,classes:{URLSearchParams:zIe,FormData:UIe,Blob:WIe},protocols:["http","https","file","blob","url","data"]},Pz=typeof window<"u"&&typeof document<"u",bD=typeof navigator=="object"&&navigator||void 0,KIe=Pz&&(!bD||["ReactNative","NativeScript","NS"].indexOf(bD.product)<0),qIe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",GIe=Pz&&window.location.href||"http://localhost",YIe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Pz,hasStandardBrowserEnv:KIe,hasStandardBrowserWebWorkerEnv:qIe,navigator:bD,origin:GIe},Symbol.toStringTag,{value:"Module"})),js={...YIe,...VIe};function XIe(e,t){return L6(e,new js.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return js.isNode&&sn.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function QIe(e){return sn.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function ZIe(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}function _he(e){function t(n,r,i,o){let a=n[o++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),l=o>=n.length;return a=!a&&sn.isArray(i)?i.length:a,l?(sn.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!s):((!i[a]||!sn.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],o)&&sn.isArray(i[a])&&(i[a]=ZIe(i[a])),!s)}if(sn.isFormData(e)&&sn.isFunction(e.entries)){const n={};return sn.forEachEntry(e,(r,i)=>{t(QIe(r),i,n,0)}),n}return null}function JIe(e,t,n){if(sn.isString(e))try{return(t||JSON.parse)(e),sn.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const uE={transitional:whe,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=sn.isObject(t);if(o&&sn.isHTMLForm(t)&&(t=new FormData(t)),sn.isFormData(t))return i?JSON.stringify(_he(t)):t;if(sn.isArrayBuffer(t)||sn.isBuffer(t)||sn.isStream(t)||sn.isFile(t)||sn.isBlob(t)||sn.isReadableStream(t))return t;if(sn.isArrayBufferView(t))return t.buffer;if(sn.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return XIe(t,this.formSerializer).toString();if((s=sn.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return L6(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),JIe(t)):t}],transformResponse:[function(t){const n=this.transitional||uE.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(sn.isResponse(t)||sn.isReadableStream(t))return t;if(t&&sn.isString(t)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?Gr.from(s,Gr.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:js.classes.FormData,Blob:js.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};sn.forEach(["delete","get","head","post","put","patch"],e=>{uE.headers[e]={}});const e$e=sn.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),t$e=e=>{const t={};let n,r,i;return e&&e.split(`
|
||
`).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||t[n]&&e$e[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},lQ=Symbol("internals");function Tx(e){return e&&String(e).trim().toLowerCase()}function m3(e){return e===!1||e==null?e:sn.isArray(e)?e.map(m3):String(e)}function n$e(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const r$e=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function R$(e,t,n,r,i){if(sn.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!sn.isString(t)){if(sn.isString(r))return t.indexOf(r)!==-1;if(sn.isRegExp(r))return r.test(t)}}function i$e(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function o$e(e,t){const n=sn.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,a){return this[r].call(this,t,i,o,a)},configurable:!0})})}class Kl{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(s,l,c){const u=Tx(l);if(!u)throw new Error("header name must be a non-empty string");const d=sn.findKey(i,u);(!d||i[d]===void 0||c===!0||c===void 0&&i[d]!==!1)&&(i[d||l]=m3(s))}const a=(s,l)=>sn.forEach(s,(c,u)=>o(c,u,l));if(sn.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(sn.isString(t)&&(t=t.trim())&&!r$e(t))a(t$e(t),n);else if(sn.isHeaders(t))for(const[s,l]of t.entries())o(l,s,r);else t!=null&&o(n,t,r);return this}get(t,n){if(t=Tx(t),t){const r=sn.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return n$e(i);if(sn.isFunction(n))return n.call(this,i,r);if(sn.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Tx(t),t){const r=sn.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||R$(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(a){if(a=Tx(a),a){const s=sn.findKey(r,a);s&&(!n||R$(r,r[s],s,n))&&(delete r[s],i=!0)}}return sn.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||R$(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return sn.forEach(this,(i,o)=>{const a=sn.findKey(r,o);if(a){n[a]=m3(i),delete n[o];return}const s=t?i$e(o):String(o).trim();s!==o&&delete n[o],n[s]=m3(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return sn.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&sn.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
||
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[lQ]=this[lQ]={accessors:{}}).accessors,i=this.prototype;function o(a){const s=Tx(a);r[s]||(o$e(i,a),r[s]=!0)}return sn.isArray(t)?t.forEach(o):o(t),this}}Kl.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);sn.reduceDescriptors(Kl.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});sn.freezeMethods(Kl);function A$(e,t){const n=this||uE,r=t||n,i=Kl.from(r.headers);let o=r.data;return sn.forEach(e,function(s){o=s.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function Ehe(e){return!!(e&&e.__CANCEL__)}function DS(e,t,n){Gr.call(this,e??"canceled",Gr.ERR_CANCELED,t,n),this.name="CanceledError"}sn.inherits(DS,Gr,{__CANCEL__:!0});function The(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Gr("Request failed with status code "+n.status,[Gr.ERR_BAD_REQUEST,Gr.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function a$e(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function s$e(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,a;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[o];a||(a=c),n[i]=l,r[i]=c;let d=o,h=0;for(;d!==i;)h+=n[d++],d=d%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),c-a<t)return;const p=u&&c-u;return p?Math.round(h*1e3/p):void 0}}function l$e(e,t){let n=0,r=1e3/t,i,o;const a=(c,u=Date.now())=>{n=u,i=null,o&&(clearTimeout(o),o=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),d=u-n;d>=r?a(c,u):(i=c,o||(o=setTimeout(()=>{o=null,a(i)},r-d)))},()=>i&&a(i)]}const e9=(e,t,n=3)=>{let r=0;const i=s$e(50,250);return l$e(o=>{const a=o.loaded,s=o.lengthComputable?o.total:void 0,l=a-r,c=i(l),u=a<=s;r=a;const d={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&u?(s-a)/c:void 0,event:o,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(d)},n)},cQ=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},uQ=e=>(...t)=>sn.asap(()=>e(...t)),c$e=js.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,js.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(js.origin),js.navigator&&/(msie|trident)/i.test(js.navigator.userAgent)):()=>!0,u$e=js.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+"="+encodeURIComponent(t)];sn.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),sn.isString(r)&&a.push("path="+r),sn.isString(i)&&a.push("domain="+i),o===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function d$e(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function f$e(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function khe(e,t){return e&&!d$e(t)?f$e(e,t):t}const dQ=e=>e instanceof Kl?{...e}:e;function gv(e,t){t=t||{};const n={};function r(c,u,d,h){return sn.isPlainObject(c)&&sn.isPlainObject(u)?sn.merge.call({caseless:h},c,u):sn.isPlainObject(u)?sn.merge({},u):sn.isArray(u)?u.slice():u}function i(c,u,d,h){if(sn.isUndefined(u)){if(!sn.isUndefined(c))return r(void 0,c,d,h)}else return r(c,u,d,h)}function o(c,u){if(!sn.isUndefined(u))return r(void 0,u)}function a(c,u){if(sn.isUndefined(u)){if(!sn.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function s(c,u,d){if(d in t)return r(c,u);if(d in e)return r(void 0,c)}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(c,u,d)=>i(dQ(c),dQ(u),d,!0)};return sn.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=l[u]||i,h=d(e[u],t[u],u);sn.isUndefined(h)&&d!==s||(n[u]=h)}),n}const Ohe=e=>{const t=gv({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:s}=t;t.headers=a=Kl.from(a),t.url=xhe(khe(t.baseURL,t.url),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(sn.isFormData(n)){if(js.hasStandardBrowserEnv||js.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[c,...u]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];a.setContentType([c||"multipart/form-data",...u].join("; "))}}if(js.hasStandardBrowserEnv&&(r&&sn.isFunction(r)&&(r=r(t)),r||r!==!1&&c$e(t.url))){const c=i&&o&&u$e.read(o);c&&a.set(i,c)}return t},h$e=typeof XMLHttpRequest<"u",p$e=h$e&&function(e){return new Promise(function(n,r){const i=Ohe(e);let o=i.data;const a=Kl.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:c}=i,u,d,h,p,m;function v(){p&&p(),m&&m(),i.cancelToken&&i.cancelToken.unsubscribe(u),i.signal&&i.signal.removeEventListener("abort",u)}let y=new XMLHttpRequest;y.open(i.method.toUpperCase(),i.url,!0),y.timeout=i.timeout;function S(){if(!y)return;const C=Kl.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),T={data:!s||s==="text"||s==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:C,config:e,request:y};The(function(E){n(E),v()},function(E){r(E),v()},T),y=null}"onloadend"in y?y.onloadend=S:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(S)},y.onabort=function(){y&&(r(new Gr("Request aborted",Gr.ECONNABORTED,e,y)),y=null)},y.onerror=function(){r(new Gr("Network Error",Gr.ERR_NETWORK,e,y)),y=null},y.ontimeout=function(){let _=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const T=i.transitional||whe;i.timeoutErrorMessage&&(_=i.timeoutErrorMessage),r(new Gr(_,T.clarifyTimeoutError?Gr.ETIMEDOUT:Gr.ECONNABORTED,e,y)),y=null},o===void 0&&a.setContentType(null),"setRequestHeader"in y&&sn.forEach(a.toJSON(),function(_,T){y.setRequestHeader(T,_)}),sn.isUndefined(i.withCredentials)||(y.withCredentials=!!i.withCredentials),s&&s!=="json"&&(y.responseType=i.responseType),c&&([h,m]=e9(c,!0),y.addEventListener("progress",h)),l&&y.upload&&([d,p]=e9(l),y.upload.addEventListener("progress",d),y.upload.addEventListener("loadend",p)),(i.cancelToken||i.signal)&&(u=C=>{y&&(r(!C||C.type?new DS(null,e,y):C),y.abort(),y=null)},i.cancelToken&&i.cancelToken.subscribe(u),i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u)));const b=a$e(i.url);if(b&&js.protocols.indexOf(b)===-1){r(new Gr("Unsupported protocol "+b+":",Gr.ERR_BAD_REQUEST,e));return}y.send(o||null)})},m$e=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const o=function(c){if(!i){i=!0,s();const u=c instanceof Error?c:this.reason;r.abort(u instanceof Gr?u:new DS(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{a=null,o(new Gr(`timeout ${t} of ms exceeded`,Gr.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),e=null)};e.forEach(c=>c.addEventListener("abort",o));const{signal:l}=r;return l.unsubscribe=()=>sn.asap(s),l}},g$e=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},v$e=async function*(e,t){for await(const n of y$e(e))yield*g$e(n,t)},y$e=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},fQ=(e,t,n,r)=>{const i=v$e(e,t);let o=0,a,s=l=>{a||(a=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await i.next();if(c){s(),l.close();return}let d=u.byteLength;if(n){let h=o+=d;n(h)}l.enqueue(new Uint8Array(u))}catch(c){throw s(c),c}},cancel(l){return s(l),i.return()}},{highWaterMark:2})},F6=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Phe=F6&&typeof ReadableStream=="function",b$e=F6&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Mhe=(e,...t)=>{try{return!!e(...t)}catch{return!1}},S$e=Phe&&Mhe(()=>{let e=!1;const t=new Request(js.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),hQ=64*1024,SD=Phe&&Mhe(()=>sn.isReadableStream(new Response("").body)),t9={stream:SD&&(e=>e.body)};F6&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!t9[t]&&(t9[t]=sn.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Gr(`Response type '${t}' is not supported`,Gr.ERR_NOT_SUPPORT,r)})})})(new Response);const C$e=async e=>{if(e==null)return 0;if(sn.isBlob(e))return e.size;if(sn.isSpecCompliantForm(e))return(await new Request(js.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(sn.isArrayBufferView(e)||sn.isArrayBuffer(e))return e.byteLength;if(sn.isURLSearchParams(e)&&(e=e+""),sn.isString(e))return(await b$e(e)).byteLength},x$e=async(e,t)=>{const n=sn.toFiniteNumber(e.getContentLength());return n??C$e(t)},w$e=F6&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:o,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:h}=Ohe(e);c=c?(c+"").toLowerCase():"text";let p=m$e([i,o&&o.toAbortSignal()],a),m;const v=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let y;try{if(l&&S$e&&n!=="get"&&n!=="head"&&(y=await x$e(u,r))!==0){let T=new Request(t,{method:"POST",body:r,duplex:"half"}),x;if(sn.isFormData(r)&&(x=T.headers.get("content-type"))&&u.setContentType(x),T.body){const[E,k]=cQ(y,e9(uQ(l)));r=fQ(T.body,hQ,E,k)}}sn.isString(d)||(d=d?"include":"omit");const S="credentials"in Request.prototype;m=new Request(t,{...h,signal:p,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:S?d:void 0});let b=await fetch(m);const C=SD&&(c==="stream"||c==="response");if(SD&&(s||C&&v)){const T={};["status","statusText","headers"].forEach(M=>{T[M]=b[M]});const x=sn.toFiniteNumber(b.headers.get("content-length")),[E,k]=s&&cQ(x,e9(uQ(s),!0))||[];b=new Response(fQ(b.body,hQ,E,()=>{k&&k(),v&&v()}),T)}c=c||"text";let _=await t9[sn.findKey(t9,c)||"text"](b,e);return!C&&v&&v(),await new Promise((T,x)=>{The(T,x,{data:_,headers:Kl.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:m})})}catch(S){throw v&&v(),S&&S.name==="TypeError"&&/fetch/i.test(S.message)?Object.assign(new Gr("Network Error",Gr.ERR_NETWORK,e,m),{cause:S.cause||S}):Gr.from(S,S&&S.code,e,m)}}),CD={http:FIe,xhr:p$e,fetch:w$e};sn.forEach(CD,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const pQ=e=>`- ${e}`,_$e=e=>sn.isFunction(e)||e===null||e===!1,Ihe={getAdapter:e=>{e=sn.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o<t;o++){n=e[o];let a;if(r=n,!_$e(n)&&(r=CD[(a=String(n)).toLowerCase()],r===void 0))throw new Gr(`Unknown adapter '${a}'`);if(r)break;i[a||"#"+o]=r}if(!r){const o=Object.entries(i).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?o.length>1?`since :
|
||
`+o.map(pQ).join(`
|
||
`):" "+pQ(o[0]):"as no adapter specified";throw new Gr("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:CD};function N$(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new DS(null,e)}function mQ(e){return N$(e),e.headers=Kl.from(e.headers),e.data=A$.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ihe.getAdapter(e.adapter||uE.adapter)(e).then(function(r){return N$(e),r.data=A$.call(e,e.transformResponse,r),r.headers=Kl.from(r.headers),r},function(r){return Ehe(r)||(N$(e),r&&r.response&&(r.response.data=A$.call(e,e.transformResponse,r.response),r.response.headers=Kl.from(r.response.headers))),Promise.reject(r)})}const $he="1.7.9",j6={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{j6[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const gQ={};j6.transitional=function(t,n,r){function i(o,a){return"[Axios v"+$he+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,s)=>{if(t===!1)throw new Gr(i(a," has been removed"+(n?" in "+n:"")),Gr.ERR_DEPRECATED);return n&&!gQ[a]&&(gQ[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,a,s):!0}};j6.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function E$e(e,t,n){if(typeof e!="object")throw new Gr("options must be an object",Gr.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const s=e[o],l=s===void 0||a(s,o,e);if(l!==!0)throw new Gr("option "+o+" must be "+l,Gr.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Gr("Unknown option "+o,Gr.ERR_BAD_OPTION)}}const g3={assertOptions:E$e,validators:j6},ff=g3.validators;class z1{constructor(t){this.defaults=t,this.interceptors={request:new sQ,response:new sQ}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
||
`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=gv(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&g3.assertOptions(r,{silentJSONParsing:ff.transitional(ff.boolean),forcedJSONParsing:ff.transitional(ff.boolean),clarifyTimeoutError:ff.transitional(ff.boolean)},!1),i!=null&&(sn.isFunction(i)?n.paramsSerializer={serialize:i}:g3.assertOptions(i,{encode:ff.function,serialize:ff.function},!0)),g3.assertOptions(n,{baseUrl:ff.spelling("baseURL"),withXsrfToken:ff.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&sn.merge(o.common,o[n.method]);o&&sn.forEach(["delete","get","head","post","put","patch","common"],m=>{delete o[m]}),n.headers=Kl.concat(a,o);const s=[];let l=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(l=l&&v.synchronous,s.unshift(v.fulfilled,v.rejected))});const c=[];this.interceptors.response.forEach(function(v){c.push(v.fulfilled,v.rejected)});let u,d=0,h;if(!l){const m=[mQ.bind(this),void 0];for(m.unshift.apply(m,s),m.push.apply(m,c),h=m.length,u=Promise.resolve(n);d<h;)u=u.then(m[d++],m[d++]);return u}h=s.length;let p=n;for(d=0;d<h;){const m=s[d++],v=s[d++];try{p=m(p)}catch(y){v.call(this,y);break}}try{u=mQ.call(this,p)}catch(m){return Promise.reject(m)}for(d=0,h=c.length;d<h;)u=u.then(c[d++],c[d++]);return u}getUri(t){t=gv(this.defaults,t);const n=khe(t.baseURL,t.url);return xhe(n,t.params,t.paramsSerializer)}}sn.forEach(["delete","get","head","options"],function(t){z1.prototype[t]=function(n,r){return this.request(gv(r||{},{method:t,url:n,data:(r||{}).data}))}});sn.forEach(["post","put","patch"],function(t){function n(r){return function(o,a,s){return this.request(gv(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}z1.prototype[t]=n(),z1.prototype[t+"Form"]=n(!0)});class Mz{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(s=>{r.subscribe(s),o=s}).then(i);return a.cancel=function(){r.unsubscribe(o)},a},t(function(o,a,s){r.reason||(r.reason=new DS(o,a,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Mz(function(i){t=i}),cancel:t}}}function T$e(e){return function(n){return e.apply(null,n)}}function k$e(e){return sn.isObject(e)&&e.isAxiosError===!0}const xD={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(xD).forEach(([e,t])=>{xD[t]=e});function Rhe(e){const t=new z1(e),n=uhe(z1.prototype.request,t);return sn.extend(n,z1.prototype,t,{allOwnKeys:!0}),sn.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Rhe(gv(e,i))},n}const fa=Rhe(uE);fa.Axios=z1;fa.CanceledError=DS;fa.CancelToken=Mz;fa.isCancel=Ehe;fa.VERSION=$he;fa.toFormData=L6;fa.AxiosError=Gr;fa.Cancel=fa.CanceledError;fa.all=function(t){return Promise.all(t)};fa.spread=T$e;fa.isAxiosError=k$e;fa.mergeConfig=gv;fa.AxiosHeaders=Kl;fa.formToJSON=e=>_he(sn.isHTMLForm(e)?new FormData(e):e);fa.getAdapter=Ihe.getAdapter;fa.HttpStatusCode=xD;fa.default=fa;function O$e(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(i){i(n)}),(r=e.get("*"))&&r.slice().map(function(i){i(t,n)})}}}const Dr=O$e();async function P$e(){return Wo("/config/bytedesk/properties",{method:"GET",params:{client:So}})}async function M$e(){try{const t=(await fa.get("/notebase/config.json")).data;if(t.enabled)console.log("config enabled: ",t),localStorage.setItem(V2,"true"),localStorage.setItem(f3,t.apiUrl),localStorage.setItem(h3,t.websocketUrl),localStorage.setItem(M$,t.htmlUrl);else if(oPe===Vfe){console.log("config opensource");const n=window.location.port,r=window.location.protocol+"//"+window.location.hostname+":"+n,i="ws://"+window.location.hostname+":9885/websocket";console.log("apiUrl: ",r," port:",n," websocketUrl:",i),localStorage.setItem(V2,"true"),localStorage.setItem(f3,r),localStorage.setItem(h3,i),localStorage.setItem(M$,r)}else console.log("config disabled"),localStorage.setItem(V2,"false"),localStorage.removeItem(f3),localStorage.removeItem(h3),localStorage.removeItem(M$)}catch(e){console.log("loadConfig error: ",e)}}function B6(){const e=localStorage.getItem(By);if(console.log("custom_enabled: ",e),e==="true"){const n=localStorage.getItem(g2);return n===null?P$:n}if(localStorage.getItem(V2)==="true"){const n=localStorage.getItem(f3);return n===null?P$:n}return P$}function Ahe(){return B6()+"/api/v1/upload/file"}function I$e(){const e=localStorage.getItem(By);if(console.log("custom_enabled: ",e),e==="true"){const r=localStorage.getItem(v2);return r===null?$X:r}const t=localStorage.getItem(V2),n=localStorage.getItem(h3);return t==="true"?n:$X}async function $$e(){const e=await P$e();return console.log("getConfigProperties response: ",e.data.data),e.data.code===200?(localStorage.setItem(b6,JSON.stringify(e.data.data)),e.data.data):null}function R$e(){const e=localStorage.getItem(b6);if(e){const t=JSON.parse(e);if(t.logo&&t.logo.length>0&&t.logo.startsWith("http"))return t.logo}return"/notebase/icons/logo.png"}function A$e(){const e=localStorage.getItem(b6);if(e){const t=JSON.parse(e);if(t.name&&t.name.length>0)return t.name}return null}function N$e(){const e=localStorage.getItem(b6);if(e){const t=JSON.parse(e);if(t.description&&t.description.length>0)return t.description}return null}const Wo=fa.create({timeout:2e4,baseURL:B6(),paramsSerializer:{indexes:null}});Wo.interceptors.request.use(e=>{e.baseURL=B6();const t=localStorage.getItem(Gw);return t&&t.length>10&&e.url.startsWith("/api")&&(e.headers.Authorization=`Bearer ${t}`),!t&&e.url.startsWith("/api")?Promise.reject(D$e):e},e=>(console.debug("request error",e),e.response.status===403&&Dr.emit(Km,"403"),e.response.status===401&&Dr.emit(Km,"401"),Promise.reject(e)));Wo.interceptors.response.use(e=>e,e=>{var t,n,r;if(console.debug("response error",e),e!=null&&e.response)switch((t=e==null?void 0:e.response)==null?void 0:t.status){case 400:console.log("axios interception error 400"),Dr.emit(Km,"400");break;case 401:console.log("axios interception error 401"),Dr.emit(Km,"401");break;case 403:console.log("axios interception error 403"),Dr.emit(Km,"403");break;case 500:console.log("axios interception error 500"),Dr.emit(sPe,"500");break;case 601:console.log("axios interception error 601",e.message);break}return Promise.resolve({message:e==null?void 0:e.message,code:(n=e==null?void 0:e.response)==null?void 0:n.status,data:{message:e==null?void 0:e.message,code:(r=e==null?void 0:e.response)==null?void 0:r.status,data:!1}})});const D$={data:null,status:601,statusText:qfe,headers:{},config:{headers:void 0},request:null},D$e={message:"匿名用户,无需访问服务器接口",name:qfe,code:"601",config:D$.config,request:D$.request,response:D$,isAxiosError:!0,toJSON:function(){return{message:this.message,name:this.name,code:this.code,config:this.config,request:this.request,response:this.response}}};async function L$e(e){return Wo("/api/v1/agent/query",{method:"GET",params:{orgUid:e,client:So}})}async function F$e(e){return Wo("/api/v1/agent/update",{method:"POST",data:{...e,client:So}})}async function j$e(e){return Wo("/api/v1/agent/update/status",{method:"POST",data:{...e,client:So}})}async function B$e(e){return Wo("/api/v1/message_unread/query",{method:"GET",params:{userUid:e,client:So}})}async function H$e(e){return Wo("/api/v1/message/rest/send",{method:"POST",data:{json:e,client:So}})}var Iz=Object.defineProperty,z$e=Object.getOwnPropertyDescriptor,U$e=Object.getOwnPropertyNames,W$e=Object.prototype.hasOwnProperty,Es=(e,t)=>()=>(e&&(t=e(e=0)),t),Tn=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Hv=(e,t)=>{for(var n in t)Iz(e,n,{get:t[n],enumerable:!0})},V$e=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of U$e(t))!W$e.call(e,i)&&i!==n&&Iz(e,i,{get:()=>t[i],enumerable:!(r=z$e(t,i))||r.enumerable});return e},to=e=>V$e(Iz({},"__esModule",{value:!0}),e),pn=Es(()=>{}),Ni={};Hv(Ni,{_debugEnd:()=>tL,_debugProcess:()=>eL,_events:()=>gL,_eventsCount:()=>vL,_exiting:()=>BD,_fatalExceptions:()=>QD,_getActiveHandles:()=>Hhe,_getActiveRequests:()=>Bhe,_kill:()=>UD,_linkedBinding:()=>Fhe,_maxListeners:()=>mL,_preload_modules:()=>hL,_rawDebug:()=>LD,_startProfilerIdleNotifier:()=>nL,_stopProfilerIdleNotifier:()=>rL,_tickCallback:()=>JD,abort:()=>sL,addListener:()=>yL,allowedNodeEnvironmentFlags:()=>YD,arch:()=>_D,argv:()=>kD,argv0:()=>fL,assert:()=>zhe,binding:()=>$D,chdir:()=>ND,config:()=>HD,cpuUsage:()=>y2,cwd:()=>AD,debugPort:()=>dL,default:()=>Rz,dlopen:()=>jhe,domain:()=>jD,emit:()=>wL,emitWarning:()=>ID,env:()=>TD,execArgv:()=>OD,execPath:()=>uL,exit:()=>qD,features:()=>XD,hasUncaughtExceptionCaptureCallback:()=>Uhe,hrtime:()=>v3,kill:()=>KD,listeners:()=>Vhe,memoryUsage:()=>VD,moduleLoadList:()=>FD,nextTick:()=>Dhe,off:()=>SL,on:()=>kh,once:()=>bL,openStdin:()=>GD,pid:()=>lL,platform:()=>ED,ppid:()=>cL,prependListener:()=>_L,prependOnceListener:()=>EL,reallyExit:()=>zD,release:()=>DD,removeAllListeners:()=>xL,removeListener:()=>CL,resourceUsage:()=>WD,setSourceMapsEnabled:()=>pL,setUncaughtExceptionCaptureCallback:()=>ZD,stderr:()=>oL,stdin:()=>aL,stdout:()=>iL,title:()=>wD,umask:()=>RD,uptime:()=>Whe,version:()=>PD,versions:()=>MD});function $z(e){throw new Error("Node.js process "+e+" is not supported by JSPM core outside of Node.js")}function K$e(){!U1||!x1||(U1=!1,x1.length?If=x1.concat(If):K2=-1,If.length&&Nhe())}function Nhe(){if(!U1){var e=setTimeout(K$e,0);U1=!0;for(var t=If.length;t;){for(x1=If,If=[];++K2<t;)x1&&x1[K2].run();K2=-1,t=If.length}x1=null,U1=!1,clearTimeout(e)}}function Dhe(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];If.push(new Lhe(e,t)),If.length===1&&!U1&&setTimeout(Nhe,0)}function Lhe(e,t){this.fun=e,this.array=t}function As(){}function Fhe(e){$z("_linkedBinding")}function jhe(e){$z("dlopen")}function Bhe(){return[]}function Hhe(){return[]}function zhe(e,t){if(!e)throw new Error(t||"assertion error")}function Uhe(){return!1}function Whe(){return Hh.now()/1e3}function v3(e){var t=Math.floor((Date.now()-Hh.now())*.001),n=Hh.now()*.001,r=Math.floor(n)+t,i=Math.floor(n%1*1e9);return e&&(r=r-e[0],i=i-e[1],i<0&&(r--,i+=y3)),[r,i]}function kh(){return Rz}function Vhe(e){return[]}var If,U1,x1,K2,wD,_D,ED,TD,kD,OD,PD,MD,ID,$D,RD,AD,ND,DD,LD,FD,jD,BD,HD,zD,UD,y2,WD,VD,KD,qD,GD,YD,XD,QD,ZD,JD,eL,tL,nL,rL,iL,oL,aL,sL,lL,cL,uL,dL,fL,hL,pL,Hh,L$,y3,mL,gL,vL,yL,bL,SL,CL,xL,wL,_L,EL,Rz,q$e=Es(()=>{pn(),gn(),mn(),If=[],U1=!1,K2=-1,Lhe.prototype.run=function(){this.fun.apply(null,this.array)},wD="browser",_D="x64",ED="browser",TD={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},kD=["/usr/bin/node"],OD=[],PD="v16.8.0",MD={},ID=function(e,t){console.warn((t?t+": ":"")+e)},$D=function(e){$z("binding")},RD=function(e){return 0},AD=function(){return"/"},ND=function(e){},DD={name:"node",sourceUrl:"",headersUrl:"",libUrl:""},LD=As,FD=[],jD={},BD=!1,HD={},zD=As,UD=As,y2=function(){return{}},WD=y2,VD=y2,KD=As,qD=As,GD=As,YD={},XD={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},QD=As,ZD=As,JD=As,eL=As,tL=As,nL=As,rL=As,iL=void 0,oL=void 0,aL=void 0,sL=As,lL=2,cL=1,uL="/bin/usr/node",dL=9229,fL="node",hL=[],pL=As,Hh={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0},Hh.now===void 0&&(L$=Date.now(),Hh.timing&&Hh.timing.navigationStart&&(L$=Hh.timing.navigationStart),Hh.now=()=>Date.now()-L$),y3=1e9,v3.bigint=function(e){var t=v3(e);return typeof BigInt>"u"?t[0]*y3+t[1]:BigInt(t[0]*y3)+BigInt(t[1])},mL=10,gL={},vL=0,yL=kh,bL=kh,SL=kh,CL=kh,xL=kh,wL=As,_L=kh,EL=kh,Rz={version:PD,versions:MD,arch:_D,platform:ED,release:DD,_rawDebug:LD,moduleLoadList:FD,binding:$D,_linkedBinding:Fhe,_events:gL,_eventsCount:vL,_maxListeners:mL,on:kh,addListener:yL,once:bL,off:SL,removeListener:CL,removeAllListeners:xL,emit:wL,prependListener:_L,prependOnceListener:EL,listeners:Vhe,domain:jD,_exiting:BD,config:HD,dlopen:jhe,uptime:Whe,_getActiveRequests:Bhe,_getActiveHandles:Hhe,reallyExit:zD,_kill:UD,cpuUsage:y2,resourceUsage:WD,memoryUsage:VD,kill:KD,exit:qD,openStdin:GD,allowedNodeEnvironmentFlags:YD,assert:zhe,features:XD,_fatalExceptions:QD,setUncaughtExceptionCaptureCallback:ZD,hasUncaughtExceptionCaptureCallback:Uhe,emitWarning:ID,nextTick:Dhe,_tickCallback:JD,_debugProcess:eL,_debugEnd:tL,_startProfilerIdleNotifier:nL,_stopProfilerIdleNotifier:rL,stdout:iL,stdin:aL,stderr:oL,abort:sL,umask:RD,chdir:ND,cwd:AD,env:TD,title:wD,argv:kD,execArgv:OD,pid:lL,ppid:cL,execPath:uL,debugPort:dL,hrtime:v3,argv0:fL,_preload_modules:hL,setSourceMapsEnabled:pL}}),mn=Es(()=>{q$e()}),Ts={};Hv(Ts,{Buffer:()=>n9,INSPECT_MAX_BYTES:()=>Khe,default:()=>Oh,kMaxLength:()=>qhe});function G$e(){if(TL)return yy;TL=!0,yy.byteLength=s,yy.toByteArray=c,yy.fromByteArray=h;for(var e=[],t=[],n=typeof Uint8Array<"u"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,o=r.length;i<o;++i)e[i]=r[i],t[r.charCodeAt(i)]=i;t[45]=62,t[95]=63;function a(p){var m=p.length;if(m%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var v=p.indexOf("=");v===-1&&(v=m);var y=v===m?0:4-v%4;return[v,y]}function s(p){var m=a(p),v=m[0],y=m[1];return(v+y)*3/4-y}function l(p,m,v){return(m+v)*3/4-v}function c(p){var m,v=a(p),y=v[0],S=v[1],b=new n(l(p,y,S)),C=0,_=S>0?y-4:y,T;for(T=0;T<_;T+=4)m=t[p.charCodeAt(T)]<<18|t[p.charCodeAt(T+1)]<<12|t[p.charCodeAt(T+2)]<<6|t[p.charCodeAt(T+3)],b[C++]=m>>16&255,b[C++]=m>>8&255,b[C++]=m&255;return S===2&&(m=t[p.charCodeAt(T)]<<2|t[p.charCodeAt(T+1)]>>4,b[C++]=m&255),S===1&&(m=t[p.charCodeAt(T)]<<10|t[p.charCodeAt(T+1)]<<4|t[p.charCodeAt(T+2)]>>2,b[C++]=m>>8&255,b[C++]=m&255),b}function u(p){return e[p>>18&63]+e[p>>12&63]+e[p>>6&63]+e[p&63]}function d(p,m,v){for(var y,S=[],b=m;b<v;b+=3)y=(p[b]<<16&16711680)+(p[b+1]<<8&65280)+(p[b+2]&255),S.push(u(y));return S.join("")}function h(p){for(var m,v=p.length,y=v%3,S=[],b=16383,C=0,_=v-y;C<_;C+=b)S.push(d(p,C,C+b>_?_:C+b));return y===1?(m=p[v-1],S.push(e[m>>2]+e[m<<4&63]+"==")):y===2&&(m=(p[v-2]<<8)+p[v-1],S.push(e[m>>10]+e[m>>4&63]+e[m<<2&63]+"=")),S.join("")}return yy}function Y$e(){return kL?b2:(kL=!0,b2.read=function(e,t,n,r,i){var o,a,s=i*8-r-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?i-1:0,h=n?-1:1,p=e[t+d];for(d+=h,o=p&(1<<-u)-1,p>>=-u,u+=s;u>0;o=o*256+e[t+d],d+=h,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=a*256+e[t+d],d+=h,u-=8);if(o===0)o=1-c;else{if(o===l)return a?NaN:(p?-1:1)*(1/0);a=a+Math.pow(2,r),o=o-c}return(p?-1:1)*a*Math.pow(2,o-r)},b2.write=function(e,t,n,r,i,o){var a,s,l,c=o*8-i-1,u=(1<<c)-1,d=u>>1,h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,m=r?1:-1,v=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+d>=1?t+=h/l:t+=h*Math.pow(2,1-d),t*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a=a+d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+p]=s&255,p+=m,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[n+p]=a&255,p+=m,a/=256,c-=8);e[n+p-m]|=v*128},b2)}function X$e(){if(OL)return rm;OL=!0;let e=G$e(),t=Y$e(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;rm.Buffer=a,rm.SlowBuffer=S,rm.INSPECT_MAX_BYTES=50;let r=2147483647;rm.kMaxLength=r,a.TYPED_ARRAY_SUPPORT=i(),!a.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{let Q=new Uint8Array(1),K={foo:function(){return 42}};return Object.setPrototypeOf(K,Uint8Array.prototype),Object.setPrototypeOf(Q,K),Q.foo()===42}catch{return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function o(Q){if(Q>r)throw new RangeError('The value "'+Q+'" is invalid for option "size"');let K=new Uint8Array(Q);return Object.setPrototypeOf(K,a.prototype),K}function a(Q,K,J){if(typeof Q=="number"){if(typeof K=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return u(Q)}return s(Q,K,J)}a.poolSize=8192;function s(Q,K,J){if(typeof Q=="string")return d(Q,K);if(ArrayBuffer.isView(Q))return p(Q);if(Q==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Q);if(Te(Q,ArrayBuffer)||Q&&Te(Q.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Te(Q,SharedArrayBuffer)||Q&&Te(Q.buffer,SharedArrayBuffer)))return m(Q,K,J);if(typeof Q=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let be=Q.valueOf&&Q.valueOf();if(be!=null&&be!==Q)return a.from(be,K,J);let Oe=v(Q);if(Oe)return Oe;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Q[Symbol.toPrimitive]=="function")return a.from(Q[Symbol.toPrimitive]("string"),K,J);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Q)}a.from=function(Q,K,J){return s(Q,K,J)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function l(Q){if(typeof Q!="number")throw new TypeError('"size" argument must be of type number');if(Q<0)throw new RangeError('The value "'+Q+'" is invalid for option "size"')}function c(Q,K,J){return l(Q),Q<=0?o(Q):K!==void 0?typeof J=="string"?o(Q).fill(K,J):o(Q).fill(K):o(Q)}a.alloc=function(Q,K,J){return c(Q,K,J)};function u(Q){return l(Q),o(Q<0?0:y(Q)|0)}a.allocUnsafe=function(Q){return u(Q)},a.allocUnsafeSlow=function(Q){return u(Q)};function d(Q,K){if((typeof K!="string"||K==="")&&(K="utf8"),!a.isEncoding(K))throw new TypeError("Unknown encoding: "+K);let J=b(Q,K)|0,be=o(J),Oe=be.write(Q,K);return Oe!==J&&(be=be.slice(0,Oe)),be}function h(Q){let K=Q.length<0?0:y(Q.length)|0,J=o(K);for(let be=0;be<K;be+=1)J[be]=Q[be]&255;return J}function p(Q){if(Te(Q,Uint8Array)){let K=new Uint8Array(Q);return m(K.buffer,K.byteOffset,K.byteLength)}return h(Q)}function m(Q,K,J){if(K<0||Q.byteLength<K)throw new RangeError('"offset" is outside of buffer bounds');if(Q.byteLength<K+(J||0))throw new RangeError('"length" is outside of buffer bounds');let be;return K===void 0&&J===void 0?be=new Uint8Array(Q):J===void 0?be=new Uint8Array(Q,K):be=new Uint8Array(Q,K,J),Object.setPrototypeOf(be,a.prototype),be}function v(Q){if(a.isBuffer(Q)){let K=y(Q.length)|0,J=o(K);return J.length===0||Q.copy(J,0,0,K),J}if(Q.length!==void 0)return typeof Q.length!="number"||ke(Q.length)?o(0):h(Q);if(Q.type==="Buffer"&&Array.isArray(Q.data))return h(Q.data)}function y(Q){if(Q>=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return Q|0}function S(Q){return+Q!=Q&&(Q=0),a.alloc(+Q)}a.isBuffer=function(Q){return Q!=null&&Q._isBuffer===!0&&Q!==a.prototype},a.compare=function(Q,K){if(Te(Q,Uint8Array)&&(Q=a.from(Q,Q.offset,Q.byteLength)),Te(K,Uint8Array)&&(K=a.from(K,K.offset,K.byteLength)),!a.isBuffer(Q)||!a.isBuffer(K))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Q===K)return 0;let J=Q.length,be=K.length;for(let Oe=0,Se=Math.min(J,be);Oe<Se;++Oe)if(Q[Oe]!==K[Oe]){J=Q[Oe],be=K[Oe];break}return J<be?-1:be<J?1:0},a.isEncoding=function(Q){switch(String(Q).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(Q,K){if(!Array.isArray(Q))throw new TypeError('"list" argument must be an Array of Buffers');if(Q.length===0)return a.alloc(0);let J;if(K===void 0)for(K=0,J=0;J<Q.length;++J)K+=Q[J].length;let be=a.allocUnsafe(K),Oe=0;for(J=0;J<Q.length;++J){let Se=Q[J];if(Te(Se,Uint8Array))Oe+Se.length>be.length?(a.isBuffer(Se)||(Se=a.from(Se)),Se.copy(be,Oe)):Uint8Array.prototype.set.call(be,Se,Oe);else if(a.isBuffer(Se))Se.copy(be,Oe);else throw new TypeError('"list" argument must be an Array of Buffers');Oe+=Se.length}return be};function b(Q,K){if(a.isBuffer(Q))return Q.length;if(ArrayBuffer.isView(Q)||Te(Q,ArrayBuffer))return Q.byteLength;if(typeof Q!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Q);let J=Q.length,be=arguments.length>2&&arguments[2]===!0;if(!be&&J===0)return 0;let Oe=!1;for(;;)switch(K){case"ascii":case"latin1":case"binary":return J;case"utf8":case"utf-8":return xe(Q).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return J*2;case"hex":return J>>>1;case"base64":return Fe(Q).length;default:if(Oe)return be?-1:xe(Q).length;K=(""+K).toLowerCase(),Oe=!0}}a.byteLength=b;function C(Q,K,J){let be=!1;if((K===void 0||K<0)&&(K=0),K>this.length||((J===void 0||J>this.length)&&(J=this.length),J<=0)||(J>>>=0,K>>>=0,J<=K))return"";for(Q||(Q="utf8");;)switch(Q){case"hex":return q(this,K,J);case"utf8":case"utf-8":return A(this,K,J);case"ascii":return z(this,K,J);case"latin1":case"binary":return W(this,K,J);case"base64":return R(this,K,J);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Z(this,K,J);default:if(be)throw new TypeError("Unknown encoding: "+Q);Q=(Q+"").toLowerCase(),be=!0}}a.prototype._isBuffer=!0;function _(Q,K,J){let be=Q[K];Q[K]=Q[J],Q[J]=be}a.prototype.swap16=function(){let Q=this.length;if(Q%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let K=0;K<Q;K+=2)_(this,K,K+1);return this},a.prototype.swap32=function(){let Q=this.length;if(Q%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let K=0;K<Q;K+=4)_(this,K,K+3),_(this,K+1,K+2);return this},a.prototype.swap64=function(){let Q=this.length;if(Q%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let K=0;K<Q;K+=8)_(this,K,K+7),_(this,K+1,K+6),_(this,K+2,K+5),_(this,K+3,K+4);return this},a.prototype.toString=function(){let Q=this.length;return Q===0?"":arguments.length===0?A(this,0,Q):C.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(Q){if(!a.isBuffer(Q))throw new TypeError("Argument must be a Buffer");return this===Q?!0:a.compare(this,Q)===0},a.prototype.inspect=function(){let Q="",K=rm.INSPECT_MAX_BYTES;return Q=this.toString("hex",0,K).replace(/(.{2})/g,"$1 ").trim(),this.length>K&&(Q+=" ... "),"<Buffer "+Q+">"},n&&(a.prototype[n]=a.prototype.inspect),a.prototype.compare=function(Q,K,J,be,Oe){if(Te(Q,Uint8Array)&&(Q=a.from(Q,Q.offset,Q.byteLength)),!a.isBuffer(Q))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Q);if(K===void 0&&(K=0),J===void 0&&(J=Q?Q.length:0),be===void 0&&(be=0),Oe===void 0&&(Oe=this.length),K<0||J>Q.length||be<0||Oe>this.length)throw new RangeError("out of range index");if(be>=Oe&&K>=J)return 0;if(be>=Oe)return-1;if(K>=J)return 1;if(K>>>=0,J>>>=0,be>>>=0,Oe>>>=0,this===Q)return 0;let Se=Oe-be,Ke=J-K,tt=Math.min(Se,Ke),se=this.slice(be,Oe),ze=Q.slice(K,J);for(let Ye=0;Ye<tt;++Ye)if(se[Ye]!==ze[Ye]){Se=se[Ye],Ke=ze[Ye];break}return Se<Ke?-1:Ke<Se?1:0};function T(Q,K,J,be,Oe){if(Q.length===0)return-1;if(typeof J=="string"?(be=J,J=0):J>2147483647?J=2147483647:J<-2147483648&&(J=-2147483648),J=+J,ke(J)&&(J=Oe?0:Q.length-1),J<0&&(J=Q.length+J),J>=Q.length){if(Oe)return-1;J=Q.length-1}else if(J<0)if(Oe)J=0;else return-1;if(typeof K=="string"&&(K=a.from(K,be)),a.isBuffer(K))return K.length===0?-1:x(Q,K,J,be,Oe);if(typeof K=="number")return K=K&255,typeof Uint8Array.prototype.indexOf=="function"?Oe?Uint8Array.prototype.indexOf.call(Q,K,J):Uint8Array.prototype.lastIndexOf.call(Q,K,J):x(Q,[K],J,be,Oe);throw new TypeError("val must be string, number or Buffer")}function x(Q,K,J,be,Oe){let Se=1,Ke=Q.length,tt=K.length;if(be!==void 0&&(be=String(be).toLowerCase(),be==="ucs2"||be==="ucs-2"||be==="utf16le"||be==="utf-16le")){if(Q.length<2||K.length<2)return-1;Se=2,Ke/=2,tt/=2,J/=2}function se(Ye,Ue){return Se===1?Ye[Ue]:Ye.readUInt16BE(Ue*Se)}let ze;if(Oe){let Ye=-1;for(ze=J;ze<Ke;ze++)if(se(Q,ze)===se(K,Ye===-1?0:ze-Ye)){if(Ye===-1&&(Ye=ze),ze-Ye+1===tt)return Ye*Se}else Ye!==-1&&(ze-=ze-Ye),Ye=-1}else for(J+tt>Ke&&(J=Ke-tt),ze=J;ze>=0;ze--){let Ye=!0;for(let Ue=0;Ue<tt;Ue++)if(se(Q,ze+Ue)!==se(K,Ue)){Ye=!1;break}if(Ye)return ze}return-1}a.prototype.includes=function(Q,K,J){return this.indexOf(Q,K,J)!==-1},a.prototype.indexOf=function(Q,K,J){return T(this,Q,K,J,!0)},a.prototype.lastIndexOf=function(Q,K,J){return T(this,Q,K,J,!1)};function E(Q,K,J,be){J=Number(J)||0;let Oe=Q.length-J;be?(be=Number(be),be>Oe&&(be=Oe)):be=Oe;let Se=K.length;be>Se/2&&(be=Se/2);let Ke;for(Ke=0;Ke<be;++Ke){let tt=parseInt(K.substr(Ke*2,2),16);if(ke(tt))return Ke;Q[J+Ke]=tt}return Ke}function k(Q,K,J,be){return Ce(xe(K,Q.length-J),Q,J,be)}function M(Q,K,J,be){return Ce(we(K),Q,J,be)}function P(Q,K,J,be){return Ce(Fe(K),Q,J,be)}function D(Q,K,J,be){return Ce(De(K,Q.length-J),Q,J,be)}a.prototype.write=function(Q,K,J,be){if(K===void 0)be="utf8",J=this.length,K=0;else if(J===void 0&&typeof K=="string")be=K,J=this.length,K=0;else if(isFinite(K))K=K>>>0,isFinite(J)?(J=J>>>0,be===void 0&&(be="utf8")):(be=J,J=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let Oe=this.length-K;if((J===void 0||J>Oe)&&(J=Oe),Q.length>0&&(J<0||K<0)||K>this.length)throw new RangeError("Attempt to write outside buffer bounds");be||(be="utf8");let Se=!1;for(;;)switch(be){case"hex":return E(this,Q,K,J);case"utf8":case"utf-8":return k(this,Q,K,J);case"ascii":case"latin1":case"binary":return M(this,Q,K,J);case"base64":return P(this,Q,K,J);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,Q,K,J);default:if(Se)throw new TypeError("Unknown encoding: "+be);be=(""+be).toLowerCase(),Se=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function R(Q,K,J){return K===0&&J===Q.length?e.fromByteArray(Q):e.fromByteArray(Q.slice(K,J))}function A(Q,K,J){J=Math.min(Q.length,J);let be=[],Oe=K;for(;Oe<J;){let Se=Q[Oe],Ke=null,tt=Se>239?4:Se>223?3:Se>191?2:1;if(Oe+tt<=J){let se,ze,Ye,Ue;switch(tt){case 1:Se<128&&(Ke=Se);break;case 2:se=Q[Oe+1],(se&192)===128&&(Ue=(Se&31)<<6|se&63,Ue>127&&(Ke=Ue));break;case 3:se=Q[Oe+1],ze=Q[Oe+2],(se&192)===128&&(ze&192)===128&&(Ue=(Se&15)<<12|(se&63)<<6|ze&63,Ue>2047&&(Ue<55296||Ue>57343)&&(Ke=Ue));break;case 4:se=Q[Oe+1],ze=Q[Oe+2],Ye=Q[Oe+3],(se&192)===128&&(ze&192)===128&&(Ye&192)===128&&(Ue=(Se&15)<<18|(se&63)<<12|(ze&63)<<6|Ye&63,Ue>65535&&Ue<1114112&&(Ke=Ue))}}Ke===null?(Ke=65533,tt=1):Ke>65535&&(Ke-=65536,be.push(Ke>>>10&1023|55296),Ke=56320|Ke&1023),be.push(Ke),Oe+=tt}return F(be)}let H=4096;function F(Q){let K=Q.length;if(K<=H)return String.fromCharCode.apply(String,Q);let J="",be=0;for(;be<K;)J+=String.fromCharCode.apply(String,Q.slice(be,be+=H));return J}function z(Q,K,J){let be="";J=Math.min(Q.length,J);for(let Oe=K;Oe<J;++Oe)be+=String.fromCharCode(Q[Oe]&127);return be}function W(Q,K,J){let be="";J=Math.min(Q.length,J);for(let Oe=K;Oe<J;++Oe)be+=String.fromCharCode(Q[Oe]);return be}function q(Q,K,J){let be=Q.length;(!K||K<0)&&(K=0),(!J||J<0||J>be)&&(J=be);let Oe="";for(let Se=K;Se<J;++Se)Oe+=Pe[Q[Se]];return Oe}function Z(Q,K,J){let be=Q.slice(K,J),Oe="";for(let Se=0;Se<be.length-1;Se+=2)Oe+=String.fromCharCode(be[Se]+be[Se+1]*256);return Oe}a.prototype.slice=function(Q,K){let J=this.length;Q=~~Q,K=K===void 0?J:~~K,Q<0?(Q+=J,Q<0&&(Q=0)):Q>J&&(Q=J),K<0?(K+=J,K<0&&(K=0)):K>J&&(K=J),K<Q&&(K=Q);let be=this.subarray(Q,K);return Object.setPrototypeOf(be,a.prototype),be};function N(Q,K,J){if(Q%1!==0||Q<0)throw new RangeError("offset is not uint");if(Q+K>J)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(Q,K,J){Q=Q>>>0,K=K>>>0,J||N(Q,K,this.length);let be=this[Q],Oe=1,Se=0;for(;++Se<K&&(Oe*=256);)be+=this[Q+Se]*Oe;return be},a.prototype.readUintBE=a.prototype.readUIntBE=function(Q,K,J){Q=Q>>>0,K=K>>>0,J||N(Q,K,this.length);let be=this[Q+--K],Oe=1;for(;K>0&&(Oe*=256);)be+=this[Q+--K]*Oe;return be},a.prototype.readUint8=a.prototype.readUInt8=function(Q,K){return Q=Q>>>0,K||N(Q,1,this.length),this[Q]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(Q,K){return Q=Q>>>0,K||N(Q,2,this.length),this[Q]|this[Q+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(Q,K){return Q=Q>>>0,K||N(Q,2,this.length),this[Q]<<8|this[Q+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(Q,K){return Q=Q>>>0,K||N(Q,4,this.length),(this[Q]|this[Q+1]<<8|this[Q+2]<<16)+this[Q+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(Q,K){return Q=Q>>>0,K||N(Q,4,this.length),this[Q]*16777216+(this[Q+1]<<16|this[Q+2]<<8|this[Q+3])},a.prototype.readBigUInt64LE=Ne(function(Q){Q=Q>>>0,pe(Q,"offset");let K=this[Q],J=this[Q+7];(K===void 0||J===void 0)&&he(Q,this.length-8);let be=K+this[++Q]*2**8+this[++Q]*2**16+this[++Q]*2**24,Oe=this[++Q]+this[++Q]*2**8+this[++Q]*2**16+J*2**24;return BigInt(be)+(BigInt(Oe)<<BigInt(32))}),a.prototype.readBigUInt64BE=Ne(function(Q){Q=Q>>>0,pe(Q,"offset");let K=this[Q],J=this[Q+7];(K===void 0||J===void 0)&&he(Q,this.length-8);let be=K*2**24+this[++Q]*2**16+this[++Q]*2**8+this[++Q],Oe=this[++Q]*2**24+this[++Q]*2**16+this[++Q]*2**8+J;return(BigInt(be)<<BigInt(32))+BigInt(Oe)}),a.prototype.readIntLE=function(Q,K,J){Q=Q>>>0,K=K>>>0,J||N(Q,K,this.length);let be=this[Q],Oe=1,Se=0;for(;++Se<K&&(Oe*=256);)be+=this[Q+Se]*Oe;return Oe*=128,be>=Oe&&(be-=Math.pow(2,8*K)),be},a.prototype.readIntBE=function(Q,K,J){Q=Q>>>0,K=K>>>0,J||N(Q,K,this.length);let be=K,Oe=1,Se=this[Q+--be];for(;be>0&&(Oe*=256);)Se+=this[Q+--be]*Oe;return Oe*=128,Se>=Oe&&(Se-=Math.pow(2,8*K)),Se},a.prototype.readInt8=function(Q,K){return Q=Q>>>0,K||N(Q,1,this.length),this[Q]&128?(255-this[Q]+1)*-1:this[Q]},a.prototype.readInt16LE=function(Q,K){Q=Q>>>0,K||N(Q,2,this.length);let J=this[Q]|this[Q+1]<<8;return J&32768?J|4294901760:J},a.prototype.readInt16BE=function(Q,K){Q=Q>>>0,K||N(Q,2,this.length);let J=this[Q+1]|this[Q]<<8;return J&32768?J|4294901760:J},a.prototype.readInt32LE=function(Q,K){return Q=Q>>>0,K||N(Q,4,this.length),this[Q]|this[Q+1]<<8|this[Q+2]<<16|this[Q+3]<<24},a.prototype.readInt32BE=function(Q,K){return Q=Q>>>0,K||N(Q,4,this.length),this[Q]<<24|this[Q+1]<<16|this[Q+2]<<8|this[Q+3]},a.prototype.readBigInt64LE=Ne(function(Q){Q=Q>>>0,pe(Q,"offset");let K=this[Q],J=this[Q+7];(K===void 0||J===void 0)&&he(Q,this.length-8);let be=this[Q+4]+this[Q+5]*2**8+this[Q+6]*2**16+(J<<24);return(BigInt(be)<<BigInt(32))+BigInt(K+this[++Q]*2**8+this[++Q]*2**16+this[++Q]*2**24)}),a.prototype.readBigInt64BE=Ne(function(Q){Q=Q>>>0,pe(Q,"offset");let K=this[Q],J=this[Q+7];(K===void 0||J===void 0)&&he(Q,this.length-8);let be=(K<<24)+this[++Q]*2**16+this[++Q]*2**8+this[++Q];return(BigInt(be)<<BigInt(32))+BigInt(this[++Q]*2**24+this[++Q]*2**16+this[++Q]*2**8+J)}),a.prototype.readFloatLE=function(Q,K){return Q=Q>>>0,K||N(Q,4,this.length),t.read(this,Q,!0,23,4)},a.prototype.readFloatBE=function(Q,K){return Q=Q>>>0,K||N(Q,4,this.length),t.read(this,Q,!1,23,4)},a.prototype.readDoubleLE=function(Q,K){return Q=Q>>>0,K||N(Q,8,this.length),t.read(this,Q,!0,52,8)},a.prototype.readDoubleBE=function(Q,K){return Q=Q>>>0,K||N(Q,8,this.length),t.read(this,Q,!1,52,8)};function B(Q,K,J,be,Oe,Se){if(!a.isBuffer(Q))throw new TypeError('"buffer" argument must be a Buffer instance');if(K>Oe||K<Se)throw new RangeError('"value" argument is out of bounds');if(J+be>Q.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(Q,K,J,be){if(Q=+Q,K=K>>>0,J=J>>>0,!be){let Ke=Math.pow(2,8*J)-1;B(this,Q,K,J,Ke,0)}let Oe=1,Se=0;for(this[K]=Q&255;++Se<J&&(Oe*=256);)this[K+Se]=Q/Oe&255;return K+J},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(Q,K,J,be){if(Q=+Q,K=K>>>0,J=J>>>0,!be){let Ke=Math.pow(2,8*J)-1;B(this,Q,K,J,Ke,0)}let Oe=J-1,Se=1;for(this[K+Oe]=Q&255;--Oe>=0&&(Se*=256);)this[K+Oe]=Q/Se&255;return K+J},a.prototype.writeUint8=a.prototype.writeUInt8=function(Q,K,J){return Q=+Q,K=K>>>0,J||B(this,Q,K,1,255,0),this[K]=Q&255,K+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(Q,K,J){return Q=+Q,K=K>>>0,J||B(this,Q,K,2,65535,0),this[K]=Q&255,this[K+1]=Q>>>8,K+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(Q,K,J){return Q=+Q,K=K>>>0,J||B(this,Q,K,2,65535,0),this[K]=Q>>>8,this[K+1]=Q&255,K+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(Q,K,J){return Q=+Q,K=K>>>0,J||B(this,Q,K,4,4294967295,0),this[K+3]=Q>>>24,this[K+2]=Q>>>16,this[K+1]=Q>>>8,this[K]=Q&255,K+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(Q,K,J){return Q=+Q,K=K>>>0,J||B(this,Q,K,4,4294967295,0),this[K]=Q>>>24,this[K+1]=Q>>>16,this[K+2]=Q>>>8,this[K+3]=Q&255,K+4};function V(Q,K,J,be,Oe){me(K,be,Oe,Q,J,7);let Se=Number(K&BigInt(4294967295));Q[J++]=Se,Se=Se>>8,Q[J++]=Se,Se=Se>>8,Q[J++]=Se,Se=Se>>8,Q[J++]=Se;let Ke=Number(K>>BigInt(32)&BigInt(4294967295));return Q[J++]=Ke,Ke=Ke>>8,Q[J++]=Ke,Ke=Ke>>8,Q[J++]=Ke,Ke=Ke>>8,Q[J++]=Ke,J}function Y(Q,K,J,be,Oe){me(K,be,Oe,Q,J,7);let Se=Number(K&BigInt(4294967295));Q[J+7]=Se,Se=Se>>8,Q[J+6]=Se,Se=Se>>8,Q[J+5]=Se,Se=Se>>8,Q[J+4]=Se;let Ke=Number(K>>BigInt(32)&BigInt(4294967295));return Q[J+3]=Ke,Ke=Ke>>8,Q[J+2]=Ke,Ke=Ke>>8,Q[J+1]=Ke,Ke=Ke>>8,Q[J]=Ke,J+8}a.prototype.writeBigUInt64LE=Ne(function(Q,K=0){return V(this,Q,K,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=Ne(function(Q,K=0){return Y(this,Q,K,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(Q,K,J,be){if(Q=+Q,K=K>>>0,!be){let tt=Math.pow(2,8*J-1);B(this,Q,K,J,tt-1,-tt)}let Oe=0,Se=1,Ke=0;for(this[K]=Q&255;++Oe<J&&(Se*=256);)Q<0&&Ke===0&&this[K+Oe-1]!==0&&(Ke=1),this[K+Oe]=(Q/Se>>0)-Ke&255;return K+J},a.prototype.writeIntBE=function(Q,K,J,be){if(Q=+Q,K=K>>>0,!be){let tt=Math.pow(2,8*J-1);B(this,Q,K,J,tt-1,-tt)}let Oe=J-1,Se=1,Ke=0;for(this[K+Oe]=Q&255;--Oe>=0&&(Se*=256);)Q<0&&Ke===0&&this[K+Oe+1]!==0&&(Ke=1),this[K+Oe]=(Q/Se>>0)-Ke&255;return K+J},a.prototype.writeInt8=function(Q,K,J){return Q=+Q,K=K>>>0,J||B(this,Q,K,1,127,-128),Q<0&&(Q=255+Q+1),this[K]=Q&255,K+1},a.prototype.writeInt16LE=function(Q,K,J){return Q=+Q,K=K>>>0,J||B(this,Q,K,2,32767,-32768),this[K]=Q&255,this[K+1]=Q>>>8,K+2},a.prototype.writeInt16BE=function(Q,K,J){return Q=+Q,K=K>>>0,J||B(this,Q,K,2,32767,-32768),this[K]=Q>>>8,this[K+1]=Q&255,K+2},a.prototype.writeInt32LE=function(Q,K,J){return Q=+Q,K=K>>>0,J||B(this,Q,K,4,2147483647,-2147483648),this[K]=Q&255,this[K+1]=Q>>>8,this[K+2]=Q>>>16,this[K+3]=Q>>>24,K+4},a.prototype.writeInt32BE=function(Q,K,J){return Q=+Q,K=K>>>0,J||B(this,Q,K,4,2147483647,-2147483648),Q<0&&(Q=4294967295+Q+1),this[K]=Q>>>24,this[K+1]=Q>>>16,this[K+2]=Q>>>8,this[K+3]=Q&255,K+4},a.prototype.writeBigInt64LE=Ne(function(Q,K=0){return V(this,Q,K,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=Ne(function(Q,K=0){return Y(this,Q,K,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ie(Q,K,J,be,Oe,Se){if(J+be>Q.length)throw new RangeError("Index out of range");if(J<0)throw new RangeError("Index out of range")}function ce(Q,K,J,be,Oe){return K=+K,J=J>>>0,Oe||ie(Q,K,J,4),t.write(Q,K,J,be,23,4),J+4}a.prototype.writeFloatLE=function(Q,K,J){return ce(this,Q,K,!0,J)},a.prototype.writeFloatBE=function(Q,K,J){return ce(this,Q,K,!1,J)};function fe(Q,K,J,be,Oe){return K=+K,J=J>>>0,Oe||ie(Q,K,J,8),t.write(Q,K,J,be,52,8),J+8}a.prototype.writeDoubleLE=function(Q,K,J){return fe(this,Q,K,!0,J)},a.prototype.writeDoubleBE=function(Q,K,J){return fe(this,Q,K,!1,J)},a.prototype.copy=function(Q,K,J,be){if(!a.isBuffer(Q))throw new TypeError("argument should be a Buffer");if(J||(J=0),!be&&be!==0&&(be=this.length),K>=Q.length&&(K=Q.length),K||(K=0),be>0&&be<J&&(be=J),be===J||Q.length===0||this.length===0)return 0;if(K<0)throw new RangeError("targetStart out of bounds");if(J<0||J>=this.length)throw new RangeError("Index out of range");if(be<0)throw new RangeError("sourceEnd out of bounds");be>this.length&&(be=this.length),Q.length-K<be-J&&(be=Q.length-K+J);let Oe=be-J;return this===Q&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(K,J,be):Uint8Array.prototype.set.call(Q,this.subarray(J,be),K),Oe},a.prototype.fill=function(Q,K,J,be){if(typeof Q=="string"){if(typeof K=="string"?(be=K,K=0,J=this.length):typeof J=="string"&&(be=J,J=this.length),be!==void 0&&typeof be!="string")throw new TypeError("encoding must be a string");if(typeof be=="string"&&!a.isEncoding(be))throw new TypeError("Unknown encoding: "+be);if(Q.length===1){let Se=Q.charCodeAt(0);(be==="utf8"&&Se<128||be==="latin1")&&(Q=Se)}}else typeof Q=="number"?Q=Q&255:typeof Q=="boolean"&&(Q=Number(Q));if(K<0||this.length<K||this.length<J)throw new RangeError("Out of range index");if(J<=K)return this;K=K>>>0,J=J===void 0?this.length:J>>>0,Q||(Q=0);let Oe;if(typeof Q=="number")for(Oe=K;Oe<J;++Oe)this[Oe]=Q;else{let Se=a.isBuffer(Q)?Q:a.from(Q,be),Ke=Se.length;if(Ke===0)throw new TypeError('The value "'+Q+'" is invalid for argument "value"');for(Oe=0;Oe<J-K;++Oe)this[Oe+K]=Se[Oe%Ke]}return this};let ee={};function ne(Q,K,J){ee[Q]=class extends J{constructor(){super(),Object.defineProperty(this,"message",{value:K.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${Q}]`,this.stack,delete this.name}get code(){return Q}set code(be){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:be,writable:!0})}toString(){return`${this.name} [${Q}]: ${this.message}`}}}ne("ERR_BUFFER_OUT_OF_BOUNDS",function(Q){return Q?`${Q} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),ne("ERR_INVALID_ARG_TYPE",function(Q,K){return`The "${Q}" argument must be of type number. Received type ${typeof K}`},TypeError),ne("ERR_OUT_OF_RANGE",function(Q,K,J){let be=`The value of "${Q}" is out of range.`,Oe=J;return Number.isInteger(J)&&Math.abs(J)>2**32?Oe=ue(String(J)):typeof J=="bigint"&&(Oe=String(J),(J>BigInt(2)**BigInt(32)||J<-(BigInt(2)**BigInt(32)))&&(Oe=ue(Oe)),Oe+="n"),be+=` It must be ${K}. Received ${Oe}`,be},RangeError);function ue(Q){let K="",J=Q.length,be=Q[0]==="-"?1:0;for(;J>=be+4;J-=3)K=`_${Q.slice(J-3,J)}${K}`;return`${Q.slice(0,J)}${K}`}function ye(Q,K,J){pe(K,"offset"),(Q[K]===void 0||Q[K+J]===void 0)&&he(K,Q.length-(J+1))}function me(Q,K,J,be,Oe,Se){if(Q>J||Q<K){let Ke=typeof K=="bigint"?"n":"",tt;throw K===0||K===BigInt(0)?tt=`>= 0${Ke} and < 2${Ke} ** ${(Se+1)*8}${Ke}`:tt=`>= -(2${Ke} ** ${(Se+1)*8-1}${Ke}) and < 2 ** ${(Se+1)*8-1}${Ke}`,new ee.ERR_OUT_OF_RANGE("value",tt,Q)}ye(be,Oe,Se)}function pe(Q,K){if(typeof Q!="number")throw new ee.ERR_INVALID_ARG_TYPE(K,"number",Q)}function he(Q,K,J){throw Math.floor(Q)!==Q?(pe(Q,J),new ee.ERR_OUT_OF_RANGE("offset","an integer",Q)):K<0?new ee.ERR_BUFFER_OUT_OF_BOUNDS:new ee.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${K}`,Q)}let _e=/[^+/0-9A-Za-z-_]/g;function le(Q){if(Q=Q.split("=")[0],Q=Q.trim().replace(_e,""),Q.length<2)return"";for(;Q.length%4!==0;)Q=Q+"=";return Q}function xe(Q,K){K=K||1/0;let J,be=Q.length,Oe=null,Se=[];for(let Ke=0;Ke<be;++Ke){if(J=Q.charCodeAt(Ke),J>55295&&J<57344){if(!Oe){if(J>56319){(K-=3)>-1&&Se.push(239,191,189);continue}else if(Ke+1===be){(K-=3)>-1&&Se.push(239,191,189);continue}Oe=J;continue}if(J<56320){(K-=3)>-1&&Se.push(239,191,189),Oe=J;continue}J=(Oe-55296<<10|J-56320)+65536}else Oe&&(K-=3)>-1&&Se.push(239,191,189);if(Oe=null,J<128){if((K-=1)<0)break;Se.push(J)}else if(J<2048){if((K-=2)<0)break;Se.push(J>>6|192,J&63|128)}else if(J<65536){if((K-=3)<0)break;Se.push(J>>12|224,J>>6&63|128,J&63|128)}else if(J<1114112){if((K-=4)<0)break;Se.push(J>>18|240,J>>12&63|128,J>>6&63|128,J&63|128)}else throw new Error("Invalid code point")}return Se}function we(Q){let K=[];for(let J=0;J<Q.length;++J)K.push(Q.charCodeAt(J)&255);return K}function De(Q,K){let J,be,Oe,Se=[];for(let Ke=0;Ke<Q.length&&!((K-=2)<0);++Ke)J=Q.charCodeAt(Ke),be=J>>8,Oe=J%256,Se.push(Oe),Se.push(be);return Se}function Fe(Q){return e.toByteArray(le(Q))}function Ce(Q,K,J,be){let Oe;for(Oe=0;Oe<be&&!(Oe+J>=K.length||Oe>=Q.length);++Oe)K[Oe+J]=Q[Oe];return Oe}function Te(Q,K){return Q instanceof K||Q!=null&&Q.constructor!=null&&Q.constructor.name!=null&&Q.constructor.name===K.name}function ke(Q){return Q!==Q}let Pe=function(){let Q="0123456789abcdef",K=new Array(256);for(let J=0;J<16;++J){let be=J*16;for(let Oe=0;Oe<16;++Oe)K[be+Oe]=Q[J]+Q[Oe]}return K}();function Ne(Q){return typeof BigInt>"u"?We:Q}function We(){throw new Error("BigInt not supported")}return rm}var yy,TL,b2,kL,rm,OL,Oh,n9,Khe,qhe,ks=Es(()=>{pn(),gn(),mn(),yy={},TL=!1,b2={},kL=!1,rm={},OL=!1,Oh=X$e(),Oh.Buffer,Oh.SlowBuffer,Oh.INSPECT_MAX_BYTES,Oh.kMaxLength,n9=Oh.Buffer,Khe=Oh.INSPECT_MAX_BYTES,qhe=Oh.kMaxLength}),gn=Es(()=>{ks()}),Q$e=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"__esModule",{value:!0});var t=class{constructor(n){this.aliasToTopic={},this.max=n}put(n,r){return r===0||r>this.max?!1:(this.aliasToTopic[r]=n,this.length=Object.keys(this.aliasToTopic).length,!0)}getTopicByAlias(n){return this.aliasToTopic[n]}clear(){this.aliasToTopic={}}};e.default=t}),Ka=Tn((e,t)=>{pn(),gn(),mn(),t.exports={ArrayIsArray(n){return Array.isArray(n)},ArrayPrototypeIncludes(n,r){return n.includes(r)},ArrayPrototypeIndexOf(n,r){return n.indexOf(r)},ArrayPrototypeJoin(n,r){return n.join(r)},ArrayPrototypeMap(n,r){return n.map(r)},ArrayPrototypePop(n,r){return n.pop(r)},ArrayPrototypePush(n,r){return n.push(r)},ArrayPrototypeSlice(n,r,i){return n.slice(r,i)},Error,FunctionPrototypeCall(n,r,...i){return n.call(r,...i)},FunctionPrototypeSymbolHasInstance(n,r){return Function.prototype[Symbol.hasInstance].call(n,r)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(n,r){return Object.defineProperties(n,r)},ObjectDefineProperty(n,r,i){return Object.defineProperty(n,r,i)},ObjectGetOwnPropertyDescriptor(n,r){return Object.getOwnPropertyDescriptor(n,r)},ObjectKeys(n){return Object.keys(n)},ObjectSetPrototypeOf(n,r){return Object.setPrototypeOf(n,r)},Promise,PromisePrototypeCatch(n,r){return n.catch(r)},PromisePrototypeThen(n,r,i){return n.then(r,i)},PromiseReject(n){return Promise.reject(n)},ReflectApply:Reflect.apply,RegExpPrototypeTest(n,r){return n.test(r)},SafeSet:Set,String,StringPrototypeSlice(n,r,i){return n.slice(r,i)},StringPrototypeToLowerCase(n){return n.toLowerCase()},StringPrototypeToUpperCase(n){return n.toUpperCase()},StringPrototypeTrim(n){return n.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,TypedArrayPrototypeSet(n,r,i){return n.set(r,i)},Uint8Array}}),sp=Tn((e,t)=>{pn(),gn(),mn();var n=(ks(),to(Ts)),r=Object.getPrototypeOf(async function(){}).constructor,i=globalThis.Blob||n.Blob,o=typeof i<"u"?function(s){return s instanceof i}:function(s){return!1},a=class extends Error{constructor(s){if(!Array.isArray(s))throw new TypeError(`Expected input to be an Array, got ${typeof s}`);let l="";for(let c=0;c<s.length;c++)l+=` ${s[c].stack}
|
||
`;super(l),this.name="AggregateError",this.errors=s}};t.exports={AggregateError:a,kEmptyObject:Object.freeze({}),once(s){let l=!1;return function(...c){l||(l=!0,s.apply(this,c))}},createDeferredPromise:function(){let s,l;return{promise:new Promise((c,u)=>{s=c,l=u}),resolve:s,reject:l}},promisify(s){return new Promise((l,c)=>{s((u,...d)=>u?c(u):l(...d))})},debuglog(){return function(){}},format(s,...l){return s.replace(/%([sdifj])/g,function(...[c,u]){let d=l.shift();return u==="f"?d.toFixed(6):u==="j"?JSON.stringify(d):u==="s"&&typeof d=="object"?`${d.constructor!==Object?d.constructor.name:""} {}`.trim():d.toString()})},inspect(s){switch(typeof s){case"string":if(s.includes("'"))if(s.includes('"')){if(!s.includes("`")&&!s.includes("${"))return`\`${s}\``}else return`"${s}"`;return`'${s}'`;case"number":return isNaN(s)?"NaN":Object.is(s,-0)?String(s):s;case"bigint":return`${String(s)}n`;case"boolean":case"undefined":return String(s);case"object":return"{}"}},types:{isAsyncFunction(s){return s instanceof r},isArrayBufferView(s){return ArrayBuffer.isView(s)}},isBlob:o},t.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}),Az=Tn((e,t)=>{pn(),gn(),mn();var{AbortController:n,AbortSignal:r}=typeof self<"u"?self:typeof window<"u"?window:void 0;t.exports=n,t.exports.AbortSignal=r,t.exports.default=n}),Xl=Tn((e,t)=>{pn(),gn(),mn();var{format:n,inspect:r,AggregateError:i}=sp(),o=globalThis.AggregateError||i,a=Symbol("kIsNodeError"),s=["string","function","number","object","Function","Object","boolean","bigint","symbol"],l=/^([A-Z][a-z0-9]*)+$/,c="__node_internal_",u={};function d(b,C){if(!b)throw new u.ERR_INTERNAL_ASSERTION(C)}function h(b){let C="",_=b.length,T=b[0]==="-"?1:0;for(;_>=T+4;_-=3)C=`_${b.slice(_-3,_)}${C}`;return`${b.slice(0,_)}${C}`}function p(b,C,_){if(typeof C=="function")return d(C.length<=_.length,`Code: ${b}; The provided arguments length (${_.length}) does not match the required ones (${C.length}).`),C(..._);let T=(C.match(/%[dfijoOs]/g)||[]).length;return d(T===_.length,`Code: ${b}; The provided arguments length (${_.length}) does not match the required ones (${T}).`),_.length===0?C:n(C,..._)}function m(b,C,_){_||(_=Error);class T extends _{constructor(...E){super(p(b,C,E))}toString(){return`${this.name} [${b}]: ${this.message}`}}Object.defineProperties(T.prototype,{name:{value:_.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${b}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),T.prototype.code=b,T.prototype[a]=!0,u[b]=T}function v(b){let C=c+b.name;return Object.defineProperty(b,"name",{value:C}),b}function y(b,C){if(b&&C&&b!==C){if(Array.isArray(C.errors))return C.errors.push(b),C;let _=new o([C,b],C.message);return _.code=C.code,_}return b||C}var S=class extends Error{constructor(b="The operation was aborted",C=void 0){if(C!==void 0&&typeof C!="object")throw new u.ERR_INVALID_ARG_TYPE("options","Object",C);super(b,C),this.code="ABORT_ERR",this.name="AbortError"}};m("ERR_ASSERTION","%s",Error),m("ERR_INVALID_ARG_TYPE",(b,C,_)=>{d(typeof b=="string","'name' must be a string"),Array.isArray(C)||(C=[C]);let T="The ";b.endsWith(" argument")?T+=`${b} `:T+=`"${b}" ${b.includes(".")?"property":"argument"} `,T+="must be ";let x=[],E=[],k=[];for(let P of C)d(typeof P=="string","All expected entries have to be of type string"),s.includes(P)?x.push(P.toLowerCase()):l.test(P)?E.push(P):(d(P!=="object",'The value "object" should be written as "Object"'),k.push(P));if(E.length>0){let P=x.indexOf("object");P!==-1&&(x.splice(x,P,1),E.push("Object"))}if(x.length>0){switch(x.length){case 1:T+=`of type ${x[0]}`;break;case 2:T+=`one of type ${x[0]} or ${x[1]}`;break;default:{let P=x.pop();T+=`one of type ${x.join(", ")}, or ${P}`}}(E.length>0||k.length>0)&&(T+=" or ")}if(E.length>0){switch(E.length){case 1:T+=`an instance of ${E[0]}`;break;case 2:T+=`an instance of ${E[0]} or ${E[1]}`;break;default:{let P=E.pop();T+=`an instance of ${E.join(", ")}, or ${P}`}}k.length>0&&(T+=" or ")}switch(k.length){case 0:break;case 1:k[0].toLowerCase()!==k[0]&&(T+="an "),T+=`${k[0]}`;break;case 2:T+=`one of ${k[0]} or ${k[1]}`;break;default:{let P=k.pop();T+=`one of ${k.join(", ")}, or ${P}`}}if(_==null)T+=`. Received ${_}`;else if(typeof _=="function"&&_.name)T+=`. Received function ${_.name}`;else if(typeof _=="object"){var M;if((M=_.constructor)!==null&&M!==void 0&&M.name)T+=`. Received an instance of ${_.constructor.name}`;else{let P=r(_,{depth:-1});T+=`. Received ${P}`}}else{let P=r(_,{colors:!1});P.length>25&&(P=`${P.slice(0,25)}...`),T+=`. Received type ${typeof _} (${P})`}return T},TypeError),m("ERR_INVALID_ARG_VALUE",(b,C,_="is invalid")=>{let T=r(C);return T.length>128&&(T=T.slice(0,128)+"..."),`The ${b.includes(".")?"property":"argument"} '${b}' ${_}. Received ${T}`},TypeError),m("ERR_INVALID_RETURN_VALUE",(b,C,_)=>{var T;let x=_!=null&&(T=_.constructor)!==null&&T!==void 0&&T.name?`instance of ${_.constructor.name}`:`type ${typeof _}`;return`Expected ${b} to be returned from the "${C}" function but got ${x}.`},TypeError),m("ERR_MISSING_ARGS",(...b)=>{d(b.length>0,"At least one arg needs to be specified");let C,_=b.length;switch(b=(Array.isArray(b)?b:[b]).map(T=>`"${T}"`).join(" or "),_){case 1:C+=`The ${b[0]} argument`;break;case 2:C+=`The ${b[0]} and ${b[1]} arguments`;break;default:{let T=b.pop();C+=`The ${b.join(", ")}, and ${T} arguments`}break}return`${C} must be specified`},TypeError),m("ERR_OUT_OF_RANGE",(b,C,_)=>{d(C,'Missing "range" argument');let T;return Number.isInteger(_)&&Math.abs(_)>2**32?T=h(String(_)):typeof _=="bigint"?(T=String(_),(_>2n**32n||_<-(2n**32n))&&(T=h(T)),T+="n"):T=r(_),`The value of "${b}" is out of range. It must be ${C}. Received ${T}`},RangeError),m("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),m("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),m("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),m("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),m("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),m("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),m("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),m("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),m("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),m("ERR_STREAM_WRITE_AFTER_END","write after end",Error),m("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),t.exports={AbortError:S,aggregateTwoErrors:v(y),hideStackFrames:v,codes:u}}),H6=Tn((e,t)=>{pn(),gn(),mn();var{ArrayIsArray:n,ArrayPrototypeIncludes:r,ArrayPrototypeJoin:i,ArrayPrototypeMap:o,NumberIsInteger:a,NumberIsNaN:s,NumberMAX_SAFE_INTEGER:l,NumberMIN_SAFE_INTEGER:c,NumberParseInt:u,ObjectPrototypeHasOwnProperty:d,RegExpPrototypeExec:h,String:p,StringPrototypeToUpperCase:m,StringPrototypeTrim:v}=Ka(),{hideStackFrames:y,codes:{ERR_SOCKET_BAD_PORT:S,ERR_INVALID_ARG_TYPE:b,ERR_INVALID_ARG_VALUE:C,ERR_OUT_OF_RANGE:_,ERR_UNKNOWN_SIGNAL:T}}=Xl(),{normalizeEncoding:x}=sp(),{isAsyncFunction:E,isArrayBufferView:k}=sp().types,M={};function P(Ce){return Ce===(Ce|0)}function D(Ce){return Ce===Ce>>>0}var R=/^[0-7]+$/,A="must be a 32-bit unsigned integer or an octal string";function H(Ce,Te,ke){if(typeof Ce>"u"&&(Ce=ke),typeof Ce=="string"){if(h(R,Ce)===null)throw new C(Te,Ce,A);Ce=u(Ce,8)}return W(Ce,Te),Ce}var F=y((Ce,Te,ke=c,Pe=l)=>{if(typeof Ce!="number")throw new b(Te,"number",Ce);if(!a(Ce))throw new _(Te,"an integer",Ce);if(Ce<ke||Ce>Pe)throw new _(Te,`>= ${ke} && <= ${Pe}`,Ce)}),z=y((Ce,Te,ke=-2147483648,Pe=2147483647)=>{if(typeof Ce!="number")throw new b(Te,"number",Ce);if(!a(Ce))throw new _(Te,"an integer",Ce);if(Ce<ke||Ce>Pe)throw new _(Te,`>= ${ke} && <= ${Pe}`,Ce)}),W=y((Ce,Te,ke=!1)=>{if(typeof Ce!="number")throw new b(Te,"number",Ce);if(!a(Ce))throw new _(Te,"an integer",Ce);let Pe=ke?1:0,Ne=4294967295;if(Ce<Pe||Ce>Ne)throw new _(Te,`>= ${Pe} && <= ${Ne}`,Ce)});function q(Ce,Te){if(typeof Ce!="string")throw new b(Te,"string",Ce)}function Z(Ce,Te,ke=void 0,Pe){if(typeof Ce!="number")throw new b(Te,"number",Ce);if(ke!=null&&Ce<ke||Pe!=null&&Ce>Pe||(ke!=null||Pe!=null)&&s(Ce))throw new _(Te,`${ke!=null?`>= ${ke}`:""}${ke!=null&&Pe!=null?" && ":""}${Pe!=null?`<= ${Pe}`:""}`,Ce)}var N=y((Ce,Te,ke)=>{if(!r(ke,Ce)){let Pe="must be one of: "+i(o(ke,Ne=>typeof Ne=="string"?`'${Ne}'`:p(Ne)),", ");throw new C(Te,Ce,Pe)}});function B(Ce,Te){if(typeof Ce!="boolean")throw new b(Te,"boolean",Ce)}function V(Ce,Te,ke){return Ce==null||!d(Ce,Te)?ke:Ce[Te]}var Y=y((Ce,Te,ke=null)=>{let Pe=V(ke,"allowArray",!1),Ne=V(ke,"allowFunction",!1);if(!V(ke,"nullable",!1)&&Ce===null||!Pe&&n(Ce)||typeof Ce!="object"&&(!Ne||typeof Ce!="function"))throw new b(Te,"Object",Ce)}),ie=y((Ce,Te)=>{if(Ce!=null&&typeof Ce!="object"&&typeof Ce!="function")throw new b(Te,"a dictionary",Ce)}),ce=y((Ce,Te,ke=0)=>{if(!n(Ce))throw new b(Te,"Array",Ce);if(Ce.length<ke){let Pe=`must be longer than ${ke}`;throw new C(Te,Ce,Pe)}});function fe(Ce,Te){ce(Ce,Te);for(let ke=0;ke<Ce.length;ke++)q(Ce[ke],`${Te}[${ke}]`)}function ee(Ce,Te){ce(Ce,Te);for(let ke=0;ke<Ce.length;ke++)B(Ce[ke],`${Te}[${ke}]`)}function ne(Ce,Te="signal"){if(q(Ce,Te),M[Ce]===void 0)throw M[m(Ce)]!==void 0?new T(Ce+" (signals must use all capital letters)"):new T(Ce)}var ue=y((Ce,Te="buffer")=>{if(!k(Ce))throw new b(Te,["Buffer","TypedArray","DataView"],Ce)});function ye(Ce,Te){let ke=x(Te),Pe=Ce.length;if(ke==="hex"&&Pe%2!==0)throw new C("encoding",Te,`is invalid for data of length ${Pe}`)}function me(Ce,Te="Port",ke=!0){if(typeof Ce!="number"&&typeof Ce!="string"||typeof Ce=="string"&&v(Ce).length===0||+Ce!==+Ce>>>0||Ce>65535||Ce===0&&!ke)throw new S(Te,Ce,ke);return Ce|0}var pe=y((Ce,Te)=>{if(Ce!==void 0&&(Ce===null||typeof Ce!="object"||!("aborted"in Ce)))throw new b(Te,"AbortSignal",Ce)}),he=y((Ce,Te)=>{if(typeof Ce!="function")throw new b(Te,"Function",Ce)}),_e=y((Ce,Te)=>{if(typeof Ce!="function"||E(Ce))throw new b(Te,"Function",Ce)}),le=y((Ce,Te)=>{if(Ce!==void 0)throw new b(Te,"undefined",Ce)});function xe(Ce,Te,ke){if(!r(ke,Ce))throw new b(Te,`('${i(ke,"|")}')`,Ce)}var we=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function De(Ce,Te){if(typeof Ce>"u"||!h(we,Ce))throw new C(Te,Ce,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function Fe(Ce){if(typeof Ce=="string")return De(Ce,"hints"),Ce;if(n(Ce)){let Te=Ce.length,ke="";if(Te===0)return ke;for(let Pe=0;Pe<Te;Pe++){let Ne=Ce[Pe];De(Ne,"hints"),ke+=Ne,Pe!==Te-1&&(ke+=", ")}return ke}throw new C("hints",Ce,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}t.exports={isInt32:P,isUint32:D,parseFileMode:H,validateArray:ce,validateStringArray:fe,validateBooleanArray:ee,validateBoolean:B,validateBuffer:ue,validateDictionary:ie,validateEncoding:ye,validateFunction:he,validateInt32:z,validateInteger:F,validateNumber:Z,validateObject:Y,validateOneOf:N,validatePlainFunction:_e,validatePort:me,validateSignalName:ne,validateString:q,validateUint32:W,validateUndefined:le,validateUnion:xe,validateAbortSignal:pe,validateLinkHeaderValue:Fe}}),zv=Tn((e,t)=>{pn(),gn(),mn();var n=t.exports={},r,i;function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?r=setTimeout:r=o}catch{r=o}try{typeof clearTimeout=="function"?i=clearTimeout:i=a}catch{i=a}})();function s(S){if(r===setTimeout)return setTimeout(S,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(S,0);try{return r(S,0)}catch{try{return r.call(null,S,0)}catch{return r.call(this,S,0)}}}function l(S){if(i===clearTimeout)return clearTimeout(S);if((i===a||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(S);try{return i(S)}catch{try{return i.call(null,S)}catch{return i.call(this,S)}}}var c=[],u=!1,d,h=-1;function p(){!u||!d||(u=!1,d.length?c=d.concat(c):h=-1,c.length&&m())}function m(){if(!u){var S=s(p);u=!0;for(var b=c.length;b;){for(d=c,c=[];++h<b;)d&&d[h].run();h=-1,b=c.length}d=null,u=!1,l(S)}}n.nextTick=function(S){var b=new Array(arguments.length-1);if(arguments.length>1)for(var C=1;C<arguments.length;C++)b[C-1]=arguments[C];c.push(new v(S,b)),c.length===1&&!u&&s(m)};function v(S,b){this.fun=S,this.array=b}v.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={};function y(){}n.on=y,n.addListener=y,n.once=y,n.off=y,n.removeListener=y,n.removeAllListeners=y,n.emit=y,n.prependListener=y,n.prependOnceListener=y,n.listeners=function(S){return[]},n.binding=function(S){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(S){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}}),Cp=Tn((e,t)=>{pn(),gn(),mn();var{Symbol:n,SymbolAsyncIterator:r,SymbolIterator:i,SymbolFor:o}=Ka(),a=n("kDestroyed"),s=n("kIsErrored"),l=n("kIsReadable"),c=n("kIsDisturbed"),u=o("nodejs.webstream.isClosedPromise"),d=o("nodejs.webstream.controllerErrorFunction");function h(V,Y=!1){var ie;return!!(V&&typeof V.pipe=="function"&&typeof V.on=="function"&&(!Y||typeof V.pause=="function"&&typeof V.resume=="function")&&(!V._writableState||((ie=V._readableState)===null||ie===void 0?void 0:ie.readable)!==!1)&&(!V._writableState||V._readableState))}function p(V){var Y;return!!(V&&typeof V.write=="function"&&typeof V.on=="function"&&(!V._readableState||((Y=V._writableState)===null||Y===void 0?void 0:Y.writable)!==!1))}function m(V){return!!(V&&typeof V.pipe=="function"&&V._readableState&&typeof V.on=="function"&&typeof V.write=="function")}function v(V){return V&&(V._readableState||V._writableState||typeof V.write=="function"&&typeof V.on=="function"||typeof V.pipe=="function"&&typeof V.on=="function")}function y(V){return!!(V&&!v(V)&&typeof V.pipeThrough=="function"&&typeof V.getReader=="function"&&typeof V.cancel=="function")}function S(V){return!!(V&&!v(V)&&typeof V.getWriter=="function"&&typeof V.abort=="function")}function b(V){return!!(V&&!v(V)&&typeof V.readable=="object"&&typeof V.writable=="object")}function C(V){return y(V)||S(V)||b(V)}function _(V,Y){return V==null?!1:Y===!0?typeof V[r]=="function":Y===!1?typeof V[i]=="function":typeof V[r]=="function"||typeof V[i]=="function"}function T(V){if(!v(V))return null;let Y=V._writableState,ie=V._readableState,ce=Y||ie;return!!(V.destroyed||V[a]||ce!=null&&ce.destroyed)}function x(V){if(!p(V))return null;if(V.writableEnded===!0)return!0;let Y=V._writableState;return Y!=null&&Y.errored?!1:typeof(Y==null?void 0:Y.ended)!="boolean"?null:Y.ended}function E(V,Y){if(!p(V))return null;if(V.writableFinished===!0)return!0;let ie=V._writableState;return ie!=null&&ie.errored?!1:typeof(ie==null?void 0:ie.finished)!="boolean"?null:!!(ie.finished||Y===!1&&ie.ended===!0&&ie.length===0)}function k(V){if(!h(V))return null;if(V.readableEnded===!0)return!0;let Y=V._readableState;return!Y||Y.errored?!1:typeof(Y==null?void 0:Y.ended)!="boolean"?null:Y.ended}function M(V,Y){if(!h(V))return null;let ie=V._readableState;return ie!=null&&ie.errored?!1:typeof(ie==null?void 0:ie.endEmitted)!="boolean"?null:!!(ie.endEmitted||Y===!1&&ie.ended===!0&&ie.length===0)}function P(V){return V&&V[l]!=null?V[l]:typeof(V==null?void 0:V.readable)!="boolean"?null:T(V)?!1:h(V)&&V.readable&&!M(V)}function D(V){return typeof(V==null?void 0:V.writable)!="boolean"?null:T(V)?!1:p(V)&&V.writable&&!x(V)}function R(V,Y){return v(V)?T(V)?!0:!((Y==null?void 0:Y.readable)!==!1&&P(V)||(Y==null?void 0:Y.writable)!==!1&&D(V)):null}function A(V){var Y,ie;return v(V)?V.writableErrored?V.writableErrored:(Y=(ie=V._writableState)===null||ie===void 0?void 0:ie.errored)!==null&&Y!==void 0?Y:null:null}function H(V){var Y,ie;return v(V)?V.readableErrored?V.readableErrored:(Y=(ie=V._readableState)===null||ie===void 0?void 0:ie.errored)!==null&&Y!==void 0?Y:null:null}function F(V){if(!v(V))return null;if(typeof V.closed=="boolean")return V.closed;let Y=V._writableState,ie=V._readableState;return typeof(Y==null?void 0:Y.closed)=="boolean"||typeof(ie==null?void 0:ie.closed)=="boolean"?(Y==null?void 0:Y.closed)||(ie==null?void 0:ie.closed):typeof V._closed=="boolean"&&z(V)?V._closed:null}function z(V){return typeof V._closed=="boolean"&&typeof V._defaultKeepAlive=="boolean"&&typeof V._removedConnection=="boolean"&&typeof V._removedContLen=="boolean"}function W(V){return typeof V._sent100=="boolean"&&z(V)}function q(V){var Y;return typeof V._consuming=="boolean"&&typeof V._dumped=="boolean"&&((Y=V.req)===null||Y===void 0?void 0:Y.upgradeOrConnect)===void 0}function Z(V){if(!v(V))return null;let Y=V._writableState,ie=V._readableState,ce=Y||ie;return!ce&&W(V)||!!(ce&&ce.autoDestroy&&ce.emitClose&&ce.closed===!1)}function N(V){var Y;return!!(V&&((Y=V[c])!==null&&Y!==void 0?Y:V.readableDidRead||V.readableAborted))}function B(V){var Y,ie,ce,fe,ee,ne,ue,ye,me,pe;return!!(V&&((Y=(ie=(ce=(fe=(ee=(ne=V[s])!==null&&ne!==void 0?ne:V.readableErrored)!==null&&ee!==void 0?ee:V.writableErrored)!==null&&fe!==void 0?fe:(ue=V._readableState)===null||ue===void 0?void 0:ue.errorEmitted)!==null&&ce!==void 0?ce:(ye=V._writableState)===null||ye===void 0?void 0:ye.errorEmitted)!==null&&ie!==void 0?ie:(me=V._readableState)===null||me===void 0?void 0:me.errored)!==null&&Y!==void 0?Y:!((pe=V._writableState)===null||pe===void 0)&&pe.errored))}t.exports={kDestroyed:a,isDisturbed:N,kIsDisturbed:c,isErrored:B,kIsErrored:s,isReadable:P,kIsReadable:l,kIsClosedPromise:u,kControllerErrorFunction:d,isClosed:F,isDestroyed:T,isDuplexNodeStream:m,isFinished:R,isIterable:_,isReadableNodeStream:h,isReadableStream:y,isReadableEnded:k,isReadableFinished:M,isReadableErrored:H,isNodeStream:v,isWebStream:C,isWritable:D,isWritableNodeStream:p,isWritableStream:S,isWritableEnded:x,isWritableFinished:E,isWritableErrored:A,isServerRequest:q,isServerResponse:W,willEmitClose:Z,isTransformStream:b}}),hg=Tn((e,t)=>{pn(),gn(),mn();var n=zv(),{AbortError:r,codes:i}=Xl(),{ERR_INVALID_ARG_TYPE:o,ERR_STREAM_PREMATURE_CLOSE:a}=i,{kEmptyObject:s,once:l}=sp(),{validateAbortSignal:c,validateFunction:u,validateObject:d,validateBoolean:h}=H6(),{Promise:p,PromisePrototypeThen:m}=Ka(),{isClosed:v,isReadable:y,isReadableNodeStream:S,isReadableStream:b,isReadableFinished:C,isReadableErrored:_,isWritable:T,isWritableNodeStream:x,isWritableStream:E,isWritableFinished:k,isWritableErrored:M,isNodeStream:P,willEmitClose:D,kIsClosedPromise:R}=Cp();function A(q){return q.setHeader&&typeof q.abort=="function"}var H=()=>{};function F(q,Z,N){var B,V;if(arguments.length===2?(N=Z,Z=s):Z==null?Z=s:d(Z,"options"),u(N,"callback"),c(Z.signal,"options.signal"),N=l(N),b(q)||E(q))return z(q,Z,N);if(!P(q))throw new o("stream",["ReadableStream","WritableStream","Stream"],q);let Y=(B=Z.readable)!==null&&B!==void 0?B:S(q),ie=(V=Z.writable)!==null&&V!==void 0?V:x(q),ce=q._writableState,fe=q._readableState,ee=()=>{q.writable||ye()},ne=D(q)&&S(q)===Y&&x(q)===ie,ue=k(q,!1),ye=()=>{ue=!0,q.destroyed&&(ne=!1),!(ne&&(!q.readable||Y))&&(!Y||me)&&N.call(q)},me=C(q,!1),pe=()=>{me=!0,q.destroyed&&(ne=!1),!(ne&&(!q.writable||ie))&&(!ie||ue)&&N.call(q)},he=Fe=>{N.call(q,Fe)},_e=v(q),le=()=>{_e=!0;let Fe=M(q)||_(q);if(Fe&&typeof Fe!="boolean")return N.call(q,Fe);if(Y&&!me&&S(q,!0)&&!C(q,!1))return N.call(q,new a);if(ie&&!ue&&!k(q,!1))return N.call(q,new a);N.call(q)},xe=()=>{_e=!0;let Fe=M(q)||_(q);if(Fe&&typeof Fe!="boolean")return N.call(q,Fe);N.call(q)},we=()=>{q.req.on("finish",ye)};A(q)?(q.on("complete",ye),ne||q.on("abort",le),q.req?we():q.on("request",we)):ie&&!ce&&(q.on("end",ee),q.on("close",ee)),!ne&&typeof q.aborted=="boolean"&&q.on("aborted",le),q.on("end",pe),q.on("finish",ye),Z.error!==!1&&q.on("error",he),q.on("close",le),_e?n.nextTick(le):ce!=null&&ce.errorEmitted||fe!=null&&fe.errorEmitted?ne||n.nextTick(xe):(!Y&&(!ne||y(q))&&(ue||T(q)===!1)||!ie&&(!ne||T(q))&&(me||y(q)===!1)||fe&&q.req&&q.aborted)&&n.nextTick(xe);let De=()=>{N=H,q.removeListener("aborted",le),q.removeListener("complete",ye),q.removeListener("abort",le),q.removeListener("request",we),q.req&&q.req.removeListener("finish",ye),q.removeListener("end",ee),q.removeListener("close",ee),q.removeListener("finish",ye),q.removeListener("end",pe),q.removeListener("error",he),q.removeListener("close",le)};if(Z.signal&&!_e){let Fe=()=>{let Ce=N;De(),Ce.call(q,new r(void 0,{cause:Z.signal.reason}))};if(Z.signal.aborted)n.nextTick(Fe);else{let Ce=N;N=l((...Te)=>{Z.signal.removeEventListener("abort",Fe),Ce.apply(q,Te)}),Z.signal.addEventListener("abort",Fe)}}return De}function z(q,Z,N){let B=!1,V=H;if(Z.signal)if(V=()=>{B=!0,N.call(q,new r(void 0,{cause:Z.signal.reason}))},Z.signal.aborted)n.nextTick(V);else{let ie=N;N=l((...ce)=>{Z.signal.removeEventListener("abort",V),ie.apply(q,ce)}),Z.signal.addEventListener("abort",V)}let Y=(...ie)=>{B||n.nextTick(()=>N.apply(q,ie))};return m(q[R].promise,Y,Y),H}function W(q,Z){var N;let B=!1;return Z===null&&(Z=s),(N=Z)!==null&&N!==void 0&&N.cleanup&&(h(Z.cleanup,"cleanup"),B=Z.cleanup),new p((V,Y)=>{let ie=F(q,Z,ce=>{B&&ie(),ce?Y(ce):V()})})}t.exports=F,t.exports.finished=W}),LS=Tn((e,t)=>{pn(),gn(),mn();var n=zv(),{aggregateTwoErrors:r,codes:{ERR_MULTIPLE_CALLBACK:i},AbortError:o}=Xl(),{Symbol:a}=Ka(),{kDestroyed:s,isDestroyed:l,isFinished:c,isServerRequest:u}=Cp(),d=a("kDestroy"),h=a("kConstruct");function p(R,A,H){R&&(R.stack,A&&!A.errored&&(A.errored=R),H&&!H.errored&&(H.errored=R))}function m(R,A){let H=this._readableState,F=this._writableState,z=F||H;return F!=null&&F.destroyed||H!=null&&H.destroyed?(typeof A=="function"&&A(),this):(p(R,F,H),F&&(F.destroyed=!0),H&&(H.destroyed=!0),z.constructed?v(this,R,A):this.once(d,function(W){v(this,r(W,R),A)}),this)}function v(R,A,H){let F=!1;function z(W){if(F)return;F=!0;let q=R._readableState,Z=R._writableState;p(W,Z,q),Z&&(Z.closed=!0),q&&(q.closed=!0),typeof H=="function"&&H(W),W?n.nextTick(y,R,W):n.nextTick(S,R)}try{R._destroy(A||null,z)}catch(W){z(W)}}function y(R,A){b(R,A),S(R)}function S(R){let A=R._readableState,H=R._writableState;H&&(H.closeEmitted=!0),A&&(A.closeEmitted=!0),(H!=null&&H.emitClose||A!=null&&A.emitClose)&&R.emit("close")}function b(R,A){let H=R._readableState,F=R._writableState;F!=null&&F.errorEmitted||H!=null&&H.errorEmitted||(F&&(F.errorEmitted=!0),H&&(H.errorEmitted=!0),R.emit("error",A))}function C(){let R=this._readableState,A=this._writableState;R&&(R.constructed=!0,R.closed=!1,R.closeEmitted=!1,R.destroyed=!1,R.errored=null,R.errorEmitted=!1,R.reading=!1,R.ended=R.readable===!1,R.endEmitted=R.readable===!1),A&&(A.constructed=!0,A.destroyed=!1,A.closed=!1,A.closeEmitted=!1,A.errored=null,A.errorEmitted=!1,A.finalCalled=!1,A.prefinished=!1,A.ended=A.writable===!1,A.ending=A.writable===!1,A.finished=A.writable===!1)}function _(R,A,H){let F=R._readableState,z=R._writableState;if(z!=null&&z.destroyed||F!=null&&F.destroyed)return this;F!=null&&F.autoDestroy||z!=null&&z.autoDestroy?R.destroy(A):A&&(A.stack,z&&!z.errored&&(z.errored=A),F&&!F.errored&&(F.errored=A),H?n.nextTick(b,R,A):b(R,A))}function T(R,A){if(typeof R._construct!="function")return;let H=R._readableState,F=R._writableState;H&&(H.constructed=!1),F&&(F.constructed=!1),R.once(h,A),!(R.listenerCount(h)>1)&&n.nextTick(x,R)}function x(R){let A=!1;function H(F){if(A){_(R,F??new i);return}A=!0;let z=R._readableState,W=R._writableState,q=W||z;z&&(z.constructed=!0),W&&(W.constructed=!0),q.destroyed?R.emit(d,F):F?_(R,F,!0):n.nextTick(E,R)}try{R._construct(F=>{n.nextTick(H,F)})}catch(F){n.nextTick(H,F)}}function E(R){R.emit(h)}function k(R){return(R==null?void 0:R.setHeader)&&typeof R.abort=="function"}function M(R){R.emit("close")}function P(R,A){R.emit("error",A),n.nextTick(M,R)}function D(R,A){!R||l(R)||(!A&&!c(R)&&(A=new o),u(R)?(R.socket=null,R.destroy(A)):k(R)?R.abort():k(R.req)?R.req.abort():typeof R.destroy=="function"?R.destroy(A):typeof R.close=="function"?R.close():A?n.nextTick(P,R,A):n.nextTick(M,R),R.destroyed||(R[s]=!0))}t.exports={construct:T,destroyer:D,destroy:m,undestroy:C,errorOrDestroy:_}});function Yi(){Yi.init.call(this)}function b3(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function Ghe(e){return e._maxListeners===void 0?Yi.defaultMaxListeners:e._maxListeners}function vQ(e,t,n,r){var i,o,a,s;if(b3(n),(o=e._events)===void 0?(o=e._events=Object.create(null),e._eventsCount=0):(o.newListener!==void 0&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),a===void 0)a=o[t]=n,++e._eventsCount;else if(typeof a=="function"?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=Ghe(e))>0&&a.length>i&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,s=l,console&&console.warn&&console.warn(s)}return e}function Z$e(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function yQ(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=Z$e.bind(r);return i.listener=n,r.wrapFn=i,i}function bQ(e,t,n){var r=e._events;if(r===void 0)return[];var i=r[t];return i===void 0?[]:typeof i=="function"?n?[i.listener||i]:[i]:n?function(o){for(var a=new Array(o.length),s=0;s<a.length;++s)a[s]=o[s].listener||o[s];return a}(i):Yhe(i,i.length)}function SQ(e){var t=this._events;if(t!==void 0){var n=t[e];if(typeof n=="function")return 1;if(n!==void 0)return n.length}return 0}function Yhe(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}var CQ,xQ,Bg,F$,j$,B$,yc,wQ=Es(()=>{pn(),gn(),mn(),Bg=typeof Reflect=="object"?Reflect:null,F$=Bg&&typeof Bg.apply=="function"?Bg.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)},xQ=Bg&&typeof Bg.ownKeys=="function"?Bg.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)},j$=Number.isNaN||function(e){return e!=e},CQ=Yi,Yi.EventEmitter=Yi,Yi.prototype._events=void 0,Yi.prototype._eventsCount=0,Yi.prototype._maxListeners=void 0,B$=10,Object.defineProperty(Yi,"defaultMaxListeners",{enumerable:!0,get:function(){return B$},set:function(e){if(typeof e!="number"||e<0||j$(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");B$=e}}),Yi.init=function(){this._events!==void 0&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Yi.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||j$(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},Yi.prototype.getMaxListeners=function(){return Ghe(this)},Yi.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r=e==="error",i=this._events;if(i!==void 0)r=r&&i.error===void 0;else if(!r)return!1;if(r){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var s=i[e];if(s===void 0)return!1;if(typeof s=="function")F$(s,this,t);else{var l=s.length,c=Yhe(s,l);for(n=0;n<l;++n)F$(c[n],this,t)}return!0},Yi.prototype.addListener=function(e,t){return vQ(this,e,t,!1)},Yi.prototype.on=Yi.prototype.addListener,Yi.prototype.prependListener=function(e,t){return vQ(this,e,t,!0)},Yi.prototype.once=function(e,t){return b3(t),this.on(e,yQ(this,e,t)),this},Yi.prototype.prependOnceListener=function(e,t){return b3(t),this.prependListener(e,yQ(this,e,t)),this},Yi.prototype.removeListener=function(e,t){var n,r,i,o,a;if(b3(t),(r=this._events)===void 0)return this;if((n=r[e])===void 0)return this;if(n===t||n.listener===t)--this._eventsCount==0?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if(typeof n!="function"){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;i===0?n.shift():function(s,l){for(;l+1<s.length;l++)s[l]=s[l+1];s.pop()}(n,i),n.length===1&&(r[e]=n[0]),r.removeListener!==void 0&&this.emit("removeListener",e,a||t)}return this},Yi.prototype.off=Yi.prototype.removeListener,Yi.prototype.removeAllListeners=function(e){var t,n,r;if((n=this._events)===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount==0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var i,o=Object.keys(n);for(r=0;r<o.length;++r)(i=o[r])!=="removeListener"&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(typeof(t=n[e])=="function")this.removeListener(e,t);else if(t!==void 0)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},Yi.prototype.listeners=function(e){return bQ(this,e,!0)},Yi.prototype.rawListeners=function(e){return bQ(this,e,!1)},Yi.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):SQ.call(e,t)},Yi.prototype.listenerCount=SQ,Yi.prototype.eventNames=function(){return this._eventsCount>0?xQ(this._events):[]},yc=CQ,yc.EventEmitter,yc.defaultMaxListeners,yc.init,yc.listenerCount,yc.EventEmitter,yc.defaultMaxListeners,yc.init,yc.listenerCount}),Uv={};Hv(Uv,{EventEmitter:()=>Xhe,default:()=>yc,defaultMaxListeners:()=>Qhe,init:()=>Zhe,listenerCount:()=>Jhe,on:()=>epe,once:()=>tpe});var Xhe,Qhe,Zhe,Jhe,epe,tpe,FS=Es(()=>{pn(),gn(),mn(),wQ(),wQ(),yc.once=function(e,t){return new Promise((n,r)=>{function i(...a){o!==void 0&&e.removeListener("error",o),n(a)}let o;t!=="error"&&(o=a=>{e.removeListener(name,i),r(a)},e.once("error",o)),e.once(t,i)})},yc.on=function(e,t){let n=[],r=[],i=null,o=!1,a={async next(){let c=n.shift();if(c)return createIterResult(c,!1);if(i){let u=Promise.reject(i);return i=null,u}return o?createIterResult(void 0,!0):new Promise((u,d)=>r.push({resolve:u,reject:d}))},async return(){e.removeListener(t,s),e.removeListener("error",l),o=!0;for(let c of r)c.resolve(createIterResult(void 0,!0));return createIterResult(void 0,!0)},throw(c){i=c,e.removeListener(t,s),e.removeListener("error",l)},[Symbol.asyncIterator](){return this}};return e.on(t,s),e.on("error",l),a;function s(...c){let u=r.shift();u?u.resolve(createIterResult(c,!1)):n.push(c)}function l(c){o=!0;let u=r.shift();u?u.reject(c):i=c,a.return()}},{EventEmitter:Xhe,defaultMaxListeners:Qhe,init:Zhe,listenerCount:Jhe,on:epe,once:tpe}=yc}),Nz=Tn((e,t)=>{pn(),gn(),mn();var{ArrayIsArray:n,ObjectSetPrototypeOf:r}=Ka(),{EventEmitter:i}=(FS(),to(Uv));function o(s){i.call(this,s)}r(o.prototype,i.prototype),r(o,i),o.prototype.pipe=function(s,l){let c=this;function u(S){s.writable&&s.write(S)===!1&&c.pause&&c.pause()}c.on("data",u);function d(){c.readable&&c.resume&&c.resume()}s.on("drain",d),!s._isStdio&&(!l||l.end!==!1)&&(c.on("end",p),c.on("close",m));let h=!1;function p(){h||(h=!0,s.end())}function m(){h||(h=!0,typeof s.destroy=="function"&&s.destroy())}function v(S){y(),i.listenerCount(this,"error")===0&&this.emit("error",S)}a(c,"error",v),a(s,"error",v);function y(){c.removeListener("data",u),s.removeListener("drain",d),c.removeListener("end",p),c.removeListener("close",m),c.removeListener("error",v),s.removeListener("error",v),c.removeListener("end",y),c.removeListener("close",y),s.removeListener("close",y)}return c.on("end",y),c.on("close",y),s.on("close",y),s.emit("pipe",c),s};function a(s,l,c){if(typeof s.prependListener=="function")return s.prependListener(l,c);!s._events||!s._events[l]?s.on(l,c):n(s._events[l])?s._events[l].unshift(c):s._events[l]=[c,s._events[l]]}t.exports={Stream:o,prependListener:a}}),z6=Tn((e,t)=>{pn(),gn(),mn();var{AbortError:n,codes:r}=Xl(),{isNodeStream:i,isWebStream:o,kControllerErrorFunction:a}=Cp(),s=hg(),{ERR_INVALID_ARG_TYPE:l}=r,c=(u,d)=>{if(typeof u!="object"||!("aborted"in u))throw new l(d,"AbortSignal",u)};t.exports.addAbortSignal=function(u,d){if(c(u,"signal"),!i(d)&&!o(d))throw new l("stream",["ReadableStream","WritableStream","Stream"],d);return t.exports.addAbortSignalNoValidate(u,d)},t.exports.addAbortSignalNoValidate=function(u,d){if(typeof u!="object"||!("aborted"in u))return d;let h=i(d)?()=>{d.destroy(new n(void 0,{cause:u.reason}))}:()=>{d[a](new n(void 0,{cause:u.reason}))};return u.aborted?h():(u.addEventListener("abort",h),s(d,()=>u.removeEventListener("abort",h))),d}}),J$e=Tn((e,t)=>{pn(),gn(),mn();var{StringPrototypeSlice:n,SymbolIterator:r,TypedArrayPrototypeSet:i,Uint8Array:o}=Ka(),{Buffer:a}=(ks(),to(Ts)),{inspect:s}=sp();t.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(l){let c={data:l,next:null};this.length>0?this.tail.next=c:this.head=c,this.tail=c,++this.length}unshift(l){let c={data:l,next:this.head};this.length===0&&(this.tail=c),this.head=c,++this.length}shift(){if(this.length===0)return;let l=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,l}clear(){this.head=this.tail=null,this.length=0}join(l){if(this.length===0)return"";let c=this.head,u=""+c.data;for(;(c=c.next)!==null;)u+=l+c.data;return u}concat(l){if(this.length===0)return a.alloc(0);let c=a.allocUnsafe(l>>>0),u=this.head,d=0;for(;u;)i(c,u.data,d),d+=u.data.length,u=u.next;return c}consume(l,c){let u=this.head.data;if(l<u.length){let d=u.slice(0,l);return this.head.data=u.slice(l),d}return l===u.length?this.shift():c?this._getString(l):this._getBuffer(l)}first(){return this.head.data}*[r](){for(let l=this.head;l;l=l.next)yield l.data}_getString(l){let c="",u=this.head,d=0;do{let h=u.data;if(l>h.length)c+=h,l-=h.length;else{l===h.length?(c+=h,++d,u.next?this.head=u.next:this.head=this.tail=null):(c+=n(h,0,l),this.head=u,u.data=n(h,l));break}++d}while((u=u.next)!==null);return this.length-=d,c}_getBuffer(l){let c=a.allocUnsafe(l),u=l,d=this.head,h=0;do{let p=d.data;if(l>p.length)i(c,p,u-l),l-=p.length;else{l===p.length?(i(c,p,u-l),++h,d.next?this.head=d.next:this.head=this.tail=null):(i(c,new o(p.buffer,p.byteOffset,l),u-l),this.head=d,d.data=p.slice(l));break}++h}while((d=d.next)!==null);return this.length-=h,c}[Symbol.for("nodejs.util.inspect.custom")](l,c){return s(this,{...c,depth:0,customInspect:!1})}}}),Dz=Tn((e,t)=>{pn(),gn(),mn();var{MathFloor:n,NumberIsInteger:r}=Ka(),{ERR_INVALID_ARG_VALUE:i}=Xl().codes;function o(l,c,u){return l.highWaterMark!=null?l.highWaterMark:c?l[u]:null}function a(l){return l?16:16*1024}function s(l,c,u,d){let h=o(c,d,u);if(h!=null){if(!r(h)||h<0){let p=d?`options.${u}`:"options.highWaterMark";throw new i(p,h)}return n(h)}return a(l.objectMode)}t.exports={getHighWaterMark:s,getDefaultHighWaterMark:a}});function _Q(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return n===-1&&(n=t),[n,n===t?0:4-n%4]}function eRe(e,t,n){for(var r,i,o=[],a=t;a<n;a+=3)r=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(fd[(i=r)>>18&63]+fd[i>>12&63]+fd[i>>6&63]+fd[63&i]);return o.join("")}function qh(e){if(e>2147483647)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,Sn.prototype),t}function Sn(e,t,n){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return PL(e)}return npe(e,t,n)}function npe(e,t,n){if(typeof e=="string")return function(o,a){if(typeof a=="string"&&a!==""||(a="utf8"),!Sn.isEncoding(a))throw new TypeError("Unknown encoding: "+a);var s=0|ipe(o,a),l=qh(s),c=l.write(o,a);return c!==s&&(l=l.slice(0,c)),l}(e,t);if(ArrayBuffer.isView(e))return H$(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Gh(e,ArrayBuffer)||e&&Gh(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Gh(e,SharedArrayBuffer)||e&&Gh(e.buffer,SharedArrayBuffer)))return tRe(e,t,n);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(r!=null&&r!==e)return Sn.from(r,t,n);var i=function(o){if(Sn.isBuffer(o)){var a=0|Lz(o.length),s=qh(a);return s.length===0||o.copy(s,0,0,a),s}if(o.length!==void 0)return typeof o.length!="number"||Fz(o.length)?qh(0):H$(o);if(o.type==="Buffer"&&Array.isArray(o.data))return H$(o.data)}(e);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return Sn.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function rpe(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function PL(e){return rpe(e),qh(e<0?0:0|Lz(e))}function H$(e){for(var t=e.length<0?0:0|Lz(e.length),n=qh(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function tRe(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');var r;return r=t===void 0&&n===void 0?new Uint8Array(e):n===void 0?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,Sn.prototype),r}function Lz(e){if(e>=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function ipe(e,t){if(Sn.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Gh(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&arguments[2]===!0;if(!r&&n===0)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return ML(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return lpe(e).length;default:if(i)return r?-1:ML(e).length;t=(""+t).toLowerCase(),i=!0}}function nRe(e,t,n){var r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return dRe(this,t,n);case"utf8":case"utf-8":return ape(this,t,n);case"ascii":return cRe(this,t,n);case"latin1":case"binary":return uRe(this,t,n);case"base64":return lRe(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return fRe(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function Hg(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function EQ(e,t,n,r,i){if(e.length===0)return-1;if(typeof n=="string"?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),Fz(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if(typeof t=="string"&&(t=Sn.from(t,r)),Sn.isBuffer(t))return t.length===0?-1:TQ(e,t,n,r,i);if(typeof t=="number")return t&=255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):TQ(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function TQ(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(r!==void 0&&((r=String(r).toLowerCase())==="ucs2"||r==="ucs-2"||r==="utf16le"||r==="utf-16le")){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(p,m){return a===1?p[m]:p.readUInt16BE(m*a)}if(i){var u=-1;for(o=n;o<s;o++)if(c(e,o)===c(t,u===-1?0:o-u)){if(u===-1&&(u=o),o-u+1===l)return u*a}else u!==-1&&(o-=o-u),u=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){for(var d=!0,h=0;h<l;h++)if(c(e,o+h)!==c(t,h)){d=!1;break}if(d)return o}return-1}function rRe(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(Fz(s))return a;e[n+a]=s}return a}function iRe(e,t,n,r){return U6(ML(t,e.length-n),e,n,r)}function ope(e,t,n,r){return U6(function(i){for(var o=[],a=0;a<i.length;++a)o.push(255&i.charCodeAt(a));return o}(t),e,n,r)}function oRe(e,t,n,r){return ope(e,t,n,r)}function aRe(e,t,n,r){return U6(lpe(t),e,n,r)}function sRe(e,t,n,r){return U6(function(i,o){for(var a,s,l,c=[],u=0;u<i.length&&!((o-=2)<0);++u)a=i.charCodeAt(u),s=a>>8,l=a%256,c.push(l),c.push(s);return c}(t,e.length-n),e,n,r)}function lRe(e,t,n){return t===0&&n===e.length?r9.fromByteArray(e):r9.fromByteArray(e.slice(t,n))}function ape(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,s,l,c=e[i],u=null,d=c>239?4:c>223?3:c>191?2:1;if(i+d<=n)switch(d){case 1:c<128&&(u=c);break;case 2:(192&(o=e[i+1]))==128&&(l=(31&c)<<6|63&o)>127&&(u=l);break;case 3:o=e[i+1],a=e[i+2],(192&o)==128&&(192&a)==128&&(l=(15&c)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],(192&o)==128&&(192&a)==128&&(192&s)==128&&(l=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}u===null?(u=65533,d=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=d}return function(h){var p=h.length;if(p<=4096)return String.fromCharCode.apply(String,h);for(var m="",v=0;v<p;)m+=String.fromCharCode.apply(String,h.slice(v,v+=4096));return m}(r)}function cRe(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function uRe(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function dRe(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=upe[e[o]];return i}function fRe(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function Za(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function El(e,t,n,r,i,o){if(!Sn.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function spe(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function kQ(e,t,n,r,i){return t=+t,n>>>=0,i||spe(e,0,n,4),d1.write(e,t,n,r,23,4),n+4}function OQ(e,t,n,r,i){return t=+t,n>>>=0,i||spe(e,0,n,8),d1.write(e,t,n,r,52,8),n+8}function ML(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function lpe(e){return r9.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(cpe,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(e))}function U6(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function Gh(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function Fz(e){return e!=e}function PQ(e,t){for(var n in e)t[n]=e[n]}function zg(e,t,n){return td(e,t,n)}function kx(e){var t;switch(this.encoding=function(n){var r=function(i){if(!i)return"utf8";for(var o;;)switch(i){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return i;default:if(o)return;i=(""+i).toLowerCase(),o=!0}}(n);if(typeof r!="string"&&(i9.isEncoding===IL||!IL(n)))throw new Error("Unknown encoding: "+n);return r||n}(e),this.encoding){case"utf16le":this.text=pRe,this.end=mRe,t=4;break;case"utf8":this.fillLast=hRe,t=4;break;case"base64":this.text=gRe,this.end=vRe,t=3;break;default:return this.write=yRe,this.end=bRe,void 0}this.lastNeed=0,this.lastTotal=0,this.lastChar=i9.allocUnsafe(t)}function z$(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function hRe(e){var t=this.lastTotal-this.lastNeed,n=function(r,i,o){if((192&i[0])!=128)return r.lastNeed=0,"<22>";if(r.lastNeed>1&&i.length>1){if((192&i[1])!=128)return r.lastNeed=1,"<22>";if(r.lastNeed>2&&i.length>2&&(192&i[2])!=128)return r.lastNeed=2,"<22>"}}(this,e);return n!==void 0?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length,void 0)}function pRe(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function mRe(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function gRe(e,t){var n=(e.length-t)%3;return n===0?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function vRe(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function yRe(e){return e.toString(this.encoding)}function bRe(e){return e&&e.length?this.write(e):""}var MQ,fd,oc,IQ,kT,Ug,$Q,RQ,hf,r9,d1,U$,cpe,upe,Ox,Px,td,AQ,Hy,i9,IL,NQ=Es(()=>{for(pn(),gn(),mn(),MQ={byteLength:function(e){var t=_Q(e),n=t[0],r=t[1];return 3*(n+r)/4-r},toByteArray:function(e){var t,n,r=_Q(e),i=r[0],o=r[1],a=new IQ(function(c,u,d){return 3*(u+d)/4-d}(0,i,o)),s=0,l=o>0?i-4:i;for(n=0;n<l;n+=4)t=oc[e.charCodeAt(n)]<<18|oc[e.charCodeAt(n+1)]<<12|oc[e.charCodeAt(n+2)]<<6|oc[e.charCodeAt(n+3)],a[s++]=t>>16&255,a[s++]=t>>8&255,a[s++]=255&t;return o===2&&(t=oc[e.charCodeAt(n)]<<2|oc[e.charCodeAt(n+1)]>>4,a[s++]=255&t),o===1&&(t=oc[e.charCodeAt(n)]<<10|oc[e.charCodeAt(n+1)]<<4|oc[e.charCodeAt(n+2)]>>2,a[s++]=t>>8&255,a[s++]=255&t),a},fromByteArray:function(e){for(var t,n=e.length,r=n%3,i=[],o=0,a=n-r;o<a;o+=16383)i.push(eRe(e,o,o+16383>a?a:o+16383));return r===1?(t=e[n-1],i.push(fd[t>>2]+fd[t<<4&63]+"==")):r===2&&(t=(e[n-2]<<8)+e[n-1],i.push(fd[t>>10]+fd[t>>4&63]+fd[t<<2&63]+"=")),i.join("")}},fd=[],oc=[],IQ=typeof Uint8Array<"u"?Uint8Array:Array,kT="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ug=0,$Q=kT.length;Ug<$Q;++Ug)fd[Ug]=kT[Ug],oc[kT.charCodeAt(Ug)]=Ug;oc[45]=62,oc[95]=63,RQ={read:function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?i-1:0,h=n?-1:1,p=e[t+d];for(d+=h,o=p&(1<<-u)-1,p>>=-u,u+=s;u>0;o=256*o+e[t+d],d+=h,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+e[t+d],d+=h,u-=8);if(o===0)o=1-c;else{if(o===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=c}return(p?-1:1)*a*Math.pow(2,o-r)},write:function(e,t,n,r,i,o){var a,s,l,c=8*o-i-1,u=(1<<c)-1,d=u>>1,h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,m=r?1:-1,v=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?h/l:h*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+p]=255&s,p+=m,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[n+p]=255&a,p+=m,a/=256,c-=8);e[n+p-m]|=128*v}},hf={},r9=MQ,d1=RQ,U$=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null,hf.Buffer=Sn,hf.SlowBuffer=function(e){return+e!=e&&(e=0),Sn.alloc(+e)},hf.INSPECT_MAX_BYTES=50,hf.kMaxLength=2147483647,Sn.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}(),Sn.TYPED_ARRAY_SUPPORT||typeof console>"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(Sn.prototype,"parent",{enumerable:!0,get:function(){if(Sn.isBuffer(this))return this.buffer}}),Object.defineProperty(Sn.prototype,"offset",{enumerable:!0,get:function(){if(Sn.isBuffer(this))return this.byteOffset}}),Sn.poolSize=8192,Sn.from=function(e,t,n){return npe(e,t,n)},Object.setPrototypeOf(Sn.prototype,Uint8Array.prototype),Object.setPrototypeOf(Sn,Uint8Array),Sn.alloc=function(e,t,n){return function(r,i,o){return rpe(r),r<=0?qh(r):i!==void 0?typeof o=="string"?qh(r).fill(i,o):qh(r).fill(i):qh(r)}(e,t,n)},Sn.allocUnsafe=function(e){return PL(e)},Sn.allocUnsafeSlow=function(e){return PL(e)},Sn.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==Sn.prototype},Sn.compare=function(e,t){if(Gh(e,Uint8Array)&&(e=Sn.from(e,e.offset,e.byteLength)),Gh(t,Uint8Array)&&(t=Sn.from(t,t.offset,t.byteLength)),!Sn.isBuffer(e)||!Sn.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},Sn.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Sn.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return Sn.alloc(0);var n;if(t===void 0)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=Sn.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(Gh(o,Uint8Array)&&(o=Sn.from(o)),!Sn.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},Sn.byteLength=ipe,Sn.prototype._isBuffer=!0,Sn.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)Hg(this,t,t+1);return this},Sn.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)Hg(this,t,t+3),Hg(this,t+1,t+2);return this},Sn.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)Hg(this,t,t+7),Hg(this,t+1,t+6),Hg(this,t+2,t+5),Hg(this,t+3,t+4);return this},Sn.prototype.toString=function(){var e=this.length;return e===0?"":arguments.length===0?ape(this,0,e):nRe.apply(this,arguments)},Sn.prototype.toLocaleString=Sn.prototype.toString,Sn.prototype.equals=function(e){if(!Sn.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||Sn.compare(this,e)===0},Sn.prototype.inspect=function(){var e="",t=hf.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},U$&&(Sn.prototype[U$]=Sn.prototype.inspect),Sn.prototype.compare=function(e,t,n,r,i){if(Gh(e,Uint8Array)&&(e=Sn.from(e,e.offset,e.byteLength)),!Sn.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),r===void 0&&(r=0),i===void 0&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(r,i),c=e.slice(t,n),u=0;u<s;++u)if(l[u]!==c[u]){o=l[u],a=c[u];break}return o<a?-1:a<o?1:0},Sn.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1},Sn.prototype.indexOf=function(e,t,n){return EQ(this,e,t,n,!0)},Sn.prototype.lastIndexOf=function(e,t,n){return EQ(this,e,t,n,!1)},Sn.prototype.write=function(e,t,n,r){if(t===void 0)r="utf8",n=this.length,t=0;else if(n===void 0&&typeof t=="string")r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,r===void 0&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return rRe(this,e,t,n);case"utf8":case"utf-8":return iRe(this,e,t,n);case"ascii":return ope(this,e,t,n);case"latin1":case"binary":return oRe(this,e,t,n);case"base64":return aRe(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return sRe(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},Sn.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},Sn.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=t===void 0?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return Object.setPrototypeOf(r,Sn.prototype),r},Sn.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||Za(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},Sn.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||Za(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},Sn.prototype.readUInt8=function(e,t){return e>>>=0,t||Za(e,1,this.length),this[e]},Sn.prototype.readUInt16LE=function(e,t){return e>>>=0,t||Za(e,2,this.length),this[e]|this[e+1]<<8},Sn.prototype.readUInt16BE=function(e,t){return e>>>=0,t||Za(e,2,this.length),this[e]<<8|this[e+1]},Sn.prototype.readUInt32LE=function(e,t){return e>>>=0,t||Za(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Sn.prototype.readUInt32BE=function(e,t){return e>>>=0,t||Za(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Sn.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||Za(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},Sn.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||Za(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},Sn.prototype.readInt8=function(e,t){return e>>>=0,t||Za(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Sn.prototype.readInt16LE=function(e,t){e>>>=0,t||Za(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},Sn.prototype.readInt16BE=function(e,t){e>>>=0,t||Za(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},Sn.prototype.readInt32LE=function(e,t){return e>>>=0,t||Za(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Sn.prototype.readInt32BE=function(e,t){return e>>>=0,t||Za(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Sn.prototype.readFloatLE=function(e,t){return e>>>=0,t||Za(e,4,this.length),d1.read(this,e,!0,23,4)},Sn.prototype.readFloatBE=function(e,t){return e>>>=0,t||Za(e,4,this.length),d1.read(this,e,!1,23,4)},Sn.prototype.readDoubleLE=function(e,t){return e>>>=0,t||Za(e,8,this.length),d1.read(this,e,!0,52,8)},Sn.prototype.readDoubleBE=function(e,t){return e>>>=0,t||Za(e,8,this.length),d1.read(this,e,!1,52,8)},Sn.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||El(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},Sn.prototype.writeUIntBE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||El(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},Sn.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||El(this,e,t,1,255,0),this[t]=255&e,t+1},Sn.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||El(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},Sn.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||El(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},Sn.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||El(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},Sn.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||El(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},Sn.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);El(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&s===0&&this[t+o-1]!==0&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},Sn.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);El(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&s===0&&this[t+o+1]!==0&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},Sn.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||El(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},Sn.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||El(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},Sn.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||El(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},Sn.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||El(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},Sn.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||El(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},Sn.prototype.writeFloatLE=function(e,t,n){return kQ(this,e,t,!0,n)},Sn.prototype.writeFloatBE=function(e,t,n){return kQ(this,e,t,!1,n)},Sn.prototype.writeDoubleLE=function(e,t,n){return OQ(this,e,t,!0,n)},Sn.prototype.writeDoubleBE=function(e,t,n){return OQ(this,e,t,!1,n)},Sn.prototype.copy=function(e,t,n,r){if(!Sn.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||r===0||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n||e.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n;if(this===e&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(t,n,r);else if(this===e&&n<t&&t<r)for(var o=i-1;o>=0;--o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return i},Sn.prototype.fill=function(e,t,n,r){if(typeof e=="string"){if(typeof t=="string"?(r=t,t=0,n=this.length):typeof n=="string"&&(r=n,n=this.length),r!==void 0&&typeof r!="string")throw new TypeError("encoding must be a string");if(typeof r=="string"&&!Sn.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(e.length===1){var i=e.charCodeAt(0);(r==="utf8"&&i<128||r==="latin1")&&(e=i)}}else typeof e=="number"?e&=255:typeof e=="boolean"&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=n===void 0?this.length:n>>>0,e||(e=0),typeof e=="number")for(o=t;o<n;++o)this[o]=e;else{var a=Sn.isBuffer(e)?e:Sn.from(e,r),s=a.length;if(s===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this},cpe=/[^+/0-9A-Za-z-_]/g,upe=function(){for(var e=new Array(256),t=0;t<16;++t)for(var n=16*t,r=0;r<16;++r)e[n+r]="0123456789abcdef"[t]+"0123456789abcdef"[r];return e}(),hf.Buffer,hf.INSPECT_MAX_BYTES,hf.kMaxLength,Ox={},Px=hf,td=Px.Buffer,td.from&&td.alloc&&td.allocUnsafe&&td.allocUnsafeSlow?Ox=Px:(PQ(Px,Ox),Ox.Buffer=zg),zg.prototype=Object.create(td.prototype),PQ(td,zg),zg.from=function(e,t,n){if(typeof e=="number")throw new TypeError("Argument must not be a number");return td(e,t,n)},zg.alloc=function(e,t,n){if(typeof e!="number")throw new TypeError("Argument must be a number");var r=td(e);return t!==void 0?typeof n=="string"?r.fill(t,n):r.fill(t):r.fill(0),r},zg.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return td(e)},zg.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Px.SlowBuffer(e)},AQ=Ox,Hy={},i9=AQ.Buffer,IL=i9.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},Hy.StringDecoder=kx,kx.prototype.write=function(e){if(e.length===0)return"";var t,n;if(this.lastNeed){if((t=this.fillLast(e))===void 0)return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},kx.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"<22>":t},kx.prototype.text=function(e,t){var n=function(i,o,a){var s=o.length-1;if(s<a)return 0;var l=z$(o[s]);return l>=0?(l>0&&(i.lastNeed=l-1),l):--s<a||l===-2?0:(l=z$(o[s]))>=0?(l>0&&(i.lastNeed=l-2),l):--s<a||l===-2?0:(l=z$(o[s]))>=0?(l>0&&(l===2?l=0:i.lastNeed=l-3),l):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},kx.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length},Hy.StringDecoder,Hy.StringDecoder}),dpe={};Hv(dpe,{StringDecoder:()=>fpe,default:()=>Hy});var fpe,SRe=Es(()=>{pn(),gn(),mn(),NQ(),NQ(),fpe=Hy.StringDecoder}),hpe=Tn((e,t)=>{pn(),gn(),mn();var n=zv(),{PromisePrototypeThen:r,SymbolAsyncIterator:i,SymbolIterator:o}=Ka(),{Buffer:a}=(ks(),to(Ts)),{ERR_INVALID_ARG_TYPE:s,ERR_STREAM_NULL_VALUES:l}=Xl().codes;function c(u,d,h){let p;if(typeof d=="string"||d instanceof a)return new u({objectMode:!0,...h,read(){this.push(d),this.push(null)}});let m;if(d&&d[i])m=!0,p=d[i]();else if(d&&d[o])m=!1,p=d[o]();else throw new s("iterable",["Iterable"],d);let v=new u({objectMode:!0,highWaterMark:1,...h}),y=!1;v._read=function(){y||(y=!0,b())},v._destroy=function(C,_){r(S(C),()=>n.nextTick(_,C),T=>n.nextTick(_,T||C))};async function S(C){let _=C!=null,T=typeof p.throw=="function";if(_&&T){let{value:x,done:E}=await p.throw(C);if(await x,E)return}if(typeof p.return=="function"){let{value:x}=await p.return();await x}}async function b(){for(;;){try{let{value:C,done:_}=m?await p.next():p.next();if(_)v.push(null);else{let T=C&&typeof C.then=="function"?await C:C;if(T===null)throw y=!1,new l;if(v.push(T))continue;y=!1}}catch(C){v.destroy(C)}break}}return v}t.exports=c}),W6=Tn((e,t)=>{pn(),gn(),mn();var n=zv(),{ArrayPrototypeIndexOf:r,NumberIsInteger:i,NumberIsNaN:o,NumberParseInt:a,ObjectDefineProperties:s,ObjectKeys:l,ObjectSetPrototypeOf:c,Promise:u,SafeSet:d,SymbolAsyncIterator:h,Symbol:p}=Ka();t.exports=V,V.ReadableState=B;var{EventEmitter:m}=(FS(),to(Uv)),{Stream:v,prependListener:y}=Nz(),{Buffer:S}=(ks(),to(Ts)),{addAbortSignal:b}=z6(),C=hg(),_=sp().debuglog("stream",K=>{_=K}),T=J$e(),x=LS(),{getHighWaterMark:E,getDefaultHighWaterMark:k}=Dz(),{aggregateTwoErrors:M,codes:{ERR_INVALID_ARG_TYPE:P,ERR_METHOD_NOT_IMPLEMENTED:D,ERR_OUT_OF_RANGE:R,ERR_STREAM_PUSH_AFTER_EOF:A,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:H}}=Xl(),{validateObject:F}=H6(),z=p("kPaused"),{StringDecoder:W}=(SRe(),to(dpe)),q=hpe();c(V.prototype,v.prototype),c(V,v);var Z=()=>{},{errorOrDestroy:N}=x;function B(K,J,be){typeof be!="boolean"&&(be=J instanceof lp()),this.objectMode=!!(K&&K.objectMode),be&&(this.objectMode=this.objectMode||!!(K&&K.readableObjectMode)),this.highWaterMark=K?E(this,K,"readableHighWaterMark",be):k(!1),this.buffer=new T,this.length=0,this.pipes=[],this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.constructed=!0,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this[z]=null,this.errorEmitted=!1,this.emitClose=!K||K.emitClose!==!1,this.autoDestroy=!K||K.autoDestroy!==!1,this.destroyed=!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this.defaultEncoding=K&&K.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.multiAwaitDrain=!1,this.readingMore=!1,this.dataEmitted=!1,this.decoder=null,this.encoding=null,K&&K.encoding&&(this.decoder=new W(K.encoding),this.encoding=K.encoding)}function V(K){if(!(this instanceof V))return new V(K);let J=this instanceof lp();this._readableState=new B(K,this,J),K&&(typeof K.read=="function"&&(this._read=K.read),typeof K.destroy=="function"&&(this._destroy=K.destroy),typeof K.construct=="function"&&(this._construct=K.construct),K.signal&&!J&&b(K.signal,this)),v.call(this,K),x.construct(this,()=>{this._readableState.needReadable&&me(this,this._readableState)})}V.prototype.destroy=x.destroy,V.prototype._undestroy=x.undestroy,V.prototype._destroy=function(K,J){J(K)},V.prototype[m.captureRejectionSymbol]=function(K){this.destroy(K)},V.prototype.push=function(K,J){return Y(this,K,J,!1)},V.prototype.unshift=function(K,J){return Y(this,K,J,!0)};function Y(K,J,be,Oe){_("readableAddChunk",J);let Se=K._readableState,Ke;if(Se.objectMode||(typeof J=="string"?(be=be||Se.defaultEncoding,Se.encoding!==be&&(Oe&&Se.encoding?J=S.from(J,be).toString(Se.encoding):(J=S.from(J,be),be=""))):J instanceof S?be="":v._isUint8Array(J)?(J=v._uint8ArrayToBuffer(J),be=""):J!=null&&(Ke=new P("chunk",["string","Buffer","Uint8Array"],J))),Ke)N(K,Ke);else if(J===null)Se.reading=!1,ne(K,Se);else if(Se.objectMode||J&&J.length>0)if(Oe)if(Se.endEmitted)N(K,new H);else{if(Se.destroyed||Se.errored)return!1;ie(K,Se,J,!0)}else if(Se.ended)N(K,new A);else{if(Se.destroyed||Se.errored)return!1;Se.reading=!1,Se.decoder&&!be?(J=Se.decoder.write(J),Se.objectMode||J.length!==0?ie(K,Se,J,!1):me(K,Se)):ie(K,Se,J,!1)}else Oe||(Se.reading=!1,me(K,Se));return!Se.ended&&(Se.length<Se.highWaterMark||Se.length===0)}function ie(K,J,be,Oe){J.flowing&&J.length===0&&!J.sync&&K.listenerCount("data")>0?(J.multiAwaitDrain?J.awaitDrainWriters.clear():J.awaitDrainWriters=null,J.dataEmitted=!0,K.emit("data",be)):(J.length+=J.objectMode?1:be.length,Oe?J.buffer.unshift(be):J.buffer.push(be),J.needReadable&&ue(K)),me(K,J)}V.prototype.isPaused=function(){let K=this._readableState;return K[z]===!0||K.flowing===!1},V.prototype.setEncoding=function(K){let J=new W(K);this._readableState.decoder=J,this._readableState.encoding=this._readableState.decoder.encoding;let be=this._readableState.buffer,Oe="";for(let Se of be)Oe+=J.write(Se);return be.clear(),Oe!==""&&be.push(Oe),this._readableState.length=Oe.length,this};var ce=1073741824;function fe(K){if(K>ce)throw new R("size","<= 1GiB",K);return K--,K|=K>>>1,K|=K>>>2,K|=K>>>4,K|=K>>>8,K|=K>>>16,K++,K}function ee(K,J){return K<=0||J.length===0&&J.ended?0:J.objectMode?1:o(K)?J.flowing&&J.length?J.buffer.first().length:J.length:K<=J.length?K:J.ended?J.length:0}V.prototype.read=function(K){_("read",K),K===void 0?K=NaN:i(K)||(K=a(K,10));let J=this._readableState,be=K;if(K>J.highWaterMark&&(J.highWaterMark=fe(K)),K!==0&&(J.emittedReadable=!1),K===0&&J.needReadable&&((J.highWaterMark!==0?J.length>=J.highWaterMark:J.length>0)||J.ended))return _("read: emitReadable",J.length,J.ended),J.length===0&&J.ended?ke(this):ue(this),null;if(K=ee(K,J),K===0&&J.ended)return J.length===0&&ke(this),null;let Oe=J.needReadable;if(_("need readable",Oe),(J.length===0||J.length-K<J.highWaterMark)&&(Oe=!0,_("length less than watermark",Oe)),J.ended||J.reading||J.destroyed||J.errored||!J.constructed)Oe=!1,_("reading, ended or constructing",Oe);else if(Oe){_("do read"),J.reading=!0,J.sync=!0,J.length===0&&(J.needReadable=!0);try{this._read(J.highWaterMark)}catch(Ke){N(this,Ke)}J.sync=!1,J.reading||(K=ee(be,J))}let Se;return K>0?Se=Te(K,J):Se=null,Se===null?(J.needReadable=J.length<=J.highWaterMark,K=0):(J.length-=K,J.multiAwaitDrain?J.awaitDrainWriters.clear():J.awaitDrainWriters=null),J.length===0&&(J.ended||(J.needReadable=!0),be!==K&&J.ended&&ke(this)),Se!==null&&!J.errorEmitted&&!J.closeEmitted&&(J.dataEmitted=!0,this.emit("data",Se)),Se};function ne(K,J){if(_("onEofChunk"),!J.ended){if(J.decoder){let be=J.decoder.end();be&&be.length&&(J.buffer.push(be),J.length+=J.objectMode?1:be.length)}J.ended=!0,J.sync?ue(K):(J.needReadable=!1,J.emittedReadable=!0,ye(K))}}function ue(K){let J=K._readableState;_("emitReadable",J.needReadable,J.emittedReadable),J.needReadable=!1,J.emittedReadable||(_("emitReadable",J.flowing),J.emittedReadable=!0,n.nextTick(ye,K))}function ye(K){let J=K._readableState;_("emitReadable_",J.destroyed,J.length,J.ended),!J.destroyed&&!J.errored&&(J.length||J.ended)&&(K.emit("readable"),J.emittedReadable=!1),J.needReadable=!J.flowing&&!J.ended&&J.length<=J.highWaterMark,De(K)}function me(K,J){!J.readingMore&&J.constructed&&(J.readingMore=!0,n.nextTick(pe,K,J))}function pe(K,J){for(;!J.reading&&!J.ended&&(J.length<J.highWaterMark||J.flowing&&J.length===0);){let be=J.length;if(_("maybeReadMore read 0"),K.read(0),be===J.length)break}J.readingMore=!1}V.prototype._read=function(K){throw new D("_read()")},V.prototype.pipe=function(K,J){let be=this,Oe=this._readableState;Oe.pipes.length===1&&(Oe.multiAwaitDrain||(Oe.multiAwaitDrain=!0,Oe.awaitDrainWriters=new d(Oe.awaitDrainWriters?[Oe.awaitDrainWriters]:[]))),Oe.pipes.push(K),_("pipe count=%d opts=%j",Oe.pipes.length,J);let Se=(!J||J.end!==!1)&&K!==n.stdout&&K!==n.stderr?tt:St;Oe.endEmitted?n.nextTick(Se):be.once("end",Se),K.on("unpipe",Ke);function Ke(Ot,Bt){_("onunpipe"),Ot===be&&Bt&&Bt.hasUnpiped===!1&&(Bt.hasUnpiped=!0,Ye())}function tt(){_("onend"),K.end()}let se,ze=!1;function Ye(){_("cleanup"),K.removeListener("close",rt),K.removeListener("finish",qt),se&&K.removeListener("drain",se),K.removeListener("error",Ze),K.removeListener("unpipe",Ke),be.removeListener("end",tt),be.removeListener("end",St),be.removeListener("data",Je),ze=!0,se&&Oe.awaitDrainWriters&&(!K._writableState||K._writableState.needDrain)&&se()}function Ue(){ze||(Oe.pipes.length===1&&Oe.pipes[0]===K?(_("false write response, pause",0),Oe.awaitDrainWriters=K,Oe.multiAwaitDrain=!1):Oe.pipes.length>1&&Oe.pipes.includes(K)&&(_("false write response, pause",Oe.awaitDrainWriters.size),Oe.awaitDrainWriters.add(K)),be.pause()),se||(se=he(be,K),K.on("drain",se))}be.on("data",Je);function Je(Ot){_("ondata");let Bt=K.write(Ot);_("dest.write",Bt),Bt===!1&&Ue()}function Ze(Ot){if(_("onerror",Ot),St(),K.removeListener("error",Ze),K.listenerCount("error")===0){let Bt=K._writableState||K._readableState;Bt&&!Bt.errorEmitted?N(K,Ot):K.emit("error",Ot)}}y(K,"error",Ze);function rt(){K.removeListener("finish",qt),St()}K.once("close",rt);function qt(){_("onfinish"),K.removeListener("close",rt),St()}K.once("finish",qt);function St(){_("unpipe"),be.unpipe(K)}return K.emit("pipe",be),K.writableNeedDrain===!0?Oe.flowing&&Ue():Oe.flowing||(_("pipe resume"),be.resume()),K};function he(K,J){return function(){let be=K._readableState;be.awaitDrainWriters===J?(_("pipeOnDrain",1),be.awaitDrainWriters=null):be.multiAwaitDrain&&(_("pipeOnDrain",be.awaitDrainWriters.size),be.awaitDrainWriters.delete(J)),(!be.awaitDrainWriters||be.awaitDrainWriters.size===0)&&K.listenerCount("data")&&K.resume()}}V.prototype.unpipe=function(K){let J=this._readableState,be={hasUnpiped:!1};if(J.pipes.length===0)return this;if(!K){let Se=J.pipes;J.pipes=[],this.pause();for(let Ke=0;Ke<Se.length;Ke++)Se[Ke].emit("unpipe",this,{hasUnpiped:!1});return this}let Oe=r(J.pipes,K);return Oe===-1?this:(J.pipes.splice(Oe,1),J.pipes.length===0&&this.pause(),K.emit("unpipe",this,be),this)},V.prototype.on=function(K,J){let be=v.prototype.on.call(this,K,J),Oe=this._readableState;return K==="data"?(Oe.readableListening=this.listenerCount("readable")>0,Oe.flowing!==!1&&this.resume()):K==="readable"&&!Oe.endEmitted&&!Oe.readableListening&&(Oe.readableListening=Oe.needReadable=!0,Oe.flowing=!1,Oe.emittedReadable=!1,_("on readable",Oe.length,Oe.reading),Oe.length?ue(this):Oe.reading||n.nextTick(le,this)),be},V.prototype.addListener=V.prototype.on,V.prototype.removeListener=function(K,J){let be=v.prototype.removeListener.call(this,K,J);return K==="readable"&&n.nextTick(_e,this),be},V.prototype.off=V.prototype.removeListener,V.prototype.removeAllListeners=function(K){let J=v.prototype.removeAllListeners.apply(this,arguments);return(K==="readable"||K===void 0)&&n.nextTick(_e,this),J};function _e(K){let J=K._readableState;J.readableListening=K.listenerCount("readable")>0,J.resumeScheduled&&J[z]===!1?J.flowing=!0:K.listenerCount("data")>0?K.resume():J.readableListening||(J.flowing=null)}function le(K){_("readable nexttick read 0"),K.read(0)}V.prototype.resume=function(){let K=this._readableState;return K.flowing||(_("resume"),K.flowing=!K.readableListening,xe(this,K)),K[z]=!1,this};function xe(K,J){J.resumeScheduled||(J.resumeScheduled=!0,n.nextTick(we,K,J))}function we(K,J){_("resume",J.reading),J.reading||K.read(0),J.resumeScheduled=!1,K.emit("resume"),De(K),J.flowing&&!J.reading&&K.read(0)}V.prototype.pause=function(){return _("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(_("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[z]=!0,this};function De(K){let J=K._readableState;for(_("flow",J.flowing);J.flowing&&K.read()!==null;);}V.prototype.wrap=function(K){let J=!1;K.on("data",Oe=>{!this.push(Oe)&&K.pause&&(J=!0,K.pause())}),K.on("end",()=>{this.push(null)}),K.on("error",Oe=>{N(this,Oe)}),K.on("close",()=>{this.destroy()}),K.on("destroy",()=>{this.destroy()}),this._read=()=>{J&&K.resume&&(J=!1,K.resume())};let be=l(K);for(let Oe=1;Oe<be.length;Oe++){let Se=be[Oe];this[Se]===void 0&&typeof K[Se]=="function"&&(this[Se]=K[Se].bind(K))}return this},V.prototype[h]=function(){return Fe(this)},V.prototype.iterator=function(K){return K!==void 0&&F(K,"options"),Fe(this,K)};function Fe(K,J){typeof K.read!="function"&&(K=V.wrap(K,{objectMode:!0}));let be=Ce(K,J);return be.stream=K,be}async function*Ce(K,J){let be=Z;function Oe(tt){this===K?(be(),be=Z):be=tt}K.on("readable",Oe);let Se,Ke=C(K,{writable:!1},tt=>{Se=tt?M(Se,tt):null,be(),be=Z});try{for(;;){let tt=K.destroyed?null:K.read();if(tt!==null)yield tt;else{if(Se)throw Se;if(Se===null)return;await new u(Oe)}}}catch(tt){throw Se=M(Se,tt),Se}finally{(Se||(J==null?void 0:J.destroyOnReturn)!==!1)&&(Se===void 0||K._readableState.autoDestroy)?x.destroyer(K,null):(K.off("readable",Oe),Ke())}}s(V.prototype,{readable:{__proto__:null,get(){let K=this._readableState;return!!K&&K.readable!==!1&&!K.destroyed&&!K.errorEmitted&&!K.endEmitted},set(K){this._readableState&&(this._readableState.readable=!!K)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(K){this._readableState&&(this._readableState.flowing=K)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(K){this._readableState&&(this._readableState.destroyed=K)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),s(B.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[z]!==!1},set(K){this[z]=!!K}}}),V._fromList=Te;function Te(K,J){if(J.length===0)return null;let be;return J.objectMode?be=J.buffer.shift():!K||K>=J.length?(J.decoder?be=J.buffer.join(""):J.buffer.length===1?be=J.buffer.first():be=J.buffer.concat(J.length),J.buffer.clear()):be=J.buffer.consume(K,J.decoder),be}function ke(K){let J=K._readableState;_("endReadable",J.endEmitted),J.endEmitted||(J.ended=!0,n.nextTick(Pe,J,K))}function Pe(K,J){if(_("endReadableNT",K.endEmitted,K.length),!K.errored&&!K.closeEmitted&&!K.endEmitted&&K.length===0){if(K.endEmitted=!0,J.emit("end"),J.writable&&J.allowHalfOpen===!1)n.nextTick(Ne,J);else if(K.autoDestroy){let be=J._writableState;(!be||be.autoDestroy&&(be.finished||be.writable===!1))&&J.destroy()}}}function Ne(K){K.writable&&!K.writableEnded&&!K.destroyed&&K.end()}V.from=function(K,J){return q(V,K,J)};var We;function Q(){return We===void 0&&(We={}),We}V.fromWeb=function(K,J){return Q().newStreamReadableFromReadableStream(K,J)},V.toWeb=function(K,J){return Q().newReadableStreamFromStreamReadable(K,J)},V.wrap=function(K,J){var be,Oe;return new V({objectMode:(be=(Oe=K.readableObjectMode)!==null&&Oe!==void 0?Oe:K.objectMode)!==null&&be!==void 0?be:!0,...J,destroy(Se,Ke){x.destroyer(K,Se),Ke(Se)}}).wrap(K)}}),ppe=Tn((e,t)=>{pn(),gn(),mn();var n=zv(),{ArrayPrototypeSlice:r,Error:i,FunctionPrototypeSymbolHasInstance:o,ObjectDefineProperty:a,ObjectDefineProperties:s,ObjectSetPrototypeOf:l,StringPrototypeToLowerCase:c,Symbol:u,SymbolHasInstance:d}=Ka();t.exports=W,W.WritableState=F;var{EventEmitter:h}=(FS(),to(Uv)),p=Nz().Stream,{Buffer:m}=(ks(),to(Ts)),v=LS(),{addAbortSignal:y}=z6(),{getHighWaterMark:S,getDefaultHighWaterMark:b}=Dz(),{ERR_INVALID_ARG_TYPE:C,ERR_METHOD_NOT_IMPLEMENTED:_,ERR_MULTIPLE_CALLBACK:T,ERR_STREAM_CANNOT_PIPE:x,ERR_STREAM_DESTROYED:E,ERR_STREAM_ALREADY_FINISHED:k,ERR_STREAM_NULL_VALUES:M,ERR_STREAM_WRITE_AFTER_END:P,ERR_UNKNOWN_ENCODING:D}=Xl().codes,{errorOrDestroy:R}=v;l(W.prototype,p.prototype),l(W,p);function A(){}var H=u("kOnFinished");function F(le,xe,we){typeof we!="boolean"&&(we=xe instanceof lp()),this.objectMode=!!(le&&le.objectMode),we&&(this.objectMode=this.objectMode||!!(le&&le.writableObjectMode)),this.highWaterMark=le?S(this,le,"writableHighWaterMark",we):b(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let De=!!(le&&le.decodeStrings===!1);this.decodeStrings=!De,this.defaultEncoding=le&&le.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=V.bind(void 0,xe),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,z(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!le||le.emitClose!==!1,this.autoDestroy=!le||le.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[H]=[]}function z(le){le.buffered=[],le.bufferedIndex=0,le.allBuffers=!0,le.allNoop=!0}F.prototype.getBuffer=function(){return r(this.buffered,this.bufferedIndex)},a(F.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function W(le){let xe=this instanceof lp();if(!xe&&!o(W,this))return new W(le);this._writableState=new F(le,this,xe),le&&(typeof le.write=="function"&&(this._write=le.write),typeof le.writev=="function"&&(this._writev=le.writev),typeof le.destroy=="function"&&(this._destroy=le.destroy),typeof le.final=="function"&&(this._final=le.final),typeof le.construct=="function"&&(this._construct=le.construct),le.signal&&y(le.signal,this)),p.call(this,le),v.construct(this,()=>{let we=this._writableState;we.writing||fe(this,we),ye(this,we)})}a(W,d,{__proto__:null,value:function(le){return o(this,le)?!0:this!==W?!1:le&&le._writableState instanceof F}}),W.prototype.pipe=function(){R(this,new x)};function q(le,xe,we,De){let Fe=le._writableState;if(typeof we=="function")De=we,we=Fe.defaultEncoding;else{if(!we)we=Fe.defaultEncoding;else if(we!=="buffer"&&!m.isEncoding(we))throw new D(we);typeof De!="function"&&(De=A)}if(xe===null)throw new M;if(!Fe.objectMode)if(typeof xe=="string")Fe.decodeStrings!==!1&&(xe=m.from(xe,we),we="buffer");else if(xe instanceof m)we="buffer";else if(p._isUint8Array(xe))xe=p._uint8ArrayToBuffer(xe),we="buffer";else throw new C("chunk",["string","Buffer","Uint8Array"],xe);let Ce;return Fe.ending?Ce=new P:Fe.destroyed&&(Ce=new E("write")),Ce?(n.nextTick(De,Ce),R(le,Ce,!0),Ce):(Fe.pendingcb++,Z(le,Fe,xe,we,De))}W.prototype.write=function(le,xe,we){return q(this,le,xe,we)===!0},W.prototype.cork=function(){this._writableState.corked++},W.prototype.uncork=function(){let le=this._writableState;le.corked&&(le.corked--,le.writing||fe(this,le))},W.prototype.setDefaultEncoding=function(le){if(typeof le=="string"&&(le=c(le)),!m.isEncoding(le))throw new D(le);return this._writableState.defaultEncoding=le,this};function Z(le,xe,we,De,Fe){let Ce=xe.objectMode?1:we.length;xe.length+=Ce;let Te=xe.length<xe.highWaterMark;return Te||(xe.needDrain=!0),xe.writing||xe.corked||xe.errored||!xe.constructed?(xe.buffered.push({chunk:we,encoding:De,callback:Fe}),xe.allBuffers&&De!=="buffer"&&(xe.allBuffers=!1),xe.allNoop&&Fe!==A&&(xe.allNoop=!1)):(xe.writelen=Ce,xe.writecb=Fe,xe.writing=!0,xe.sync=!0,le._write(we,De,xe.onwrite),xe.sync=!1),Te&&!xe.errored&&!xe.destroyed}function N(le,xe,we,De,Fe,Ce,Te){xe.writelen=De,xe.writecb=Te,xe.writing=!0,xe.sync=!0,xe.destroyed?xe.onwrite(new E("write")):we?le._writev(Fe,xe.onwrite):le._write(Fe,Ce,xe.onwrite),xe.sync=!1}function B(le,xe,we,De){--xe.pendingcb,De(we),ce(xe),R(le,we)}function V(le,xe){let we=le._writableState,De=we.sync,Fe=we.writecb;if(typeof Fe!="function"){R(le,new T);return}we.writing=!1,we.writecb=null,we.length-=we.writelen,we.writelen=0,xe?(xe.stack,we.errored||(we.errored=xe),le._readableState&&!le._readableState.errored&&(le._readableState.errored=xe),De?n.nextTick(B,le,we,xe,Fe):B(le,we,xe,Fe)):(we.buffered.length>we.bufferedIndex&&fe(le,we),De?we.afterWriteTickInfo!==null&&we.afterWriteTickInfo.cb===Fe?we.afterWriteTickInfo.count++:(we.afterWriteTickInfo={count:1,cb:Fe,stream:le,state:we},n.nextTick(Y,we.afterWriteTickInfo)):ie(le,we,1,Fe))}function Y({stream:le,state:xe,count:we,cb:De}){return xe.afterWriteTickInfo=null,ie(le,xe,we,De)}function ie(le,xe,we,De){for(!xe.ending&&!le.destroyed&&xe.length===0&&xe.needDrain&&(xe.needDrain=!1,le.emit("drain"));we-- >0;)xe.pendingcb--,De();xe.destroyed&&ce(xe),ye(le,xe)}function ce(le){if(le.writing)return;for(let Fe=le.bufferedIndex;Fe<le.buffered.length;++Fe){var xe;let{chunk:Ce,callback:Te}=le.buffered[Fe],ke=le.objectMode?1:Ce.length;le.length-=ke,Te((xe=le.errored)!==null&&xe!==void 0?xe:new E("write"))}let we=le[H].splice(0);for(let Fe=0;Fe<we.length;Fe++){var De;we[Fe]((De=le.errored)!==null&&De!==void 0?De:new E("end"))}z(le)}function fe(le,xe){if(xe.corked||xe.bufferProcessing||xe.destroyed||!xe.constructed)return;let{buffered:we,bufferedIndex:De,objectMode:Fe}=xe,Ce=we.length-De;if(!Ce)return;let Te=De;if(xe.bufferProcessing=!0,Ce>1&&le._writev){xe.pendingcb-=Ce-1;let ke=xe.allNoop?A:Ne=>{for(let We=Te;We<we.length;++We)we[We].callback(Ne)},Pe=xe.allNoop&&Te===0?we:r(we,Te);Pe.allBuffers=xe.allBuffers,N(le,xe,!0,xe.length,Pe,"",ke),z(xe)}else{do{let{chunk:ke,encoding:Pe,callback:Ne}=we[Te];we[Te++]=null;let We=Fe?1:ke.length;N(le,xe,!1,We,ke,Pe,Ne)}while(Te<we.length&&!xe.writing);Te===we.length?z(xe):Te>256?(we.splice(0,Te),xe.bufferedIndex=0):xe.bufferedIndex=Te}xe.bufferProcessing=!1}W.prototype._write=function(le,xe,we){if(this._writev)this._writev([{chunk:le,encoding:xe}],we);else throw new _("_write()")},W.prototype._writev=null,W.prototype.end=function(le,xe,we){let De=this._writableState;typeof le=="function"?(we=le,le=null,xe=null):typeof xe=="function"&&(we=xe,xe=null);let Fe;if(le!=null){let Ce=q(this,le,xe);Ce instanceof i&&(Fe=Ce)}return De.corked&&(De.corked=1,this.uncork()),Fe||(!De.errored&&!De.ending?(De.ending=!0,ye(this,De,!0),De.ended=!0):De.finished?Fe=new k("end"):De.destroyed&&(Fe=new E("end"))),typeof we=="function"&&(Fe||De.finished?n.nextTick(we,Fe):De[H].push(we)),this};function ee(le){return le.ending&&!le.destroyed&&le.constructed&&le.length===0&&!le.errored&&le.buffered.length===0&&!le.finished&&!le.writing&&!le.errorEmitted&&!le.closeEmitted}function ne(le,xe){let we=!1;function De(Fe){if(we){R(le,Fe??T());return}if(we=!0,xe.pendingcb--,Fe){let Ce=xe[H].splice(0);for(let Te=0;Te<Ce.length;Te++)Ce[Te](Fe);R(le,Fe,xe.sync)}else ee(xe)&&(xe.prefinished=!0,le.emit("prefinish"),xe.pendingcb++,n.nextTick(me,le,xe))}xe.sync=!0,xe.pendingcb++;try{le._final(De)}catch(Fe){De(Fe)}xe.sync=!1}function ue(le,xe){!xe.prefinished&&!xe.finalCalled&&(typeof le._final=="function"&&!xe.destroyed?(xe.finalCalled=!0,ne(le,xe)):(xe.prefinished=!0,le.emit("prefinish")))}function ye(le,xe,we){ee(xe)&&(ue(le,xe),xe.pendingcb===0&&(we?(xe.pendingcb++,n.nextTick((De,Fe)=>{ee(Fe)?me(De,Fe):Fe.pendingcb--},le,xe)):ee(xe)&&(xe.pendingcb++,me(le,xe))))}function me(le,xe){xe.pendingcb--,xe.finished=!0;let we=xe[H].splice(0);for(let De=0;De<we.length;De++)we[De]();if(le.emit("finish"),xe.autoDestroy){let De=le._readableState;(!De||De.autoDestroy&&(De.endEmitted||De.readable===!1))&&le.destroy()}}s(W.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(le){this._writableState&&(this._writableState.destroyed=le)}},writable:{__proto__:null,get(){let le=this._writableState;return!!le&&le.writable!==!1&&!le.destroyed&&!le.errored&&!le.ending&&!le.ended},set(le){this._writableState&&(this._writableState.writable=!!le)}},writableFinished:{__proto__:null,get(){return this._writableState?this._writableState.finished:!1}},writableObjectMode:{__proto__:null,get(){return this._writableState?this._writableState.objectMode:!1}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return this._writableState?this._writableState.ending:!1}},writableNeedDrain:{__proto__:null,get(){let le=this._writableState;return le?!le.destroyed&&!le.ending&&le.needDrain:!1}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._writableState.writable!==!1&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});var pe=v.destroy;W.prototype.destroy=function(le,xe){let we=this._writableState;return!we.destroyed&&(we.bufferedIndex<we.buffered.length||we[H].length)&&n.nextTick(ce,we),pe.call(this,le,xe),this},W.prototype._undestroy=v.undestroy,W.prototype._destroy=function(le,xe){xe(le)},W.prototype[h.captureRejectionSymbol]=function(le){this.destroy(le)};var he;function _e(){return he===void 0&&(he={}),he}W.fromWeb=function(le,xe){return _e().newStreamWritableFromWritableStream(le,xe)},W.toWeb=function(le){return _e().newWritableStreamFromStreamWritable(le)}}),CRe=Tn((e,t)=>{pn(),gn(),mn();var n=zv(),r=(ks(),to(Ts)),{isReadable:i,isWritable:o,isIterable:a,isNodeStream:s,isReadableNodeStream:l,isWritableNodeStream:c,isDuplexNodeStream:u}=Cp(),d=hg(),{AbortError:h,codes:{ERR_INVALID_ARG_TYPE:p,ERR_INVALID_RETURN_VALUE:m}}=Xl(),{destroyer:v}=LS(),y=lp(),S=W6(),{createDeferredPromise:b}=sp(),C=hpe(),_=globalThis.Blob||r.Blob,T=typeof _<"u"?function(D){return D instanceof _}:function(D){return!1},x=globalThis.AbortController||Az().AbortController,{FunctionPrototypeCall:E}=Ka(),k=class extends y{constructor(D){super(D),(D==null?void 0:D.readable)===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),(D==null?void 0:D.writable)===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};t.exports=function D(R,A){if(u(R))return R;if(l(R))return P({readable:R});if(c(R))return P({writable:R});if(s(R))return P({writable:!1,readable:!1});if(typeof R=="function"){let{value:F,write:z,final:W,destroy:q}=M(R);if(a(F))return C(k,F,{objectMode:!0,write:z,final:W,destroy:q});let Z=F==null?void 0:F.then;if(typeof Z=="function"){let N,B=E(Z,F,V=>{if(V!=null)throw new m("nully","body",V)},V=>{v(N,V)});return N=new k({objectMode:!0,readable:!1,write:z,final(V){W(async()=>{try{await B,n.nextTick(V,null)}catch(Y){n.nextTick(V,Y)}})},destroy:q})}throw new m("Iterable, AsyncIterable or AsyncFunction",A,F)}if(T(R))return D(R.arrayBuffer());if(a(R))return C(k,R,{objectMode:!0,writable:!1});if(typeof(R==null?void 0:R.writable)=="object"||typeof(R==null?void 0:R.readable)=="object"){let F=R!=null&&R.readable?l(R==null?void 0:R.readable)?R==null?void 0:R.readable:D(R.readable):void 0,z=R!=null&&R.writable?c(R==null?void 0:R.writable)?R==null?void 0:R.writable:D(R.writable):void 0;return P({readable:F,writable:z})}let H=R==null?void 0:R.then;if(typeof H=="function"){let F;return E(H,R,z=>{z!=null&&F.push(z),F.push(null)},z=>{v(F,z)}),F=new k({objectMode:!0,writable:!1,read(){}})}throw new p(A,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],R)};function M(D){let{promise:R,resolve:A}=b(),H=new x,F=H.signal;return{value:D(async function*(){for(;;){let z=R;R=null;let{chunk:W,done:q,cb:Z}=await z;if(n.nextTick(Z),q)return;if(F.aborted)throw new h(void 0,{cause:F.reason});({promise:R,resolve:A}=b()),yield W}}(),{signal:F}),write(z,W,q){let Z=A;A=null,Z({chunk:z,done:!1,cb:q})},final(z){let W=A;A=null,W({done:!0,cb:z})},destroy(z,W){H.abort(),W(z)}}}function P(D){let R=D.readable&&typeof D.readable.read!="function"?S.wrap(D.readable):D.readable,A=D.writable,H=!!i(R),F=!!o(A),z,W,q,Z,N;function B(V){let Y=Z;Z=null,Y?Y(V):V&&N.destroy(V)}return N=new k({readableObjectMode:!!(R!=null&&R.readableObjectMode),writableObjectMode:!!(A!=null&&A.writableObjectMode),readable:H,writable:F}),F&&(d(A,V=>{F=!1,V&&v(R,V),B(V)}),N._write=function(V,Y,ie){A.write(V,Y)?ie():z=ie},N._final=function(V){A.end(),W=V},A.on("drain",function(){if(z){let V=z;z=null,V()}}),A.on("finish",function(){if(W){let V=W;W=null,V()}})),H&&(d(R,V=>{H=!1,V&&v(R,V),B(V)}),R.on("readable",function(){if(q){let V=q;q=null,V()}}),R.on("end",function(){N.push(null)}),N._read=function(){for(;;){let V=R.read();if(V===null){q=N._read;return}if(!N.push(V))return}}),N._destroy=function(V,Y){!V&&Z!==null&&(V=new h),q=null,z=null,W=null,Z===null?Y(V):(Z=Y,v(A,V),v(R,V))},N}}),lp=Tn((e,t)=>{pn(),gn(),mn();var{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:r,ObjectKeys:i,ObjectSetPrototypeOf:o}=Ka();t.exports=l;var a=W6(),s=ppe();o(l.prototype,a.prototype),o(l,a);{let h=i(s.prototype);for(let p=0;p<h.length;p++){let m=h[p];l.prototype[m]||(l.prototype[m]=s.prototype[m])}}function l(h){if(!(this instanceof l))return new l(h);a.call(this,h),s.call(this,h),h?(this.allowHalfOpen=h.allowHalfOpen!==!1,h.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),h.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}n(l.prototype,{writable:{__proto__:null,...r(s.prototype,"writable")},writableHighWaterMark:{__proto__:null,...r(s.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...r(s.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...r(s.prototype,"writableBuffer")},writableLength:{__proto__:null,...r(s.prototype,"writableLength")},writableFinished:{__proto__:null,...r(s.prototype,"writableFinished")},writableCorked:{__proto__:null,...r(s.prototype,"writableCorked")},writableEnded:{__proto__:null,...r(s.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...r(s.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set(h){this._readableState&&this._writableState&&(this._readableState.destroyed=h,this._writableState.destroyed=h)}}});var c;function u(){return c===void 0&&(c={}),c}l.fromWeb=function(h,p){return u().newStreamDuplexFromReadableWritablePair(h,p)},l.toWeb=function(h){return u().newReadableWritablePairFromDuplex(h)};var d;l.from=function(h){return d||(d=CRe()),d(h,"body")}}),mpe=Tn((e,t)=>{pn(),gn(),mn();var{ObjectSetPrototypeOf:n,Symbol:r}=Ka();t.exports=l;var{ERR_METHOD_NOT_IMPLEMENTED:i}=Xl().codes,o=lp(),{getHighWaterMark:a}=Dz();n(l.prototype,o.prototype),n(l,o);var s=r("kCallback");function l(d){if(!(this instanceof l))return new l(d);let h=d?a(this,d,"readableHighWaterMark",!0):null;h===0&&(d={...d,highWaterMark:null,readableHighWaterMark:h,writableHighWaterMark:d.writableHighWaterMark||0}),o.call(this,d),this._readableState.sync=!1,this[s]=null,d&&(typeof d.transform=="function"&&(this._transform=d.transform),typeof d.flush=="function"&&(this._flush=d.flush)),this.on("prefinish",u)}function c(d){typeof this._flush=="function"&&!this.destroyed?this._flush((h,p)=>{if(h){d?d(h):this.destroy(h);return}p!=null&&this.push(p),this.push(null),d&&d()}):(this.push(null),d&&d())}function u(){this._final!==c&&c.call(this)}l.prototype._final=c,l.prototype._transform=function(d,h,p){throw new i("_transform()")},l.prototype._write=function(d,h,p){let m=this._readableState,v=this._writableState,y=m.length;this._transform(d,h,(S,b)=>{if(S){p(S);return}b!=null&&this.push(b),v.ended||y===m.length||m.length<m.highWaterMark?p():this[s]=p})},l.prototype._read=function(){if(this[s]){let d=this[s];this[s]=null,d()}}}),gpe=Tn((e,t)=>{pn(),gn(),mn();var{ObjectSetPrototypeOf:n}=Ka();t.exports=i;var r=mpe();n(i.prototype,r.prototype),n(i,r);function i(o){if(!(this instanceof i))return new i(o);r.call(this,o)}i.prototype._transform=function(o,a,s){s(null,o)}}),jz=Tn((e,t)=>{pn(),gn(),mn();var n=zv(),{ArrayIsArray:r,Promise:i,SymbolAsyncIterator:o}=Ka(),a=hg(),{once:s}=sp(),l=LS(),c=lp(),{aggregateTwoErrors:u,codes:{ERR_INVALID_ARG_TYPE:d,ERR_INVALID_RETURN_VALUE:h,ERR_MISSING_ARGS:p,ERR_STREAM_DESTROYED:m,ERR_STREAM_PREMATURE_CLOSE:v},AbortError:y}=Xl(),{validateFunction:S,validateAbortSignal:b}=H6(),{isIterable:C,isReadable:_,isReadableNodeStream:T,isNodeStream:x,isTransformStream:E,isWebStream:k,isReadableStream:M,isReadableEnded:P}=Cp(),D=globalThis.AbortController||Az().AbortController,R,A;function H(Y,ie,ce){let fe=!1;Y.on("close",()=>{fe=!0});let ee=a(Y,{readable:ie,writable:ce},ne=>{fe=!ne});return{destroy:ne=>{fe||(fe=!0,l.destroyer(Y,ne||new m("pipe")))},cleanup:ee}}function F(Y){return S(Y[Y.length-1],"streams[stream.length - 1]"),Y.pop()}function z(Y){if(C(Y))return Y;if(T(Y))return W(Y);throw new d("val",["Readable","Iterable","AsyncIterable"],Y)}async function*W(Y){A||(A=W6()),yield*A.prototype[o].call(Y)}async function q(Y,ie,ce,{end:fe}){let ee,ne=null,ue=pe=>{if(pe&&(ee=pe),ne){let he=ne;ne=null,he()}},ye=()=>new i((pe,he)=>{ee?he(ee):ne=()=>{ee?he(ee):pe()}});ie.on("drain",ue);let me=a(ie,{readable:!1},ue);try{ie.writableNeedDrain&&await ye();for await(let pe of Y)ie.write(pe)||await ye();fe&&ie.end(),await ye(),ce()}catch(pe){ce(ee!==pe?u(ee,pe):pe)}finally{me(),ie.off("drain",ue)}}async function Z(Y,ie,ce,{end:fe}){E(ie)&&(ie=ie.writable);let ee=ie.getWriter();try{for await(let ne of Y)await ee.ready,ee.write(ne).catch(()=>{});await ee.ready,fe&&await ee.close(),ce()}catch(ne){try{await ee.abort(ne),ce(ne)}catch(ue){ce(ue)}}}function N(...Y){return B(Y,s(F(Y)))}function B(Y,ie,ce){if(Y.length===1&&r(Y[0])&&(Y=Y[0]),Y.length<2)throw new p("streams");let fe=new D,ee=fe.signal,ne=ce==null?void 0:ce.signal,ue=[];b(ne,"options.signal");function ye(){xe(new y)}ne==null||ne.addEventListener("abort",ye);let me,pe,he=[],_e=0;function le(Ce){xe(Ce,--_e===0)}function xe(Ce,Te){if(Ce&&(!me||me.code==="ERR_STREAM_PREMATURE_CLOSE")&&(me=Ce),!(!me&&!Te)){for(;he.length;)he.shift()(me);ne==null||ne.removeEventListener("abort",ye),fe.abort(),Te&&(me||ue.forEach(ke=>ke()),n.nextTick(ie,me,pe))}}let we;for(let Ce=0;Ce<Y.length;Ce++){let Te=Y[Ce],ke=Ce<Y.length-1,Pe=Ce>0,Ne=ke||(ce==null?void 0:ce.end)!==!1,We=Ce===Y.length-1;if(x(Te)){let Q=function(K){K&&K.name!=="AbortError"&&K.code!=="ERR_STREAM_PREMATURE_CLOSE"&&le(K)};if(Ne){let{destroy:K,cleanup:J}=H(Te,ke,Pe);he.push(K),_(Te)&&We&&ue.push(J)}Te.on("error",Q),_(Te)&&We&&ue.push(()=>{Te.removeListener("error",Q)})}if(Ce===0)if(typeof Te=="function"){if(we=Te({signal:ee}),!C(we))throw new h("Iterable, AsyncIterable or Stream","source",we)}else C(Te)||T(Te)||E(Te)?we=Te:we=c.from(Te);else if(typeof Te=="function"){if(E(we)){var De;we=z((De=we)===null||De===void 0?void 0:De.readable)}else we=z(we);if(we=Te(we,{signal:ee}),ke){if(!C(we,!0))throw new h("AsyncIterable",`transform[${Ce-1}]`,we)}else{var Fe;R||(R=gpe());let Q=new R({objectMode:!0}),K=(Fe=we)===null||Fe===void 0?void 0:Fe.then;if(typeof K=="function")_e++,K.call(we,Oe=>{pe=Oe,Oe!=null&&Q.write(Oe),Ne&&Q.end(),n.nextTick(le)},Oe=>{Q.destroy(Oe),n.nextTick(le,Oe)});else if(C(we,!0))_e++,q(we,Q,le,{end:Ne});else if(M(we)||E(we)){let Oe=we.readable||we;_e++,q(Oe,Q,le,{end:Ne})}else throw new h("AsyncIterable or Promise","destination",we);we=Q;let{destroy:J,cleanup:be}=H(we,!1,!0);he.push(J),We&&ue.push(be)}}else if(x(Te)){if(T(we)){_e+=2;let Q=V(we,Te,le,{end:Ne});_(Te)&&We&&ue.push(Q)}else if(E(we)||M(we)){let Q=we.readable||we;_e++,q(Q,Te,le,{end:Ne})}else if(C(we))_e++,q(we,Te,le,{end:Ne});else throw new d("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],we);we=Te}else if(k(Te)){if(T(we))_e++,Z(z(we),Te,le,{end:Ne});else if(M(we)||C(we))_e++,Z(we,Te,le,{end:Ne});else if(E(we))_e++,Z(we.readable,Te,le,{end:Ne});else throw new d("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],we);we=Te}else we=c.from(Te)}return(ee!=null&&ee.aborted||ne!=null&&ne.aborted)&&n.nextTick(ye),we}function V(Y,ie,ce,{end:fe}){let ee=!1;if(ie.on("close",()=>{ee||ce(new v)}),Y.pipe(ie,{end:!1}),fe){let ne=function(){ee=!0,ie.end()};P(Y)?n.nextTick(ne):Y.once("end",ne)}else ce();return a(Y,{readable:!0,writable:!1},ne=>{let ue=Y._readableState;ne&&ne.code==="ERR_STREAM_PREMATURE_CLOSE"&&ue&&ue.ended&&!ue.errored&&!ue.errorEmitted?Y.once("end",ce).once("error",ce):ce(ne)}),a(ie,{readable:!1,writable:!0},ce)}t.exports={pipelineImpl:B,pipeline:N}}),vpe=Tn((e,t)=>{pn(),gn(),mn();var{pipeline:n}=jz(),r=lp(),{destroyer:i}=LS(),{isNodeStream:o,isReadable:a,isWritable:s,isWebStream:l,isTransformStream:c,isWritableStream:u,isReadableStream:d}=Cp(),{AbortError:h,codes:{ERR_INVALID_ARG_VALUE:p,ERR_MISSING_ARGS:m}}=Xl(),v=hg();t.exports=function(...y){if(y.length===0)throw new m("streams");if(y.length===1)return r.from(y[0]);let S=[...y];if(typeof y[0]=="function"&&(y[0]=r.from(y[0])),typeof y[y.length-1]=="function"){let R=y.length-1;y[R]=r.from(y[R])}for(let R=0;R<y.length;++R)if(!(!o(y[R])&&!l(y[R]))){if(R<y.length-1&&!(a(y[R])||d(y[R])||c(y[R])))throw new p(`streams[${R}]`,S[R],"must be readable");if(R>0&&!(s(y[R])||u(y[R])||c(y[R])))throw new p(`streams[${R}]`,S[R],"must be writable")}let b,C,_,T,x;function E(R){let A=T;T=null,A?A(R):R?x.destroy(R):!D&&!P&&x.destroy()}let k=y[0],M=n(y,E),P=!!(s(k)||u(k)||c(k)),D=!!(a(M)||d(M)||c(M));if(x=new r({writableObjectMode:!!(k!=null&&k.writableObjectMode),readableObjectMode:!!(M!=null&&M.writableObjectMode),writable:P,readable:D}),P){if(o(k))x._write=function(A,H,F){k.write(A,H)?F():b=F},x._final=function(A){k.end(),C=A},k.on("drain",function(){if(b){let A=b;b=null,A()}});else if(l(k)){let A=(c(k)?k.writable:k).getWriter();x._write=async function(H,F,z){try{await A.ready,A.write(H).catch(()=>{}),z()}catch(W){z(W)}},x._final=async function(H){try{await A.ready,A.close().catch(()=>{}),C=H}catch(F){H(F)}}}let R=c(M)?M.readable:M;v(R,()=>{if(C){let A=C;C=null,A()}})}if(D){if(o(M))M.on("readable",function(){if(_){let R=_;_=null,R()}}),M.on("end",function(){x.push(null)}),x._read=function(){for(;;){let R=M.read();if(R===null){_=x._read;return}if(!x.push(R))return}};else if(l(M)){let R=(c(M)?M.readable:M).getReader();x._read=async function(){for(;;)try{let{value:A,done:H}=await R.read();if(!x.push(A))return;if(H){x.push(null);return}}catch{return}}}}return x._destroy=function(R,A){!R&&T!==null&&(R=new h),_=null,b=null,C=null,T===null?A(R):(T=A,o(M)&&i(M,R))},x}}),xRe=Tn((e,t)=>{pn(),gn(),mn();var n=globalThis.AbortController||Az().AbortController,{codes:{ERR_INVALID_ARG_VALUE:r,ERR_INVALID_ARG_TYPE:i,ERR_MISSING_ARGS:o,ERR_OUT_OF_RANGE:a},AbortError:s}=Xl(),{validateAbortSignal:l,validateInteger:c,validateObject:u}=H6(),d=Ka().Symbol("kWeak"),{finished:h}=hg(),p=vpe(),{addAbortSignalNoValidate:m}=z6(),{isWritable:v,isNodeStream:y}=Cp(),{ArrayPrototypePush:S,MathFloor:b,Number:C,NumberIsNaN:_,Promise:T,PromiseReject:x,PromisePrototypeThen:E,Symbol:k}=Ka(),M=k("kEmpty"),P=k("kEof");function D(fe,ee){if(ee!=null&&u(ee,"options"),(ee==null?void 0:ee.signal)!=null&&l(ee.signal,"options.signal"),y(fe)&&!v(fe))throw new r("stream",fe,"must be writable");let ne=p(this,fe);return ee!=null&&ee.signal&&m(ee.signal,ne),ne}function R(fe,ee){if(typeof fe!="function")throw new i("fn",["Function","AsyncFunction"],fe);ee!=null&&u(ee,"options"),(ee==null?void 0:ee.signal)!=null&&l(ee.signal,"options.signal");let ne=1;return(ee==null?void 0:ee.concurrency)!=null&&(ne=b(ee.concurrency)),c(ne,"concurrency",1),(async function*(){var ue,ye;let me=new n,pe=this,he=[],_e=me.signal,le={signal:_e},xe=()=>me.abort();ee!=null&&(ue=ee.signal)!==null&&ue!==void 0&&ue.aborted&&xe(),ee==null||(ye=ee.signal)===null||ye===void 0||ye.addEventListener("abort",xe);let we,De,Fe=!1;function Ce(){Fe=!0}async function Te(){try{for await(let Ne of pe){var ke;if(Fe)return;if(_e.aborted)throw new s;try{Ne=fe(Ne,le)}catch(We){Ne=x(We)}Ne!==M&&(typeof((ke=Ne)===null||ke===void 0?void 0:ke.catch)=="function"&&Ne.catch(Ce),he.push(Ne),we&&(we(),we=null),!Fe&&he.length&&he.length>=ne&&await new T(We=>{De=We}))}he.push(P)}catch(Ne){let We=x(Ne);E(We,void 0,Ce),he.push(We)}finally{var Pe;Fe=!0,we&&(we(),we=null),ee==null||(Pe=ee.signal)===null||Pe===void 0||Pe.removeEventListener("abort",xe)}}Te();try{for(;;){for(;he.length>0;){let ke=await he[0];if(ke===P)return;if(_e.aborted)throw new s;ke!==M&&(yield ke),he.shift(),De&&(De(),De=null)}await new T(ke=>{we=ke})}}finally{me.abort(),Fe=!0,De&&(De(),De=null)}}).call(this)}function A(fe=void 0){return fe!=null&&u(fe,"options"),(fe==null?void 0:fe.signal)!=null&&l(fe.signal,"options.signal"),(async function*(){let ee=0;for await(let ue of this){var ne;if(fe!=null&&(ne=fe.signal)!==null&&ne!==void 0&&ne.aborted)throw new s({cause:fe.signal.reason});yield[ee++,ue]}}).call(this)}async function H(fe,ee=void 0){for await(let ne of q.call(this,fe,ee))return!0;return!1}async function F(fe,ee=void 0){if(typeof fe!="function")throw new i("fn",["Function","AsyncFunction"],fe);return!await H.call(this,async(...ne)=>!await fe(...ne),ee)}async function z(fe,ee){for await(let ne of q.call(this,fe,ee))return ne}async function W(fe,ee){if(typeof fe!="function")throw new i("fn",["Function","AsyncFunction"],fe);async function ne(ue,ye){return await fe(ue,ye),M}for await(let ue of R.call(this,ne,ee));}function q(fe,ee){if(typeof fe!="function")throw new i("fn",["Function","AsyncFunction"],fe);async function ne(ue,ye){return await fe(ue,ye)?ue:M}return R.call(this,ne,ee)}var Z=class extends o{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function N(fe,ee,ne){var ue;if(typeof fe!="function")throw new i("reducer",["Function","AsyncFunction"],fe);ne!=null&&u(ne,"options"),(ne==null?void 0:ne.signal)!=null&&l(ne.signal,"options.signal");let ye=arguments.length>1;if(ne!=null&&(ue=ne.signal)!==null&&ue!==void 0&&ue.aborted){let le=new s(void 0,{cause:ne.signal.reason});throw this.once("error",()=>{}),await h(this.destroy(le)),le}let me=new n,pe=me.signal;if(ne!=null&&ne.signal){let le={once:!0,[d]:this};ne.signal.addEventListener("abort",()=>me.abort(),le)}let he=!1;try{for await(let le of this){var _e;if(he=!0,ne!=null&&(_e=ne.signal)!==null&&_e!==void 0&&_e.aborted)throw new s;ye?ee=await fe(ee,le,{signal:pe}):(ee=le,ye=!0)}if(!he&&!ye)throw new Z}finally{me.abort()}return ee}async function B(fe){fe!=null&&u(fe,"options"),(fe==null?void 0:fe.signal)!=null&&l(fe.signal,"options.signal");let ee=[];for await(let ue of this){var ne;if(fe!=null&&(ne=fe.signal)!==null&&ne!==void 0&&ne.aborted)throw new s(void 0,{cause:fe.signal.reason});S(ee,ue)}return ee}function V(fe,ee){let ne=R.call(this,fe,ee);return(async function*(){for await(let ue of ne)yield*ue}).call(this)}function Y(fe){if(fe=C(fe),_(fe))return 0;if(fe<0)throw new a("number",">= 0",fe);return fe}function ie(fe,ee=void 0){return ee!=null&&u(ee,"options"),(ee==null?void 0:ee.signal)!=null&&l(ee.signal,"options.signal"),fe=Y(fe),(async function*(){var ne;if(ee!=null&&(ne=ee.signal)!==null&&ne!==void 0&&ne.aborted)throw new s;for await(let ye of this){var ue;if(ee!=null&&(ue=ee.signal)!==null&&ue!==void 0&&ue.aborted)throw new s;fe--<=0&&(yield ye)}}).call(this)}function ce(fe,ee=void 0){return ee!=null&&u(ee,"options"),(ee==null?void 0:ee.signal)!=null&&l(ee.signal,"options.signal"),fe=Y(fe),(async function*(){var ne;if(ee!=null&&(ne=ee.signal)!==null&&ne!==void 0&&ne.aborted)throw new s;for await(let ye of this){var ue;if(ee!=null&&(ue=ee.signal)!==null&&ue!==void 0&&ue.aborted)throw new s;if(fe-- >0)yield ye;else return}}).call(this)}t.exports.streamReturningOperators={asIndexedPairs:A,drop:ie,filter:q,flatMap:V,map:R,take:ce,compose:D},t.exports.promiseReturningOperators={every:F,forEach:W,reduce:N,toArray:B,some:H,find:z}}),ype=Tn((e,t)=>{pn(),gn(),mn();var{ArrayPrototypePop:n,Promise:r}=Ka(),{isIterable:i,isNodeStream:o,isWebStream:a}=Cp(),{pipelineImpl:s}=jz(),{finished:l}=hg();bpe();function c(...u){return new r((d,h)=>{let p,m,v=u[u.length-1];if(v&&typeof v=="object"&&!o(v)&&!i(v)&&!a(v)){let y=n(u);p=y.signal,m=y.end}s(u,(y,S)=>{y?h(y):d(S)},{signal:p,end:m})})}t.exports={finished:l,pipeline:c}}),bpe=Tn((e,t)=>{pn(),gn(),mn();var{Buffer:n}=(ks(),to(Ts)),{ObjectDefineProperty:r,ObjectKeys:i,ReflectApply:o}=Ka(),{promisify:{custom:a}}=sp(),{streamReturningOperators:s,promiseReturningOperators:l}=xRe(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:c}}=Xl(),u=vpe(),{pipeline:d}=jz(),{destroyer:h}=LS(),p=hg(),m=ype(),v=Cp(),y=t.exports=Nz().Stream;y.isDisturbed=v.isDisturbed,y.isErrored=v.isErrored,y.isReadable=v.isReadable,y.Readable=W6();for(let b of i(s)){let C=function(...T){if(new.target)throw c();return y.Readable.from(o(_,this,T))},_=s[b];r(C,"name",{__proto__:null,value:_.name}),r(C,"length",{__proto__:null,value:_.length}),r(y.Readable.prototype,b,{__proto__:null,value:C,enumerable:!1,configurable:!0,writable:!0})}for(let b of i(l)){let C=function(...T){if(new.target)throw c();return o(_,this,T)},_=l[b];r(C,"name",{__proto__:null,value:_.name}),r(C,"length",{__proto__:null,value:_.length}),r(y.Readable.prototype,b,{__proto__:null,value:C,enumerable:!1,configurable:!0,writable:!0})}y.Writable=ppe(),y.Duplex=lp(),y.Transform=mpe(),y.PassThrough=gpe(),y.pipeline=d;var{addAbortSignal:S}=z6();y.addAbortSignal=S,y.finished=p,y.destroy=h,y.compose=u,r(y,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return m}}),r(d,a,{__proto__:null,enumerable:!0,get(){return m.pipeline}}),r(p,a,{__proto__:null,enumerable:!0,get(){return m.finished}}),y.Stream=y,y._isUint8Array=function(b){return b instanceof Uint8Array},y._uint8ArrayToBuffer=function(b){return n.from(b.buffer,b.byteOffset,b.byteLength)}}),Wv=Tn((e,t)=>{pn(),gn(),mn();var n=bpe(),r=ype(),i=n.Readable.destroy;t.exports=n.Readable,t.exports._uint8ArrayToBuffer=n._uint8ArrayToBuffer,t.exports._isUint8Array=n._isUint8Array,t.exports.isDisturbed=n.isDisturbed,t.exports.isErrored=n.isErrored,t.exports.isReadable=n.isReadable,t.exports.Readable=n.Readable,t.exports.Writable=n.Writable,t.exports.Duplex=n.Duplex,t.exports.Transform=n.Transform,t.exports.PassThrough=n.PassThrough,t.exports.addAbortSignal=n.addAbortSignal,t.exports.finished=n.finished,t.exports.destroy=n.destroy,t.exports.destroy=i,t.exports.pipeline=n.pipeline,t.exports.compose=n.compose,Object.defineProperty(n,"promises",{configurable:!0,enumerable:!0,get(){return r}}),t.exports.Stream=n.Stream,t.exports.default=t.exports}),wRe=Tn((e,t)=>{pn(),gn(),mn(),typeof Object.create=="function"?t.exports=function(n,r){r&&(n.super_=r,n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(n,r){if(r){n.super_=r;var i=function(){};i.prototype=r.prototype,n.prototype=new i,n.prototype.constructor=n}}}),_Re=Tn((e,t)=>{pn(),gn(),mn();var{Buffer:n}=(ks(),to(Ts)),r=Symbol.for("BufferList");function i(o){if(!(this instanceof i))return new i(o);i._init.call(this,o)}i._init=function(o){Object.defineProperty(this,r,{value:!0}),this._bufs=[],this.length=0,o&&this.append(o)},i.prototype._new=function(o){return new i(o)},i.prototype._offset=function(o){if(o===0)return[0,0];let a=0;for(let s=0;s<this._bufs.length;s++){let l=a+this._bufs[s].length;if(o<l||s===this._bufs.length-1)return[s,o-a];a=l}},i.prototype._reverseOffset=function(o){let a=o[0],s=o[1];for(let l=0;l<a;l++)s+=this._bufs[l].length;return s},i.prototype.get=function(o){if(o>this.length||o<0)return;let a=this._offset(o);return this._bufs[a[0]][a[1]]},i.prototype.slice=function(o,a){return typeof o=="number"&&o<0&&(o+=this.length),typeof a=="number"&&a<0&&(a+=this.length),this.copy(null,0,o,a)},i.prototype.copy=function(o,a,s,l){if((typeof s!="number"||s<0)&&(s=0),(typeof l!="number"||l>this.length)&&(l=this.length),s>=this.length||l<=0)return o||n.alloc(0);let c=!!o,u=this._offset(s),d=l-s,h=d,p=c&&a||0,m=u[1];if(s===0&&l===this.length){if(!c)return this._bufs.length===1?this._bufs[0]:n.concat(this._bufs,this.length);for(let v=0;v<this._bufs.length;v++)this._bufs[v].copy(o,p),p+=this._bufs[v].length;return o}if(h<=this._bufs[u[0]].length-m)return c?this._bufs[u[0]].copy(o,a,m,m+h):this._bufs[u[0]].slice(m,m+h);c||(o=n.allocUnsafe(d));for(let v=u[0];v<this._bufs.length;v++){let y=this._bufs[v].length-m;if(h>y)this._bufs[v].copy(o,p,m),p+=y;else{this._bufs[v].copy(o,p,m,m+h),p+=y;break}h-=y,m&&(m=0)}return o.length>p?o.slice(0,p):o},i.prototype.shallowSlice=function(o,a){if(o=o||0,a=typeof a!="number"?this.length:a,o<0&&(o+=this.length),a<0&&(a+=this.length),o===a)return this._new();let s=this._offset(o),l=this._offset(a),c=this._bufs.slice(s[0],l[0]+1);return l[1]===0?c.pop():c[c.length-1]=c[c.length-1].slice(0,l[1]),s[1]!==0&&(c[0]=c[0].slice(s[1])),this._new(c)},i.prototype.toString=function(o,a,s){return this.slice(a,s).toString(o)},i.prototype.consume=function(o){if(o=Math.trunc(o),Number.isNaN(o)||o<=0)return this;for(;this._bufs.length;)if(o>=this._bufs[0].length)o-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(o),this.length-=o;break}return this},i.prototype.duplicate=function(){let o=this._new();for(let a=0;a<this._bufs.length;a++)o.append(this._bufs[a]);return o},i.prototype.append=function(o){if(o==null)return this;if(o.buffer)this._appendBuffer(n.from(o.buffer,o.byteOffset,o.byteLength));else if(Array.isArray(o))for(let a=0;a<o.length;a++)this.append(o[a]);else if(this._isBufferList(o))for(let a=0;a<o._bufs.length;a++)this.append(o._bufs[a]);else typeof o=="number"&&(o=o.toString()),this._appendBuffer(n.from(o));return this},i.prototype._appendBuffer=function(o){this._bufs.push(o),this.length+=o.length},i.prototype.indexOf=function(o,a,s){if(s===void 0&&typeof a=="string"&&(s=a,a=void 0),typeof o=="function"||Array.isArray(o))throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.');if(typeof o=="number"?o=n.from([o]):typeof o=="string"?o=n.from(o,s):this._isBufferList(o)?o=o.slice():Array.isArray(o.buffer)?o=n.from(o.buffer,o.byteOffset,o.byteLength):n.isBuffer(o)||(o=n.from(o)),a=Number(a||0),isNaN(a)&&(a=0),a<0&&(a=this.length+a),a<0&&(a=0),o.length===0)return a>this.length?this.length:a;let l=this._offset(a),c=l[0],u=l[1];for(;c<this._bufs.length;c++){let d=this._bufs[c];for(;u<d.length;)if(d.length-u>=o.length){let h=d.indexOf(o,u);if(h!==-1)return this._reverseOffset([c,h]);u=d.length-o.length+1}else{let h=this._reverseOffset([c,u]);if(this._match(h,o))return h;u++}u=0}return-1},i.prototype._match=function(o,a){if(this.length-o<a.length)return!1;for(let s=0;s<a.length;s++)if(this.get(o+s)!==a[s])return!1;return!0},function(){let o={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readBigInt64BE:8,readBigInt64LE:8,readBigUInt64BE:8,readBigUInt64LE:8,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1,readIntBE:null,readIntLE:null,readUIntBE:null,readUIntLE:null};for(let a in o)(function(s){o[s]===null?i.prototype[s]=function(l,c){return this.slice(l,l+c)[s](0,c)}:i.prototype[s]=function(l=0){return this.slice(l,l+o[s])[s](0)}})(a)}(),i.prototype._isBufferList=function(o){return o instanceof i||i.isBufferList(o)},i.isBufferList=function(o){return o!=null&&o[r]},t.exports=i}),ERe=Tn((e,t)=>{pn(),gn(),mn();var n=Wv().Duplex,r=wRe(),i=_Re();function o(a){if(!(this instanceof o))return new o(a);if(typeof a=="function"){this._callback=a;let s=(function(l){this._callback&&(this._callback(l),this._callback=null)}).bind(this);this.on("pipe",function(l){l.on("error",s)}),this.on("unpipe",function(l){l.removeListener("error",s)}),a=null}i._init.call(this,a),n.call(this)}r(o,n),Object.assign(o.prototype,i.prototype),o.prototype._new=function(a){return new o(a)},o.prototype._write=function(a,s,l){this._appendBuffer(a),typeof l=="function"&&l()},o.prototype._read=function(a){if(!this.length)return this.push(null);a=Math.min(a,this.length),this.push(this.slice(0,a)),this.consume(a)},o.prototype.end=function(a){n.prototype.end.call(this,a),this._callback&&(this._callback(null,this.slice()),this._callback=null)},o.prototype._destroy=function(a,s){this._bufs.length=0,this.length=0,s(a)},o.prototype._isBufferList=function(a){return a instanceof o||a instanceof i||o.isBufferList(a)},o.isBufferList=i.isBufferList,t.exports=o,t.exports.BufferListStream=o,t.exports.BufferList=i}),TRe=Tn((e,t)=>{pn(),gn(),mn();var n=class{constructor(){this.cmd=null,this.retain=!1,this.qos=0,this.dup=!1,this.length=-1,this.topic=null,this.payload=null}};t.exports=n}),Spe=Tn((e,t)=>{pn(),gn(),mn();var n=t.exports,{Buffer:r}=(ks(),to(Ts));n.types={0:"reserved",1:"connect",2:"connack",3:"publish",4:"puback",5:"pubrec",6:"pubrel",7:"pubcomp",8:"subscribe",9:"suback",10:"unsubscribe",11:"unsuback",12:"pingreq",13:"pingresp",14:"disconnect",15:"auth"},n.requiredHeaderFlags={1:0,2:0,4:0,5:0,6:2,7:0,8:2,9:0,10:2,11:0,12:0,13:0,14:0,15:0},n.requiredHeaderFlagsErrors={};for(let o in n.requiredHeaderFlags){let a=n.requiredHeaderFlags[o];n.requiredHeaderFlagsErrors[o]="Invalid header flag bits, must be 0x"+a.toString(16)+" for "+n.types[o]+" packet"}n.codes={};for(let o in n.types){let a=n.types[o];n.codes[a]=o}n.CMD_SHIFT=4,n.CMD_MASK=240,n.DUP_MASK=8,n.QOS_MASK=3,n.QOS_SHIFT=1,n.RETAIN_MASK=1,n.VARBYTEINT_MASK=127,n.VARBYTEINT_FIN_MASK=128,n.VARBYTEINT_MAX=268435455,n.SESSIONPRESENT_MASK=1,n.SESSIONPRESENT_HEADER=r.from([n.SESSIONPRESENT_MASK]),n.CONNACK_HEADER=r.from([n.codes.connack<<n.CMD_SHIFT]),n.USERNAME_MASK=128,n.PASSWORD_MASK=64,n.WILL_RETAIN_MASK=32,n.WILL_QOS_MASK=24,n.WILL_QOS_SHIFT=3,n.WILL_FLAG_MASK=4,n.CLEAN_SESSION_MASK=2,n.CONNECT_HEADER=r.from([n.codes.connect<<n.CMD_SHIFT]),n.properties={sessionExpiryInterval:17,willDelayInterval:24,receiveMaximum:33,maximumPacketSize:39,topicAliasMaximum:34,requestResponseInformation:25,requestProblemInformation:23,userProperties:38,authenticationMethod:21,authenticationData:22,payloadFormatIndicator:1,messageExpiryInterval:2,contentType:3,responseTopic:8,correlationData:9,maximumQoS:36,retainAvailable:37,assignedClientIdentifier:18,reasonString:31,wildcardSubscriptionAvailable:40,subscriptionIdentifiersAvailable:41,sharedSubscriptionAvailable:42,serverKeepAlive:19,responseInformation:26,serverReference:28,topicAlias:35,subscriptionIdentifier:11},n.propertiesCodes={};for(let o in n.properties){let a=n.properties[o];n.propertiesCodes[a]=o}n.propertiesTypes={sessionExpiryInterval:"int32",willDelayInterval:"int32",receiveMaximum:"int16",maximumPacketSize:"int32",topicAliasMaximum:"int16",requestResponseInformation:"byte",requestProblemInformation:"byte",userProperties:"pair",authenticationMethod:"string",authenticationData:"binary",payloadFormatIndicator:"byte",messageExpiryInterval:"int32",contentType:"string",responseTopic:"string",correlationData:"binary",maximumQoS:"int8",retainAvailable:"byte",assignedClientIdentifier:"string",reasonString:"string",wildcardSubscriptionAvailable:"byte",subscriptionIdentifiersAvailable:"byte",sharedSubscriptionAvailable:"byte",serverKeepAlive:"int16",responseInformation:"string",serverReference:"string",topicAlias:"int16",subscriptionIdentifier:"var"};function i(o){return[0,1,2].map(a=>[0,1].map(s=>[0,1].map(l=>{let c=r.alloc(1);return c.writeUInt8(n.codes[o]<<n.CMD_SHIFT|(s?n.DUP_MASK:0)|a<<n.QOS_SHIFT|l,0,!0),c})))}n.PUBLISH_HEADER=i("publish"),n.SUBSCRIBE_HEADER=i("subscribe"),n.SUBSCRIBE_OPTIONS_QOS_MASK=3,n.SUBSCRIBE_OPTIONS_NL_MASK=1,n.SUBSCRIBE_OPTIONS_NL_SHIFT=2,n.SUBSCRIBE_OPTIONS_RAP_MASK=1,n.SUBSCRIBE_OPTIONS_RAP_SHIFT=3,n.SUBSCRIBE_OPTIONS_RH_MASK=3,n.SUBSCRIBE_OPTIONS_RH_SHIFT=4,n.SUBSCRIBE_OPTIONS_RH=[0,16,32],n.SUBSCRIBE_OPTIONS_NL=4,n.SUBSCRIBE_OPTIONS_RAP=8,n.SUBSCRIBE_OPTIONS_QOS=[0,1,2],n.UNSUBSCRIBE_HEADER=i("unsubscribe"),n.ACKS={unsuback:i("unsuback"),puback:i("puback"),pubcomp:i("pubcomp"),pubrel:i("pubrel"),pubrec:i("pubrec")},n.SUBACK_HEADER=r.from([n.codes.suback<<n.CMD_SHIFT]),n.VERSION3=r.from([3]),n.VERSION4=r.from([4]),n.VERSION5=r.from([5]),n.VERSION131=r.from([131]),n.VERSION132=r.from([132]),n.QOS=[0,1,2].map(o=>r.from([o])),n.EMPTY={pingreq:r.from([n.codes.pingreq<<4,0]),pingresp:r.from([n.codes.pingresp<<4,0]),disconnect:r.from([n.codes.disconnect<<4,0])},n.MQTT5_PUBACK_PUBREC_CODES={0:"Success",16:"No matching subscribers",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",144:"Topic Name invalid",145:"Packet identifier in use",151:"Quota exceeded",153:"Payload format invalid"},n.MQTT5_PUBREL_PUBCOMP_CODES={0:"Success",146:"Packet Identifier not found"},n.MQTT5_SUBACK_CODES={0:"Granted QoS 0",1:"Granted QoS 1",2:"Granted QoS 2",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",143:"Topic Filter invalid",145:"Packet Identifier in use",151:"Quota exceeded",158:"Shared Subscriptions not supported",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"},n.MQTT5_UNSUBACK_CODES={0:"Success",17:"No subscription existed",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",143:"Topic Filter invalid",145:"Packet Identifier in use"},n.MQTT5_DISCONNECT_CODES={0:"Normal disconnection",4:"Disconnect with Will Message",128:"Unspecified error",129:"Malformed Packet",130:"Protocol Error",131:"Implementation specific error",135:"Not authorized",137:"Server busy",139:"Server shutting down",141:"Keep Alive timeout",142:"Session taken over",143:"Topic Filter invalid",144:"Topic Name invalid",147:"Receive Maximum exceeded",148:"Topic Alias invalid",149:"Packet too large",150:"Message rate too high",151:"Quota exceeded",152:"Administrative action",153:"Payload format invalid",154:"Retain not supported",155:"QoS not supported",156:"Use another server",157:"Server moved",158:"Shared Subscriptions not supported",159:"Connection rate exceeded",160:"Maximum connect time",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"},n.MQTT5_AUTH_CODES={0:"Success",24:"Continue authentication",25:"Re-authenticate"}}),kRe=Tn((e,t)=>{pn(),gn(),mn();var n=1e3,r=n*60,i=r*60,o=i*24,a=o*7,s=o*365.25;t.exports=function(h,p){p=p||{};var m=typeof h;if(m==="string"&&h.length>0)return l(h);if(m==="number"&&isFinite(h))return p.long?u(h):c(h);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(h))};function l(h){if(h=String(h),!(h.length>100)){var p=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(h);if(p){var m=parseFloat(p[1]),v=(p[2]||"ms").toLowerCase();switch(v){case"years":case"year":case"yrs":case"yr":case"y":return m*s;case"weeks":case"week":case"w":return m*a;case"days":case"day":case"d":return m*o;case"hours":case"hour":case"hrs":case"hr":case"h":return m*i;case"minutes":case"minute":case"mins":case"min":case"m":return m*r;case"seconds":case"second":case"secs":case"sec":case"s":return m*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return m;default:return}}}}function c(h){var p=Math.abs(h);return p>=o?Math.round(h/o)+"d":p>=i?Math.round(h/i)+"h":p>=r?Math.round(h/r)+"m":p>=n?Math.round(h/n)+"s":h+"ms"}function u(h){var p=Math.abs(h);return p>=o?d(h,p,o,"day"):p>=i?d(h,p,i,"hour"):p>=r?d(h,p,r,"minute"):p>=n?d(h,p,n,"second"):h+" ms"}function d(h,p,m,v){var y=p>=m*1.5;return Math.round(h/m)+" "+v+(y?"s":"")}}),ORe=Tn((e,t)=>{pn(),gn(),mn();function n(r){o.debug=o,o.default=o,o.coerce=d,o.disable=l,o.enable=s,o.enabled=c,o.humanize=kRe(),o.destroy=h,Object.keys(r).forEach(p=>{o[p]=r[p]}),o.names=[],o.skips=[],o.formatters={};function i(p){let m=0;for(let v=0;v<p.length;v++)m=(m<<5)-m+p.charCodeAt(v),m|=0;return o.colors[Math.abs(m)%o.colors.length]}o.selectColor=i;function o(p){let m,v=null,y,S;function b(...C){if(!b.enabled)return;let _=b,T=Number(new Date),x=T-(m||T);_.diff=x,_.prev=m,_.curr=T,m=T,C[0]=o.coerce(C[0]),typeof C[0]!="string"&&C.unshift("%O");let E=0;C[0]=C[0].replace(/%([a-zA-Z%])/g,(k,M)=>{if(k==="%%")return"%";E++;let P=o.formatters[M];if(typeof P=="function"){let D=C[E];k=P.call(_,D),C.splice(E,1),E--}return k}),o.formatArgs.call(_,C),(_.log||o.log).apply(_,C)}return b.namespace=p,b.useColors=o.useColors(),b.color=o.selectColor(p),b.extend=a,b.destroy=o.destroy,Object.defineProperty(b,"enabled",{enumerable:!0,configurable:!1,get:()=>v!==null?v:(y!==o.namespaces&&(y=o.namespaces,S=o.enabled(p)),S),set:C=>{v=C}}),typeof o.init=="function"&&o.init(b),b}function a(p,m){let v=o(this.namespace+(typeof m>"u"?":":m)+p);return v.log=this.log,v}function s(p){o.save(p),o.namespaces=p,o.names=[],o.skips=[];let m,v=(typeof p=="string"?p:"").split(/[\s,]+/),y=v.length;for(m=0;m<y;m++)v[m]&&(p=v[m].replace(/\*/g,".*?"),p[0]==="-"?o.skips.push(new RegExp("^"+p.slice(1)+"$")):o.names.push(new RegExp("^"+p+"$")))}function l(){let p=[...o.names.map(u),...o.skips.map(u).map(m=>"-"+m)].join(",");return o.enable(""),p}function c(p){if(p[p.length-1]==="*")return!0;let m,v;for(m=0,v=o.skips.length;m<v;m++)if(o.skips[m].test(p))return!1;for(m=0,v=o.names.length;m<v;m++)if(o.names[m].test(p))return!0;return!1}function u(p){return p.toString().substring(2,p.toString().length-2).replace(/\.\*\?$/,"*")}function d(p){return p instanceof Error?p.stack||p.message:p}function h(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return o.enable(o.load()),o}t.exports=n}),cp=Tn((e,t)=>{pn(),gn(),mn(),e.formatArgs=r,e.save=i,e.load=o,e.useColors=n,e.storage=a(),e.destroy=(()=>{let l=!1;return()=>{l||(l=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(l){if(l[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+l[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;let c="color: "+this.color;l.splice(1,0,c,"color: inherit");let u=0,d=0;l[0].replace(/%[a-zA-Z%]/g,h=>{h!=="%%"&&(u++,h==="%c"&&(d=u))}),l.splice(d,0,c)}e.log=console.debug||console.log||(()=>{});function i(l){try{l?e.storage.setItem("debug",l):e.storage.removeItem("debug")}catch{}}function o(){let l;try{l=e.storage.getItem("debug")}catch{}return!l&&typeof Ni<"u"&&"env"in Ni&&(l=Ni.env.DEBUG),l}function a(){try{return localStorage}catch{}}t.exports=ORe()(e);var{formatters:s}=t.exports;s.j=function(l){try{return JSON.stringify(l)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}}}),PRe=Tn((e,t)=>{pn(),gn(),mn();var n=ERe(),{EventEmitter:r}=(FS(),to(Uv)),i=TRe(),o=Spe(),a=cp()("mqtt-packet:parser"),s=class $L extends r{constructor(){super(),this.parser=this.constructor.parser}static parser(c){return this instanceof $L?(this.settings=c||{},this._states=["_parseHeader","_parseLength","_parsePayload","_newPacket"],this._resetState(),this):new $L().parser(c)}_resetState(){a("_resetState: resetting packet, error, _list, and _stateCounter"),this.packet=new i,this.error=null,this._list=n(),this._stateCounter=0}parse(c){for(this.error&&this._resetState(),this._list.append(c),a("parse: current state: %s",this._states[this._stateCounter]);(this.packet.length!==-1||this._list.length>0)&&this[this._states[this._stateCounter]]()&&!this.error;)this._stateCounter++,a("parse: state complete. _stateCounter is now: %d",this._stateCounter),a("parse: packet.length: %d, buffer list length: %d",this.packet.length,this._list.length),this._stateCounter>=this._states.length&&(this._stateCounter=0);return a("parse: exited while loop. packet: %d, buffer list length: %d",this.packet.length,this._list.length),this._list.length}_parseHeader(){let c=this._list.readUInt8(0),u=c>>o.CMD_SHIFT;this.packet.cmd=o.types[u];let d=c&15,h=o.requiredHeaderFlags[u];return h!=null&&d!==h?this._emitError(new Error(o.requiredHeaderFlagsErrors[u])):(this.packet.retain=(c&o.RETAIN_MASK)!==0,this.packet.qos=c>>o.QOS_SHIFT&o.QOS_MASK,this.packet.qos>2?this._emitError(new Error("Packet must not have both QoS bits set to 1")):(this.packet.dup=(c&o.DUP_MASK)!==0,a("_parseHeader: packet: %o",this.packet),this._list.consume(1),!0))}_parseLength(){let c=this._parseVarByteNum(!0);return c&&(this.packet.length=c.value,this._list.consume(c.bytes)),a("_parseLength %d",c.value),!!c}_parsePayload(){a("_parsePayload: payload %O",this._list);let c=!1;if(this.packet.length===0||this._list.length>=this.packet.length){switch(this._pos=0,this.packet.cmd){case"connect":this._parseConnect();break;case"connack":this._parseConnack();break;case"publish":this._parsePublish();break;case"puback":case"pubrec":case"pubrel":case"pubcomp":this._parseConfirmation();break;case"subscribe":this._parseSubscribe();break;case"suback":this._parseSuback();break;case"unsubscribe":this._parseUnsubscribe();break;case"unsuback":this._parseUnsuback();break;case"pingreq":case"pingresp":break;case"disconnect":this._parseDisconnect();break;case"auth":this._parseAuth();break;default:this._emitError(new Error("Not supported"))}c=!0}return a("_parsePayload complete result: %s",c),c}_parseConnect(){a("_parseConnect");let c,u,d,h,p={},m=this.packet,v=this._parseString();if(v===null)return this._emitError(new Error("Cannot parse protocolId"));if(v!=="MQTT"&&v!=="MQIsdp")return this._emitError(new Error("Invalid protocolId"));if(m.protocolId=v,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(m.protocolVersion=this._list.readUInt8(this._pos),m.protocolVersion>=128&&(m.bridgeMode=!0,m.protocolVersion=m.protocolVersion-128),m.protocolVersion!==3&&m.protocolVersion!==4&&m.protocolVersion!==5)return this._emitError(new Error("Invalid protocol version"));if(this._pos++,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(this._list.readUInt8(this._pos)&1)return this._emitError(new Error("Connect flag bit 0 must be 0, but got 1"));p.username=this._list.readUInt8(this._pos)&o.USERNAME_MASK,p.password=this._list.readUInt8(this._pos)&o.PASSWORD_MASK,p.will=this._list.readUInt8(this._pos)&o.WILL_FLAG_MASK;let y=!!(this._list.readUInt8(this._pos)&o.WILL_RETAIN_MASK),S=(this._list.readUInt8(this._pos)&o.WILL_QOS_MASK)>>o.WILL_QOS_SHIFT;if(p.will)m.will={},m.will.retain=y,m.will.qos=S;else{if(y)return this._emitError(new Error("Will Retain Flag must be set to zero when Will Flag is set to 0"));if(S)return this._emitError(new Error("Will QoS must be set to zero when Will Flag is set to 0"))}if(m.clean=(this._list.readUInt8(this._pos)&o.CLEAN_SESSION_MASK)!==0,this._pos++,m.keepalive=this._parseNum(),m.keepalive===-1)return this._emitError(new Error("Packet too short"));if(m.protocolVersion===5){let C=this._parseProperties();Object.getOwnPropertyNames(C).length&&(m.properties=C)}let b=this._parseString();if(b===null)return this._emitError(new Error("Packet too short"));if(m.clientId=b,a("_parseConnect: packet.clientId: %s",m.clientId),p.will){if(m.protocolVersion===5){let C=this._parseProperties();Object.getOwnPropertyNames(C).length&&(m.will.properties=C)}if(c=this._parseString(),c===null)return this._emitError(new Error("Cannot parse will topic"));if(m.will.topic=c,a("_parseConnect: packet.will.topic: %s",m.will.topic),u=this._parseBuffer(),u===null)return this._emitError(new Error("Cannot parse will payload"));m.will.payload=u,a("_parseConnect: packet.will.paylaod: %s",m.will.payload)}if(p.username){if(h=this._parseString(),h===null)return this._emitError(new Error("Cannot parse username"));m.username=h,a("_parseConnect: packet.username: %s",m.username)}if(p.password){if(d=this._parseBuffer(),d===null)return this._emitError(new Error("Cannot parse password"));m.password=d}return this.settings=m,a("_parseConnect: complete"),m}_parseConnack(){a("_parseConnack");let c=this.packet;if(this._list.length<1)return null;let u=this._list.readUInt8(this._pos++);if(u>1)return this._emitError(new Error("Invalid connack flags, bits 7-1 must be set to 0"));if(c.sessionPresent=!!(u&o.SESSIONPRESENT_MASK),this.settings.protocolVersion===5)this._list.length>=2?c.reasonCode=this._list.readUInt8(this._pos++):c.reasonCode=0;else{if(this._list.length<2)return null;c.returnCode=this._list.readUInt8(this._pos++)}if(c.returnCode===-1||c.reasonCode===-1)return this._emitError(new Error("Cannot parse return code"));if(this.settings.protocolVersion===5){let d=this._parseProperties();Object.getOwnPropertyNames(d).length&&(c.properties=d)}a("_parseConnack: complete")}_parsePublish(){a("_parsePublish");let c=this.packet;if(c.topic=this._parseString(),c.topic===null)return this._emitError(new Error("Cannot parse topic"));if(!(c.qos>0&&!this._parseMessageId())){if(this.settings.protocolVersion===5){let u=this._parseProperties();Object.getOwnPropertyNames(u).length&&(c.properties=u)}c.payload=this._list.slice(this._pos,c.length),a("_parsePublish: payload from buffer list: %o",c.payload)}}_parseSubscribe(){a("_parseSubscribe");let c=this.packet,u,d,h,p,m,v,y;if(c.subscriptions=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let S=this._parseProperties();Object.getOwnPropertyNames(S).length&&(c.properties=S)}if(c.length<=0)return this._emitError(new Error("Malformed subscribe, no payload specified"));for(;this._pos<c.length;){if(u=this._parseString(),u===null)return this._emitError(new Error("Cannot parse topic"));if(this._pos>=c.length)return this._emitError(new Error("Malformed Subscribe Payload"));if(d=this._parseByte(),this.settings.protocolVersion===5){if(d&192)return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-6 must be 0"))}else if(d&252)return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-2 must be 0"));if(h=d&o.SUBSCRIBE_OPTIONS_QOS_MASK,h>2)return this._emitError(new Error("Invalid subscribe QoS, must be <= 2"));if(v=(d>>o.SUBSCRIBE_OPTIONS_NL_SHIFT&o.SUBSCRIBE_OPTIONS_NL_MASK)!==0,m=(d>>o.SUBSCRIBE_OPTIONS_RAP_SHIFT&o.SUBSCRIBE_OPTIONS_RAP_MASK)!==0,p=d>>o.SUBSCRIBE_OPTIONS_RH_SHIFT&o.SUBSCRIBE_OPTIONS_RH_MASK,p>2)return this._emitError(new Error("Invalid retain handling, must be <= 2"));y={topic:u,qos:h},this.settings.protocolVersion===5?(y.nl=v,y.rap=m,y.rh=p):this.settings.bridgeMode&&(y.rh=0,y.rap=!0,y.nl=!0),a("_parseSubscribe: push subscription `%s` to subscription",y),c.subscriptions.push(y)}}}_parseSuback(){a("_parseSuback");let c=this.packet;if(this.packet.granted=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let u=this._parseProperties();Object.getOwnPropertyNames(u).length&&(c.properties=u)}if(c.length<=0)return this._emitError(new Error("Malformed suback, no payload specified"));for(;this._pos<this.packet.length;){let u=this._list.readUInt8(this._pos++);if(this.settings.protocolVersion===5){if(!o.MQTT5_SUBACK_CODES[u])return this._emitError(new Error("Invalid suback code"))}else if(u>2&&u!==128)return this._emitError(new Error("Invalid suback QoS, must be 0, 1, 2 or 128"));this.packet.granted.push(u)}}}_parseUnsubscribe(){a("_parseUnsubscribe");let c=this.packet;if(c.unsubscriptions=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let u=this._parseProperties();Object.getOwnPropertyNames(u).length&&(c.properties=u)}if(c.length<=0)return this._emitError(new Error("Malformed unsubscribe, no payload specified"));for(;this._pos<c.length;){let u=this._parseString();if(u===null)return this._emitError(new Error("Cannot parse topic"));a("_parseUnsubscribe: push topic `%s` to unsubscriptions",u),c.unsubscriptions.push(u)}}}_parseUnsuback(){a("_parseUnsuback");let c=this.packet;if(!this._parseMessageId())return this._emitError(new Error("Cannot parse messageId"));if((this.settings.protocolVersion===3||this.settings.protocolVersion===4)&&c.length!==2)return this._emitError(new Error("Malformed unsuback, payload length must be 2"));if(c.length<=0)return this._emitError(new Error("Malformed unsuback, no payload specified"));if(this.settings.protocolVersion===5){let u=this._parseProperties();for(Object.getOwnPropertyNames(u).length&&(c.properties=u),c.granted=[];this._pos<this.packet.length;){let d=this._list.readUInt8(this._pos++);if(!o.MQTT5_UNSUBACK_CODES[d])return this._emitError(new Error("Invalid unsuback code"));this.packet.granted.push(d)}}}_parseConfirmation(){a("_parseConfirmation: packet.cmd: `%s`",this.packet.cmd);let c=this.packet;if(this._parseMessageId(),this.settings.protocolVersion===5){if(c.length>2){switch(c.reasonCode=this._parseByte(),this.packet.cmd){case"puback":case"pubrec":if(!o.MQTT5_PUBACK_PUBREC_CODES[c.reasonCode])return this._emitError(new Error("Invalid "+this.packet.cmd+" reason code"));break;case"pubrel":case"pubcomp":if(!o.MQTT5_PUBREL_PUBCOMP_CODES[c.reasonCode])return this._emitError(new Error("Invalid "+this.packet.cmd+" reason code"));break}a("_parseConfirmation: packet.reasonCode `%d`",c.reasonCode)}else c.reasonCode=0;if(c.length>3){let u=this._parseProperties();Object.getOwnPropertyNames(u).length&&(c.properties=u)}}return!0}_parseDisconnect(){let c=this.packet;if(a("_parseDisconnect"),this.settings.protocolVersion===5){this._list.length>0?(c.reasonCode=this._parseByte(),o.MQTT5_DISCONNECT_CODES[c.reasonCode]||this._emitError(new Error("Invalid disconnect reason code"))):c.reasonCode=0;let u=this._parseProperties();Object.getOwnPropertyNames(u).length&&(c.properties=u)}return a("_parseDisconnect result: true"),!0}_parseAuth(){a("_parseAuth");let c=this.packet;if(this.settings.protocolVersion!==5)return this._emitError(new Error("Not supported auth packet for this version MQTT"));if(c.reasonCode=this._parseByte(),!o.MQTT5_AUTH_CODES[c.reasonCode])return this._emitError(new Error("Invalid auth reason code"));let u=this._parseProperties();return Object.getOwnPropertyNames(u).length&&(c.properties=u),a("_parseAuth: result: true"),!0}_parseMessageId(){let c=this.packet;return c.messageId=this._parseNum(),c.messageId===null?(this._emitError(new Error("Cannot parse messageId")),!1):(a("_parseMessageId: packet.messageId %d",c.messageId),!0)}_parseString(c){let u=this._parseNum(),d=u+this._pos;if(u===-1||d>this._list.length||d>this.packet.length)return null;let h=this._list.toString("utf8",this._pos,d);return this._pos+=u,a("_parseString: result: %s",h),h}_parseStringPair(){return a("_parseStringPair"),{name:this._parseString(),value:this._parseString()}}_parseBuffer(){let c=this._parseNum(),u=c+this._pos;if(c===-1||u>this._list.length||u>this.packet.length)return null;let d=this._list.slice(this._pos,u);return this._pos+=c,a("_parseBuffer: result: %o",d),d}_parseNum(){if(this._list.length-this._pos<2)return-1;let c=this._list.readUInt16BE(this._pos);return this._pos+=2,a("_parseNum: result: %s",c),c}_parse4ByteNum(){if(this._list.length-this._pos<4)return-1;let c=this._list.readUInt32BE(this._pos);return this._pos+=4,a("_parse4ByteNum: result: %s",c),c}_parseVarByteNum(c){a("_parseVarByteNum");let u=4,d=0,h=1,p=0,m=!1,v,y=this._pos?this._pos:0;for(;d<u&&y+d<this._list.length;){if(v=this._list.readUInt8(y+d++),p+=h*(v&o.VARBYTEINT_MASK),h*=128,!(v&o.VARBYTEINT_FIN_MASK)){m=!0;break}if(this._list.length<=d)break}return!m&&d===u&&this._list.length>=d&&this._emitError(new Error("Invalid variable byte integer")),y&&(this._pos+=d),m?c?m={bytes:d,value:p}:m=p:m=!1,a("_parseVarByteNum: result: %o",m),m}_parseByte(){let c;return this._pos<this._list.length&&(c=this._list.readUInt8(this._pos),this._pos++),a("_parseByte: result: %o",c),c}_parseByType(c){switch(a("_parseByType: type: %s",c),c){case"byte":return this._parseByte()!==0;case"int8":return this._parseByte();case"int16":return this._parseNum();case"int32":return this._parse4ByteNum();case"var":return this._parseVarByteNum();case"string":return this._parseString();case"pair":return this._parseStringPair();case"binary":return this._parseBuffer()}}_parseProperties(){a("_parseProperties");let c=this._parseVarByteNum(),u=this._pos+c,d={};for(;this._pos<u;){let h=this._parseByte();if(!h)return this._emitError(new Error("Cannot parse property code type")),!1;let p=o.propertiesCodes[h];if(!p)return this._emitError(new Error("Unknown property")),!1;if(p==="userProperties"){d[p]||(d[p]=Object.create(null));let m=this._parseByType(o.propertiesTypes[p]);if(d[p][m.name])if(Array.isArray(d[p][m.name]))d[p][m.name].push(m.value);else{let v=d[p][m.name];d[p][m.name]=[v],d[p][m.name].push(m.value)}else d[p][m.name]=m.value;continue}d[p]?Array.isArray(d[p])?d[p].push(this._parseByType(o.propertiesTypes[p])):(d[p]=[d[p]],d[p].push(this._parseByType(o.propertiesTypes[p]))):d[p]=this._parseByType(o.propertiesTypes[p])}return d}_newPacket(){return a("_newPacket"),this.packet&&(this._list.consume(this.packet.length),a("_newPacket: parser emit packet: packet.cmd: %s, packet.payload: %s, packet.length: %d",this.packet.cmd,this.packet.payload,this.packet.length),this.emit("packet",this.packet)),a("_newPacket: new packet"),this.packet=new i,this._pos=0,!0}_emitError(c){a("_emitError",c),this.error=c,this.emit("error",c)}};t.exports=s}),MRe=Tn((e,t)=>{pn(),gn(),mn();var{Buffer:n}=(ks(),to(Ts)),r=65536,i={},o=n.isBuffer(n.from([1,2]).subarray(0,1));function a(u){let d=n.allocUnsafe(2);return d.writeUInt8(u>>8,0),d.writeUInt8(u&255,1),d}function s(){for(let u=0;u<r;u++)i[u]=a(u)}function l(u){let d=0,h=0,p=n.allocUnsafe(4);do d=u%128|0,u=u/128|0,u>0&&(d=d|128),p.writeUInt8(d,h++);while(u>0&&h<4);return u>0&&(h=0),o?p.subarray(0,h):p.slice(0,h)}function c(u){let d=n.allocUnsafe(4);return d.writeUInt32BE(u,0),d}t.exports={cache:i,generateCache:s,generateNumber:a,genBufVariableByteInt:l,generate4ByteBuffer:c}}),IRe=Tn((e,t)=>{pn(),gn(),mn(),typeof Ni>"u"||!Ni.version||Ni.version.indexOf("v0.")===0||Ni.version.indexOf("v1.")===0&&Ni.version.indexOf("v1.8.")!==0?t.exports={nextTick:n}:t.exports=Ni;function n(r,i,o,a){if(typeof r!="function")throw new TypeError('"callback" argument must be a function');var s=arguments.length,l,c;switch(s){case 0:case 1:return Ni.nextTick(r);case 2:return Ni.nextTick(function(){r.call(null,i)});case 3:return Ni.nextTick(function(){r.call(null,i,o)});case 4:return Ni.nextTick(function(){r.call(null,i,o,a)});default:for(l=new Array(s-1),c=0;c<l.length;)l[c++]=arguments[c];return Ni.nextTick(function(){r.apply(null,l)})}}}),Cpe=Tn((e,t)=>{pn(),gn(),mn();var n=Spe(),{Buffer:r}=(ks(),to(Ts)),i=r.allocUnsafe(0),o=r.from([0]),a=MRe(),s=IRe().nextTick,l=cp()("mqtt-packet:writeToStream"),c=a.cache,u=a.generateNumber,d=a.generateCache,h=a.genBufVariableByteInt,p=a.generate4ByteBuffer,m=W,v=!0;function y(ee,ne,ue){switch(l("generate called"),ne.cork&&(ne.cork(),s(S,ne)),v&&(v=!1,d()),l("generate: packet.cmd: %s",ee.cmd),ee.cmd){case"connect":return b(ee,ne);case"connack":return C(ee,ne,ue);case"publish":return _(ee,ne,ue);case"puback":case"pubrec":case"pubrel":case"pubcomp":return T(ee,ne,ue);case"subscribe":return x(ee,ne,ue);case"suback":return E(ee,ne,ue);case"unsubscribe":return k(ee,ne,ue);case"unsuback":return M(ee,ne,ue);case"pingreq":case"pingresp":return P(ee,ne);case"disconnect":return D(ee,ne,ue);case"auth":return R(ee,ne,ue);default:return ne.destroy(new Error("Unknown command")),!1}}Object.defineProperty(y,"cacheNumbers",{get(){return m===W},set(ee){ee?((!c||Object.keys(c).length===0)&&(v=!0),m=W):(v=!1,m=q)}});function S(ee){ee.uncork()}function b(ee,ne,ue){let ye=ee||{},me=ye.protocolId||"MQTT",pe=ye.protocolVersion||4,he=ye.will,_e=ye.clean,le=ye.keepalive||0,xe=ye.clientId||"",we=ye.username,De=ye.password,Fe=ye.properties;_e===void 0&&(_e=!0);let Ce=0;if(!me||typeof me!="string"&&!r.isBuffer(me))return ne.destroy(new Error("Invalid protocolId")),!1;if(Ce+=me.length+2,pe!==3&&pe!==4&&pe!==5)return ne.destroy(new Error("Invalid protocol version")),!1;if(Ce+=1,(typeof xe=="string"||r.isBuffer(xe))&&(xe||pe>=4)&&(xe||_e))Ce+=r.byteLength(xe)+2;else{if(pe<4)return ne.destroy(new Error("clientId must be supplied before 3.1.1")),!1;if(_e*1===0)return ne.destroy(new Error("clientId must be given if cleanSession set to 0")),!1}if(typeof le!="number"||le<0||le>65535||le%1!==0)return ne.destroy(new Error("Invalid keepalive")),!1;Ce+=2,Ce+=1;let Te,ke;if(pe===5){if(Te=B(ne,Fe),!Te)return!1;Ce+=Te.length}if(he){if(typeof he!="object")return ne.destroy(new Error("Invalid will")),!1;if(!he.topic||typeof he.topic!="string")return ne.destroy(new Error("Invalid will topic")),!1;if(Ce+=r.byteLength(he.topic)+2,Ce+=2,he.payload)if(he.payload.length>=0)typeof he.payload=="string"?Ce+=r.byteLength(he.payload):Ce+=he.payload.length;else return ne.destroy(new Error("Invalid will payload")),!1;if(ke={},pe===5){if(ke=B(ne,he.properties),!ke)return!1;Ce+=ke.length}}let Pe=!1;if(we!=null)if(fe(we))Pe=!0,Ce+=r.byteLength(we)+2;else return ne.destroy(new Error("Invalid username")),!1;if(De!=null){if(!Pe)return ne.destroy(new Error("Username is required to use password")),!1;if(fe(De))Ce+=ce(De)+2;else return ne.destroy(new Error("Invalid password")),!1}ne.write(n.CONNECT_HEADER),H(ne,Ce),N(ne,me),ye.bridgeMode&&(pe+=128),ne.write(pe===131?n.VERSION131:pe===132?n.VERSION132:pe===4?n.VERSION4:pe===5?n.VERSION5:n.VERSION3);let Ne=0;return Ne|=we!=null?n.USERNAME_MASK:0,Ne|=De!=null?n.PASSWORD_MASK:0,Ne|=he&&he.retain?n.WILL_RETAIN_MASK:0,Ne|=he&&he.qos?he.qos<<n.WILL_QOS_SHIFT:0,Ne|=he?n.WILL_FLAG_MASK:0,Ne|=_e?n.CLEAN_SESSION_MASK:0,ne.write(r.from([Ne])),m(ne,le),pe===5&&Te.write(),N(ne,xe),he&&(pe===5&&ke.write(),F(ne,he.topic),N(ne,he.payload)),we!=null&&N(ne,we),De!=null&&N(ne,De),!0}function C(ee,ne,ue){let ye=ue?ue.protocolVersion:4,me=ee||{},pe=ye===5?me.reasonCode:me.returnCode,he=me.properties,_e=2;if(typeof pe!="number")return ne.destroy(new Error("Invalid return code")),!1;let le=null;if(ye===5){if(le=B(ne,he),!le)return!1;_e+=le.length}return ne.write(n.CONNACK_HEADER),H(ne,_e),ne.write(me.sessionPresent?n.SESSIONPRESENT_HEADER:o),ne.write(r.from([pe])),le==null||le.write(),!0}function _(ee,ne,ue){l("publish: packet: %o",ee);let ye=ue?ue.protocolVersion:4,me=ee||{},pe=me.qos||0,he=me.retain?n.RETAIN_MASK:0,_e=me.topic,le=me.payload||i,xe=me.messageId,we=me.properties,De=0;if(typeof _e=="string")De+=r.byteLength(_e)+2;else if(r.isBuffer(_e))De+=_e.length+2;else return ne.destroy(new Error("Invalid topic")),!1;if(r.isBuffer(le)?De+=le.length:De+=r.byteLength(le),pe&&typeof xe!="number")return ne.destroy(new Error("Invalid messageId")),!1;pe&&(De+=2);let Fe=null;if(ye===5){if(Fe=B(ne,we),!Fe)return!1;De+=Fe.length}return ne.write(n.PUBLISH_HEADER[pe][me.dup?1:0][he?1:0]),H(ne,De),m(ne,ce(_e)),ne.write(_e),pe>0&&m(ne,xe),Fe==null||Fe.write(),l("publish: payload: %o",le),ne.write(le)}function T(ee,ne,ue){let ye=ue?ue.protocolVersion:4,me=ee||{},pe=me.cmd||"puback",he=me.messageId,_e=me.dup&&pe==="pubrel"?n.DUP_MASK:0,le=0,xe=me.reasonCode,we=me.properties,De=ye===5?3:2;if(pe==="pubrel"&&(le=1),typeof he!="number")return ne.destroy(new Error("Invalid messageId")),!1;let Fe=null;if(ye===5&&typeof we=="object"){if(Fe=V(ne,we,ue,De),!Fe)return!1;De+=Fe.length}return ne.write(n.ACKS[pe][le][_e][0]),De===3&&(De+=xe!==0?1:-1),H(ne,De),m(ne,he),ye===5&&De!==2&&ne.write(r.from([xe])),Fe!==null?Fe.write():De===4&&ne.write(r.from([0])),!0}function x(ee,ne,ue){l("subscribe: packet: ");let ye=ue?ue.protocolVersion:4,me=ee||{},pe=me.dup?n.DUP_MASK:0,he=me.messageId,_e=me.subscriptions,le=me.properties,xe=0;if(typeof he!="number")return ne.destroy(new Error("Invalid messageId")),!1;xe+=2;let we=null;if(ye===5){if(we=B(ne,le),!we)return!1;xe+=we.length}if(typeof _e=="object"&&_e.length)for(let Fe=0;Fe<_e.length;Fe+=1){let Ce=_e[Fe].topic,Te=_e[Fe].qos;if(typeof Ce!="string")return ne.destroy(new Error("Invalid subscriptions - invalid topic")),!1;if(typeof Te!="number")return ne.destroy(new Error("Invalid subscriptions - invalid qos")),!1;if(ye===5){if(typeof(_e[Fe].nl||!1)!="boolean")return ne.destroy(new Error("Invalid subscriptions - invalid No Local")),!1;if(typeof(_e[Fe].rap||!1)!="boolean")return ne.destroy(new Error("Invalid subscriptions - invalid Retain as Published")),!1;let ke=_e[Fe].rh||0;if(typeof ke!="number"||ke>2)return ne.destroy(new Error("Invalid subscriptions - invalid Retain Handling")),!1}xe+=r.byteLength(Ce)+2+1}else return ne.destroy(new Error("Invalid subscriptions")),!1;l("subscribe: writing to stream: %o",n.SUBSCRIBE_HEADER),ne.write(n.SUBSCRIBE_HEADER[1][pe?1:0][0]),H(ne,xe),m(ne,he),we!==null&&we.write();let De=!0;for(let Fe of _e){let Ce=Fe.topic,Te=Fe.qos,ke=+Fe.nl,Pe=+Fe.rap,Ne=Fe.rh,We;F(ne,Ce),We=n.SUBSCRIBE_OPTIONS_QOS[Te],ye===5&&(We|=ke?n.SUBSCRIBE_OPTIONS_NL:0,We|=Pe?n.SUBSCRIBE_OPTIONS_RAP:0,We|=Ne?n.SUBSCRIBE_OPTIONS_RH[Ne]:0),De=ne.write(r.from([We]))}return De}function E(ee,ne,ue){let ye=ue?ue.protocolVersion:4,me=ee||{},pe=me.messageId,he=me.granted,_e=me.properties,le=0;if(typeof pe!="number")return ne.destroy(new Error("Invalid messageId")),!1;if(le+=2,typeof he=="object"&&he.length)for(let we=0;we<he.length;we+=1){if(typeof he[we]!="number")return ne.destroy(new Error("Invalid qos vector")),!1;le+=1}else return ne.destroy(new Error("Invalid qos vector")),!1;let xe=null;if(ye===5){if(xe=V(ne,_e,ue,le),!xe)return!1;le+=xe.length}return ne.write(n.SUBACK_HEADER),H(ne,le),m(ne,pe),xe!==null&&xe.write(),ne.write(r.from(he))}function k(ee,ne,ue){let ye=ue?ue.protocolVersion:4,me=ee||{},pe=me.messageId,he=me.dup?n.DUP_MASK:0,_e=me.unsubscriptions,le=me.properties,xe=0;if(typeof pe!="number")return ne.destroy(new Error("Invalid messageId")),!1;if(xe+=2,typeof _e=="object"&&_e.length)for(let Fe=0;Fe<_e.length;Fe+=1){if(typeof _e[Fe]!="string")return ne.destroy(new Error("Invalid unsubscriptions")),!1;xe+=r.byteLength(_e[Fe])+2}else return ne.destroy(new Error("Invalid unsubscriptions")),!1;let we=null;if(ye===5){if(we=B(ne,le),!we)return!1;xe+=we.length}ne.write(n.UNSUBSCRIBE_HEADER[1][he?1:0][0]),H(ne,xe),m(ne,pe),we!==null&&we.write();let De=!0;for(let Fe=0;Fe<_e.length;Fe++)De=F(ne,_e[Fe]);return De}function M(ee,ne,ue){let ye=ue?ue.protocolVersion:4,me=ee||{},pe=me.messageId,he=me.dup?n.DUP_MASK:0,_e=me.granted,le=me.properties,xe=me.cmd,we=0,De=2;if(typeof pe!="number")return ne.destroy(new Error("Invalid messageId")),!1;if(ye===5)if(typeof _e=="object"&&_e.length)for(let Ce=0;Ce<_e.length;Ce+=1){if(typeof _e[Ce]!="number")return ne.destroy(new Error("Invalid qos vector")),!1;De+=1}else return ne.destroy(new Error("Invalid qos vector")),!1;let Fe=null;if(ye===5){if(Fe=V(ne,le,ue,De),!Fe)return!1;De+=Fe.length}return ne.write(n.ACKS[xe][we][he][0]),H(ne,De),m(ne,pe),Fe!==null&&Fe.write(),ye===5&&ne.write(r.from(_e)),!0}function P(ee,ne,ue){return ne.write(n.EMPTY[ee.cmd])}function D(ee,ne,ue){let ye=ue?ue.protocolVersion:4,me=ee||{},pe=me.reasonCode,he=me.properties,_e=ye===5?1:0,le=null;if(ye===5){if(le=V(ne,he,ue,_e),!le)return!1;_e+=le.length}return ne.write(r.from([n.codes.disconnect<<4])),H(ne,_e),ye===5&&ne.write(r.from([pe])),le!==null&&le.write(),!0}function R(ee,ne,ue){let ye=ue?ue.protocolVersion:4,me=ee||{},pe=me.reasonCode,he=me.properties,_e=ye===5?1:0;ye!==5&&ne.destroy(new Error("Invalid mqtt version for auth packet"));let le=V(ne,he,ue,_e);return le?(_e+=le.length,ne.write(r.from([n.codes.auth<<4])),H(ne,_e),ne.write(r.from([pe])),le!==null&&le.write(),!0):!1}var A={};function H(ee,ne){if(ne>n.VARBYTEINT_MAX)return ee.destroy(new Error(`Invalid variable byte integer: ${ne}`)),!1;let ue=A[ne];return ue||(ue=h(ne),ne<16384&&(A[ne]=ue)),l("writeVarByteInt: writing to stream: %o",ue),ee.write(ue)}function F(ee,ne){let ue=r.byteLength(ne);return m(ee,ue),l("writeString: %s",ne),ee.write(ne,"utf8")}function z(ee,ne,ue){F(ee,ne),F(ee,ue)}function W(ee,ne){return l("writeNumberCached: number: %d",ne),l("writeNumberCached: %o",c[ne]),ee.write(c[ne])}function q(ee,ne){let ue=u(ne);return l("writeNumberGenerated: %o",ue),ee.write(ue)}function Z(ee,ne){let ue=p(ne);return l("write4ByteNumber: %o",ue),ee.write(ue)}function N(ee,ne){typeof ne=="string"?F(ee,ne):ne?(m(ee,ne.length),ee.write(ne)):m(ee,0)}function B(ee,ne){if(typeof ne!="object"||ne.length!=null)return{length:1,write(){ie(ee,{},0)}};let ue=0;function ye(me,pe){let he=n.propertiesTypes[me],_e=0;switch(he){case"byte":{if(typeof pe!="boolean")return ee.destroy(new Error(`Invalid ${me}: ${pe}`)),!1;_e+=2;break}case"int8":{if(typeof pe!="number"||pe<0||pe>255)return ee.destroy(new Error(`Invalid ${me}: ${pe}`)),!1;_e+=2;break}case"binary":{if(pe&&pe===null)return ee.destroy(new Error(`Invalid ${me}: ${pe}`)),!1;_e+=1+r.byteLength(pe)+2;break}case"int16":{if(typeof pe!="number"||pe<0||pe>65535)return ee.destroy(new Error(`Invalid ${me}: ${pe}`)),!1;_e+=3;break}case"int32":{if(typeof pe!="number"||pe<0||pe>4294967295)return ee.destroy(new Error(`Invalid ${me}: ${pe}`)),!1;_e+=5;break}case"var":{if(typeof pe!="number"||pe<0||pe>268435455)return ee.destroy(new Error(`Invalid ${me}: ${pe}`)),!1;_e+=1+r.byteLength(h(pe));break}case"string":{if(typeof pe!="string")return ee.destroy(new Error(`Invalid ${me}: ${pe}`)),!1;_e+=3+r.byteLength(pe.toString());break}case"pair":{if(typeof pe!="object")return ee.destroy(new Error(`Invalid ${me}: ${pe}`)),!1;_e+=Object.getOwnPropertyNames(pe).reduce((le,xe)=>{let we=pe[xe];return Array.isArray(we)?le+=we.reduce((De,Fe)=>(De+=3+r.byteLength(xe.toString())+2+r.byteLength(Fe.toString()),De),0):le+=3+r.byteLength(xe.toString())+2+r.byteLength(pe[xe].toString()),le},0);break}default:return ee.destroy(new Error(`Invalid property ${me}: ${pe}`)),!1}return _e}if(ne)for(let me in ne){let pe=0,he=0,_e=ne[me];if(Array.isArray(_e))for(let le=0;le<_e.length;le++){if(he=ye(me,_e[le]),!he)return!1;pe+=he}else{if(he=ye(me,_e),!he)return!1;pe=he}if(!pe)return!1;ue+=pe}return{length:r.byteLength(h(ue))+ue,write(){ie(ee,ne,ue)}}}function V(ee,ne,ue,ye){let me=["reasonString","userProperties"],pe=ue&&ue.properties&&ue.properties.maximumPacketSize?ue.properties.maximumPacketSize:0,he=B(ee,ne);if(pe)for(;ye+he.length>pe;){let _e=me.shift();if(_e&&ne[_e])delete ne[_e],he=B(ee,ne);else return!1}return he}function Y(ee,ne,ue){switch(n.propertiesTypes[ne]){case"byte":{ee.write(r.from([n.properties[ne]])),ee.write(r.from([+ue]));break}case"int8":{ee.write(r.from([n.properties[ne]])),ee.write(r.from([ue]));break}case"binary":{ee.write(r.from([n.properties[ne]])),N(ee,ue);break}case"int16":{ee.write(r.from([n.properties[ne]])),m(ee,ue);break}case"int32":{ee.write(r.from([n.properties[ne]])),Z(ee,ue);break}case"var":{ee.write(r.from([n.properties[ne]])),H(ee,ue);break}case"string":{ee.write(r.from([n.properties[ne]])),F(ee,ue);break}case"pair":{Object.getOwnPropertyNames(ue).forEach(ye=>{let me=ue[ye];Array.isArray(me)?me.forEach(pe=>{ee.write(r.from([n.properties[ne]])),z(ee,ye.toString(),pe.toString())}):(ee.write(r.from([n.properties[ne]])),z(ee,ye.toString(),me.toString()))});break}default:return ee.destroy(new Error(`Invalid property ${ne} value: ${ue}`)),!1}}function ie(ee,ne,ue){H(ee,ue);for(let ye in ne)if(Object.prototype.hasOwnProperty.call(ne,ye)&&ne[ye]!==null){let me=ne[ye];if(Array.isArray(me))for(let pe=0;pe<me.length;pe++)Y(ee,ye,me[pe]);else Y(ee,ye,me)}}function ce(ee){return ee?ee instanceof r?ee.length:r.byteLength(ee):0}function fe(ee){return typeof ee=="string"||ee instanceof r}t.exports=y}),$Re=Tn((e,t)=>{pn(),gn(),mn();var n=Cpe(),{EventEmitter:r}=(FS(),to(Uv)),{Buffer:i}=(ks(),to(Ts));function o(s,l){let c=new a;return n(s,c,l),c.concat()}var a=class extends r{constructor(){super(),this._array=new Array(20),this._i=0}write(s){return this._array[this._i++]=s,!0}concat(){let s=0,l=new Array(this._array.length),c=this._array,u=0,d;for(d=0;d<c.length&&c[d]!==void 0;d++)typeof c[d]!="string"?l[d]=c[d].length:l[d]=i.byteLength(c[d]),s+=l[d];let h=i.allocUnsafe(s);for(d=0;d<c.length&&c[d]!==void 0;d++)typeof c[d]!="string"?(c[d].copy(h,u),u+=l[d]):(h.write(c[d],u),u+=l[d]);return h}destroy(s){s&&this.emit("error",s)}};t.exports=o}),RRe=Tn(e=>{pn(),gn(),mn(),e.parser=PRe().parser,e.generate=$Re(),e.writeToStream=Cpe()}),xpe=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"__esModule",{value:!0});var t=class{constructor(){this.nextId=Math.max(1,Math.floor(Math.random()*65535))}allocate(){let n=this.nextId++;return this.nextId===65536&&(this.nextId=1),n}getLastAllocated(){return this.nextId===1?65535:this.nextId-1}register(n){return!0}deallocate(n){}clear(){}};e.default=t}),ARe=Tn((e,t)=>{pn(),gn(),mn(),t.exports=r;function n(o){return o instanceof n9?n9.from(o):new o.constructor(o.buffer.slice(),o.byteOffset,o.length)}function r(o){if(o=o||{},o.circles)return i(o);return o.proto?l:s;function a(c,u){for(var d=Object.keys(c),h=new Array(d.length),p=0;p<d.length;p++){var m=d[p],v=c[m];typeof v!="object"||v===null?h[m]=v:v instanceof Date?h[m]=new Date(v):ArrayBuffer.isView(v)?h[m]=n(v):h[m]=u(v)}return h}function s(c){if(typeof c!="object"||c===null)return c;if(c instanceof Date)return new Date(c);if(Array.isArray(c))return a(c,s);if(c instanceof Map)return new Map(a(Array.from(c),s));if(c instanceof Set)return new Set(a(Array.from(c),s));var u={};for(var d in c)if(Object.hasOwnProperty.call(c,d)!==!1){var h=c[d];typeof h!="object"||h===null?u[d]=h:h instanceof Date?u[d]=new Date(h):h instanceof Map?u[d]=new Map(a(Array.from(h),s)):h instanceof Set?u[d]=new Set(a(Array.from(h),s)):ArrayBuffer.isView(h)?u[d]=n(h):u[d]=s(h)}return u}function l(c){if(typeof c!="object"||c===null)return c;if(c instanceof Date)return new Date(c);if(Array.isArray(c))return a(c,l);if(c instanceof Map)return new Map(a(Array.from(c),l));if(c instanceof Set)return new Set(a(Array.from(c),l));var u={};for(var d in c){var h=c[d];typeof h!="object"||h===null?u[d]=h:h instanceof Date?u[d]=new Date(h):h instanceof Map?u[d]=new Map(a(Array.from(h),l)):h instanceof Set?u[d]=new Set(a(Array.from(h),l)):ArrayBuffer.isView(h)?u[d]=n(h):u[d]=l(h)}return u}}function i(o){var a=[],s=[];return o.proto?u:c;function l(d,h){for(var p=Object.keys(d),m=new Array(p.length),v=0;v<p.length;v++){var y=p[v],S=d[y];if(typeof S!="object"||S===null)m[y]=S;else if(S instanceof Date)m[y]=new Date(S);else if(ArrayBuffer.isView(S))m[y]=n(S);else{var b=a.indexOf(S);b!==-1?m[y]=s[b]:m[y]=h(S)}}return m}function c(d){if(typeof d!="object"||d===null)return d;if(d instanceof Date)return new Date(d);if(Array.isArray(d))return l(d,c);if(d instanceof Map)return new Map(l(Array.from(d),c));if(d instanceof Set)return new Set(l(Array.from(d),c));var h={};a.push(d),s.push(h);for(var p in d)if(Object.hasOwnProperty.call(d,p)!==!1){var m=d[p];if(typeof m!="object"||m===null)h[p]=m;else if(m instanceof Date)h[p]=new Date(m);else if(m instanceof Map)h[p]=new Map(l(Array.from(m),c));else if(m instanceof Set)h[p]=new Set(l(Array.from(m),c));else if(ArrayBuffer.isView(m))h[p]=n(m);else{var v=a.indexOf(m);v!==-1?h[p]=s[v]:h[p]=c(m)}}return a.pop(),s.pop(),h}function u(d){if(typeof d!="object"||d===null)return d;if(d instanceof Date)return new Date(d);if(Array.isArray(d))return l(d,u);if(d instanceof Map)return new Map(l(Array.from(d),u));if(d instanceof Set)return new Set(l(Array.from(d),u));var h={};a.push(d),s.push(h);for(var p in d){var m=d[p];if(typeof m!="object"||m===null)h[p]=m;else if(m instanceof Date)h[p]=new Date(m);else if(m instanceof Map)h[p]=new Map(l(Array.from(m),u));else if(m instanceof Set)h[p]=new Set(l(Array.from(m),u));else if(ArrayBuffer.isView(m))h[p]=n(m);else{var v=a.indexOf(m);v!==-1?h[p]=s[v]:h[p]=u(m)}}return a.pop(),s.pop(),h}}}),NRe=Tn((e,t)=>{pn(),gn(),mn(),t.exports=ARe()()}),DRe=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"__esModule",{value:!0}),e.validateTopics=e.validateTopic=void 0;function t(r){let i=r.split("/");for(let o=0;o<i.length;o++)if(i[o]!=="+"){if(i[o]==="#")return o===i.length-1;if(i[o].indexOf("+")!==-1||i[o].indexOf("#")!==-1)return!1}return!0}e.validateTopic=t;function n(r){if(r.length===0)return"empty_topic_list";for(let i=0;i<r.length;i++)if(!t(r[i]))return r[i];return null}e.validateTopics=n}),wpe=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"__esModule",{value:!0});var t=Wv(),n={objectMode:!0},r={clean:!0},i=class{constructor(o){this.options=o||{},this.options=Object.assign(Object.assign({},r),o),this._inflights=new Map}put(o,a){return this._inflights.set(o.messageId,o),a&&a(),this}createStream(){let o=new t.Readable(n),a=[],s=!1,l=0;return this._inflights.forEach((c,u)=>{a.push(c)}),o._read=()=>{!s&&l<a.length?o.push(a[l++]):o.push(null)},o.destroy=c=>{if(!s)return s=!0,setTimeout(()=>{o.emit("close")},0),o},o}del(o,a){let s=this._inflights.get(o.messageId);return s?(this._inflights.delete(o.messageId),a(null,s)):a&&a(new Error("missing packet")),this}get(o,a){let s=this._inflights.get(o.messageId);return s?a(null,s):a&&a(new Error("missing packet")),this}close(o){this.options.clean&&(this._inflights=null),o&&o()}};e.default=i}),LRe=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"__esModule",{value:!0});var t=[0,16,128,131,135,144,145,151,153],n=(r,i,o)=>{r.log("handlePublish: packet %o",i),o=typeof o<"u"?o:r.noop;let a=i.topic.toString(),s=i.payload,{qos:l}=i,{messageId:c}=i,{options:u}=r;if(r.options.protocolVersion===5){let d;if(i.properties&&(d=i.properties.topicAlias),typeof d<"u")if(a.length===0)if(d>0&&d<=65535){let h=r.topicAliasRecv.getTopicByAlias(d);if(h)a=h,r.log("handlePublish :: topic complemented by alias. topic: %s - alias: %d",a,d);else{r.log("handlePublish :: unregistered topic alias. alias: %d",d),r.emit("error",new Error("Received unregistered Topic Alias"));return}}else{r.log("handlePublish :: topic alias out of range. alias: %d",d),r.emit("error",new Error("Received Topic Alias is out of range"));return}else if(r.topicAliasRecv.put(a,d))r.log("handlePublish :: registered topic: %s - alias: %d",a,d);else{r.log("handlePublish :: topic alias out of range. alias: %d",d),r.emit("error",new Error("Received Topic Alias is out of range"));return}}switch(r.log("handlePublish: qos %d",l),l){case 2:{u.customHandleAcks(a,s,i,(d,h)=>{if(typeof d=="number"&&(h=d,d=null),d)return r.emit("error",d);if(t.indexOf(h)===-1)return r.emit("error",new Error("Wrong reason code for pubrec"));h?r._sendPacket({cmd:"pubrec",messageId:c,reasonCode:h},o):r.incomingStore.put(i,()=>{r._sendPacket({cmd:"pubrec",messageId:c},o)})});break}case 1:{u.customHandleAcks(a,s,i,(d,h)=>{if(typeof d=="number"&&(h=d,d=null),d)return r.emit("error",d);if(t.indexOf(h)===-1)return r.emit("error",new Error("Wrong reason code for puback"));h||r.emit("message",a,s,i),r.handleMessage(i,p=>{if(p)return o&&o(p);r._sendPacket({cmd:"puback",messageId:c,reasonCode:h},o)})});break}case 0:r.emit("message",a,s,i),r.handleMessage(i,o);break;default:r.log("handlePublish: unknown QoS. Doing nothing.");break}};e.default=n}),FRe=Tn((e,t)=>{t.exports={version:"5.10.3"}}),jS=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"__esModule",{value:!0}),e.MQTTJS_VERSION=e.nextTick=e.applyMixin=e.ErrorWithReasonCode=void 0;var t=class _pe extends Error{constructor(i,o){super(i),this.code=o,Object.setPrototypeOf(this,_pe.prototype),Object.getPrototypeOf(this).name="ErrorWithReasonCode"}};e.ErrorWithReasonCode=t;function n(r,i,o=!1){var a;let s=[i];for(;;){let l=s[0],c=Object.getPrototypeOf(l);if(c!=null&&c.prototype)s.unshift(c);else break}for(let l of s)for(let c of Object.getOwnPropertyNames(l.prototype))(o||c!=="constructor")&&Object.defineProperty(r.prototype,c,(a=Object.getOwnPropertyDescriptor(l.prototype,c))!==null&&a!==void 0?a:Object.create(null))}e.applyMixin=n,e.nextTick=typeof(Ni==null?void 0:Ni.nextTick)=="function"?Ni.nextTick:r=>{setTimeout(r,0)},e.MQTTJS_VERSION=FRe().version}),V6=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"__esModule",{value:!0}),e.ReasonCodes=void 0;var t=jS();e.ReasonCodes={0:"",1:"Unacceptable protocol version",2:"Identifier rejected",3:"Server unavailable",4:"Bad username or password",5:"Not authorized",16:"No matching subscribers",17:"No subscription existed",128:"Unspecified error",129:"Malformed Packet",130:"Protocol Error",131:"Implementation specific error",132:"Unsupported Protocol Version",133:"Client Identifier not valid",134:"Bad User Name or Password",135:"Not authorized",136:"Server unavailable",137:"Server busy",138:"Banned",139:"Server shutting down",140:"Bad authentication method",141:"Keep Alive timeout",142:"Session taken over",143:"Topic Filter invalid",144:"Topic Name invalid",145:"Packet identifier in use",146:"Packet Identifier not found",147:"Receive Maximum exceeded",148:"Topic Alias invalid",149:"Packet too large",150:"Message rate too high",151:"Quota exceeded",152:"Administrative action",153:"Payload format invalid",154:"Retain not supported",155:"QoS not supported",156:"Use another server",157:"Server moved",158:"Shared Subscriptions not supported",159:"Connection rate exceeded",160:"Maximum connect time",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"};var n=(r,i)=>{let{messageId:o}=i,a=i.cmd,s=null,l=r.outgoing[o]?r.outgoing[o].cb:null,c=null;if(!l){r.log("_handleAck :: Server sent an ack in error. Ignoring.");return}switch(r.log("_handleAck :: packet type",a),a){case"pubcomp":case"puback":{let u=i.reasonCode;u&&u>0&&u!==16?(c=new t.ErrorWithReasonCode(`Publish error: ${e.ReasonCodes[u]}`,u),r._removeOutgoingAndStoreMessage(o,()=>{l(c,i)})):r._removeOutgoingAndStoreMessage(o,l);break}case"pubrec":{s={cmd:"pubrel",qos:2,messageId:o};let u=i.reasonCode;u&&u>0&&u!==16?(c=new t.ErrorWithReasonCode(`Publish error: ${e.ReasonCodes[u]}`,u),r._removeOutgoingAndStoreMessage(o,()=>{l(c,i)})):r._sendPacket(s);break}case"suback":{delete r.outgoing[o],r.messageIdProvider.deallocate(o);let u=i.granted;for(let d=0;d<u.length;d++){let h=u[d];if(h&128){c=new Error(`Subscribe error: ${e.ReasonCodes[h]}`),c.code=h;let p=r.messageIdToTopic[o];p&&p.forEach(m=>{delete r._resubscribeTopics[m]})}}delete r.messageIdToTopic[o],r._invokeStoreProcessingQueue(),l(c,i);break}case"unsuback":{delete r.outgoing[o],r.messageIdProvider.deallocate(o),r._invokeStoreProcessingQueue(),l(null,i);break}default:r.emit("error",new Error("unrecognized packet type"))}r.disconnecting&&Object.keys(r.outgoing).length===0&&r.emit("outgoingEmpty")};e.default=n}),jRe=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"__esModule",{value:!0});var t=jS(),n=V6(),r=(i,o)=>{let{options:a}=i,s=a.protocolVersion,l=s===5?o.reasonCode:o.returnCode;if(s!==5){let c=new t.ErrorWithReasonCode(`Protocol error: Auth packets are only supported in MQTT 5. Your version:${s}`,l);i.emit("error",c);return}i.handleAuth(o,(c,u)=>{if(c){i.emit("error",c);return}if(l===24)i.reconnecting=!1,i._sendPacket(u);else{let d=new t.ErrorWithReasonCode(`Connection refused: ${n.ReasonCodes[l]}`,l);i.emit("error",d)}})};e.default=r}),BRe=Tn(e=>{var p,m,v,y,S,b,C,_,T,x,E,k,M,P,D,R,A,H,F,z,W,q,Z,N,B,V,RL,ie,ce,fe,ee,Epe,ue,ye,me,im,om,AL,S3,C3,Eo,NL,S2,Ce;pn(),gn(),mn(),Object.defineProperty(e,"__esModule",{value:!0}),e.LRUCache=void 0;var t=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,n=new Set,r=typeof Ni=="object"&&Ni?Ni:{},i=(Te,ke,Pe,Ne)=>{typeof r.emitWarning=="function"?r.emitWarning(Te,ke,Pe,Ne):console.error(`[${Pe}] ${ke}: ${Te}`)},o=globalThis.AbortController,a=globalThis.AbortSignal;if(typeof o>"u"){a=class{constructor(){xi(this,"onabort");xi(this,"_onabort",[]);xi(this,"reason");xi(this,"aborted",!1)}addEventListener(Pe,Ne){this._onabort.push(Ne)}},o=class{constructor(){xi(this,"signal",new a);ke()}abort(Pe){var Ne,We;if(!this.signal.aborted){this.signal.reason=Pe,this.signal.aborted=!0;for(let Q of this.signal._onabort)Q(Pe);(We=(Ne=this.signal).onabort)==null||We.call(Ne,Pe)}}};let Te=((p=r.env)==null?void 0:p.LRU_CACHE_IGNORE_AC_WARNING)!=="1",ke=()=>{Te&&(Te=!1,i("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",ke))}}var s=Te=>!n.has(Te),l=Te=>Te&&Te===Math.floor(Te)&&Te>0&&isFinite(Te),c=Te=>l(Te)?Te<=Math.pow(2,8)?Uint8Array:Te<=Math.pow(2,16)?Uint16Array:Te<=Math.pow(2,32)?Uint32Array:Te<=Number.MAX_SAFE_INTEGER?u:null:null,u=class extends Array{constructor(Te){super(Te),this.fill(0)}},d=(m=class{constructor(ke,Pe){xi(this,"heap");xi(this,"length");if(!Xe(m,v))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new Pe(ke),this.length=0}static create(ke){let Pe=c(ke);if(!Pe)return[];Nn(m,v,!0);let Ne=new m(ke,Pe);return Nn(m,v,!1),Ne}push(ke){this.heap[this.length++]=ke}pop(){return this.heap[--this.length]}},v=new WeakMap,ar(m,v,!1),m),h=(Ce=class{constructor(ke){ar(this,V);ar(this,y);ar(this,S);ar(this,b);ar(this,C);ar(this,_);xi(this,"ttl");xi(this,"ttlResolution");xi(this,"ttlAutopurge");xi(this,"updateAgeOnGet");xi(this,"updateAgeOnHas");xi(this,"allowStale");xi(this,"noDisposeOnSet");xi(this,"noUpdateTTL");xi(this,"maxEntrySize");xi(this,"sizeCalculation");xi(this,"noDeleteOnFetchRejection");xi(this,"noDeleteOnStaleGet");xi(this,"allowStaleOnFetchAbort");xi(this,"allowStaleOnFetchRejection");xi(this,"ignoreFetchAbort");ar(this,T);ar(this,x);ar(this,E);ar(this,k);ar(this,M);ar(this,P);ar(this,D);ar(this,R);ar(this,A);ar(this,H);ar(this,F);ar(this,z);ar(this,W);ar(this,q);ar(this,Z);ar(this,N);ar(this,B);ar(this,ie,()=>{});ar(this,ce,()=>{});ar(this,fe,()=>{});ar(this,ee,()=>!1);ar(this,ue,ke=>{});ar(this,ye,(ke,Pe,Ne)=>{});ar(this,me,(ke,Pe,Ne,We)=>{if(Ne||We)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});let{max:Pe=0,ttl:Ne,ttlResolution:We=1,ttlAutopurge:Q,updateAgeOnGet:K,updateAgeOnHas:J,allowStale:be,dispose:Oe,disposeAfter:Se,noDisposeOnSet:Ke,noUpdateTTL:tt,maxSize:se=0,maxEntrySize:ze=0,sizeCalculation:Ye,fetchMethod:Ue,noDeleteOnFetchRejection:Je,noDeleteOnStaleGet:Ze,allowStaleOnFetchRejection:rt,allowStaleOnFetchAbort:qt,ignoreFetchAbort:St}=ke;if(Pe!==0&&!l(Pe))throw new TypeError("max option must be a nonnegative integer");let Ot=Pe?c(Pe):Array;if(!Ot)throw new Error("invalid max value: "+Pe);if(Nn(this,y,Pe),Nn(this,S,se),this.maxEntrySize=ze||Xe(this,S),this.sizeCalculation=Ye,this.sizeCalculation){if(!Xe(this,S)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(Ue!==void 0&&typeof Ue!="function")throw new TypeError("fetchMethod must be a function if specified");if(Nn(this,_,Ue),Nn(this,N,!!Ue),Nn(this,E,new Map),Nn(this,k,new Array(Pe).fill(void 0)),Nn(this,M,new Array(Pe).fill(void 0)),Nn(this,P,new Ot(Pe)),Nn(this,D,new Ot(Pe)),Nn(this,R,0),Nn(this,A,0),Nn(this,H,d.create(Pe)),Nn(this,T,0),Nn(this,x,0),typeof Oe=="function"&&Nn(this,b,Oe),typeof Se=="function"?(Nn(this,C,Se),Nn(this,F,[])):(Nn(this,C,void 0),Nn(this,F,void 0)),Nn(this,Z,!!Xe(this,b)),Nn(this,B,!!Xe(this,C)),this.noDisposeOnSet=!!Ke,this.noUpdateTTL=!!tt,this.noDeleteOnFetchRejection=!!Je,this.allowStaleOnFetchRejection=!!rt,this.allowStaleOnFetchAbort=!!qt,this.ignoreFetchAbort=!!St,this.maxEntrySize!==0){if(Xe(this,S)!==0&&!l(Xe(this,S)))throw new TypeError("maxSize must be a positive integer if specified");if(!l(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");Zn(this,V,Epe).call(this)}if(this.allowStale=!!be,this.noDeleteOnStaleGet=!!Ze,this.updateAgeOnGet=!!K,this.updateAgeOnHas=!!J,this.ttlResolution=l(We)||We===0?We:1,this.ttlAutopurge=!!Q,this.ttl=Ne||0,this.ttl){if(!l(this.ttl))throw new TypeError("ttl must be a positive integer if specified");Zn(this,V,RL).call(this)}if(Xe(this,y)===0&&this.ttl===0&&Xe(this,S)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!Xe(this,y)&&!Xe(this,S)){let Bt="LRU_CACHE_UNBOUNDED";s(Bt)&&(n.add(Bt),i("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",Bt,Ce))}}static unsafeExposeInternals(ke){return{starts:Xe(ke,W),ttls:Xe(ke,q),sizes:Xe(ke,z),keyMap:Xe(ke,E),keyList:Xe(ke,k),valList:Xe(ke,M),next:Xe(ke,P),prev:Xe(ke,D),get head(){return Xe(ke,R)},get tail(){return Xe(ke,A)},free:Xe(ke,H),isBackgroundFetch:Pe=>{var Ne;return Zn(Ne=ke,V,Eo).call(Ne,Pe)},backgroundFetch:(Pe,Ne,We,Q)=>{var K;return Zn(K=ke,V,C3).call(K,Pe,Ne,We,Q)},moveToTail:Pe=>{var Ne;return Zn(Ne=ke,V,S2).call(Ne,Pe)},indexes:Pe=>{var Ne;return Zn(Ne=ke,V,im).call(Ne,Pe)},rindexes:Pe=>{var Ne;return Zn(Ne=ke,V,om).call(Ne,Pe)},isStale:Pe=>{var Ne;return Xe(Ne=ke,ee).call(Ne,Pe)}}}get max(){return Xe(this,y)}get maxSize(){return Xe(this,S)}get calculatedSize(){return Xe(this,x)}get size(){return Xe(this,T)}get fetchMethod(){return Xe(this,_)}get dispose(){return Xe(this,b)}get disposeAfter(){return Xe(this,C)}getRemainingTTL(ke){return Xe(this,E).has(ke)?1/0:0}*entries(){for(let ke of Zn(this,V,im).call(this))Xe(this,M)[ke]!==void 0&&Xe(this,k)[ke]!==void 0&&!Zn(this,V,Eo).call(this,Xe(this,M)[ke])&&(yield[Xe(this,k)[ke],Xe(this,M)[ke]])}*rentries(){for(let ke of Zn(this,V,om).call(this))Xe(this,M)[ke]!==void 0&&Xe(this,k)[ke]!==void 0&&!Zn(this,V,Eo).call(this,Xe(this,M)[ke])&&(yield[Xe(this,k)[ke],Xe(this,M)[ke]])}*keys(){for(let ke of Zn(this,V,im).call(this)){let Pe=Xe(this,k)[ke];Pe!==void 0&&!Zn(this,V,Eo).call(this,Xe(this,M)[ke])&&(yield Pe)}}*rkeys(){for(let ke of Zn(this,V,om).call(this)){let Pe=Xe(this,k)[ke];Pe!==void 0&&!Zn(this,V,Eo).call(this,Xe(this,M)[ke])&&(yield Pe)}}*values(){for(let ke of Zn(this,V,im).call(this))Xe(this,M)[ke]!==void 0&&!Zn(this,V,Eo).call(this,Xe(this,M)[ke])&&(yield Xe(this,M)[ke])}*rvalues(){for(let ke of Zn(this,V,om).call(this))Xe(this,M)[ke]!==void 0&&!Zn(this,V,Eo).call(this,Xe(this,M)[ke])&&(yield Xe(this,M)[ke])}[Symbol.iterator](){return this.entries()}find(ke,Pe={}){for(let Ne of Zn(this,V,im).call(this)){let We=Xe(this,M)[Ne],Q=Zn(this,V,Eo).call(this,We)?We.__staleWhileFetching:We;if(Q!==void 0&&ke(Q,Xe(this,k)[Ne],this))return this.get(Xe(this,k)[Ne],Pe)}}forEach(ke,Pe=this){for(let Ne of Zn(this,V,im).call(this)){let We=Xe(this,M)[Ne],Q=Zn(this,V,Eo).call(this,We)?We.__staleWhileFetching:We;Q!==void 0&&ke.call(Pe,Q,Xe(this,k)[Ne],this)}}rforEach(ke,Pe=this){for(let Ne of Zn(this,V,om).call(this)){let We=Xe(this,M)[Ne],Q=Zn(this,V,Eo).call(this,We)?We.__staleWhileFetching:We;Q!==void 0&&ke.call(Pe,Q,Xe(this,k)[Ne],this)}}purgeStale(){let ke=!1;for(let Pe of Zn(this,V,om).call(this,{allowStale:!0}))Xe(this,ee).call(this,Pe)&&(this.delete(Xe(this,k)[Pe]),ke=!0);return ke}dump(){let ke=[];for(let Pe of Zn(this,V,im).call(this,{allowStale:!0})){let Ne=Xe(this,k)[Pe],We=Xe(this,M)[Pe],Q=Zn(this,V,Eo).call(this,We)?We.__staleWhileFetching:We;if(Q===void 0||Ne===void 0)continue;let K={value:Q};if(Xe(this,q)&&Xe(this,W)){K.ttl=Xe(this,q)[Pe];let J=t.now()-Xe(this,W)[Pe];K.start=Math.floor(Date.now()-J)}Xe(this,z)&&(K.size=Xe(this,z)[Pe]),ke.unshift([Ne,K])}return ke}load(ke){this.clear();for(let[Pe,Ne]of ke){if(Ne.start){let We=Date.now()-Ne.start;Ne.start=t.now()-We}this.set(Pe,Ne.value,Ne)}}set(ke,Pe,Ne={}){var tt,se,ze,Ye,Ue;if(Pe===void 0)return this.delete(ke),this;let{ttl:We=this.ttl,start:Q,noDisposeOnSet:K=this.noDisposeOnSet,sizeCalculation:J=this.sizeCalculation,status:be}=Ne,{noUpdateTTL:Oe=this.noUpdateTTL}=Ne,Se=Xe(this,me).call(this,ke,Pe,Ne.size||0,J);if(this.maxEntrySize&&Se>this.maxEntrySize)return be&&(be.set="miss",be.maxEntrySizeExceeded=!0),this.delete(ke),this;let Ke=Xe(this,T)===0?void 0:Xe(this,E).get(ke);if(Ke===void 0)Ke=Xe(this,T)===0?Xe(this,A):Xe(this,H).length!==0?Xe(this,H).pop():Xe(this,T)===Xe(this,y)?Zn(this,V,S3).call(this,!1):Xe(this,T),Xe(this,k)[Ke]=ke,Xe(this,M)[Ke]=Pe,Xe(this,E).set(ke,Ke),Xe(this,P)[Xe(this,A)]=Ke,Xe(this,D)[Ke]=Xe(this,A),Nn(this,A,Ke),jg(this,T)._++,Xe(this,ye).call(this,Ke,Se,be),be&&(be.set="add"),Oe=!1;else{Zn(this,V,S2).call(this,Ke);let Je=Xe(this,M)[Ke];if(Pe!==Je){if(Xe(this,N)&&Zn(this,V,Eo).call(this,Je)){Je.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:Ze}=Je;Ze!==void 0&&!K&&(Xe(this,Z)&&((tt=Xe(this,b))==null||tt.call(this,Ze,ke,"set")),Xe(this,B)&&((se=Xe(this,F))==null||se.push([Ze,ke,"set"])))}else K||(Xe(this,Z)&&((ze=Xe(this,b))==null||ze.call(this,Je,ke,"set")),Xe(this,B)&&((Ye=Xe(this,F))==null||Ye.push([Je,ke,"set"])));if(Xe(this,ue).call(this,Ke),Xe(this,ye).call(this,Ke,Se,be),Xe(this,M)[Ke]=Pe,be){be.set="replace";let Ze=Je&&Zn(this,V,Eo).call(this,Je)?Je.__staleWhileFetching:Je;Ze!==void 0&&(be.oldValue=Ze)}}else be&&(be.set="update")}if(We!==0&&!Xe(this,q)&&Zn(this,V,RL).call(this),Xe(this,q)&&(Oe||Xe(this,fe).call(this,Ke,We,Q),be&&Xe(this,ce).call(this,be,Ke)),!K&&Xe(this,B)&&Xe(this,F)){let Je=Xe(this,F),Ze;for(;Ze=Je==null?void 0:Je.shift();)(Ue=Xe(this,C))==null||Ue.call(this,...Ze)}return this}pop(){var ke;try{for(;Xe(this,T);){let Pe=Xe(this,M)[Xe(this,R)];if(Zn(this,V,S3).call(this,!0),Zn(this,V,Eo).call(this,Pe)){if(Pe.__staleWhileFetching)return Pe.__staleWhileFetching}else if(Pe!==void 0)return Pe}}finally{if(Xe(this,B)&&Xe(this,F)){let Pe=Xe(this,F),Ne;for(;Ne=Pe==null?void 0:Pe.shift();)(ke=Xe(this,C))==null||ke.call(this,...Ne)}}}has(ke,Pe={}){let{updateAgeOnHas:Ne=this.updateAgeOnHas,status:We}=Pe,Q=Xe(this,E).get(ke);if(Q!==void 0){let K=Xe(this,M)[Q];if(Zn(this,V,Eo).call(this,K)&&K.__staleWhileFetching===void 0)return!1;if(Xe(this,ee).call(this,Q))We&&(We.has="stale",Xe(this,ce).call(this,We,Q));else return Ne&&Xe(this,ie).call(this,Q),We&&(We.has="hit",Xe(this,ce).call(this,We,Q)),!0}else We&&(We.has="miss");return!1}peek(ke,Pe={}){let{allowStale:Ne=this.allowStale}=Pe,We=Xe(this,E).get(ke);if(We!==void 0&&(Ne||!Xe(this,ee).call(this,We))){let Q=Xe(this,M)[We];return Zn(this,V,Eo).call(this,Q)?Q.__staleWhileFetching:Q}}async fetch(ke,Pe={}){let{allowStale:Ne=this.allowStale,updateAgeOnGet:We=this.updateAgeOnGet,noDeleteOnStaleGet:Q=this.noDeleteOnStaleGet,ttl:K=this.ttl,noDisposeOnSet:J=this.noDisposeOnSet,size:be=0,sizeCalculation:Oe=this.sizeCalculation,noUpdateTTL:Se=this.noUpdateTTL,noDeleteOnFetchRejection:Ke=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:tt=this.allowStaleOnFetchRejection,ignoreFetchAbort:se=this.ignoreFetchAbort,allowStaleOnFetchAbort:ze=this.allowStaleOnFetchAbort,context:Ye,forceRefresh:Ue=!1,status:Je,signal:Ze}=Pe;if(!Xe(this,N))return Je&&(Je.fetch="get"),this.get(ke,{allowStale:Ne,updateAgeOnGet:We,noDeleteOnStaleGet:Q,status:Je});let rt={allowStale:Ne,updateAgeOnGet:We,noDeleteOnStaleGet:Q,ttl:K,noDisposeOnSet:J,size:be,sizeCalculation:Oe,noUpdateTTL:Se,noDeleteOnFetchRejection:Ke,allowStaleOnFetchRejection:tt,allowStaleOnFetchAbort:ze,ignoreFetchAbort:se,status:Je,signal:Ze},qt=Xe(this,E).get(ke);if(qt===void 0){Je&&(Je.fetch="miss");let St=Zn(this,V,C3).call(this,ke,qt,rt,Ye);return St.__returned=St}else{let St=Xe(this,M)[qt];if(Zn(this,V,Eo).call(this,St)){let an=Ne&&St.__staleWhileFetching!==void 0;return Je&&(Je.fetch="inflight",an&&(Je.returnedStale=!0)),an?St.__staleWhileFetching:St.__returned=St}let Ot=Xe(this,ee).call(this,qt);if(!Ue&&!Ot)return Je&&(Je.fetch="hit"),Zn(this,V,S2).call(this,qt),We&&Xe(this,ie).call(this,qt),Je&&Xe(this,ce).call(this,Je,qt),St;let Bt=Zn(this,V,C3).call(this,ke,qt,rt,Ye),Dt=Bt.__staleWhileFetching!==void 0&&Ne;return Je&&(Je.fetch=Ot?"stale":"refresh",Dt&&Ot&&(Je.returnedStale=!0)),Dt?Bt.__staleWhileFetching:Bt.__returned=Bt}}get(ke,Pe={}){let{allowStale:Ne=this.allowStale,updateAgeOnGet:We=this.updateAgeOnGet,noDeleteOnStaleGet:Q=this.noDeleteOnStaleGet,status:K}=Pe,J=Xe(this,E).get(ke);if(J!==void 0){let be=Xe(this,M)[J],Oe=Zn(this,V,Eo).call(this,be);return K&&Xe(this,ce).call(this,K,J),Xe(this,ee).call(this,J)?(K&&(K.get="stale"),Oe?(K&&Ne&&be.__staleWhileFetching!==void 0&&(K.returnedStale=!0),Ne?be.__staleWhileFetching:void 0):(Q||this.delete(ke),K&&Ne&&(K.returnedStale=!0),Ne?be:void 0)):(K&&(K.get="hit"),Oe?be.__staleWhileFetching:(Zn(this,V,S2).call(this,J),We&&Xe(this,ie).call(this,J),be))}else K&&(K.get="miss")}delete(ke){var Ne,We,Q,K;let Pe=!1;if(Xe(this,T)!==0){let J=Xe(this,E).get(ke);if(J!==void 0)if(Pe=!0,Xe(this,T)===1)this.clear();else{Xe(this,ue).call(this,J);let be=Xe(this,M)[J];Zn(this,V,Eo).call(this,be)?be.__abortController.abort(new Error("deleted")):(Xe(this,Z)||Xe(this,B))&&(Xe(this,Z)&&((Ne=Xe(this,b))==null||Ne.call(this,be,ke,"delete")),Xe(this,B)&&((We=Xe(this,F))==null||We.push([be,ke,"delete"]))),Xe(this,E).delete(ke),Xe(this,k)[J]=void 0,Xe(this,M)[J]=void 0,J===Xe(this,A)?Nn(this,A,Xe(this,D)[J]):J===Xe(this,R)?Nn(this,R,Xe(this,P)[J]):(Xe(this,P)[Xe(this,D)[J]]=Xe(this,P)[J],Xe(this,D)[Xe(this,P)[J]]=Xe(this,D)[J]),jg(this,T)._--,Xe(this,H).push(J)}}if(Xe(this,B)&&((Q=Xe(this,F))!=null&&Q.length)){let J=Xe(this,F),be;for(;be=J==null?void 0:J.shift();)(K=Xe(this,C))==null||K.call(this,...be)}return Pe}clear(){var ke,Pe,Ne;for(let We of Zn(this,V,om).call(this,{allowStale:!0})){let Q=Xe(this,M)[We];if(Zn(this,V,Eo).call(this,Q))Q.__abortController.abort(new Error("deleted"));else{let K=Xe(this,k)[We];Xe(this,Z)&&((ke=Xe(this,b))==null||ke.call(this,Q,K,"delete")),Xe(this,B)&&((Pe=Xe(this,F))==null||Pe.push([Q,K,"delete"]))}}if(Xe(this,E).clear(),Xe(this,M).fill(void 0),Xe(this,k).fill(void 0),Xe(this,q)&&Xe(this,W)&&(Xe(this,q).fill(0),Xe(this,W).fill(0)),Xe(this,z)&&Xe(this,z).fill(0),Nn(this,R,0),Nn(this,A,0),Xe(this,H).length=0,Nn(this,x,0),Nn(this,T,0),Xe(this,B)&&Xe(this,F)){let We=Xe(this,F),Q;for(;Q=We==null?void 0:We.shift();)(Ne=Xe(this,C))==null||Ne.call(this,...Q)}}},y=new WeakMap,S=new WeakMap,b=new WeakMap,C=new WeakMap,_=new WeakMap,T=new WeakMap,x=new WeakMap,E=new WeakMap,k=new WeakMap,M=new WeakMap,P=new WeakMap,D=new WeakMap,R=new WeakMap,A=new WeakMap,H=new WeakMap,F=new WeakMap,z=new WeakMap,W=new WeakMap,q=new WeakMap,Z=new WeakMap,N=new WeakMap,B=new WeakMap,V=new WeakSet,RL=function(){let ke=new u(Xe(this,y)),Pe=new u(Xe(this,y));Nn(this,q,ke),Nn(this,W,Pe),Nn(this,fe,(Q,K,J=t.now())=>{if(Pe[Q]=K!==0?J:0,ke[Q]=K,K!==0&&this.ttlAutopurge){let be=setTimeout(()=>{Xe(this,ee).call(this,Q)&&this.delete(Xe(this,k)[Q])},K+1);be.unref&&be.unref()}}),Nn(this,ie,Q=>{Pe[Q]=ke[Q]!==0?t.now():0}),Nn(this,ce,(Q,K)=>{if(ke[K]){let J=ke[K],be=Pe[K];Q.ttl=J,Q.start=be,Q.now=Ne||We();let Oe=Q.now-be;Q.remainingTTL=J-Oe}});let Ne=0,We=()=>{let Q=t.now();if(this.ttlResolution>0){Ne=Q;let K=setTimeout(()=>Ne=0,this.ttlResolution);K.unref&&K.unref()}return Q};this.getRemainingTTL=Q=>{let K=Xe(this,E).get(Q);if(K===void 0)return 0;let J=ke[K],be=Pe[K];if(J===0||be===0)return 1/0;let Oe=(Ne||We())-be;return J-Oe},Nn(this,ee,Q=>ke[Q]!==0&&Pe[Q]!==0&&(Ne||We())-Pe[Q]>ke[Q])},ie=new WeakMap,ce=new WeakMap,fe=new WeakMap,ee=new WeakMap,Epe=function(){let ke=new u(Xe(this,y));Nn(this,x,0),Nn(this,z,ke),Nn(this,ue,Pe=>{Nn(this,x,Xe(this,x)-ke[Pe]),ke[Pe]=0}),Nn(this,me,(Pe,Ne,We,Q)=>{if(Zn(this,V,Eo).call(this,Ne))return 0;if(!l(We))if(Q){if(typeof Q!="function")throw new TypeError("sizeCalculation must be a function");if(We=Q(Ne,Pe),!l(We))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return We}),Nn(this,ye,(Pe,Ne,We)=>{if(ke[Pe]=Ne,Xe(this,S)){let Q=Xe(this,S)-ke[Pe];for(;Xe(this,x)>Q;)Zn(this,V,S3).call(this,!0)}Nn(this,x,Xe(this,x)+ke[Pe]),We&&(We.entrySize=Ne,We.totalCalculatedSize=Xe(this,x))})},ue=new WeakMap,ye=new WeakMap,me=new WeakMap,im=function*({allowStale:ke=this.allowStale}={}){if(Xe(this,T))for(let Pe=Xe(this,A);!(!Zn(this,V,AL).call(this,Pe)||((ke||!Xe(this,ee).call(this,Pe))&&(yield Pe),Pe===Xe(this,R)));)Pe=Xe(this,D)[Pe]},om=function*({allowStale:ke=this.allowStale}={}){if(Xe(this,T))for(let Pe=Xe(this,R);!(!Zn(this,V,AL).call(this,Pe)||((ke||!Xe(this,ee).call(this,Pe))&&(yield Pe),Pe===Xe(this,A)));)Pe=Xe(this,P)[Pe]},AL=function(ke){return ke!==void 0&&Xe(this,E).get(Xe(this,k)[ke])===ke},S3=function(ke){var Q,K;let Pe=Xe(this,R),Ne=Xe(this,k)[Pe],We=Xe(this,M)[Pe];return Xe(this,N)&&Zn(this,V,Eo).call(this,We)?We.__abortController.abort(new Error("evicted")):(Xe(this,Z)||Xe(this,B))&&(Xe(this,Z)&&((Q=Xe(this,b))==null||Q.call(this,We,Ne,"evict")),Xe(this,B)&&((K=Xe(this,F))==null||K.push([We,Ne,"evict"]))),Xe(this,ue).call(this,Pe),ke&&(Xe(this,k)[Pe]=void 0,Xe(this,M)[Pe]=void 0,Xe(this,H).push(Pe)),Xe(this,T)===1?(Nn(this,R,Nn(this,A,0)),Xe(this,H).length=0):Nn(this,R,Xe(this,P)[Pe]),Xe(this,E).delete(Ne),jg(this,T)._--,Pe},C3=function(ke,Pe,Ne,We){let Q=Pe===void 0?void 0:Xe(this,M)[Pe];if(Zn(this,V,Eo).call(this,Q))return Q;let K=new o,{signal:J}=Ne;J==null||J.addEventListener("abort",()=>K.abort(J.reason),{signal:K.signal});let be={signal:K.signal,options:Ne,context:We},Oe=(Ye,Ue=!1)=>{let{aborted:Je}=K.signal,Ze=Ne.ignoreFetchAbort&&Ye!==void 0;if(Ne.status&&(Je&&!Ue?(Ne.status.fetchAborted=!0,Ne.status.fetchError=K.signal.reason,Ze&&(Ne.status.fetchAbortIgnored=!0)):Ne.status.fetchResolved=!0),Je&&!Ze&&!Ue)return Ke(K.signal.reason);let rt=se;return Xe(this,M)[Pe]===se&&(Ye===void 0?rt.__staleWhileFetching?Xe(this,M)[Pe]=rt.__staleWhileFetching:this.delete(ke):(Ne.status&&(Ne.status.fetchUpdated=!0),this.set(ke,Ye,be.options))),Ye},Se=Ye=>(Ne.status&&(Ne.status.fetchRejected=!0,Ne.status.fetchError=Ye),Ke(Ye)),Ke=Ye=>{let{aborted:Ue}=K.signal,Je=Ue&&Ne.allowStaleOnFetchAbort,Ze=Je||Ne.allowStaleOnFetchRejection,rt=Ze||Ne.noDeleteOnFetchRejection,qt=se;if(Xe(this,M)[Pe]===se&&(!rt||qt.__staleWhileFetching===void 0?this.delete(ke):Je||(Xe(this,M)[Pe]=qt.__staleWhileFetching)),Ze)return Ne.status&&qt.__staleWhileFetching!==void 0&&(Ne.status.returnedStale=!0),qt.__staleWhileFetching;if(qt.__returned===qt)throw Ye},tt=(Ye,Ue)=>{var Ze;let Je=(Ze=Xe(this,_))==null?void 0:Ze.call(this,ke,Q,be);Je&&Je instanceof Promise&&Je.then(rt=>Ye(rt===void 0?void 0:rt),Ue),K.signal.addEventListener("abort",()=>{(!Ne.ignoreFetchAbort||Ne.allowStaleOnFetchAbort)&&(Ye(void 0),Ne.allowStaleOnFetchAbort&&(Ye=rt=>Oe(rt,!0)))})};Ne.status&&(Ne.status.fetchDispatched=!0);let se=new Promise(tt).then(Oe,Se),ze=Object.assign(se,{__abortController:K,__staleWhileFetching:Q,__returned:void 0});return Pe===void 0?(this.set(ke,ze,{...be.options,status:void 0}),Pe=Xe(this,E).get(ke)):Xe(this,M)[Pe]=ze,ze},Eo=function(ke){if(!Xe(this,N))return!1;let Pe=ke;return!!Pe&&Pe instanceof Promise&&Pe.hasOwnProperty("__staleWhileFetching")&&Pe.__abortController instanceof o},NL=function(ke,Pe){Xe(this,D)[Pe]=ke,Xe(this,P)[ke]=Pe},S2=function(ke){ke!==Xe(this,A)&&(ke===Xe(this,R)?Nn(this,R,Xe(this,P)[ke]):Zn(this,V,NL).call(this,Xe(this,D)[ke],Xe(this,P)[ke]),Zn(this,V,NL).call(this,Xe(this,A),ke),Nn(this,A,ke))},Ce);e.LRUCache=h}),xp=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"t",{value:!0}),e.ContainerIterator=e.Container=e.Base=void 0;var t=class{constructor(i=0){this.iteratorType=i}equals(i){return this.o===i.o}};e.ContainerIterator=t;var n=class{constructor(){this.i=0}get length(){return this.i}size(){return this.i}empty(){return this.i===0}};e.Base=n;var r=class extends n{};e.Container=r}),HRe=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=xp(),n=class extends t.Base{constructor(i=[]){super(),this.S=[];let o=this;i.forEach(function(a){o.push(a)})}clear(){this.i=0,this.S=[]}push(i){return this.S.push(i),this.i+=1,this.i}pop(){if(this.i!==0)return this.i-=1,this.S.pop()}top(){return this.S[this.i-1]}},r=n;e.default=r}),zRe=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=xp(),n=class extends t.Base{constructor(i=[]){super(),this.j=0,this.q=[];let o=this;i.forEach(function(a){o.push(a)})}clear(){this.q=[],this.i=this.j=0}push(i){let o=this.q.length;if(this.j/o>.5&&this.j+this.i>=o&&o>4096){let a=this.i;for(let s=0;s<a;++s)this.q[s]=this.q[this.j+s];this.j=0,this.q[this.i]=i}else this.q[this.j+this.i]=i;return++this.i}pop(){if(this.i===0)return;let i=this.q[this.j++];return this.i-=1,i}front(){if(this.i!==0)return this.q[this.j]}},r=n;e.default=r}),URe=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=xp(),n=class extends t.Base{constructor(i=[],o=function(s,l){return s>l?-1:s<l?1:0},a=!0){if(super(),this.v=o,Array.isArray(i))this.C=a?[...i]:i;else{this.C=[];let l=this;i.forEach(function(c){l.C.push(c)})}this.i=this.C.length;let s=this.i>>1;for(let l=this.i-1>>1;l>=0;--l)this.k(l,s)}m(i){let o=this.C[i];for(;i>0;){let a=i-1>>1,s=this.C[a];if(this.v(s,o)<=0)break;this.C[i]=s,i=a}this.C[i]=o}k(i,o){let a=this.C[i];for(;i<o;){let s=i<<1|1,l=s+1,c=this.C[s];if(l<this.i&&this.v(c,this.C[l])>0&&(s=l,c=this.C[l]),this.v(c,a)>=0)break;this.C[i]=c,i=s}this.C[i]=a}clear(){this.i=0,this.C.length=0}push(i){this.C.push(i),this.m(this.i),this.i+=1}pop(){if(this.i===0)return;let i=this.C[0],o=this.C.pop();return this.i-=1,this.i&&(this.C[0]=o,this.k(0,this.i>>1)),i}top(){return this.C[0]}find(i){return this.C.indexOf(i)>=0}remove(i){let o=this.C.indexOf(i);return o<0?!1:(o===0?this.pop():o===this.i-1?(this.C.pop(),this.i-=1):(this.C.splice(o,1,this.C.pop()),this.i-=1,this.m(o),this.k(o,this.i>>1)),!0)}updateItem(i){let o=this.C.indexOf(i);return o<0?!1:(this.m(o),this.k(o,this.i>>1),!0)}toArray(){return[...this.C]}},r=n;e.default=r}),Bz=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=xp(),n=class extends t.Container{},r=n;e.default=r}),wp=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"t",{value:!0}),e.throwIteratorAccessError=t;function t(){throw new RangeError("Iterator access denied!")}}),Tpe=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"t",{value:!0}),e.RandomIterator=void 0;var t=xp(),n=wp(),r=class extends t.ContainerIterator{constructor(i,o){super(o),this.o=i,this.iteratorType===0?(this.pre=function(){return this.o===0&&(0,n.throwIteratorAccessError)(),this.o-=1,this},this.next=function(){return this.o===this.container.size()&&(0,n.throwIteratorAccessError)(),this.o+=1,this}):(this.pre=function(){return this.o===this.container.size()-1&&(0,n.throwIteratorAccessError)(),this.o+=1,this},this.next=function(){return this.o===-1&&(0,n.throwIteratorAccessError)(),this.o-=1,this})}get pointer(){return this.container.getElementByPos(this.o)}set pointer(i){this.container.setElementByPos(this.o,i)}};e.RandomIterator=r}),WRe=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=r(Bz()),n=Tpe();function r(s){return s&&s.t?s:{default:s}}var i=class kpe extends n.RandomIterator{constructor(l,c,u){super(l,u),this.container=c}copy(){return new kpe(this.o,this.container,this.iteratorType)}},o=class extends t.default{constructor(s=[],l=!0){if(super(),Array.isArray(s))this.J=l?[...s]:s,this.i=s.length;else{this.J=[];let c=this;s.forEach(function(u){c.pushBack(u)})}}clear(){this.i=0,this.J.length=0}begin(){return new i(0,this)}end(){return new i(this.i,this)}rBegin(){return new i(this.i-1,this,1)}rEnd(){return new i(-1,this,1)}front(){return this.J[0]}back(){return this.J[this.i-1]}getElementByPos(s){if(s<0||s>this.i-1)throw new RangeError;return this.J[s]}eraseElementByPos(s){if(s<0||s>this.i-1)throw new RangeError;return this.J.splice(s,1),this.i-=1,this.i}eraseElementByValue(s){let l=0;for(let c=0;c<this.i;++c)this.J[c]!==s&&(this.J[l++]=this.J[c]);return this.i=this.J.length=l,this.i}eraseElementByIterator(s){let l=s.o;return s=s.next(),this.eraseElementByPos(l),s}pushBack(s){return this.J.push(s),this.i+=1,this.i}popBack(){if(this.i!==0)return this.i-=1,this.J.pop()}setElementByPos(s,l){if(s<0||s>this.i-1)throw new RangeError;this.J[s]=l}insert(s,l,c=1){if(s<0||s>this.i)throw new RangeError;return this.J.splice(s,0,...new Array(c).fill(l)),this.i+=c,this.i}find(s){for(let l=0;l<this.i;++l)if(this.J[l]===s)return new i(l,this);return this.end()}reverse(){this.J.reverse()}unique(){let s=1;for(let l=1;l<this.i;++l)this.J[l]!==this.J[l-1]&&(this.J[s++]=this.J[l]);return this.i=this.J.length=s,this.i}sort(s){this.J.sort(s)}forEach(s){for(let l=0;l<this.i;++l)s(this.J[l],l,this)}[Symbol.iterator](){return(function*(){yield*this.J}).bind(this)()}},a=o;e.default=a}),VRe=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=i(Bz()),n=xp(),r=wp();function i(l){return l&&l.t?l:{default:l}}var o=class Ope extends n.ContainerIterator{constructor(c,u,d,h){super(h),this.o=c,this.h=u,this.container=d,this.iteratorType===0?(this.pre=function(){return this.o.L===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.L,this},this.next=function(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.B,this}):(this.pre=function(){return this.o.B===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.B,this},this.next=function(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.L,this})}get pointer(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o.l}set pointer(c){this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o.l=c}copy(){return new Ope(this.o,this.h,this.container,this.iteratorType)}},a=class extends t.default{constructor(l=[]){super(),this.h={},this.p=this._=this.h.L=this.h.B=this.h;let c=this;l.forEach(function(u){c.pushBack(u)})}V(l){let{L:c,B:u}=l;c.B=u,u.L=c,l===this.p&&(this.p=u),l===this._&&(this._=c),this.i-=1}G(l,c){let u=c.B,d={l,L:c,B:u};c.B=d,u.L=d,c===this.h&&(this.p=d),u===this.h&&(this._=d),this.i+=1}clear(){this.i=0,this.p=this._=this.h.L=this.h.B=this.h}begin(){return new o(this.p,this.h,this)}end(){return new o(this.h,this.h,this)}rBegin(){return new o(this._,this.h,this,1)}rEnd(){return new o(this.h,this.h,this,1)}front(){return this.p.l}back(){return this._.l}getElementByPos(l){if(l<0||l>this.i-1)throw new RangeError;let c=this.p;for(;l--;)c=c.B;return c.l}eraseElementByPos(l){if(l<0||l>this.i-1)throw new RangeError;let c=this.p;for(;l--;)c=c.B;return this.V(c),this.i}eraseElementByValue(l){let c=this.p;for(;c!==this.h;)c.l===l&&this.V(c),c=c.B;return this.i}eraseElementByIterator(l){let c=l.o;return c===this.h&&(0,r.throwIteratorAccessError)(),l=l.next(),this.V(c),l}pushBack(l){return this.G(l,this._),this.i}popBack(){if(this.i===0)return;let l=this._.l;return this.V(this._),l}pushFront(l){return this.G(l,this.h),this.i}popFront(){if(this.i===0)return;let l=this.p.l;return this.V(this.p),l}setElementByPos(l,c){if(l<0||l>this.i-1)throw new RangeError;let u=this.p;for(;l--;)u=u.B;u.l=c}insert(l,c,u=1){if(l<0||l>this.i)throw new RangeError;if(u<=0)return this.i;if(l===0)for(;u--;)this.pushFront(c);else if(l===this.i)for(;u--;)this.pushBack(c);else{let d=this.p;for(let p=1;p<l;++p)d=d.B;let h=d.B;for(this.i+=u;u--;)d.B={l:c,L:d},d.B.L=d,d=d.B;d.B=h,h.L=d}return this.i}find(l){let c=this.p;for(;c!==this.h;){if(c.l===l)return new o(c,this.h,this);c=c.B}return this.end()}reverse(){if(this.i<=1)return;let l=this.p,c=this._,u=0;for(;u<<1<this.i;){let d=l.l;l.l=c.l,c.l=d,l=l.B,c=c.L,u+=1}}unique(){if(this.i<=1)return this.i;let l=this.p;for(;l!==this.h;){let c=l;for(;c.B!==this.h&&c.l===c.B.l;)c=c.B,this.i-=1;l.B=c.B,l.B.L=l,l=l.B}return this.i}sort(l){if(this.i<=1)return;let c=[];this.forEach(function(d){c.push(d)}),c.sort(l);let u=this.p;c.forEach(function(d){u.l=d,u=u.B})}merge(l){let c=this;if(this.i===0)l.forEach(function(u){c.pushBack(u)});else{let u=this.p;l.forEach(function(d){for(;u!==c.h&&u.l<=d;)u=u.B;c.G(d,u.L)})}return this.i}forEach(l){let c=this.p,u=0;for(;c!==this.h;)l(c.l,u++,this),c=c.B}[Symbol.iterator](){return(function*(){if(this.i===0)return;let l=this.p;for(;l!==this.h;)yield l.l,l=l.B}).bind(this)()}},s=a;e.default=s}),KRe=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=r(Bz()),n=Tpe();function r(s){return s&&s.t?s:{default:s}}var i=class Ppe extends n.RandomIterator{constructor(l,c,u){super(l,u),this.container=c}copy(){return new Ppe(this.o,this.container,this.iteratorType)}},o=class extends t.default{constructor(s=[],l=4096){super(),this.j=0,this.D=0,this.R=0,this.N=0,this.P=0,this.A=[];let c=(()=>{if(typeof s.length=="number")return s.length;if(typeof s.size=="number")return s.size;if(typeof s.size=="function")return s.size();throw new TypeError("Cannot get the length or size of the container")})();this.F=l,this.P=Math.max(Math.ceil(c/this.F),1);for(let h=0;h<this.P;++h)this.A.push(new Array(this.F));let u=Math.ceil(c/this.F);this.j=this.R=(this.P>>1)-(u>>1),this.D=this.N=this.F-c%this.F>>1;let d=this;s.forEach(function(h){d.pushBack(h)})}T(){let s=[],l=Math.max(this.P>>1,1);for(let c=0;c<l;++c)s[c]=new Array(this.F);for(let c=this.j;c<this.P;++c)s[s.length]=this.A[c];for(let c=0;c<this.R;++c)s[s.length]=this.A[c];s[s.length]=[...this.A[this.R]],this.j=l,this.R=s.length-1;for(let c=0;c<l;++c)s[s.length]=new Array(this.F);this.A=s,this.P=s.length}O(s){let l=this.D+s+1,c=l%this.F,u=c-1,d=this.j+(l-c)/this.F;return c===0&&(d-=1),d%=this.P,u<0&&(u+=this.F),{curNodeBucketIndex:d,curNodePointerIndex:u}}clear(){this.A=[new Array(this.F)],this.P=1,this.j=this.R=this.i=0,this.D=this.N=this.F>>1}begin(){return new i(0,this)}end(){return new i(this.i,this)}rBegin(){return new i(this.i-1,this,1)}rEnd(){return new i(-1,this,1)}front(){if(this.i!==0)return this.A[this.j][this.D]}back(){if(this.i!==0)return this.A[this.R][this.N]}pushBack(s){return this.i&&(this.N<this.F-1?this.N+=1:this.R<this.P-1?(this.R+=1,this.N=0):(this.R=0,this.N=0),this.R===this.j&&this.N===this.D&&this.T()),this.i+=1,this.A[this.R][this.N]=s,this.i}popBack(){if(this.i===0)return;let s=this.A[this.R][this.N];return this.i!==1&&(this.N>0?this.N-=1:this.R>0?(this.R-=1,this.N=this.F-1):(this.R=this.P-1,this.N=this.F-1)),this.i-=1,s}pushFront(s){return this.i&&(this.D>0?this.D-=1:this.j>0?(this.j-=1,this.D=this.F-1):(this.j=this.P-1,this.D=this.F-1),this.j===this.R&&this.D===this.N&&this.T()),this.i+=1,this.A[this.j][this.D]=s,this.i}popFront(){if(this.i===0)return;let s=this.A[this.j][this.D];return this.i!==1&&(this.D<this.F-1?this.D+=1:this.j<this.P-1?(this.j+=1,this.D=0):(this.j=0,this.D=0)),this.i-=1,s}getElementByPos(s){if(s<0||s>this.i-1)throw new RangeError;let{curNodeBucketIndex:l,curNodePointerIndex:c}=this.O(s);return this.A[l][c]}setElementByPos(s,l){if(s<0||s>this.i-1)throw new RangeError;let{curNodeBucketIndex:c,curNodePointerIndex:u}=this.O(s);this.A[c][u]=l}insert(s,l,c=1){if(s<0||s>this.i)throw new RangeError;if(s===0)for(;c--;)this.pushFront(l);else if(s===this.i)for(;c--;)this.pushBack(l);else{let u=[];for(let d=s;d<this.i;++d)u.push(this.getElementByPos(d));this.cut(s-1);for(let d=0;d<c;++d)this.pushBack(l);for(let d=0;d<u.length;++d)this.pushBack(u[d])}return this.i}cut(s){if(s<0)return this.clear(),0;let{curNodeBucketIndex:l,curNodePointerIndex:c}=this.O(s);return this.R=l,this.N=c,this.i=s+1,this.i}eraseElementByPos(s){if(s<0||s>this.i-1)throw new RangeError;if(s===0)this.popFront();else if(s===this.i-1)this.popBack();else{let l=[];for(let u=s+1;u<this.i;++u)l.push(this.getElementByPos(u));this.cut(s),this.popBack();let c=this;l.forEach(function(u){c.pushBack(u)})}return this.i}eraseElementByValue(s){if(this.i===0)return 0;let l=[];for(let u=0;u<this.i;++u){let d=this.getElementByPos(u);d!==s&&l.push(d)}let c=l.length;for(let u=0;u<c;++u)this.setElementByPos(u,l[u]);return this.cut(c-1)}eraseElementByIterator(s){let l=s.o;return this.eraseElementByPos(l),s=s.next(),s}find(s){for(let l=0;l<this.i;++l)if(this.getElementByPos(l)===s)return new i(l,this);return this.end()}reverse(){let s=0,l=this.i-1;for(;s<l;){let c=this.getElementByPos(s);this.setElementByPos(s,this.getElementByPos(l)),this.setElementByPos(l,c),s+=1,l-=1}}unique(){if(this.i<=1)return this.i;let s=1,l=this.getElementByPos(0);for(let c=1;c<this.i;++c){let u=this.getElementByPos(c);u!==l&&(l=u,this.setElementByPos(s++,u))}for(;this.i>s;)this.popBack();return this.i}sort(s){let l=[];for(let c=0;c<this.i;++c)l.push(this.getElementByPos(c));l.sort(s);for(let c=0;c<this.i;++c)this.setElementByPos(c,l[c])}shrinkToFit(){if(this.i===0)return;let s=[];this.forEach(function(l){s.push(l)}),this.P=Math.max(Math.ceil(this.i/this.F),1),this.i=this.j=this.R=this.D=this.N=0,this.A=[];for(let l=0;l<this.P;++l)this.A.push(new Array(this.F));for(let l=0;l<s.length;++l)this.pushBack(s[l])}forEach(s){for(let l=0;l<this.i;++l)s(this.getElementByPos(l),l,this)}[Symbol.iterator](){return(function*(){for(let s=0;s<this.i;++s)yield this.getElementByPos(s)}).bind(this)()}},a=o;e.default=a}),qRe=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"t",{value:!0}),e.TreeNodeEnableIndex=e.TreeNode=void 0;var t=class{constructor(r,i){this.ee=1,this.u=void 0,this.l=void 0,this.U=void 0,this.W=void 0,this.tt=void 0,this.u=r,this.l=i}L(){let r=this;if(r.ee===1&&r.tt.tt===r)r=r.W;else if(r.U)for(r=r.U;r.W;)r=r.W;else{let i=r.tt;for(;i.U===r;)r=i,i=r.tt;r=i}return r}B(){let r=this;if(r.W){for(r=r.W;r.U;)r=r.U;return r}else{let i=r.tt;for(;i.W===r;)r=i,i=r.tt;return r.W!==i?i:r}}te(){let r=this.tt,i=this.W,o=i.U;return r.tt===this?r.tt=i:r.U===this?r.U=i:r.W=i,i.tt=r,i.U=this,this.tt=i,this.W=o,o&&(o.tt=this),i}se(){let r=this.tt,i=this.U,o=i.W;return r.tt===this?r.tt=i:r.U===this?r.U=i:r.W=i,i.tt=r,i.W=this,this.tt=i,this.U=o,o&&(o.tt=this),i}};e.TreeNode=t;var n=class extends t{constructor(){super(...arguments),this.rt=1}te(){let r=super.te();return this.ie(),r.ie(),r}se(){let r=super.se();return this.ie(),r.ie(),r}ie(){this.rt=1,this.U&&(this.rt+=this.U.rt),this.W&&(this.rt+=this.W.rt)}};e.TreeNodeEnableIndex=n}),Mpe=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=qRe(),n=xp(),r=wp(),i=class extends n.Container{constructor(a=function(l,c){return l<c?-1:l>c?1:0},s=!1){super(),this.Y=void 0,this.v=a,s?(this.re=t.TreeNodeEnableIndex,this.M=function(l,c,u){let d=this.ne(l,c,u);if(d){let h=d.tt;for(;h!==this.h;)h.rt+=1,h=h.tt;let p=this.he(d);if(p){let{parentNode:m,grandParent:v,curNode:y}=p;m.ie(),v.ie(),y.ie()}}return this.i},this.V=function(l){let c=this.fe(l);for(;c!==this.h;)c.rt-=1,c=c.tt}):(this.re=t.TreeNode,this.M=function(l,c,u){let d=this.ne(l,c,u);return d&&this.he(d),this.i},this.V=this.fe),this.h=new this.re}X(a,s){let l=this.h;for(;a;){let c=this.v(a.u,s);if(c<0)a=a.W;else if(c>0)l=a,a=a.U;else return a}return l}Z(a,s){let l=this.h;for(;a;)this.v(a.u,s)<=0?a=a.W:(l=a,a=a.U);return l}$(a,s){let l=this.h;for(;a;){let c=this.v(a.u,s);if(c<0)l=a,a=a.W;else if(c>0)a=a.U;else return a}return l}rr(a,s){let l=this.h;for(;a;)this.v(a.u,s)<0?(l=a,a=a.W):a=a.U;return l}ue(a){for(;;){let s=a.tt;if(s===this.h)return;if(a.ee===1){a.ee=0;return}if(a===s.U){let l=s.W;if(l.ee===1)l.ee=0,s.ee=1,s===this.Y?this.Y=s.te():s.te();else if(l.W&&l.W.ee===1){l.ee=s.ee,s.ee=0,l.W.ee=0,s===this.Y?this.Y=s.te():s.te();return}else l.U&&l.U.ee===1?(l.ee=1,l.U.ee=0,l.se()):(l.ee=1,a=s)}else{let l=s.U;if(l.ee===1)l.ee=0,s.ee=1,s===this.Y?this.Y=s.se():s.se();else if(l.U&&l.U.ee===1){l.ee=s.ee,s.ee=0,l.U.ee=0,s===this.Y?this.Y=s.se():s.se();return}else l.W&&l.W.ee===1?(l.ee=1,l.W.ee=0,l.te()):(l.ee=1,a=s)}}}fe(a){if(this.i===1)return this.clear(),this.h;let s=a;for(;s.U||s.W;){if(s.W)for(s=s.W;s.U;)s=s.U;else s=s.U;[a.u,s.u]=[s.u,a.u],[a.l,s.l]=[s.l,a.l],a=s}this.h.U===s?this.h.U=s.tt:this.h.W===s&&(this.h.W=s.tt),this.ue(s);let l=s.tt;return s===l.U?l.U=void 0:l.W=void 0,this.i-=1,this.Y.ee=0,l}oe(a,s){return a===void 0?!1:this.oe(a.U,s)||s(a)?!0:this.oe(a.W,s)}he(a){for(;;){let s=a.tt;if(s.ee===0)return;let l=s.tt;if(s===l.U){let c=l.W;if(c&&c.ee===1){if(c.ee=s.ee=0,l===this.Y)return;l.ee=1,a=l;continue}else if(a===s.W){if(a.ee=0,a.U&&(a.U.tt=s),a.W&&(a.W.tt=l),s.W=a.U,l.U=a.W,a.U=s,a.W=l,l===this.Y)this.Y=a,this.h.tt=a;else{let u=l.tt;u.U===l?u.U=a:u.W=a}return a.tt=l.tt,s.tt=a,l.tt=a,l.ee=1,{parentNode:s,grandParent:l,curNode:a}}else s.ee=0,l===this.Y?this.Y=l.se():l.se(),l.ee=1}else{let c=l.U;if(c&&c.ee===1){if(c.ee=s.ee=0,l===this.Y)return;l.ee=1,a=l;continue}else if(a===s.U){if(a.ee=0,a.U&&(a.U.tt=l),a.W&&(a.W.tt=s),l.W=a.U,s.U=a.W,a.U=l,a.W=s,l===this.Y)this.Y=a,this.h.tt=a;else{let u=l.tt;u.U===l?u.U=a:u.W=a}return a.tt=l.tt,s.tt=a,l.tt=a,l.ee=1,{parentNode:s,grandParent:l,curNode:a}}else s.ee=0,l===this.Y?this.Y=l.te():l.te(),l.ee=1}return}}ne(a,s,l){if(this.Y===void 0){this.i+=1,this.Y=new this.re(a,s),this.Y.ee=0,this.Y.tt=this.h,this.h.tt=this.Y,this.h.U=this.Y,this.h.W=this.Y;return}let c,u=this.h.U,d=this.v(u.u,a);if(d===0){u.l=s;return}else if(d>0)u.U=new this.re(a,s),u.U.tt=u,c=u.U,this.h.U=c;else{let h=this.h.W,p=this.v(h.u,a);if(p===0){h.l=s;return}else if(p<0)h.W=new this.re(a,s),h.W.tt=h,c=h.W,this.h.W=c;else{if(l!==void 0){let m=l.o;if(m!==this.h){let v=this.v(m.u,a);if(v===0){m.l=s;return}else if(v>0){let y=m.L(),S=this.v(y.u,a);if(S===0){y.l=s;return}else S<0&&(c=new this.re(a,s),y.W===void 0?(y.W=c,c.tt=y):(m.U=c,c.tt=m))}}}if(c===void 0)for(c=this.Y;;){let m=this.v(c.u,a);if(m>0){if(c.U===void 0){c.U=new this.re(a,s),c.U.tt=c,c=c.U;break}c=c.U}else if(m<0){if(c.W===void 0){c.W=new this.re(a,s),c.W.tt=c,c=c.W;break}c=c.W}else{c.l=s;return}}}}return this.i+=1,c}I(a,s){for(;a;){let l=this.v(a.u,s);if(l<0)a=a.W;else if(l>0)a=a.U;else return a}return a||this.h}clear(){this.i=0,this.Y=void 0,this.h.tt=void 0,this.h.U=this.h.W=void 0}updateKeyByIterator(a,s){let l=a.o;if(l===this.h&&(0,r.throwIteratorAccessError)(),this.i===1)return l.u=s,!0;if(l===this.h.U)return this.v(l.B().u,s)>0?(l.u=s,!0):!1;if(l===this.h.W)return this.v(l.L().u,s)<0?(l.u=s,!0):!1;let c=l.L().u;if(this.v(c,s)>=0)return!1;let u=l.B().u;return this.v(u,s)<=0?!1:(l.u=s,!0)}eraseElementByPos(a){if(a<0||a>this.i-1)throw new RangeError;let s=0,l=this;return this.oe(this.Y,function(c){return a===s?(l.V(c),!0):(s+=1,!1)}),this.i}eraseElementByKey(a){if(this.i===0)return!1;let s=this.I(this.Y,a);return s===this.h?!1:(this.V(s),!0)}eraseElementByIterator(a){let s=a.o;s===this.h&&(0,r.throwIteratorAccessError)();let l=s.W===void 0;return a.iteratorType===0?l&&a.next():(!l||s.U===void 0)&&a.next(),this.V(s),a}forEach(a){let s=0;for(let l of this)a(l,s++,this)}getElementByPos(a){if(a<0||a>this.i-1)throw new RangeError;let s,l=0;for(let c of this){if(l===a){s=c;break}l+=1}return s}getHeight(){if(this.i===0)return 0;let a=function(s){return s?Math.max(a(s.U),a(s.W))+1:0};return a(this.Y)}},o=i;e.default=o}),Ipe=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=xp(),n=wp(),r=class extends t.ContainerIterator{constructor(o,a,s){super(s),this.o=o,this.h=a,this.iteratorType===0?(this.pre=function(){return this.o===this.h.U&&(0,n.throwIteratorAccessError)(),this.o=this.o.L(),this},this.next=function(){return this.o===this.h&&(0,n.throwIteratorAccessError)(),this.o=this.o.B(),this}):(this.pre=function(){return this.o===this.h.W&&(0,n.throwIteratorAccessError)(),this.o=this.o.B(),this},this.next=function(){return this.o===this.h&&(0,n.throwIteratorAccessError)(),this.o=this.o.L(),this})}get index(){let o=this.o,a=this.h.tt;if(o===this.h)return a?a.rt-1:0;let s=0;for(o.U&&(s+=o.U.rt);o!==a;){let l=o.tt;o===l.W&&(s+=1,l.U&&(s+=l.U.rt)),o=l}return s}},i=r;e.default=i}),GRe=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=i(Mpe()),n=i(Ipe()),r=wp();function i(l){return l&&l.t?l:{default:l}}var o=class $pe extends n.default{constructor(c,u,d,h){super(c,u,h),this.container=d}get pointer(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o.u}copy(){return new $pe(this.o,this.h,this.container,this.iteratorType)}},a=class extends t.default{constructor(l=[],c,u){super(c,u);let d=this;l.forEach(function(h){d.insert(h)})}*K(l){l!==void 0&&(yield*this.K(l.U),yield l.u,yield*this.K(l.W))}begin(){return new o(this.h.U||this.h,this.h,this)}end(){return new o(this.h,this.h,this)}rBegin(){return new o(this.h.W||this.h,this.h,this,1)}rEnd(){return new o(this.h,this.h,this,1)}front(){return this.h.U?this.h.U.u:void 0}back(){return this.h.W?this.h.W.u:void 0}insert(l,c){return this.M(l,void 0,c)}find(l){let c=this.I(this.Y,l);return new o(c,this.h,this)}lowerBound(l){let c=this.X(this.Y,l);return new o(c,this.h,this)}upperBound(l){let c=this.Z(this.Y,l);return new o(c,this.h,this)}reverseLowerBound(l){let c=this.$(this.Y,l);return new o(c,this.h,this)}reverseUpperBound(l){let c=this.rr(this.Y,l);return new o(c,this.h,this)}union(l){let c=this;return l.forEach(function(u){c.insert(u)}),this.i}[Symbol.iterator](){return this.K(this.Y)}},s=a;e.default=s}),YRe=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=i(Mpe()),n=i(Ipe()),r=wp();function i(l){return l&&l.t?l:{default:l}}var o=class Rpe extends n.default{constructor(c,u,d,h){super(c,u,h),this.container=d}get pointer(){this.o===this.h&&(0,r.throwIteratorAccessError)();let c=this;return new Proxy([],{get(u,d){if(d==="0")return c.o.u;if(d==="1")return c.o.l},set(u,d,h){if(d!=="1")throw new TypeError("props must be 1");return c.o.l=h,!0}})}copy(){return new Rpe(this.o,this.h,this.container,this.iteratorType)}},a=class extends t.default{constructor(l=[],c,u){super(c,u);let d=this;l.forEach(function(h){d.setElement(h[0],h[1])})}*K(l){l!==void 0&&(yield*this.K(l.U),yield[l.u,l.l],yield*this.K(l.W))}begin(){return new o(this.h.U||this.h,this.h,this)}end(){return new o(this.h,this.h,this)}rBegin(){return new o(this.h.W||this.h,this.h,this,1)}rEnd(){return new o(this.h,this.h,this,1)}front(){if(this.i===0)return;let l=this.h.U;return[l.u,l.l]}back(){if(this.i===0)return;let l=this.h.W;return[l.u,l.l]}lowerBound(l){let c=this.X(this.Y,l);return new o(c,this.h,this)}upperBound(l){let c=this.Z(this.Y,l);return new o(c,this.h,this)}reverseLowerBound(l){let c=this.$(this.Y,l);return new o(c,this.h,this)}reverseUpperBound(l){let c=this.rr(this.Y,l);return new o(c,this.h,this)}setElement(l,c,u){return this.M(l,c,u)}find(l){let c=this.I(this.Y,l);return new o(c,this.h,this)}getElementByKey(l){return this.I(this.Y,l).l}union(l){let c=this;return l.forEach(function(u){c.setElement(u[0],u[1])}),this.i}[Symbol.iterator](){return this.K(this.Y)}},s=a;e.default=s}),Ape=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"t",{value:!0}),e.default=t;function t(n){let r=typeof n;return r==="object"&&n!==null||r==="function"}}),Npe=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"t",{value:!0}),e.HashContainerIterator=e.HashContainer=void 0;var t=xp(),n=i(Ape()),r=wp();function i(s){return s&&s.t?s:{default:s}}var o=class extends t.ContainerIterator{constructor(s,l,c){super(c),this.o=s,this.h=l,this.iteratorType===0?(this.pre=function(){return this.o.L===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.L,this},this.next=function(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.B,this}):(this.pre=function(){return this.o.B===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.B,this},this.next=function(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.L,this})}};e.HashContainerIterator=o;var a=class extends t.Container{constructor(){super(),this.H=[],this.g={},this.HASH_TAG=Symbol("@@HASH_TAG"),Object.setPrototypeOf(this.g,null),this.h={},this.h.L=this.h.B=this.p=this._=this.h}V(s){let{L:l,B:c}=s;l.B=c,c.L=l,s===this.p&&(this.p=c),s===this._&&(this._=l),this.i-=1}M(s,l,c){c===void 0&&(c=(0,n.default)(s));let u;if(c){let d=s[this.HASH_TAG];if(d!==void 0)return this.H[d].l=l,this.i;Object.defineProperty(s,this.HASH_TAG,{value:this.H.length,configurable:!0}),u={u:s,l,L:this._,B:this.h},this.H.push(u)}else{let d=this.g[s];if(d)return d.l=l,this.i;u={u:s,l,L:this._,B:this.h},this.g[s]=u}return this.i===0?(this.p=u,this.h.B=u):this._.B=u,this._=u,this.h.L=u,++this.i}I(s,l){if(l===void 0&&(l=(0,n.default)(s)),l){let c=s[this.HASH_TAG];return c===void 0?this.h:this.H[c]}else return this.g[s]||this.h}clear(){let s=this.HASH_TAG;this.H.forEach(function(l){delete l.u[s]}),this.H=[],this.g={},Object.setPrototypeOf(this.g,null),this.i=0,this.p=this._=this.h.L=this.h.B=this.h}eraseElementByKey(s,l){let c;if(l===void 0&&(l=(0,n.default)(s)),l){let u=s[this.HASH_TAG];if(u===void 0)return!1;delete s[this.HASH_TAG],c=this.H[u],delete this.H[u]}else{if(c=this.g[s],c===void 0)return!1;delete this.g[s]}return this.V(c),!0}eraseElementByIterator(s){let l=s.o;return l===this.h&&(0,r.throwIteratorAccessError)(),this.V(l),s.next()}eraseElementByPos(s){if(s<0||s>this.i-1)throw new RangeError;let l=this.p;for(;s--;)l=l.B;return this.V(l),this.i}};e.HashContainer=a}),XRe=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=Npe(),n=wp(),r=class Dpe extends t.HashContainerIterator{constructor(s,l,c,u){super(s,l,u),this.container=c}get pointer(){return this.o===this.h&&(0,n.throwIteratorAccessError)(),this.o.u}copy(){return new Dpe(this.o,this.h,this.container,this.iteratorType)}},i=class extends t.HashContainer{constructor(a=[]){super();let s=this;a.forEach(function(l){s.insert(l)})}begin(){return new r(this.p,this.h,this)}end(){return new r(this.h,this.h,this)}rBegin(){return new r(this._,this.h,this,1)}rEnd(){return new r(this.h,this.h,this,1)}front(){return this.p.u}back(){return this._.u}insert(a,s){return this.M(a,void 0,s)}getElementByPos(a){if(a<0||a>this.i-1)throw new RangeError;let s=this.p;for(;a--;)s=s.B;return s.u}find(a,s){let l=this.I(a,s);return new r(l,this.h,this)}forEach(a){let s=0,l=this.p;for(;l!==this.h;)a(l.u,s++,this),l=l.B}[Symbol.iterator](){return(function*(){let a=this.p;for(;a!==this.h;)yield a.u,a=a.B}).bind(this)()}},o=i;e.default=o}),QRe=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=Npe(),n=i(Ape()),r=wp();function i(l){return l&&l.t?l:{default:l}}var o=class Lpe extends t.HashContainerIterator{constructor(c,u,d,h){super(c,u,h),this.container=d}get pointer(){this.o===this.h&&(0,r.throwIteratorAccessError)();let c=this;return new Proxy([],{get(u,d){if(d==="0")return c.o.u;if(d==="1")return c.o.l},set(u,d,h){if(d!=="1")throw new TypeError("props must be 1");return c.o.l=h,!0}})}copy(){return new Lpe(this.o,this.h,this.container,this.iteratorType)}},a=class extends t.HashContainer{constructor(l=[]){super();let c=this;l.forEach(function(u){c.setElement(u[0],u[1])})}begin(){return new o(this.p,this.h,this)}end(){return new o(this.h,this.h,this)}rBegin(){return new o(this._,this.h,this,1)}rEnd(){return new o(this.h,this.h,this,1)}front(){if(this.i!==0)return[this.p.u,this.p.l]}back(){if(this.i!==0)return[this._.u,this._.l]}setElement(l,c,u){return this.M(l,c,u)}getElementByKey(l,c){if(c===void 0&&(c=(0,n.default)(l)),c){let d=l[this.HASH_TAG];return d!==void 0?this.H[d].l:void 0}let u=this.g[l];return u?u.l:void 0}getElementByPos(l){if(l<0||l>this.i-1)throw new RangeError;let c=this.p;for(;l--;)c=c.B;return[c.u,c.l]}find(l,c){let u=this.I(l,c);return new o(u,this.h,this)}forEach(l){let c=0,u=this.p;for(;u!==this.h;)l([u.u,u.l],c++,this),u=u.B}[Symbol.iterator](){return(function*(){let l=this.p;for(;l!==this.h;)yield[l.u,l.l],l=l.B}).bind(this)()}},s=a;e.default=s}),ZRe=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"t",{value:!0}),Object.defineProperty(e,"Deque",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"HashMap",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"HashSet",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"LinkList",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"OrderedMap",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"OrderedSet",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"PriorityQueue",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"Queue",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"Stack",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"Vector",{enumerable:!0,get:function(){return i.default}});var t=d(HRe()),n=d(zRe()),r=d(URe()),i=d(WRe()),o=d(VRe()),a=d(KRe()),s=d(GRe()),l=d(YRe()),c=d(XRe()),u=d(QRe());function d(h){return h&&h.t?h:{default:h}}}),JRe=Tn((e,t)=>{pn(),gn(),mn();var n=ZRe().OrderedSet,r=cp()("number-allocator:trace"),i=cp()("number-allocator:error");function o(s,l){this.low=s,this.high=l}o.prototype.equals=function(s){return this.low===s.low&&this.high===s.high},o.prototype.compare=function(s){return this.low<s.low&&this.high<s.low?-1:s.low<this.low&&s.high<this.low?1:0};function a(s,l){if(!(this instanceof a))return new a(s,l);this.min=s,this.max=l,this.ss=new n([],(c,u)=>c.compare(u)),r("Create"),this.clear()}a.prototype.firstVacant=function(){return this.ss.size()===0?null:this.ss.front().low},a.prototype.alloc=function(){if(this.ss.size()===0)return r("alloc():empty"),null;let s=this.ss.begin(),l=s.pointer.low,c=s.pointer.high,u=l;return u+1<=c?this.ss.updateKeyByIterator(s,new o(l+1,c)):this.ss.eraseElementByPos(0),r("alloc():"+u),u},a.prototype.use=function(s){let l=new o(s,s),c=this.ss.lowerBound(l);if(!c.equals(this.ss.end())){let u=c.pointer.low,d=c.pointer.high;return c.pointer.equals(l)?(this.ss.eraseElementByIterator(c),r("use():"+s),!0):u>s?!1:u===s?(this.ss.updateKeyByIterator(c,new o(u+1,d)),r("use():"+s),!0):d===s?(this.ss.updateKeyByIterator(c,new o(u,d-1)),r("use():"+s),!0):(this.ss.updateKeyByIterator(c,new o(s+1,d)),this.ss.insert(new o(u,s-1)),r("use():"+s),!0)}return r("use():failed"),!1},a.prototype.free=function(s){if(s<this.min||s>this.max){i("free():"+s+" is out of range");return}let l=new o(s,s),c=this.ss.upperBound(l);if(c.equals(this.ss.end())){if(c.equals(this.ss.begin())){this.ss.insert(l);return}c.pre();let u=c.pointer.high;c.pointer.high+1===s?this.ss.updateKeyByIterator(c,new o(u,s)):this.ss.insert(l)}else if(c.equals(this.ss.begin()))if(s+1===c.pointer.low){let u=c.pointer.high;this.ss.updateKeyByIterator(c,new o(s,u))}else this.ss.insert(l);else{let u=c.pointer.low,d=c.pointer.high;c.pre();let h=c.pointer.low;c.pointer.high+1===s?s+1===u?(this.ss.eraseElementByIterator(c),this.ss.updateKeyByIterator(c,new o(h,d))):this.ss.updateKeyByIterator(c,new o(h,s)):s+1===u?(this.ss.eraseElementByIterator(c.next()),this.ss.insert(new o(s,d))):this.ss.insert(l)}r("free():"+s)},a.prototype.clear=function(){r("clear()"),this.ss.clear(),this.ss.insert(new o(this.min,this.max))},a.prototype.intervalCount=function(){return this.ss.size()},a.prototype.dump=function(){console.log("length:"+this.ss.size());for(let s of this.ss)console.log(s)},t.exports=a}),Fpe=Tn((e,t)=>{pn(),gn(),mn();var n=JRe();t.exports.NumberAllocator=n}),eAe=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"__esModule",{value:!0});var t=BRe(),n=Fpe(),r=class{constructor(i){i>0&&(this.aliasToTopic=new t.LRUCache({max:i}),this.topicToAlias={},this.numberAllocator=new n.NumberAllocator(1,i),this.max=i,this.length=0)}put(i,o){if(o===0||o>this.max)return!1;let a=this.aliasToTopic.get(o);return a&&delete this.topicToAlias[a],this.aliasToTopic.set(o,i),this.topicToAlias[i]=o,this.numberAllocator.use(o),this.length=this.aliasToTopic.size,!0}getTopicByAlias(i){return this.aliasToTopic.get(i)}getAliasByTopic(i){let o=this.topicToAlias[i];return typeof o<"u"&&this.aliasToTopic.get(o),o}clear(){this.aliasToTopic.clear(),this.topicToAlias={},this.numberAllocator.clear(),this.length=0}getLruAlias(){return this.numberAllocator.firstVacant()||[...this.aliasToTopic.keys()][this.aliasToTopic.size-1]}};e.default=r}),tAe=Tn(e=>{pn(),gn(),mn();var t=e&&e.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0});var n=V6(),r=t(eAe()),i=jS(),o=(a,s)=>{a.log("_handleConnack");let{options:l}=a,c=l.protocolVersion===5?s.reasonCode:s.returnCode;if(clearTimeout(a.connackTimer),delete a.topicAliasSend,s.properties){if(s.properties.topicAliasMaximum){if(s.properties.topicAliasMaximum>65535){a.emit("error",new Error("topicAliasMaximum from broker is out of range"));return}s.properties.topicAliasMaximum>0&&(a.topicAliasSend=new r.default(s.properties.topicAliasMaximum))}s.properties.serverKeepAlive&&l.keepalive&&(l.keepalive=s.properties.serverKeepAlive),s.properties.maximumPacketSize&&(l.properties||(l.properties={}),l.properties.maximumPacketSize=s.properties.maximumPacketSize)}if(c===0)a.reconnecting=!1,a._onConnect(s);else if(c>0){let u=new i.ErrorWithReasonCode(`Connection refused: ${n.ReasonCodes[c]}`,c);a.emit("error",u),a.options.reconnectOnConnackError&&a._cleanUp(!0)}};e.default=o}),nAe=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"__esModule",{value:!0});var t=(n,r,i)=>{n.log("handling pubrel packet");let o=typeof i<"u"?i:n.noop,{messageId:a}=r,s={cmd:"pubcomp",messageId:a};n.incomingStore.get(r,(l,c)=>{l?n._sendPacket(s,o):(n.emit("message",c.topic,c.payload,c),n.handleMessage(c,u=>{if(u)return o(u);n.incomingStore.del(c,n.noop),n._sendPacket(s,o)}))})};e.default=t}),rAe=Tn(e=>{pn(),gn(),mn();var t=e&&e.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0});var n=t(LRe()),r=t(jRe()),i=t(tAe()),o=t(V6()),a=t(nAe()),s=(l,c,u)=>{let{options:d}=l;if(d.protocolVersion===5&&d.properties&&d.properties.maximumPacketSize&&d.properties.maximumPacketSize<c.length)return l.emit("error",new Error(`exceeding packets size ${c.cmd}`)),l.end({reasonCode:149,properties:{reasonString:"Maximum packet size was exceeded"}}),l;switch(l.log("_handlePacket :: emitting packetreceive"),l.emit("packetreceive",c),c.cmd){case"publish":(0,n.default)(l,c,u);break;case"puback":case"pubrec":case"pubcomp":case"suback":case"unsuback":l.reschedulePing(),(0,o.default)(l,c),u();break;case"pubrel":l.reschedulePing(),(0,a.default)(l,c,u);break;case"connack":(0,i.default)(l,c),u();break;case"auth":l.reschedulePing(),(0,r.default)(l,c),u();break;case"pingresp":l.log("_handlePacket :: received pingresp"),l.reschedulePing(!0),u();break;case"disconnect":l.emit("disconnect",c),u();break;default:l.log("_handlePacket :: unknown command"),u();break}};e.default=s}),iAe=Tn(e=>{pn(),gn(),mn();var t=e&&e.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0}),e.TypedEventEmitter=void 0;var n=t((FS(),to(Uv))),r=jS(),i=class{};e.TypedEventEmitter=i,(0,r.applyMixin)(i,n.default)}),K6=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"__esModule",{value:!0}),e.isReactNativeBrowser=e.isWebWorker=void 0;var t=()=>{var o;return typeof window<"u"?typeof navigator<"u"&&((o=navigator.userAgent)===null||o===void 0?void 0:o.toLowerCase().indexOf(" electron/"))>-1&&Ni!=null&&Ni.versions?!Object.prototype.hasOwnProperty.call(Ni.versions,"electron"):typeof window.document<"u":!1},n=()=>{var o,a;return!!(typeof self=="object"&&!((a=(o=self==null?void 0:self.constructor)===null||o===void 0?void 0:o.name)===null||a===void 0)&&a.includes("WorkerGlobalScope"))},r=()=>typeof navigator<"u"&&navigator.product==="ReactNative",i=t()||n()||r();e.isWebWorker=n(),e.isReactNativeBrowser=r(),e.default=i}),oAe=Tn((e,t)=>{pn(),gn(),mn(),function(n,r){typeof e=="object"&&typeof t<"u"?r(e):typeof define=="function"&&define.amd?define(["exports"],r):(n=typeof globalThis<"u"?globalThis:n||self,r(n.fastUniqueNumbers={}))}(e,function(n){var r=function(p){return function(m){var v=p(m);return m.add(v),v}},i=function(p){return function(m,v){return p.set(m,v),v}},o=Number.MAX_SAFE_INTEGER===void 0?9007199254740991:Number.MAX_SAFE_INTEGER,a=536870912,s=a*2,l=function(p,m){return function(v){var y=m.get(v),S=y===void 0?v.size:y<s?y+1:0;if(!v.has(S))return p(v,S);if(v.size<a){for(;v.has(S);)S=Math.floor(Math.random()*s);return p(v,S)}if(v.size>o)throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;v.has(S);)S=Math.floor(Math.random()*o);return p(v,S)}},c=new WeakMap,u=i(c),d=l(u,c),h=r(d);n.addUniqueNumber=h,n.generateUniqueNumber=d})}),aAe=Tn((e,t)=>{pn(),gn(),mn(),function(n,r){typeof e=="object"&&typeof t<"u"?r(e,oAe()):typeof define=="function"&&define.amd?define(["exports","fast-unique-numbers"],r):(n=typeof globalThis<"u"?globalThis:n||self,r(n.workerTimersBroker={},n.fastUniqueNumbers))}(e,function(n,r){var i=function(s){return s.method!==void 0&&s.method==="call"},o=function(s){return s.error===null&&typeof s.id=="number"},a=function(s){var l=new Map([[0,function(){}]]),c=new Map([[0,function(){}]]),u=new Map,d=new Worker(s);d.addEventListener("message",function(y){var S=y.data;if(i(S)){var b=S.params,C=b.timerId,_=b.timerType;if(_==="interval"){var T=l.get(C);if(typeof T=="number"){var x=u.get(T);if(x===void 0||x.timerId!==C||x.timerType!==_)throw new Error("The timer is in an undefined state.")}else if(typeof T<"u")T();else throw new Error("The timer is in an undefined state.")}else if(_==="timeout"){var E=c.get(C);if(typeof E=="number"){var k=u.get(E);if(k===void 0||k.timerId!==C||k.timerType!==_)throw new Error("The timer is in an undefined state.")}else if(typeof E<"u")E(),c.delete(C);else throw new Error("The timer is in an undefined state.")}}else if(o(S)){var M=S.id,P=u.get(M);if(P===void 0)throw new Error("The timer is in an undefined state.");var D=P.timerId,R=P.timerType;u.delete(M),R==="interval"?l.delete(D):c.delete(D)}else{var A=S.error.message;throw new Error(A)}});var h=function(y){var S=r.generateUniqueNumber(u);u.set(S,{timerId:y,timerType:"interval"}),l.set(y,S),d.postMessage({id:S,method:"clear",params:{timerId:y,timerType:"interval"}})},p=function(y){var S=r.generateUniqueNumber(u);u.set(S,{timerId:y,timerType:"timeout"}),c.set(y,S),d.postMessage({id:S,method:"clear",params:{timerId:y,timerType:"timeout"}})},m=function(y){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,b=r.generateUniqueNumber(l);return l.set(b,function(){y(),typeof l.get(b)=="function"&&d.postMessage({id:null,method:"set",params:{delay:S,now:performance.now(),timerId:b,timerType:"interval"}})}),d.postMessage({id:null,method:"set",params:{delay:S,now:performance.now(),timerId:b,timerType:"interval"}}),b},v=function(y){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,b=r.generateUniqueNumber(c);return c.set(b,y),d.postMessage({id:null,method:"set",params:{delay:S,now:performance.now(),timerId:b,timerType:"timeout"}}),b};return{clearInterval:h,clearTimeout:p,setInterval:m,setTimeout:v}};n.load=a})}),sAe=Tn((e,t)=>{pn(),gn(),mn(),function(n,r){typeof e=="object"&&typeof t<"u"?r(e,aAe()):typeof define=="function"&&define.amd?define(["exports","worker-timers-broker"],r):(n=typeof globalThis<"u"?globalThis:n||self,r(n.workerTimers={},n.workerTimersBroker))}(e,function(n,r){var i=function(d,h){var p=null;return function(){if(p!==null)return p;var m=new Blob([h],{type:"application/javascript; charset=utf-8"}),v=URL.createObjectURL(m);return p=d(v),setTimeout(function(){return URL.revokeObjectURL(v)}),p}},o=`(()=>{var e={472:(e,t,r)=>{var o,i;void 0===(i="function"==typeof(o=function(){"use strict";var e=new Map,t=new Map,r=function(t){var r=e.get(t);if(void 0===r)throw new Error('There is no interval scheduled with the given id "'.concat(t,'".'));clearTimeout(r),e.delete(t)},o=function(e){var r=t.get(e);if(void 0===r)throw new Error('There is no timeout scheduled with the given id "'.concat(e,'".'));clearTimeout(r),t.delete(e)},i=function(e,t){var r,o=performance.now();return{expected:o+(r=e-Math.max(0,o-t)),remainingDelay:r}},n=function e(t,r,o,i){var n=performance.now();n>o?postMessage({id:null,method:"call",params:{timerId:r,timerType:i}}):t.set(r,setTimeout(e,o-n,t,r,o,i))},a=function(t,r,o){var a=i(t,o),s=a.expected,d=a.remainingDelay;e.set(r,setTimeout(n,d,e,r,s,"interval"))},s=function(e,r,o){var a=i(e,o),s=a.expected,d=a.remainingDelay;t.set(r,setTimeout(n,d,t,r,s,"timeout"))};addEventListener("message",(function(e){var t=e.data;try{if("clear"===t.method){var i=t.id,n=t.params,d=n.timerId,c=n.timerType;if("interval"===c)r(d),postMessage({error:null,id:i});else{if("timeout"!==c)throw new Error('The given type "'.concat(c,'" is not supported'));o(d),postMessage({error:null,id:i})}}else{if("set"!==t.method)throw new Error('The given method "'.concat(t.method,'" is not supported'));var u=t.params,l=u.delay,p=u.now,m=u.timerId,v=u.timerType;if("interval"===v)a(l,m,p);else{if("timeout"!==v)throw new Error('The given type "'.concat(v,'" is not supported'));s(l,m,p)}}}catch(e){postMessage({error:{message:e.message},id:t.id,result:null})}}))})?o.call(t,r,t,e):o)||(e.exports=i)}},t={};function r(o){var i=t[o];if(void 0!==i)return i.exports;var n=t[o]={exports:{}};return e[o](n,n.exports,r),n.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";r(472)})()})();`,a=i(r.load,o),s=function(d){return a().clearInterval(d)},l=function(d){return a().clearTimeout(d)},c=function(){var d;return(d=a()).setInterval.apply(d,arguments)},u=function(){var d;return(d=a()).setTimeout.apply(d,arguments)};n.clearInterval=s,n.clearTimeout=l,n.setInterval=c,n.setTimeout=u})}),lAe=Tn(e=>{pn(),gn(),mn();var t=e&&e.__createBinding||(Object.create?function(c,u,d,h){h===void 0&&(h=d);var p=Object.getOwnPropertyDescriptor(u,d);(!p||("get"in p?!u.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return u[d]}}),Object.defineProperty(c,h,p)}:function(c,u,d,h){h===void 0&&(h=d),c[h]=u[d]}),n=e&&e.__setModuleDefault||(Object.create?function(c,u){Object.defineProperty(c,"default",{enumerable:!0,value:u})}:function(c,u){c.default=u}),r=e&&e.__importStar||function(c){if(c&&c.__esModule)return c;var u={};if(c!=null)for(var d in c)d!=="default"&&Object.prototype.hasOwnProperty.call(c,d)&&t(u,c,d);return n(u,c),u};Object.defineProperty(e,"__esModule",{value:!0});var i=r(K6()),o=sAe(),a={set:o.setInterval,clear:o.clearInterval},s={set:(c,u)=>setInterval(c,u),clear:c=>clearInterval(c)},l=c=>{switch(c){case"native":return s;case"worker":return a;case"auto":default:return i.default&&!i.isWebWorker&&!i.isReactNativeBrowser?a:s}};e.default=l}),jpe=Tn(e=>{pn(),gn(),mn();var t=e&&e.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(e,"__esModule",{value:!0});var n=t(lAe()),r=class{get keepaliveTimeoutTimestamp(){return this._keepaliveTimeoutTimestamp}get intervalEvery(){return this._intervalEvery}get keepalive(){return this._keepalive}constructor(i,o){this.destroyed=!1,this.client=i,this.timer=typeof o=="object"&&"set"in o&&"clear"in o?o:(0,n.default)(o),this.setKeepalive(i.options.keepalive)}clear(){this.timerId&&(this.timer.clear(this.timerId),this.timerId=null)}setKeepalive(i){if(i*=1e3,isNaN(i)||i<=0||i>2147483647)throw new Error(`Keepalive value must be an integer between 0 and 2147483647. Provided value is ${i}`);this._keepalive=i,this.reschedule(),this.client.log(`KeepaliveManager: set keepalive to ${i}ms`)}destroy(){this.clear(),this.destroyed=!0}reschedule(){if(this.destroyed)return;this.clear(),this.counter=0;let i=Math.ceil(this._keepalive*1.5);this._keepaliveTimeoutTimestamp=Date.now()+i,this._intervalEvery=Math.ceil(this._keepalive/2),this.timerId=this.timer.set(()=>{this.destroyed||(this.counter+=1,this.counter===2?this.client.sendPing():this.counter>2&&this.client.onKeepaliveTimeout())},this._intervalEvery)}};e.default=r}),DL=Tn(e=>{pn(),gn(),mn();var t=e&&e.__createBinding||(Object.create?function(T,x,E,k){k===void 0&&(k=E);var M=Object.getOwnPropertyDescriptor(x,E);(!M||("get"in M?!x.__esModule:M.writable||M.configurable))&&(M={enumerable:!0,get:function(){return x[E]}}),Object.defineProperty(T,k,M)}:function(T,x,E,k){k===void 0&&(k=E),T[k]=x[E]}),n=e&&e.__setModuleDefault||(Object.create?function(T,x){Object.defineProperty(T,"default",{enumerable:!0,value:x})}:function(T,x){T.default=x}),r=e&&e.__importStar||function(T){if(T&&T.__esModule)return T;var x={};if(T!=null)for(var E in T)E!=="default"&&Object.prototype.hasOwnProperty.call(T,E)&&t(x,T,E);return n(x,T),x},i=e&&e.__importDefault||function(T){return T&&T.__esModule?T:{default:T}};Object.defineProperty(e,"__esModule",{value:!0});var o=i(Q$e()),a=i(RRe()),s=i(xpe()),l=Wv(),c=i(NRe()),u=r(DRe()),d=i(cp()),h=i(wpe()),p=i(rAe()),m=jS(),v=iAe(),y=i(jpe()),S=r(K6()),b=globalThis.setImmediate||((...T)=>{let x=T.shift();(0,m.nextTick)(()=>{x(...T)})}),C={keepalive:60,reschedulePings:!0,protocolId:"MQTT",protocolVersion:4,reconnectPeriod:1e3,connectTimeout:30*1e3,clean:!0,resubscribe:!0,writeCache:!0,timerVariant:"auto"},_=class LL extends v.TypedEventEmitter{static defaultId(){return`mqttjs_${Math.random().toString(16).substr(2,8)}`}constructor(x,E){super(),this.options=E||{};for(let k in C)typeof this.options[k]>"u"?this.options[k]=C[k]:this.options[k]=E[k];this.log=this.options.log||(0,d.default)("mqttjs:client"),this.noop=this._noop.bind(this),this.log("MqttClient :: version:",LL.VERSION),S.isWebWorker?this.log("MqttClient :: environment","webworker"):this.log("MqttClient :: environment",S.default?"browser":"node"),this.log("MqttClient :: options.protocol",E.protocol),this.log("MqttClient :: options.protocolVersion",E.protocolVersion),this.log("MqttClient :: options.username",E.username),this.log("MqttClient :: options.keepalive",E.keepalive),this.log("MqttClient :: options.reconnectPeriod",E.reconnectPeriod),this.log("MqttClient :: options.rejectUnauthorized",E.rejectUnauthorized),this.log("MqttClient :: options.properties.topicAliasMaximum",E.properties?E.properties.topicAliasMaximum:void 0),this.options.clientId=typeof E.clientId=="string"?E.clientId:LL.defaultId(),this.log("MqttClient :: clientId",this.options.clientId),this.options.customHandleAcks=E.protocolVersion===5&&E.customHandleAcks?E.customHandleAcks:(...k)=>{k[3](null,0)},this.options.writeCache||(a.default.writeToStream.cacheNumbers=!1),this.streamBuilder=x,this.messageIdProvider=typeof this.options.messageIdProvider>"u"?new s.default:this.options.messageIdProvider,this.outgoingStore=E.outgoingStore||new h.default,this.incomingStore=E.incomingStore||new h.default,this.queueQoSZero=E.queueQoSZero===void 0?!0:E.queueQoSZero,this._resubscribeTopics={},this.messageIdToTopic={},this.keepaliveManager=null,this.connected=!1,this.disconnecting=!1,this.reconnecting=!1,this.queue=[],this.connackTimer=null,this.reconnectTimer=null,this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={},this._storeProcessingQueue=[],this.outgoing={},this._firstConnection=!0,E.properties&&E.properties.topicAliasMaximum>0&&(E.properties.topicAliasMaximum>65535?this.log("MqttClient :: options.properties.topicAliasMaximum is out of range"):this.topicAliasRecv=new o.default(E.properties.topicAliasMaximum)),this.on("connect",()=>{let{queue:k}=this,M=()=>{let P=k.shift();this.log("deliver :: entry %o",P);let D=null;if(!P){this._resubscribe();return}D=P.packet,this.log("deliver :: call _sendPacket for %o",D);let R=!0;D.messageId&&D.messageId!==0&&(this.messageIdProvider.register(D.messageId)||(R=!1)),R?this._sendPacket(D,A=>{P.cb&&P.cb(A),M()}):(this.log("messageId: %d has already used. The message is skipped and removed.",D.messageId),M())};this.log("connect :: sending queued packets"),M()}),this.on("close",()=>{this.log("close :: connected set to `false`"),this.connected=!1,this.log("close :: clearing connackTimer"),clearTimeout(this.connackTimer),this._destroyKeepaliveManager(),this.topicAliasRecv&&this.topicAliasRecv.clear(),this.log("close :: calling _setupReconnect"),this._setupReconnect()}),this.options.manualConnect||(this.log("MqttClient :: setting up stream"),this.connect())}handleAuth(x,E){E()}handleMessage(x,E){E()}_nextId(){return this.messageIdProvider.allocate()}getLastMessageId(){return this.messageIdProvider.getLastAllocated()}connect(){var x;let E=new l.Writable,k=a.default.parser(this.options),M=null,P=[];this.log("connect :: calling method to clear reconnect"),this._clearReconnect(),this.disconnected&&!this.reconnecting&&(this.incomingStore=this.options.incomingStore||new h.default,this.outgoingStore=this.options.outgoingStore||new h.default,this.disconnecting=!1,this.disconnected=!1),this.log("connect :: using streamBuilder provided to client to create stream"),this.stream=this.streamBuilder(this),k.on("packet",F=>{this.log("parser :: on packet push to packets array."),P.push(F)});let D=()=>{this.log("work :: getting next packet in queue");let F=P.shift();if(F)this.log("work :: packet pulled from queue"),(0,p.default)(this,F,R);else{this.log("work :: no packets in queue");let z=M;M=null,this.log("work :: done flag is %s",!!z),z&&z()}},R=()=>{if(P.length)(0,m.nextTick)(D);else{let F=M;M=null,F()}};E._write=(F,z,W)=>{M=W,this.log("writable stream :: parsing buffer"),k.parse(F),D()};let A=F=>{this.log("streamErrorHandler :: error",F.message),F.code?(this.log("streamErrorHandler :: emitting error"),this.emit("error",F)):this.noop(F)};this.log("connect :: pipe stream to writable stream"),this.stream.pipe(E),this.stream.on("error",A),this.stream.on("close",()=>{this.log("(%s)stream :: on close",this.options.clientId),this._flushVolatile(),this.log("stream: emit close to MqttClient"),this.emit("close")}),this.log("connect: sending packet `connect`");let H={cmd:"connect",protocolId:this.options.protocolId,protocolVersion:this.options.protocolVersion,clean:this.options.clean,clientId:this.options.clientId,keepalive:this.options.keepalive,username:this.options.username,password:this.options.password,properties:this.options.properties};if(this.options.will&&(H.will=Object.assign(Object.assign({},this.options.will),{payload:(x=this.options.will)===null||x===void 0?void 0:x.payload})),this.topicAliasRecv&&(H.properties||(H.properties={}),this.topicAliasRecv&&(H.properties.topicAliasMaximum=this.topicAliasRecv.max)),this._writePacket(H),k.on("error",this.emit.bind(this,"error")),this.options.properties){if(!this.options.properties.authenticationMethod&&this.options.properties.authenticationData)return this.end(()=>this.emit("error",new Error("Packet has no Authentication Method"))),this;if(this.options.properties.authenticationMethod&&this.options.authPacket&&typeof this.options.authPacket=="object"){let F=Object.assign({cmd:"auth",reasonCode:0},this.options.authPacket);this._writePacket(F)}}return this.stream.setMaxListeners(1e3),clearTimeout(this.connackTimer),this.connackTimer=setTimeout(()=>{this.log("!!connectTimeout hit!! Calling _cleanUp with force `true`"),this.emit("error",new Error("connack timeout")),this._cleanUp(!0)},this.options.connectTimeout),this}publish(x,E,k,M){this.log("publish :: message `%s` to topic `%s`",E,x);let{options:P}=this;typeof k=="function"&&(M=k,k=null),k=k||{},k=Object.assign(Object.assign({},{qos:0,retain:!1,dup:!1}),k);let{qos:D,retain:R,dup:A,properties:H,cbStorePut:F}=k;if(this._checkDisconnecting(M))return this;let z=()=>{let W=0;if((D===1||D===2)&&(W=this._nextId(),W===null))return this.log("No messageId left"),!1;let q={cmd:"publish",topic:x,payload:E,qos:D,retain:R,messageId:W,dup:A};switch(P.protocolVersion===5&&(q.properties=H),this.log("publish :: qos",D),D){case 1:case 2:this.outgoing[q.messageId]={volatile:!1,cb:M||this.noop},this.log("MqttClient:publish: packet cmd: %s",q.cmd),this._sendPacket(q,void 0,F);break;default:this.log("MqttClient:publish: packet cmd: %s",q.cmd),this._sendPacket(q,M,F);break}return!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!z())&&this._storeProcessingQueue.push({invoke:z,cbStorePut:k.cbStorePut,callback:M}),this}publishAsync(x,E,k){return new Promise((M,P)=>{this.publish(x,E,k,(D,R)=>{D?P(D):M(R)})})}subscribe(x,E,k){let M=this.options.protocolVersion;typeof E=="function"&&(k=E),k=k||this.noop;let P=!1,D=[];typeof x=="string"?(x=[x],D=x):Array.isArray(x)?D=x:typeof x=="object"&&(P=x.resubscribe,delete x.resubscribe,D=Object.keys(x));let R=u.validateTopics(D);if(R!==null)return b(k,new Error(`Invalid topic ${R}`)),this;if(this._checkDisconnecting(k))return this.log("subscribe: discconecting true"),this;let A={qos:0};M===5&&(A.nl=!1,A.rap=!1,A.rh=0),E=Object.assign(Object.assign({},A),E);let H=E.properties,F=[],z=(q,Z)=>{if(Z=Z||E,!Object.prototype.hasOwnProperty.call(this._resubscribeTopics,q)||this._resubscribeTopics[q].qos<Z.qos||P){let N={topic:q,qos:Z.qos};M===5&&(N.nl=Z.nl,N.rap=Z.rap,N.rh=Z.rh,N.properties=H),this.log("subscribe: pushing topic `%s` and qos `%s` to subs list",N.topic,N.qos),F.push(N)}};if(Array.isArray(x)?x.forEach(q=>{this.log("subscribe: array topic %s",q),z(q)}):Object.keys(x).forEach(q=>{this.log("subscribe: object topic %s, %o",q,x[q]),z(q,x[q])}),!F.length)return k(null,[]),this;let W=()=>{let q=this._nextId();if(q===null)return this.log("No messageId left"),!1;let Z={cmd:"subscribe",subscriptions:F,messageId:q};if(H&&(Z.properties=H),this.options.resubscribe){this.log("subscribe :: resubscribe true");let N=[];F.forEach(B=>{if(this.options.reconnectPeriod>0){let V={qos:B.qos};M===5&&(V.nl=B.nl||!1,V.rap=B.rap||!1,V.rh=B.rh||0,V.properties=B.properties),this._resubscribeTopics[B.topic]=V,N.push(B.topic)}}),this.messageIdToTopic[Z.messageId]=N}return this.outgoing[Z.messageId]={volatile:!0,cb(N,B){if(!N){let{granted:V}=B;for(let Y=0;Y<V.length;Y+=1)F[Y].qos=V[Y]}k(N,F,B)}},this.log("subscribe :: call _sendPacket"),this._sendPacket(Z),!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!W())&&this._storeProcessingQueue.push({invoke:W,callback:k}),this}subscribeAsync(x,E){return new Promise((k,M)=>{this.subscribe(x,E,(P,D)=>{P?M(P):k(D)})})}unsubscribe(x,E,k){typeof x=="string"&&(x=[x]),typeof E=="function"&&(k=E),k=k||this.noop;let M=u.validateTopics(x);if(M!==null)return b(k,new Error(`Invalid topic ${M}`)),this;if(this._checkDisconnecting(k))return this;let P=()=>{let D=this._nextId();if(D===null)return this.log("No messageId left"),!1;let R={cmd:"unsubscribe",messageId:D,unsubscriptions:[]};return typeof x=="string"?R.unsubscriptions=[x]:Array.isArray(x)&&(R.unsubscriptions=x),this.options.resubscribe&&R.unsubscriptions.forEach(A=>{delete this._resubscribeTopics[A]}),typeof E=="object"&&E.properties&&(R.properties=E.properties),this.outgoing[R.messageId]={volatile:!0,cb:k},this.log("unsubscribe: call _sendPacket"),this._sendPacket(R),!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!P())&&this._storeProcessingQueue.push({invoke:P,callback:k}),this}unsubscribeAsync(x,E){return new Promise((k,M)=>{this.unsubscribe(x,E,(P,D)=>{P?M(P):k(D)})})}end(x,E,k){this.log("end :: (%s)",this.options.clientId),(x==null||typeof x!="boolean")&&(k=k||E,E=x,x=!1),typeof E!="object"&&(k=k||E,E=null),this.log("end :: cb? %s",!!k),(!k||typeof k!="function")&&(k=this.noop);let M=()=>{this.log("end :: closeStores: closing incoming and outgoing stores"),this.disconnected=!0,this.incomingStore.close(D=>{this.outgoingStore.close(R=>{if(this.log("end :: closeStores: emitting end"),this.emit("end"),k){let A=D||R;this.log("end :: closeStores: invoking callback with args"),k(A)}})}),this._deferredReconnect?this._deferredReconnect():(this.options.reconnectPeriod===0||this.options.manualConnect)&&(this.disconnecting=!1)},P=()=>{this.log("end :: (%s) :: finish :: calling _cleanUp with force %s",this.options.clientId,x),this._cleanUp(x,()=>{this.log("end :: finish :: calling process.nextTick on closeStores"),(0,m.nextTick)(M)},E)};return this.disconnecting?(k(),this):(this._clearReconnect(),this.disconnecting=!0,!x&&Object.keys(this.outgoing).length>0?(this.log("end :: (%s) :: calling finish in 10ms once outgoing is empty",this.options.clientId),this.once("outgoingEmpty",setTimeout.bind(null,P,10))):(this.log("end :: (%s) :: immediately calling finish",this.options.clientId),P()),this)}endAsync(x,E){return new Promise((k,M)=>{this.end(x,E,P=>{P?M(P):k()})})}removeOutgoingMessage(x){if(this.outgoing[x]){let{cb:E}=this.outgoing[x];this._removeOutgoingAndStoreMessage(x,()=>{E(new Error("Message removed"))})}return this}reconnect(x){this.log("client reconnect");let E=()=>{x?(this.options.incomingStore=x.incomingStore,this.options.outgoingStore=x.outgoingStore):(this.options.incomingStore=null,this.options.outgoingStore=null),this.incomingStore=this.options.incomingStore||new h.default,this.outgoingStore=this.options.outgoingStore||new h.default,this.disconnecting=!1,this.disconnected=!1,this._deferredReconnect=null,this._reconnect()};return this.disconnecting&&!this.disconnected?this._deferredReconnect=E:E(),this}_flushVolatile(){this.outgoing&&(this.log("_flushVolatile :: deleting volatile messages from the queue and setting their callbacks as error function"),Object.keys(this.outgoing).forEach(x=>{this.outgoing[x].volatile&&typeof this.outgoing[x].cb=="function"&&(this.outgoing[x].cb(new Error("Connection closed")),delete this.outgoing[x])}))}_flush(){this.outgoing&&(this.log("_flush: queue exists? %b",!!this.outgoing),Object.keys(this.outgoing).forEach(x=>{typeof this.outgoing[x].cb=="function"&&(this.outgoing[x].cb(new Error("Connection closed")),delete this.outgoing[x])}))}_removeTopicAliasAndRecoverTopicName(x){let E;x.properties&&(E=x.properties.topicAlias);let k=x.topic.toString();if(this.log("_removeTopicAliasAndRecoverTopicName :: alias %d, topic %o",E,k),k.length===0){if(typeof E>"u")return new Error("Unregistered Topic Alias");if(k=this.topicAliasSend.getTopicByAlias(E),typeof k>"u")return new Error("Unregistered Topic Alias");x.topic=k}E&&delete x.properties.topicAlias}_checkDisconnecting(x){return this.disconnecting&&(x&&x!==this.noop?x(new Error("client disconnecting")):this.emit("error",new Error("client disconnecting"))),this.disconnecting}_reconnect(){this.log("_reconnect: emitting reconnect to client"),this.emit("reconnect"),this.connected?(this.end(()=>{this.connect()}),this.log("client already connected. disconnecting first.")):(this.log("_reconnect: calling connect"),this.connect())}_setupReconnect(){!this.disconnecting&&!this.reconnectTimer&&this.options.reconnectPeriod>0?(this.reconnecting||(this.log("_setupReconnect :: emit `offline` state"),this.emit("offline"),this.log("_setupReconnect :: set `reconnecting` to `true`"),this.reconnecting=!0),this.log("_setupReconnect :: setting reconnectTimer for %d ms",this.options.reconnectPeriod),this.reconnectTimer=setInterval(()=>{this.log("reconnectTimer :: reconnect triggered!"),this._reconnect()},this.options.reconnectPeriod)):this.log("_setupReconnect :: doing nothing...")}_clearReconnect(){this.log("_clearReconnect : clearing reconnect timer"),this.reconnectTimer&&(clearInterval(this.reconnectTimer),this.reconnectTimer=null)}_cleanUp(x,E,k={}){if(E&&(this.log("_cleanUp :: done callback provided for on stream close"),this.stream.on("close",E)),this.log("_cleanUp :: forced? %s",x),x)this.options.reconnectPeriod===0&&this.options.clean&&this._flush(),this.log("_cleanUp :: (%s) :: destroying stream",this.options.clientId),this.stream.destroy();else{let M=Object.assign({cmd:"disconnect"},k);this.log("_cleanUp :: (%s) :: call _sendPacket with disconnect packet",this.options.clientId),this._sendPacket(M,()=>{this.log("_cleanUp :: (%s) :: destroying stream",this.options.clientId),b(()=>{this.stream.end(()=>{this.log("_cleanUp :: (%s) :: stream destroyed",this.options.clientId)})})})}!this.disconnecting&&!this.reconnecting&&(this.log("_cleanUp :: client not disconnecting/reconnecting. Clearing and resetting reconnect."),this._clearReconnect(),this._setupReconnect()),this._destroyKeepaliveManager(),E&&!this.connected&&(this.log("_cleanUp :: (%s) :: removing stream `done` callback `close` listener",this.options.clientId),this.stream.removeListener("close",E),E())}_storeAndSend(x,E,k){this.log("storeAndSend :: store packet with cmd %s to outgoingStore",x.cmd);let M=x,P;if(M.cmd==="publish"&&(M=(0,c.default)(x),P=this._removeTopicAliasAndRecoverTopicName(M),P))return E&&E(P);this.outgoingStore.put(M,D=>{if(D)return E&&E(D);k(),this._writePacket(x,E)})}_applyTopicAlias(x){if(this.options.protocolVersion===5&&x.cmd==="publish"){let E;x.properties&&(E=x.properties.topicAlias);let k=x.topic.toString();if(this.topicAliasSend)if(E){if(k.length!==0&&(this.log("applyTopicAlias :: register topic: %s - alias: %d",k,E),!this.topicAliasSend.put(k,E)))return this.log("applyTopicAlias :: error out of range. topic: %s - alias: %d",k,E),new Error("Sending Topic Alias out of range")}else k.length!==0&&(this.options.autoAssignTopicAlias?(E=this.topicAliasSend.getAliasByTopic(k),E?(x.topic="",x.properties=Object.assign(Object.assign({},x.properties),{topicAlias:E}),this.log("applyTopicAlias :: auto assign(use) topic: %s - alias: %d",k,E)):(E=this.topicAliasSend.getLruAlias(),this.topicAliasSend.put(k,E),x.properties=Object.assign(Object.assign({},x.properties),{topicAlias:E}),this.log("applyTopicAlias :: auto assign topic: %s - alias: %d",k,E))):this.options.autoUseTopicAlias&&(E=this.topicAliasSend.getAliasByTopic(k),E&&(x.topic="",x.properties=Object.assign(Object.assign({},x.properties),{topicAlias:E}),this.log("applyTopicAlias :: auto use topic: %s - alias: %d",k,E))));else if(E)return this.log("applyTopicAlias :: error out of range. topic: %s - alias: %d",k,E),new Error("Sending Topic Alias out of range")}}_noop(x){this.log("noop ::",x)}_writePacket(x,E){this.log("_writePacket :: packet: %O",x),this.log("_writePacket :: emitting `packetsend`"),this.emit("packetsend",x),this.log("_writePacket :: writing to stream");let k=a.default.writeToStream(x,this.stream,this.options);this.log("_writePacket :: writeToStream result %s",k),!k&&E&&E!==this.noop?(this.log("_writePacket :: handle events on `drain` once through callback."),this.stream.once("drain",E)):E&&(this.log("_writePacket :: invoking cb"),E())}_sendPacket(x,E,k,M){this.log("_sendPacket :: (%s) :: start",this.options.clientId),k=k||this.noop,E=E||this.noop;let P=this._applyTopicAlias(x);if(P){E(P);return}if(!this.connected){if(x.cmd==="auth"){this._writePacket(x,E);return}this.log("_sendPacket :: client not connected. Storing packet offline."),this._storePacket(x,E,k);return}if(M){this._writePacket(x,E);return}switch(x.cmd){case"publish":break;case"pubrel":this._storeAndSend(x,E,k);return;default:this._writePacket(x,E);return}switch(x.qos){case 2:case 1:this._storeAndSend(x,E,k);break;case 0:default:this._writePacket(x,E);break}this.log("_sendPacket :: (%s) :: end",this.options.clientId)}_storePacket(x,E,k){this.log("_storePacket :: packet: %o",x),this.log("_storePacket :: cb? %s",!!E),k=k||this.noop;let M=x;if(M.cmd==="publish"){M=(0,c.default)(x);let D=this._removeTopicAliasAndRecoverTopicName(M);if(D)return E&&E(D)}let P=M.qos||0;P===0&&this.queueQoSZero||M.cmd!=="publish"?this.queue.push({packet:M,cb:E}):P>0?(E=this.outgoing[M.messageId]?this.outgoing[M.messageId].cb:null,this.outgoingStore.put(M,D=>{if(D)return E&&E(D);k()})):E&&E(new Error("No connection to broker"))}_setupKeepaliveManager(){this.log("_setupKeepaliveManager :: keepalive %d (seconds)",this.options.keepalive),!this.keepaliveManager&&this.options.keepalive&&(this.keepaliveManager=new y.default(this,this.options.timerVariant))}_destroyKeepaliveManager(){this.keepaliveManager&&(this.log("_destroyKeepaliveManager :: destroying keepalive manager"),this.keepaliveManager.destroy(),this.keepaliveManager=null)}reschedulePing(x=!1){this.keepaliveManager&&this.options.keepalive&&(x||this.options.reschedulePings)&&this._reschedulePing()}_reschedulePing(){this.log("_reschedulePing :: rescheduling ping"),this.keepaliveManager.reschedule()}sendPing(){this.log("_sendPing :: sending pingreq"),this._sendPacket({cmd:"pingreq"})}onKeepaliveTimeout(){this.emit("error",new Error("Keepalive timeout")),this.log("onKeepaliveTimeout :: calling _cleanUp with force true"),this._cleanUp(!0)}_resubscribe(){this.log("_resubscribe");let x=Object.keys(this._resubscribeTopics);if(!this._firstConnection&&(this.options.clean||this.options.protocolVersion>=4&&!this.connackPacket.sessionPresent)&&x.length>0)if(this.options.resubscribe)if(this.options.protocolVersion===5){this.log("_resubscribe: protocolVersion 5");for(let E=0;E<x.length;E++){let k={};k[x[E]]=this._resubscribeTopics[x[E]],k.resubscribe=!0,this.subscribe(k,{properties:k[x[E]].properties})}}else this._resubscribeTopics.resubscribe=!0,this.subscribe(this._resubscribeTopics);else this._resubscribeTopics={};this._firstConnection=!1}_onConnect(x){if(this.disconnected){this.emit("connect",x);return}this.connackPacket=x,this.messageIdProvider.clear(),this._setupKeepaliveManager(),this.connected=!0;let E=()=>{let k=this.outgoingStore.createStream(),M=()=>{k.destroy(),k=null,this._flushStoreProcessingQueue(),P()},P=()=>{this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={}};this.once("close",M),k.on("error",R=>{P(),this._flushStoreProcessingQueue(),this.removeListener("close",M),this.emit("error",R)});let D=()=>{if(!k)return;let R=k.read(1),A;if(!R){k.once("readable",D);return}if(this._storeProcessing=!0,this._packetIdsDuringStoreProcessing[R.messageId]){D();return}!this.disconnecting&&!this.reconnectTimer?(A=this.outgoing[R.messageId]?this.outgoing[R.messageId].cb:null,this.outgoing[R.messageId]={volatile:!1,cb(H,F){A&&A(H,F),D()}},this._packetIdsDuringStoreProcessing[R.messageId]=!0,this.messageIdProvider.register(R.messageId)?this._sendPacket(R,void 0,void 0,!0):this.log("messageId: %d has already used.",R.messageId)):k.destroy&&k.destroy()};k.on("end",()=>{let R=!0;for(let A in this._packetIdsDuringStoreProcessing)if(!this._packetIdsDuringStoreProcessing[A]){R=!1;break}this.removeListener("close",M),R?(P(),this._invokeAllStoreProcessingQueue(),this.emit("connect",x)):E()}),D()};E()}_invokeStoreProcessingQueue(){if(!this._storeProcessing&&this._storeProcessingQueue.length>0){let x=this._storeProcessingQueue[0];if(x&&x.invoke())return this._storeProcessingQueue.shift(),!0}return!1}_invokeAllStoreProcessingQueue(){for(;this._invokeStoreProcessingQueue(););}_flushStoreProcessingQueue(){for(let x of this._storeProcessingQueue)x.cbStorePut&&x.cbStorePut(new Error("Connection closed")),x.callback&&x.callback(new Error("Connection closed"));this._storeProcessingQueue.splice(0)}_removeOutgoingAndStoreMessage(x,E){delete this.outgoing[x],this.outgoingStore.del({messageId:x},(k,M)=>{E(k,M),this.messageIdProvider.deallocate(x),this._invokeStoreProcessingQueue()})}};_.VERSION=m.MQTTJS_VERSION,e.default=_}),cAe=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"__esModule",{value:!0});var t=Fpe(),n=class{constructor(){this.numberAllocator=new t.NumberAllocator(1,65535)}allocate(){return this.lastId=this.numberAllocator.alloc(),this.lastId}getLastAllocated(){return this.lastId}register(r){return this.numberAllocator.use(r)}deallocate(r){this.numberAllocator.free(r)}clear(){this.numberAllocator.clear()}};e.default=n});function Wg(e){throw new RangeError(Hpe[e])}function DQ(e,t){let n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]);let i=function(o,a){let s=[],l=o.length;for(;l--;)s[l]=a(o[l]);return s}((e=e.replace(Bpe,".")).split("."),t).join(".");return r+i}function LQ(e){let t=[],n=0,r=e.length;for(;n<r;){let i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){let o=e.charCodeAt(n++);(64512&o)==56320?t.push(((1023&i)<<10)+(1023&o)+65536):(t.push(i),n--)}else t.push(i)}return t}var FQ,jQ,Bpe,Hpe,Ju,OT,W$,V$,K$,q$,am,uAe=Es(()=>{pn(),gn(),mn(),FQ=/^xn--/,jQ=/[^\0-\x7E]/,Bpe=/[\x2E\u3002\uFF0E\uFF61]/g,Hpe={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Ju=Math.floor,OT=String.fromCharCode,W$=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},V$=function(e,t,n){let r=0;for(e=n?Ju(e/700):e>>1,e+=Ju(e/t);e>455;r+=36)e=Ju(e/35);return Ju(r+36*e/(e+38))},K$=function(e){let t=[],n=e.length,r=0,i=128,o=72,a=e.lastIndexOf("-");a<0&&(a=0);for(let l=0;l<a;++l)e.charCodeAt(l)>=128&&Wg("not-basic"),t.push(e.charCodeAt(l));for(let l=a>0?a+1:0;l<n;){let c=r;for(let d=1,h=36;;h+=36){l>=n&&Wg("invalid-input");let p=(s=e.charCodeAt(l++))-48<10?s-22:s-65<26?s-65:s-97<26?s-97:36;(p>=36||p>Ju((2147483647-r)/d))&&Wg("overflow"),r+=p*d;let m=h<=o?1:h>=o+26?26:h-o;if(p<m)break;let v=36-m;d>Ju(2147483647/v)&&Wg("overflow"),d*=v}let u=t.length+1;o=V$(r-c,u,c==0),Ju(r/u)>2147483647-i&&Wg("overflow"),i+=Ju(r/u),r%=u,t.splice(r++,0,i)}var s;return String.fromCodePoint(...t)},q$=function(e){let t=[],n=(e=LQ(e)).length,r=128,i=0,o=72;for(let l of e)l<128&&t.push(OT(l));let a=t.length,s=a;for(a&&t.push("-");s<n;){let l=2147483647;for(let u of e)u>=r&&u<l&&(l=u);let c=s+1;l-r>Ju((2147483647-i)/c)&&Wg("overflow"),i+=(l-r)*c,r=l;for(let u of e)if(u<r&&++i>2147483647&&Wg("overflow"),u==r){let d=i;for(let h=36;;h+=36){let p=h<=o?1:h>=o+26?26:h-o;if(d<p)break;let m=d-p,v=36-p;t.push(OT(W$(p+m%v,0))),d=Ju(m/v)}t.push(OT(W$(d,0))),o=V$(i,c,s==a),i=0,++s}++i,++r}return t.join("")},am={version:"2.1.0",ucs2:{decode:LQ,encode:e=>String.fromCodePoint(...e)},decode:K$,encode:q$,toASCII:function(e){return DQ(e,function(t){return jQ.test(t)?"xn--"+q$(t):t})},toUnicode:function(e){return DQ(e,function(t){return FQ.test(t)?K$(t.slice(4).toLowerCase()):t})}},am.decode,am.encode,am.toASCII,am.toUnicode,am.ucs2,am.version});function dAe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var BQ,V0,HQ,gf,fAe=Es(()=>{pn(),gn(),mn(),BQ=function(e,t,n,r){t=t||"&",n=n||"=";var i={};if(typeof e!="string"||e.length===0)return i;var o=/\+/g;e=e.split(t);var a=1e3;r&&typeof r.maxKeys=="number"&&(a=r.maxKeys);var s=e.length;a>0&&s>a&&(s=a);for(var l=0;l<s;++l){var c,u,d,h,p=e[l].replace(o,"%20"),m=p.indexOf(n);m>=0?(c=p.substr(0,m),u=p.substr(m+1)):(c=p,u=""),d=decodeURIComponent(c),h=decodeURIComponent(u),dAe(i,d)?Array.isArray(i[d])?i[d].push(h):i[d]=[i[d],h]:i[d]=h}return i},V0=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},HQ=function(e,t,n,r){return t=t||"&",n=n||"=",e===null&&(e=void 0),typeof e=="object"?Object.keys(e).map(function(i){var o=encodeURIComponent(V0(i))+n;return Array.isArray(e[i])?e[i].map(function(a){return o+encodeURIComponent(V0(a))}).join(t):o+encodeURIComponent(V0(e[i]))}).join(t):r?encodeURIComponent(V0(r))+n+encodeURIComponent(V0(e)):""},gf={},gf.decode=gf.parse=BQ,gf.encode=gf.stringify=HQ,gf.decode,gf.encode,gf.parse,gf.stringify});function FL(){throw new Error("setTimeout has not been defined")}function jL(){throw new Error("clearTimeout has not been defined")}function zpe(e){if(Ah===setTimeout)return setTimeout(e,0);if((Ah===FL||!Ah)&&setTimeout)return Ah=setTimeout,setTimeout(e,0);try{return Ah(e,0)}catch{try{return Ah.call(null,e,0)}catch{return Ah.call(this||W1,e,0)}}}function hAe(){V1&&w1&&(V1=!1,w1.length?$f=w1.concat($f):q2=-1,$f.length&&Upe())}function Upe(){if(!V1){var e=zpe(hAe);V1=!0;for(var t=$f.length;t;){for(w1=$f,$f=[];++q2<t;)w1&&w1[q2].run();q2=-1,t=$f.length}w1=null,V1=!1,function(n){if(Nh===clearTimeout)return clearTimeout(n);if((Nh===jL||!Nh)&&clearTimeout)return Nh=clearTimeout,clearTimeout(n);try{Nh(n)}catch{try{return Nh.call(null,n)}catch{return Nh.call(this||W1,n)}}}(e)}}function zQ(e,t){(this||W1).fun=e,(this||W1).array=t}function vh(){}var UQ,Ah,Nh,W1,qo,w1,$f,V1,q2,Lo,pAe=Es(()=>{pn(),gn(),mn(),W1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,qo=UQ={},function(){try{Ah=typeof setTimeout=="function"?setTimeout:FL}catch{Ah=FL}try{Nh=typeof clearTimeout=="function"?clearTimeout:jL}catch{Nh=jL}}(),$f=[],V1=!1,q2=-1,qo.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];$f.push(new zQ(e,t)),$f.length!==1||V1||zpe(Upe)},zQ.prototype.run=function(){(this||W1).fun.apply(null,(this||W1).array)},qo.title="browser",qo.browser=!0,qo.env={},qo.argv=[],qo.version="",qo.versions={},qo.on=vh,qo.addListener=vh,qo.once=vh,qo.off=vh,qo.removeListener=vh,qo.removeAllListeners=vh,qo.emit=vh,qo.prependListener=vh,qo.prependOnceListener=vh,qo.listeners=function(e){return[]},qo.binding=function(e){throw new Error("process.binding is not supported")},qo.cwd=function(){return"/"},qo.chdir=function(e){throw new Error("process.chdir is not supported")},qo.umask=function(){return 0},Lo=UQ,Lo.addListener,Lo.argv,Lo.binding,Lo.browser,Lo.chdir,Lo.cwd,Lo.emit,Lo.env,Lo.listeners,Lo.nextTick,Lo.off,Lo.on,Lo.once,Lo.prependListener,Lo.prependOnceListener,Lo.removeAllListeners,Lo.removeListener,Lo.title,Lo.umask,Lo.version,Lo.versions});function mAe(){if(BL)return x3;BL=!0;var e=x3={},t,n;function r(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?t=setTimeout:t=r}catch{t=r}try{typeof clearTimeout=="function"?n=clearTimeout:n=i}catch{n=i}})();function o(v){if(t===setTimeout)return setTimeout(v,0);if((t===r||!t)&&setTimeout)return t=setTimeout,setTimeout(v,0);try{return t(v,0)}catch{try{return t.call(null,v,0)}catch{return t.call(this||a1,v,0)}}}function a(v){if(n===clearTimeout)return clearTimeout(v);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(v);try{return n(v)}catch{try{return n.call(null,v)}catch{return n.call(this||a1,v)}}}var s=[],l=!1,c,u=-1;function d(){!l||!c||(l=!1,c.length?s=c.concat(s):u=-1,s.length&&h())}function h(){if(!l){var v=o(d);l=!0;for(var y=s.length;y;){for(c=s,s=[];++u<y;)c&&c[u].run();u=-1,y=s.length}c=null,l=!1,a(v)}}e.nextTick=function(v){var y=new Array(arguments.length-1);if(arguments.length>1)for(var S=1;S<arguments.length;S++)y[S-1]=arguments[S];s.push(new p(v,y)),s.length===1&&!l&&o(h)};function p(v,y){(this||a1).fun=v,(this||a1).array=y}p.prototype.run=function(){(this||a1).fun.apply(null,(this||a1).array)},e.title="browser",e.browser=!0,e.env={},e.argv=[],e.version="",e.versions={};function m(){}return e.on=m,e.addListener=m,e.once=m,e.off=m,e.removeListener=m,e.removeAllListeners=m,e.emit=m,e.prependListener=m,e.prependOnceListener=m,e.listeners=function(v){return[]},e.binding=function(v){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(v){throw new Error("process.chdir is not supported")},e.umask=function(){return 0},x3}var x3,BL,a1,To,Wpe=Es(()=>{pn(),gn(),mn(),x3={},BL=!1,a1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,To=mAe(),To.platform="browser",To.addListener,To.argv,To.binding,To.browser,To.chdir,To.cwd,To.emit,To.env,To.listeners,To.nextTick,To.off,To.on,To.once,To.prependListener,To.prependOnceListener,To.removeAllListeners,To.removeListener,To.title,To.umask,To.version,To.versions});function gAe(){if(HL)return w3;HL=!0;var e=To;function t(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function n(o,a){for(var s="",l=0,c=-1,u=0,d,h=0;h<=o.length;++h){if(h<o.length)d=o.charCodeAt(h);else{if(d===47)break;d=47}if(d===47){if(!(c===h-1||u===1))if(c!==h-1&&u===2){if(s.length<2||l!==2||s.charCodeAt(s.length-1)!==46||s.charCodeAt(s.length-2)!==46){if(s.length>2){var p=s.lastIndexOf("/");if(p!==s.length-1){p===-1?(s="",l=0):(s=s.slice(0,p),l=s.length-1-s.lastIndexOf("/")),c=h,u=0;continue}}else if(s.length===2||s.length===1){s="",l=0,c=h,u=0;continue}}a&&(s.length>0?s+="/..":s="..",l=2)}else s.length>0?s+="/"+o.slice(c+1,h):s=o.slice(c+1,h),l=h-c-1;c=h,u=0}else d===46&&u!==-1?++u:u=-1}return s}function r(o,a){var s=a.dir||a.root,l=a.base||(a.name||"")+(a.ext||"");return s?s===a.root?s+l:s+o+l:l}var i={resolve:function(){for(var o="",a=!1,s,l=arguments.length-1;l>=-1&&!a;l--){var c;l>=0?c=arguments[l]:(s===void 0&&(s=e.cwd()),c=s),t(c),c.length!==0&&(o=c+"/"+o,a=c.charCodeAt(0)===47)}return o=n(o,!a),a?o.length>0?"/"+o:"/":o.length>0?o:"."},normalize:function(o){if(t(o),o.length===0)return".";var a=o.charCodeAt(0)===47,s=o.charCodeAt(o.length-1)===47;return o=n(o,!a),o.length===0&&!a&&(o="."),o.length>0&&s&&(o+="/"),a?"/"+o:o},isAbsolute:function(o){return t(o),o.length>0&&o.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var o,a=0;a<arguments.length;++a){var s=arguments[a];t(s),s.length>0&&(o===void 0?o=s:o+="/"+s)}return o===void 0?".":i.normalize(o)},relative:function(o,a){if(t(o),t(a),o===a||(o=i.resolve(o),a=i.resolve(a),o===a))return"";for(var s=1;s<o.length&&o.charCodeAt(s)===47;++s);for(var l=o.length,c=l-s,u=1;u<a.length&&a.charCodeAt(u)===47;++u);for(var d=a.length,h=d-u,p=c<h?c:h,m=-1,v=0;v<=p;++v){if(v===p){if(h>p){if(a.charCodeAt(u+v)===47)return a.slice(u+v+1);if(v===0)return a.slice(u+v)}else c>p&&(o.charCodeAt(s+v)===47?m=v:v===0&&(m=0));break}var y=o.charCodeAt(s+v),S=a.charCodeAt(u+v);if(y!==S)break;y===47&&(m=v)}var b="";for(v=s+m+1;v<=l;++v)(v===l||o.charCodeAt(v)===47)&&(b.length===0?b+="..":b+="/..");return b.length>0?b+a.slice(u+m):(u+=m,a.charCodeAt(u)===47&&++u,a.slice(u))},_makeLong:function(o){return o},dirname:function(o){if(t(o),o.length===0)return".";for(var a=o.charCodeAt(0),s=a===47,l=-1,c=!0,u=o.length-1;u>=1;--u)if(a=o.charCodeAt(u),a===47){if(!c){l=u;break}}else c=!1;return l===-1?s?"/":".":s&&l===1?"//":o.slice(0,l)},basename:function(o,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');t(o);var s=0,l=-1,c=!0,u;if(a!==void 0&&a.length>0&&a.length<=o.length){if(a.length===o.length&&a===o)return"";var d=a.length-1,h=-1;for(u=o.length-1;u>=0;--u){var p=o.charCodeAt(u);if(p===47){if(!c){s=u+1;break}}else h===-1&&(c=!1,h=u+1),d>=0&&(p===a.charCodeAt(d)?--d===-1&&(l=u):(d=-1,l=h))}return s===l?l=h:l===-1&&(l=o.length),o.slice(s,l)}else{for(u=o.length-1;u>=0;--u)if(o.charCodeAt(u)===47){if(!c){s=u+1;break}}else l===-1&&(c=!1,l=u+1);return l===-1?"":o.slice(s,l)}},extname:function(o){t(o);for(var a=-1,s=0,l=-1,c=!0,u=0,d=o.length-1;d>=0;--d){var h=o.charCodeAt(d);if(h===47){if(!c){s=d+1;break}continue}l===-1&&(c=!1,l=d+1),h===46?a===-1?a=d:u!==1&&(u=1):a!==-1&&(u=-1)}return a===-1||l===-1||u===0||u===1&&a===l-1&&a===s+1?"":o.slice(a,l)},format:function(o){if(o===null||typeof o!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof o);return r("/",o)},parse:function(o){t(o);var a={root:"",dir:"",base:"",ext:"",name:""};if(o.length===0)return a;var s=o.charCodeAt(0),l=s===47,c;l?(a.root="/",c=1):c=0;for(var u=-1,d=0,h=-1,p=!0,m=o.length-1,v=0;m>=c;--m){if(s=o.charCodeAt(m),s===47){if(!p){d=m+1;break}continue}h===-1&&(p=!1,h=m+1),s===46?u===-1?u=m:v!==1&&(v=1):u!==-1&&(v=-1)}return u===-1||h===-1||v===0||v===1&&u===h-1&&u===d+1?h!==-1&&(d===0&&l?a.base=a.name=o.slice(1,h):a.base=a.name=o.slice(d,h)):(d===0&&l?(a.name=o.slice(1,u),a.base=o.slice(1,h)):(a.name=o.slice(d,u),a.base=o.slice(d,h)),a.ext=o.slice(u,h)),d>0?a.dir=o.slice(0,d-1):l&&(a.dir="/"),a},sep:"/",delimiter:":",win32:null,posix:null};return i.posix=i,w3=i,w3}var w3,HL,zL,vAe=Es(()=>{pn(),gn(),mn(),Wpe(),w3={},HL=!1,zL=gAe()}),Vpe={};Hv(Vpe,{URL:()=>cme,Url:()=>ime,default:()=>Gi,fileURLToPath:()=>Kpe,format:()=>ome,parse:()=>lme,pathToFileURL:()=>qpe,resolve:()=>ame,resolveObject:()=>sme});function ru(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function Mx(e,t,n){if(e&&nd.isObject(e)&&e instanceof ru)return e;var r=new ru;return r.parse(e,t,n),r}function yAe(){if(UL)return _3;UL=!0;var e=Lo;function t(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function n(o,a){for(var s="",l=0,c=-1,u=0,d,h=0;h<=o.length;++h){if(h<o.length)d=o.charCodeAt(h);else{if(d===47)break;d=47}if(d===47){if(!(c===h-1||u===1))if(c!==h-1&&u===2){if(s.length<2||l!==2||s.charCodeAt(s.length-1)!==46||s.charCodeAt(s.length-2)!==46){if(s.length>2){var p=s.lastIndexOf("/");if(p!==s.length-1){p===-1?(s="",l=0):(s=s.slice(0,p),l=s.length-1-s.lastIndexOf("/")),c=h,u=0;continue}}else if(s.length===2||s.length===1){s="",l=0,c=h,u=0;continue}}a&&(s.length>0?s+="/..":s="..",l=2)}else s.length>0?s+="/"+o.slice(c+1,h):s=o.slice(c+1,h),l=h-c-1;c=h,u=0}else d===46&&u!==-1?++u:u=-1}return s}function r(o,a){var s=a.dir||a.root,l=a.base||(a.name||"")+(a.ext||"");return s?s===a.root?s+l:s+o+l:l}var i={resolve:function(){for(var o="",a=!1,s,l=arguments.length-1;l>=-1&&!a;l--){var c;l>=0?c=arguments[l]:(s===void 0&&(s=e.cwd()),c=s),t(c),c.length!==0&&(o=c+"/"+o,a=c.charCodeAt(0)===47)}return o=n(o,!a),a?o.length>0?"/"+o:"/":o.length>0?o:"."},normalize:function(o){if(t(o),o.length===0)return".";var a=o.charCodeAt(0)===47,s=o.charCodeAt(o.length-1)===47;return o=n(o,!a),o.length===0&&!a&&(o="."),o.length>0&&s&&(o+="/"),a?"/"+o:o},isAbsolute:function(o){return t(o),o.length>0&&o.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var o,a=0;a<arguments.length;++a){var s=arguments[a];t(s),s.length>0&&(o===void 0?o=s:o+="/"+s)}return o===void 0?".":i.normalize(o)},relative:function(o,a){if(t(o),t(a),o===a||(o=i.resolve(o),a=i.resolve(a),o===a))return"";for(var s=1;s<o.length&&o.charCodeAt(s)===47;++s);for(var l=o.length,c=l-s,u=1;u<a.length&&a.charCodeAt(u)===47;++u);for(var d=a.length,h=d-u,p=c<h?c:h,m=-1,v=0;v<=p;++v){if(v===p){if(h>p){if(a.charCodeAt(u+v)===47)return a.slice(u+v+1);if(v===0)return a.slice(u+v)}else c>p&&(o.charCodeAt(s+v)===47?m=v:v===0&&(m=0));break}var y=o.charCodeAt(s+v),S=a.charCodeAt(u+v);if(y!==S)break;y===47&&(m=v)}var b="";for(v=s+m+1;v<=l;++v)(v===l||o.charCodeAt(v)===47)&&(b.length===0?b+="..":b+="/..");return b.length>0?b+a.slice(u+m):(u+=m,a.charCodeAt(u)===47&&++u,a.slice(u))},_makeLong:function(o){return o},dirname:function(o){if(t(o),o.length===0)return".";for(var a=o.charCodeAt(0),s=a===47,l=-1,c=!0,u=o.length-1;u>=1;--u)if(a=o.charCodeAt(u),a===47){if(!c){l=u;break}}else c=!1;return l===-1?s?"/":".":s&&l===1?"//":o.slice(0,l)},basename:function(o,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');t(o);var s=0,l=-1,c=!0,u;if(a!==void 0&&a.length>0&&a.length<=o.length){if(a.length===o.length&&a===o)return"";var d=a.length-1,h=-1;for(u=o.length-1;u>=0;--u){var p=o.charCodeAt(u);if(p===47){if(!c){s=u+1;break}}else h===-1&&(c=!1,h=u+1),d>=0&&(p===a.charCodeAt(d)?--d===-1&&(l=u):(d=-1,l=h))}return s===l?l=h:l===-1&&(l=o.length),o.slice(s,l)}else{for(u=o.length-1;u>=0;--u)if(o.charCodeAt(u)===47){if(!c){s=u+1;break}}else l===-1&&(c=!1,l=u+1);return l===-1?"":o.slice(s,l)}},extname:function(o){t(o);for(var a=-1,s=0,l=-1,c=!0,u=0,d=o.length-1;d>=0;--d){var h=o.charCodeAt(d);if(h===47){if(!c){s=d+1;break}continue}l===-1&&(c=!1,l=d+1),h===46?a===-1?a=d:u!==1&&(u=1):a!==-1&&(u=-1)}return a===-1||l===-1||u===0||u===1&&a===l-1&&a===s+1?"":o.slice(a,l)},format:function(o){if(o===null||typeof o!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof o);return r("/",o)},parse:function(o){t(o);var a={root:"",dir:"",base:"",ext:"",name:""};if(o.length===0)return a;var s=o.charCodeAt(0),l=s===47,c;l?(a.root="/",c=1):c=0;for(var u=-1,d=0,h=-1,p=!0,m=o.length-1,v=0;m>=c;--m){if(s=o.charCodeAt(m),s===47){if(!p){d=m+1;break}continue}h===-1&&(p=!1,h=m+1),s===46?u===-1?u=m:v!==1&&(v=1):u!==-1&&(v=-1)}return u===-1||h===-1||v===0||v===1&&u===h-1&&u===d+1?h!==-1&&(d===0&&l?a.base=a.name=o.slice(1,h):a.base=a.name=o.slice(d,h)):(d===0&&l?(a.name=o.slice(1,u),a.base=o.slice(1,h)):(a.name=o.slice(d,u),a.base=o.slice(d,h)),a.ext=o.slice(u,h)),d>0?a.dir=o.slice(0,d-1):l&&(a.dir="/"),a},sep:"/",delimiter:":",win32:null,posix:null};return i.posix=i,_3=i,_3}function bAe(e){if(typeof e=="string")e=new URL(e);else if(!(e instanceof URL))throw new Deno.errors.InvalidData("invalid argument path , must be a string or URL");if(e.protocol!=="file:")throw new Deno.errors.InvalidData("invalid url scheme");return o9?SAe(e):CAe(e)}function SAe(e){let t=e.hostname,n=e.pathname;for(let r=0;r<n.length;r++)if(n[r]==="%"){let i=n.codePointAt(r+2)||32;if(n[r+1]==="2"&&i===102||n[r+1]==="5"&&i===99)throw new Deno.errors.InvalidData("must not include encoded \\ or / characters")}if(n=n.replace(Zpe,"\\"),n=decodeURIComponent(n),t!=="")return`\\\\${t}${n}`;{let r=n.codePointAt(1)|32,i=n[2];if(r<Xpe||r>Qpe||i!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return n.slice(1)}}function CAe(e){if(e.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let t=e.pathname;for(let n=0;n<t.length;n++)if(t[n]==="%"){let r=t.codePointAt(n+2)||32;if(t[n+1]==="2"&&r===102)throw new Deno.errors.InvalidData("must not include encoded / characters")}return decodeURIComponent(t)}function xAe(e){let t=WL.resolve(e),n=e.charCodeAt(e.length-1);(n===Ype||o9&&n===Gpe)&&t[t.length-1]!==WL.sep&&(t+="/");let r=new URL("file://");return t.includes("%")&&(t=t.replace(Jpe,"%25")),!o9&&t.includes("\\")&&(t=t.replace(eme,"%5C")),t.includes(`
|
||
`)&&(t=t.replace(tme,"%0A")),t.includes("\r")&&(t=t.replace(nme,"%0D")),t.includes(" ")&&(t=t.replace(rme,"%09")),r.pathname=t,r}function Kpe(e){if(typeof e=="string")e=new URL(e);else if(!(e instanceof URL))throw new Deno.errors.InvalidData("invalid argument path , must be a string or URL");if(e.protocol!=="file:")throw new Deno.errors.InvalidData("invalid url scheme");return a9?wAe(e):_Ae(e)}function wAe(e){let t=e.hostname,n=e.pathname;for(let r=0;r<n.length;r++)if(n[r]==="%"){let i=n.codePointAt(r+2)||32;if(n[r+1]==="2"&&i===102||n[r+1]==="5"&&i===99)throw new Deno.errors.InvalidData("must not include encoded \\ or / characters")}if(n=n.replace(pme,"\\"),n=decodeURIComponent(n),t!=="")return`\\\\${t}${n}`;{let r=n.codePointAt(1)|32,i=n[2];if(r<fme||r>hme||i!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return n.slice(1)}}function _Ae(e){if(e.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let t=e.pathname;for(let n=0;n<t.length;n++)if(t[n]==="%"){let r=t.codePointAt(n+2)||32;if(t[n+1]==="2"&&r===102)throw new Deno.errors.InvalidData("must not include encoded / characters")}return decodeURIComponent(t)}function qpe(e){let t=zL.resolve(e),n=e.charCodeAt(e.length-1);(n===dme||a9&&n===ume)&&t[t.length-1]!==zL.sep&&(t+="/");let r=new URL("file://");return t.includes("%")&&(t=t.replace(mme,"%25")),!a9&&t.includes("\\")&&(t=t.replace(gme,"%5C")),t.includes(`
|
||
`)&&(t=t.replace(vme,"%0A")),t.includes("\r")&&(t=t.replace(yme,"%0D")),t.includes(" ")&&(t=t.replace(bme,"%09")),r.pathname=t,r}var Gi,WQ,nd,VQ,KQ,qQ,GQ,PT,G$,Y$,X$,YQ,XQ,MT,Vg,IT,_3,UL,WL,QQ,Gpe,Ype,Xpe,Qpe,o9,Zpe,Jpe,eme,tme,nme,rme,ZQ,ime,ome,ame,sme,lme,cme,ume,dme,fme,hme,a9,pme,mme,gme,vme,yme,bme,EAe=Es(()=>{pn(),gn(),mn(),uAe(),fAe(),pAe(),vAe(),Wpe(),Gi={},WQ=am,nd={isString:function(e){return typeof e=="string"},isObject:function(e){return typeof e=="object"&&e!==null},isNull:function(e){return e===null},isNullOrUndefined:function(e){return e==null}},Gi.parse=Mx,Gi.resolve=function(e,t){return Mx(e,!1,!0).resolve(t)},Gi.resolveObject=function(e,t){return e?Mx(e,!1,!0).resolveObject(t):t},Gi.format=function(e){return nd.isString(e)&&(e=Mx(e)),e instanceof ru?e.format():ru.prototype.format.call(e)},Gi.Url=ru,VQ=/^([a-z0-9.+-]+:)/i,KQ=/:[0-9]*$/,qQ=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,GQ=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",`
|
||
`," "]),PT=["'"].concat(GQ),G$=["%","/","?",";","#"].concat(PT),Y$=["/","?","#"],X$=/^[+a-z0-9A-Z_-]{0,63}$/,YQ=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,XQ={javascript:!0,"javascript:":!0},MT={javascript:!0,"javascript:":!0},Vg={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},IT=gf,ru.prototype.parse=function(e,t,n){if(!nd.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),i=r!==-1&&r<e.indexOf("#")?"?":"#",o=e.split(i);o[0]=o[0].replace(/\\/g,"/");var a=e=o.join(i);if(a=a.trim(),!n&&e.split("#").length===1){var s=qQ.exec(a);if(s)return this.path=a,this.href=a,this.pathname=s[1],s[2]?(this.search=s[2],this.query=t?IT.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var l=VQ.exec(a);if(l){var c=(l=l[0]).toLowerCase();this.protocol=c,a=a.substr(l.length)}if(n||l||a.match(/^\/\/[^@\/]+@[^@\/]+/)){var u=a.substr(0,2)==="//";!u||l&&MT[l]||(a=a.substr(2),this.slashes=!0)}if(!MT[l]&&(u||l&&!Vg[l])){for(var d,h,p=-1,m=0;m<Y$.length;m++)(v=a.indexOf(Y$[m]))!==-1&&(p===-1||v<p)&&(p=v);for((h=p===-1?a.lastIndexOf("@"):a.lastIndexOf("@",p))!==-1&&(d=a.slice(0,h),a=a.slice(h+1),this.auth=decodeURIComponent(d)),p=-1,m=0;m<G$.length;m++){var v;(v=a.indexOf(G$[m]))!==-1&&(p===-1||v<p)&&(p=v)}p===-1&&(p=a.length),this.host=a.slice(0,p),a=a.slice(p),this.parseHost(),this.hostname=this.hostname||"";var y=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!y)for(var S=this.hostname.split(/\./),b=(m=0,S.length);m<b;m++){var C=S[m];if(C&&!C.match(X$)){for(var _="",T=0,x=C.length;T<x;T++)C.charCodeAt(T)>127?_+="x":_+=C[T];if(!_.match(X$)){var E=S.slice(0,m),k=S.slice(m+1),M=C.match(YQ);M&&(E.push(M[1]),k.unshift(M[2])),k.length&&(a="/"+k.join(".")+a),this.hostname=E.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),y||(this.hostname=WQ.toASCII(this.hostname));var P=this.port?":"+this.port:"",D=this.hostname||"";this.host=D+P,this.href+=this.host,y&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),a[0]!=="/"&&(a="/"+a))}if(!XQ[c])for(m=0,b=PT.length;m<b;m++){var R=PT[m];if(a.indexOf(R)!==-1){var A=encodeURIComponent(R);A===R&&(A=escape(R)),a=a.split(R).join(A)}}var H=a.indexOf("#");H!==-1&&(this.hash=a.substr(H),a=a.slice(0,H));var F=a.indexOf("?");if(F!==-1?(this.search=a.substr(F),this.query=a.substr(F+1),t&&(this.query=IT.parse(this.query)),a=a.slice(0,F)):t&&(this.search="",this.query={}),a&&(this.pathname=a),Vg[c]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){P=this.pathname||"";var z=this.search||"";this.path=P+z}return this.href=this.format(),this},ru.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",i=!1,o="";this.host?i=e+this.host:this.hostname&&(i=e+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&nd.isObject(this.query)&&Object.keys(this.query).length&&(o=IT.stringify(this.query));var a=this.search||o&&"?"+o||"";return t&&t.substr(-1)!==":"&&(t+=":"),this.slashes||(!t||Vg[t])&&i!==!1?(i="//"+(i||""),n&&n.charAt(0)!=="/"&&(n="/"+n)):i||(i=""),r&&r.charAt(0)!=="#"&&(r="#"+r),a&&a.charAt(0)!=="?"&&(a="?"+a),t+i+(n=n.replace(/[?#]/g,function(s){return encodeURIComponent(s)}))+(a=a.replace("#","%23"))+r},ru.prototype.resolve=function(e){return this.resolveObject(Mx(e,!1,!0)).format()},ru.prototype.resolveObject=function(e){if(nd.isString(e)){var t=new ru;t.parse(e,!1,!0),e=t}for(var n=new ru,r=Object.keys(this),i=0;i<r.length;i++){var o=r[i];n[o]=this[o]}if(n.hash=e.hash,e.href==="")return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var a=Object.keys(e),s=0;s<a.length;s++){var l=a[s];l!=="protocol"&&(n[l]=e[l])}return Vg[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!Vg[e.protocol]){for(var c=Object.keys(e),u=0;u<c.length;u++){var d=c[u];n[d]=e[d]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||MT[e.protocol])n.pathname=e.pathname;else{for(var h=(e.pathname||"").split("/");h.length&&!(e.host=h.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),h[0]!==""&&h.unshift(""),h.length<2&&h.unshift(""),n.pathname=h.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var p=n.pathname||"",m=n.search||"";n.path=p+m}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var v=n.pathname&&n.pathname.charAt(0)==="/",y=e.host||e.pathname&&e.pathname.charAt(0)==="/",S=y||v||n.host&&e.pathname,b=S,C=n.pathname&&n.pathname.split("/")||[],_=(h=e.pathname&&e.pathname.split("/")||[],n.protocol&&!Vg[n.protocol]);if(_&&(n.hostname="",n.port=null,n.host&&(C[0]===""?C[0]=n.host:C.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(h[0]===""?h[0]=e.host:h.unshift(e.host)),e.host=null),S=S&&(h[0]===""||C[0]==="")),y)n.host=e.host||e.host===""?e.host:n.host,n.hostname=e.hostname||e.hostname===""?e.hostname:n.hostname,n.search=e.search,n.query=e.query,C=h;else if(h.length)C||(C=[]),C.pop(),C=C.concat(h),n.search=e.search,n.query=e.query;else if(!nd.isNullOrUndefined(e.search))return _&&(n.hostname=n.host=C.shift(),(M=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=M.shift(),n.host=n.hostname=M.shift())),n.search=e.search,n.query=e.query,nd.isNull(n.pathname)&&nd.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n;if(!C.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var T=C.slice(-1)[0],x=(n.host||e.host||C.length>1)&&(T==="."||T==="..")||T==="",E=0,k=C.length;k>=0;k--)(T=C[k])==="."?C.splice(k,1):T===".."?(C.splice(k,1),E++):E&&(C.splice(k,1),E--);if(!S&&!b)for(;E--;E)C.unshift("..");!S||C[0]===""||C[0]&&C[0].charAt(0)==="/"||C.unshift(""),x&&C.join("/").substr(-1)!=="/"&&C.push("");var M,P=C[0]===""||C[0]&&C[0].charAt(0)==="/";return _&&(n.hostname=n.host=P?"":C.length?C.shift():"",(M=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=M.shift(),n.host=n.hostname=M.shift())),(S=S||n.host&&C.length)&&!P&&C.unshift(""),C.length?n.pathname=C.join("/"):(n.pathname=null,n.path=null),nd.isNull(n.pathname)&&nd.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},ru.prototype.parseHost=function(){var e=this.host,t=KQ.exec(e);t&&((t=t[0])!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},Gi.Url,Gi.format,Gi.resolve,Gi.resolveObject,_3={},UL=!1,WL=yAe(),QQ=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0,Gi.URL=typeof URL<"u"?URL:null,Gi.pathToFileURL=xAe,Gi.fileURLToPath=bAe,Gi.Url,Gi.format,Gi.resolve,Gi.resolveObject,Gi.URL,Gpe=92,Ype=47,Xpe=97,Qpe=122,o9=QQ==="win32",Zpe=/\//g,Jpe=/%/g,eme=/\\/g,tme=/\n/g,nme=/\r/g,rme=/\t/g,ZQ=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0,Gi.URL=typeof URL<"u"?URL:null,Gi.pathToFileURL=qpe,Gi.fileURLToPath=Kpe,ime=Gi.Url,ome=Gi.format,ame=Gi.resolve,sme=Gi.resolveObject,lme=Gi.parse,cme=Gi.URL,ume=92,dme=47,fme=97,hme=122,a9=ZQ==="win32",pme=/\//g,mme=/%/g,gme=/\\/g,vme=/\n/g,yme=/\r/g,bme=/\t/g}),TAe=Tn((e,t)=>{pn(),gn(),mn(),t.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}}),Hz=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"__esModule",{value:!0}),e.BufferedDuplex=e.writev=void 0;var t=Wv(),n=(ks(),to(Ts));function r(o,a){let s=new Array(o.length);for(let l=0;l<o.length;l++)typeof o[l].chunk=="string"?s[l]=n.Buffer.from(o[l].chunk,"utf8"):s[l]=o[l].chunk;this._write(n.Buffer.concat(s),"binary",a)}e.writev=r;var i=class extends t.Duplex{constructor(o,a,s){super({objectMode:!0}),this.proxy=a,this.socket=s,this.writeQueue=[],o.objectMode||(this._writev=r.bind(this)),this.isSocketOpen=!1,this.proxy.on("data",l=>{this.destroyed||this.push(l)})}_read(o){this.proxy.read(o)}_write(o,a,s){this.isSocketOpen?this.writeToProxy(o,a,s):this.writeQueue.push({chunk:o,encoding:a,cb:s})}_final(o){this.writeQueue=[],this.proxy.end(o)}_destroy(o,a){this.writeQueue=[],this.proxy.destroy(),a(o)}socketReady(){this.emit("connect"),this.isSocketOpen=!0,this.processWriteQueue()}writeToProxy(o,a,s){this.proxy.write(o,a)===!1?this.proxy.once("drain",s):s()}processWriteQueue(){for(;this.writeQueue.length>0;){let{chunk:o,encoding:a,cb:s}=this.writeQueue.shift();this.writeToProxy(o,a,s)}}};e.BufferedDuplex=i}),$T=Tn(e=>{pn(),gn(),mn();var t=e&&e.__importDefault||function(S){return S&&S.__esModule?S:{default:S}};Object.defineProperty(e,"__esModule",{value:!0}),e.streamBuilder=e.browserStreamBuilder=void 0;var n=(ks(),to(Ts)),r=t(TAe()),i=t(cp()),o=Wv(),a=t(K6()),s=Hz(),l=(0,i.default)("mqttjs:ws"),c=["rejectUnauthorized","ca","cert","key","pfx","passphrase"];function u(S,b){let C=`${S.protocol}://${S.hostname}:${S.port}${S.path}`;return typeof S.transformWsUrl=="function"&&(C=S.transformWsUrl(C,S,b)),C}function d(S){let b=S;return S.port||(S.protocol==="wss"?b.port=443:b.port=80),S.path||(b.path="/"),S.wsOptions||(b.wsOptions={}),!a.default&&!S.forceNativeWebSocket&&S.protocol==="wss"&&c.forEach(C=>{Object.prototype.hasOwnProperty.call(S,C)&&!Object.prototype.hasOwnProperty.call(S.wsOptions,C)&&(b.wsOptions[C]=S[C])}),b}function h(S){let b=d(S);if(b.hostname||(b.hostname=b.host),!b.hostname){if(typeof document>"u")throw new Error("Could not determine host. Specify host manually.");let C=new URL(document.URL);b.hostname=C.hostname,b.port||(b.port=Number(C.port))}return b.objectMode===void 0&&(b.objectMode=!(b.binary===!0||b.binary===void 0)),b}function p(S,b,C){l("createWebSocket"),l(`protocol: ${C.protocolId} ${C.protocolVersion}`);let _=C.protocolId==="MQIsdp"&&C.protocolVersion===3?"mqttv3.1":"mqtt";l(`creating new Websocket for url: ${b} and protocol: ${_}`);let T;return C.createWebsocket?T=C.createWebsocket(b,[_],C):T=new r.default(b,[_],C.wsOptions),T}function m(S,b){let C=b.protocolId==="MQIsdp"&&b.protocolVersion===3?"mqttv3.1":"mqtt",_=u(b,S),T;return b.createWebsocket?T=b.createWebsocket(_,[C],b):T=new WebSocket(_,[C]),T.binaryType="arraybuffer",T}var v=(S,b)=>{l("streamBuilder");let C=d(b);C.hostname=C.hostname||C.host||"localhost";let _=u(C,S),T=p(S,_,C),x=r.default.createWebSocketStream(T,C.wsOptions);return x.url=_,T.on("close",()=>{x.destroy()}),x};e.streamBuilder=v;var y=(S,b)=>{l("browserStreamBuilder");let C,_=h(b).browserBufferSize||1024*512,T=b.browserBufferTimeout||1e3,x=!b.objectMode,E=m(S,b),k=P(b,F,z);b.objectMode||(k._writev=s.writev.bind(k)),k.on("close",()=>{E.close()});let M=typeof E.addEventListener<"u";E.readyState===E.OPEN?(C=k,C.socket=E):(C=new s.BufferedDuplex(b,k,E),M?E.addEventListener("open",D):E.onopen=D),M?(E.addEventListener("close",R),E.addEventListener("error",A),E.addEventListener("message",H)):(E.onclose=R,E.onerror=A,E.onmessage=H);function P(W,q,Z){let N=new o.Transform({objectMode:W.objectMode});return N._write=q,N._flush=Z,N}function D(){l("WebSocket onOpen"),C instanceof s.BufferedDuplex&&C.socketReady()}function R(W){l("WebSocket onClose",W),C.end(),C.destroy()}function A(W){l("WebSocket onError",W);let q=new Error("WebSocket error");q.event=W,C.destroy(q)}async function H(W){let{data:q}=W;q instanceof ArrayBuffer?q=n.Buffer.from(q):q instanceof Blob?q=n.Buffer.from(await new Response(q).arrayBuffer()):q=n.Buffer.from(q,"utf8"),k&&!k.destroyed&&k.push(q)}function F(W,q,Z){if(E.bufferedAmount>_){setTimeout(F,T,W,q,Z);return}x&&typeof W=="string"&&(W=n.Buffer.from(W,"utf8"));try{E.send(W)}catch(N){return Z(N)}Z()}function z(W){E.close(),W()}return C};e.browserStreamBuilder=y}),zz={};Hv(zz,{Server:()=>Oo,Socket:()=>Oo,Stream:()=>Oo,_createServerHandle:()=>Oo,_normalizeArgs:()=>Oo,_setSimultaneousAccepts:()=>Oo,connect:()=>Oo,createConnection:()=>Oo,createServer:()=>Oo,default:()=>Sme,isIP:()=>Oo,isIPv4:()=>Oo,isIPv6:()=>Oo});function Oo(){throw new Error("Node.js net module is not supported by JSPM core outside of Node.js")}var Sme,Cme=Es(()=>{pn(),gn(),mn(),Sme={_createServerHandle:Oo,_normalizeArgs:Oo,_setSimultaneousAccepts:Oo,connect:Oo,createConnection:Oo,createServer:Oo,isIP:Oo,isIPv4:Oo,isIPv6:Oo,Server:Oo,Socket:Oo,Stream:Oo}}),JQ=Tn(e=>{pn(),gn(),mn();var t=e&&e.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0});var n=t((Cme(),to(zz))),r=t(cp()),i=(0,r.default)("mqttjs:tcp"),o=(a,s)=>{s.port=s.port||1883,s.hostname=s.hostname||s.host||"localhost";let{port:l,path:c}=s,u=s.hostname;return i("port %d and host %s",l,u),n.default.createConnection({port:l,host:u,path:c})};e.default=o}),xme={};Hv(xme,{default:()=>wme});var wme,kAe=Es(()=>{pn(),gn(),mn(),wme={}}),eZ=Tn(e=>{pn(),gn(),mn();var t=e&&e.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0});var n=t((kAe(),to(xme))),r=t((Cme(),to(zz))),i=t(cp()),o=(0,i.default)("mqttjs:tls"),a=(s,l)=>{l.port=l.port||8883,l.host=l.hostname||l.host||"localhost",r.default.isIP(l.host)===0&&(l.servername=l.host),l.rejectUnauthorized=l.rejectUnauthorized!==!1,delete l.path,o("port %d host %s rejectUnauthorized %b",l.port,l.host,l.rejectUnauthorized);let c=n.default.connect(l);c.on("secureConnect",()=>{l.rejectUnauthorized&&!c.authorized?c.emit("error",new Error("TLS not authorized")):c.removeListener("error",u)});function u(d){l.rejectUnauthorized&&s.emit("error",d),c.end()}return c.on("error",u),c};e.default=a}),tZ=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"__esModule",{value:!0});var t=(ks(),to(Ts)),n=Wv(),r=Hz(),i,o,a;function s(){let h=new n.Transform;return h._write=(p,m,v)=>{i.send({data:p.buffer,success(){v()},fail(y){v(new Error(y))}})},h._flush=p=>{i.close({success(){p()}})},h}function l(h){h.hostname||(h.hostname="localhost"),h.path||(h.path="/"),h.wsOptions||(h.wsOptions={})}function c(h,p){let m=h.protocol==="wxs"?"wss":"ws",v=`${m}://${h.hostname}${h.path}`;return h.port&&h.port!==80&&h.port!==443&&(v=`${m}://${h.hostname}:${h.port}${h.path}`),typeof h.transformWsUrl=="function"&&(v=h.transformWsUrl(v,h,p)),v}function u(){i.onOpen(()=>{a.socketReady()}),i.onMessage(h=>{let{data:p}=h;p instanceof ArrayBuffer?p=t.Buffer.from(p):p=t.Buffer.from(p,"utf8"),o.push(p)}),i.onClose(()=>{a.emit("close"),a.end(),a.destroy()}),i.onError(h=>{let p=new Error(h.errMsg);a.destroy(p)})}var d=(h,p)=>{if(p.hostname=p.hostname||p.host,!p.hostname)throw new Error("Could not determine host. Specify host manually.");let m=p.protocolId==="MQIsdp"&&p.protocolVersion===3?"mqttv3.1":"mqtt";l(p);let v=c(p,h);i=wx.connectSocket({url:v,protocols:[m]}),o=s(),a=new r.BufferedDuplex(p,o,i),a._destroy=(S,b)=>{i.close({success(){b&&b(S)}})};let y=a.destroy;return a.destroy=(S,b)=>(a.destroy=y,setTimeout(()=>{i.close({fail(){a._destroy(S,b)}})},0),a),u(),a};e.default=d}),nZ=Tn(e=>{pn(),gn(),mn(),Object.defineProperty(e,"__esModule",{value:!0});var t=(ks(),to(Ts)),n=Wv(),r=Hz(),i,o,a,s=!1;function l(){let p=new n.Transform;return p._write=(m,v,y)=>{i.sendSocketMessage({data:m.buffer,success(){y()},fail(){y(new Error)}})},p._flush=m=>{i.closeSocket({success(){m()}})},p}function c(p){p.hostname||(p.hostname="localhost"),p.path||(p.path="/"),p.wsOptions||(p.wsOptions={})}function u(p,m){let v=p.protocol==="alis"?"wss":"ws",y=`${v}://${p.hostname}${p.path}`;return p.port&&p.port!==80&&p.port!==443&&(y=`${v}://${p.hostname}:${p.port}${p.path}`),typeof p.transformWsUrl=="function"&&(y=p.transformWsUrl(y,p,m)),y}function d(){s||(s=!0,i.onSocketOpen(()=>{a.socketReady()}),i.onSocketMessage(p=>{if(typeof p.data=="string"){let m=t.Buffer.from(p.data,"base64");o.push(m)}else{let m=new FileReader;m.addEventListener("load",()=>{let v=m.result;v instanceof ArrayBuffer?v=t.Buffer.from(v):v=t.Buffer.from(v,"utf8"),o.push(v)}),m.readAsArrayBuffer(p.data)}}),i.onSocketClose(()=>{a.end(),a.destroy()}),i.onSocketError(p=>{a.destroy(p)}))}var h=(p,m)=>{if(m.hostname=m.hostname||m.host,!m.hostname)throw new Error("Could not determine host. Specify host manually.");let v=m.protocolId==="MQIsdp"&&m.protocolVersion===3?"mqttv3.1":"mqtt";c(m);let y=u(m,p);return i=m.my,i.connectSocket({url:y,protocols:v}),o=l(),a=new r.BufferedDuplex(m,o,i),d(),a};e.default=h}),OAe=Tn(e=>{pn(),gn(),mn();var t=e&&e.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.connectAsync=void 0;var n=t(cp()),r=t((EAe(),to(Vpe))),i=t(DL()),o=t(K6());typeof(Ni==null?void 0:Ni.nextTick)!="function"&&(Ni.nextTick=setImmediate);var a=(0,n.default)("mqttjs"),s=null;function l(d){let h;d.auth&&(h=d.auth.match(/^(.+):(.+)$/),h?(d.username=h[1],d.password=h[2]):d.username=d.auth)}function c(d,h){var p,m,v,y;if(a("connecting to an MQTT broker..."),typeof d=="object"&&!h&&(h=d,d=""),h=h||{},d&&typeof d=="string"){let C=r.default.parse(d,!0),_={};if(C.port!=null&&(_.port=Number(C.port)),_.host=C.hostname,_.query=C.query,_.auth=C.auth,_.protocol=C.protocol,_.path=C.path,_.protocol=(p=_.protocol)===null||p===void 0?void 0:p.replace(/:$/,""),h=Object.assign(Object.assign({},_),h),!h.protocol)throw new Error("Missing protocol")}if(h.unixSocket=h.unixSocket||((m=h.protocol)===null||m===void 0?void 0:m.includes("+unix")),h.unixSocket?h.protocol=h.protocol.replace("+unix",""):!(!((v=h.protocol)===null||v===void 0)&&v.startsWith("ws"))&&!(!((y=h.protocol)===null||y===void 0)&&y.startsWith("wx"))&&delete h.path,l(h),h.query&&typeof h.query.clientId=="string"&&(h.clientId=h.query.clientId),h.cert&&h.key)if(h.protocol){if(["mqtts","wss","wxs","alis"].indexOf(h.protocol)===-1)switch(h.protocol){case"mqtt":h.protocol="mqtts";break;case"ws":h.protocol="wss";break;case"wx":h.protocol="wxs";break;case"ali":h.protocol="alis";break;default:throw new Error(`Unknown protocol for secure connection: "${h.protocol}"!`)}}else throw new Error("Missing secure protocol key");if(s||(s={},!o.default&&!h.forceNativeWebSocket?(s.ws=$T().streamBuilder,s.wss=$T().streamBuilder,s.mqtt=JQ().default,s.tcp=JQ().default,s.ssl=eZ().default,s.tls=s.ssl,s.mqtts=eZ().default):(s.ws=$T().browserStreamBuilder,s.wss=$T().browserStreamBuilder,s.wx=tZ().default,s.wxs=tZ().default,s.ali=nZ().default,s.alis=nZ().default)),!s[h.protocol]){let C=["mqtts","wss"].indexOf(h.protocol)!==-1;h.protocol=["mqtt","mqtts","ws","wss","wx","wxs","ali","alis"].filter((_,T)=>C&&T%2===0?!1:typeof s[_]=="function")[0]}if(h.clean===!1&&!h.clientId)throw new Error("Missing clientId for unclean clients");h.protocol&&(h.defaultProtocol=h.protocol);function S(C){return h.servers&&((!C._reconnectCount||C._reconnectCount===h.servers.length)&&(C._reconnectCount=0),h.host=h.servers[C._reconnectCount].host,h.port=h.servers[C._reconnectCount].port,h.protocol=h.servers[C._reconnectCount].protocol?h.servers[C._reconnectCount].protocol:h.defaultProtocol,h.hostname=h.host,C._reconnectCount++),a("calling streambuilder for",h.protocol),s[h.protocol](C,h)}let b=new i.default(S,h);return b.on("error",()=>{}),b}function u(d,h,p=!0){return new Promise((m,v)=>{let y=c(d,h),S={connect:C=>{b(),m(y)},end:()=>{b(),m(y)},error:C=>{b(),y.end(),v(C)}};p===!1&&(S.close=()=>{S.error(new Error("Couldn't connect to server"))});function b(){Object.keys(S).forEach(C=>{y.off(C,S[C])})}Object.keys(S).forEach(C=>{y.on(C,S[C])})})}e.connectAsync=u,e.default=c}),rZ=Tn(e=>{pn(),gn(),mn();var t=e&&e.__createBinding||(Object.create?function(p,m,v,y){y===void 0&&(y=v);var S=Object.getOwnPropertyDescriptor(m,v);(!S||("get"in S?!m.__esModule:S.writable||S.configurable))&&(S={enumerable:!0,get:function(){return m[v]}}),Object.defineProperty(p,y,S)}:function(p,m,v,y){y===void 0&&(y=v),p[y]=m[v]}),n=e&&e.__setModuleDefault||(Object.create?function(p,m){Object.defineProperty(p,"default",{enumerable:!0,value:m})}:function(p,m){p.default=m}),r=e&&e.__importStar||function(p){if(p&&p.__esModule)return p;var m={};if(p!=null)for(var v in p)v!=="default"&&Object.prototype.hasOwnProperty.call(p,v)&&t(m,p,v);return n(m,p),m},i=e&&e.__exportStar||function(p,m){for(var v in p)v!=="default"&&!Object.prototype.hasOwnProperty.call(m,v)&&t(m,p,v)},o=e&&e.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(e,"__esModule",{value:!0}),e.ReasonCodes=e.KeepaliveManager=e.UniqueMessageIdProvider=e.DefaultMessageIdProvider=e.Store=e.MqttClient=e.connectAsync=e.connect=e.Client=void 0;var a=o(DL());e.MqttClient=a.default;var s=o(xpe());e.DefaultMessageIdProvider=s.default;var l=o(cAe());e.UniqueMessageIdProvider=l.default;var c=o(wpe());e.Store=c.default;var u=r(OAe());e.connect=u.default,Object.defineProperty(e,"connectAsync",{enumerable:!0,get:function(){return u.connectAsync}});var d=o(jpe());e.KeepaliveManager=d.default,e.Client=a.default,i(DL(),e),i(jS(),e);var h=V6();Object.defineProperty(e,"ReasonCodes",{enumerable:!0,get:function(){return h.ReasonCodes}})}),PAe=Tn(e=>{pn(),gn(),mn();var t=e&&e.__createBinding||(Object.create?function(a,s,l,c){c===void 0&&(c=l);var u=Object.getOwnPropertyDescriptor(s,l);(!u||("get"in u?!s.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return s[l]}}),Object.defineProperty(a,c,u)}:function(a,s,l,c){c===void 0&&(c=l),a[c]=s[l]}),n=e&&e.__setModuleDefault||(Object.create?function(a,s){Object.defineProperty(a,"default",{enumerable:!0,value:s})}:function(a,s){a.default=s}),r=e&&e.__importStar||function(a){if(a&&a.__esModule)return a;var s={};if(a!=null)for(var l in a)l!=="default"&&Object.prototype.hasOwnProperty.call(a,l)&&t(s,a,l);return n(s,a),s},i=e&&e.__exportStar||function(a,s){for(var l in a)l!=="default"&&!Object.prototype.hasOwnProperty.call(s,l)&&t(s,a,l)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(rZ());e.default=o,i(rZ(),e)});const MAe=PAe();/*! Bundled license information:
|
||
|
||
@jspm/core/nodelibs/browser/buffer.js:
|
||
(*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
||
*/var Vn={};(function(e){var t=typeof Object.defineProperties=="function"?Object.defineProperty:function(O,j,oe){O!=Array.prototype&&O!=Object.prototype&&(O[j]=oe.value)},n=(typeof window<"u"&&window===yo||typeof yo<"u"&&yo!=null,yo);function r(O,j){if(j){var oe=n;O=O.split(".");for(var Ae=0;Ae<O.length-1;Ae++){var Ge=O[Ae];Ge in oe||(oe[Ge]={}),oe=oe[Ge]}O=O[O.length-1],Ae=oe[O],j=j(Ae),j!=Ae&&j!=null&&t(oe,O,{configurable:!0,writable:!0,value:j})}}function i(O){var j=0;return function(){return j<O.length?{done:!1,value:O[j++]}:{done:!0}}}function o(){o=function(){},n.Symbol||(n.Symbol=s)}function a(O,j){this.a=O,t(this,"description",{configurable:!0,writable:!0,value:j})}a.prototype.toString=function(){return this.a};var s=function(){function O(oe){if(this instanceof O)throw new TypeError("Symbol is not a constructor");return new a("jscomp_symbol_"+(oe||"")+"_"+j++,oe)}var j=0;return O}();function l(){o();var O=n.Symbol.iterator;O||(O=n.Symbol.iterator=n.Symbol("Symbol.iterator")),typeof Array.prototype[O]!="function"&&t(Array.prototype,O,{configurable:!0,writable:!0,value:function(){return c(i(this))}}),l=function(){}}function c(O){return l(),O={next:O},O[n.Symbol.iterator]=function(){return this},O}function u(O,j){l(),O instanceof String&&(O+="");var oe=0,Ae={next:function(){if(oe<O.length){var Ge=oe++;return{value:j(Ge,O[Ge]),done:!1}}return Ae.next=function(){return{done:!0,value:void 0}},Ae.next()}};return Ae[Symbol.iterator]=function(){return Ae},Ae}r("Array.prototype.entries",function(O){return O||function(){return u(this,function(j,oe){return[j,oe]})}});var d=yo||self;function h(O,j,oe){O=O.split("."),oe=oe||d,O[0]in oe||typeof oe.execScript>"u"||oe.execScript("var "+O[0]);for(var Ae;O.length&&(Ae=O.shift());)O.length||j===void 0?oe[Ae]&&oe[Ae]!==Object.prototype[Ae]?oe=oe[Ae]:oe=oe[Ae]={}:oe[Ae]=j}function p(O){var j=typeof O;if(j=="object")if(O){if(O instanceof Array)return"array";if(O instanceof Object)return j;var oe=Object.prototype.toString.call(O);if(oe=="[object Window]")return"object";if(oe=="[object Array]"||typeof O.length=="number"&&typeof O.splice<"u"&&typeof O.propertyIsEnumerable<"u"&&!O.propertyIsEnumerable("splice"))return"array";if(oe=="[object Function]"||typeof O.call<"u"&&typeof O.propertyIsEnumerable<"u"&&!O.propertyIsEnumerable("call"))return"function"}else return"null";else if(j=="function"&&typeof O.call>"u")return"object";return j}function m(O){var j=typeof O;return j=="object"&&O!=null||j=="function"}function v(O,j,oe){h(O,j,oe)}function y(O,j){function oe(){}oe.prototype=j.prototype,O.prototype=new oe,O.prototype.constructor=O}var S="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function b(O,j){for(var oe,Ae,Ge=1;Ge<arguments.length;Ge++){Ae=arguments[Ge];for(oe in Ae)O[oe]=Ae[oe];for(var ft=0;ft<S.length;ft++)oe=S[ft],Object.prototype.hasOwnProperty.call(Ae,oe)&&(O[oe]=Ae[oe])}}var C=Array.prototype.forEach?function(O,j){Array.prototype.forEach.call(O,j,void 0)}:function(O,j){for(var oe=O.length,Ae=typeof O=="string"?O.split(""):O,Ge=0;Ge<oe;Ge++)Ge in Ae&&j.call(void 0,Ae[Ge],Ge,O)},_=Array.prototype.map?function(O,j){return Array.prototype.map.call(O,j,void 0)}:function(O,j){for(var oe=O.length,Ae=Array(oe),Ge=typeof O=="string"?O.split(""):O,ft=0;ft<oe;ft++)ft in Ge&&(Ae[ft]=j.call(void 0,Ge[ft],ft,O));return Ae};function T(O,j,oe){return 2>=arguments.length?Array.prototype.slice.call(O,j):Array.prototype.slice.call(O,j,oe)}function x(O,j,oe,Ae){var Ge="Assertion failed";if(oe){Ge+=": "+oe;var ft=Ae}else O&&(Ge+=": "+O,ft=j);throw Error(Ge,ft||[])}function E(O,j,oe){for(var Ae=[],Ge=2;Ge<arguments.length;++Ge)Ae[Ge-2]=arguments[Ge];return O||x("",null,j,Ae),O}function k(O,j,oe){for(var Ae=[],Ge=2;Ge<arguments.length;++Ge)Ae[Ge-2]=arguments[Ge];typeof O!="string"&&x("Expected string but got %s: %s.",[p(O),O],j,Ae)}function M(O,j,oe){for(var Ae=[],Ge=2;Ge<arguments.length;++Ge)Ae[Ge-2]=arguments[Ge];Array.isArray(O)||x("Expected array but got %s: %s.",[p(O),O],j,Ae)}function P(O,j){for(var oe=[],Ae=1;Ae<arguments.length;++Ae)oe[Ae-1]=arguments[Ae];throw Error("Failure"+(O?": "+O:""),oe)}function D(O,j,oe,Ae){for(var Ge=[],ft=3;ft<arguments.length;++ft)Ge[ft-3]=arguments[ft];O instanceof j||x("Expected instanceof %s but got %s.",[R(j),R(O)],oe,Ge)}function R(O){return O instanceof Function?O.displayName||O.name||"unknown type name":O instanceof Object?O.constructor.displayName||O.constructor.name||Object.prototype.toString.call(O):O===null?"null":typeof O}function A(O,j){if(this.c=O,this.b=j,this.a={},this.arrClean=!0,0<this.c.length){for(O=0;O<this.c.length;O++){j=this.c[O];var oe=j[0];this.a[oe.toString()]=new W(oe,j[1])}this.arrClean=!0}}h("jspb.Map",A,void 0),A.prototype.g=function(){if(this.arrClean){if(this.b){var O=this.a,j;for(j in O)if(Object.prototype.hasOwnProperty.call(O,j)){var oe=O[j].a;oe&&oe.g()}}}else{for(this.c.length=0,O=z(this),O.sort(),j=0;j<O.length;j++){var Ae=this.a[O[j]];(oe=Ae.a)&&oe.g(),this.c.push([Ae.key,Ae.value])}this.arrClean=!0}return this.c},A.prototype.toArray=A.prototype.g,A.prototype.Mc=function(O,j){for(var oe=this.g(),Ae=[],Ge=0;Ge<oe.length;Ge++){var ft=this.a[oe[Ge][0].toString()];F(this,ft);var Jt=ft.a;Jt?(E(j),Ae.push([ft.key,j(O,Jt)])):Ae.push([ft.key,ft.value])}return Ae},A.prototype.toObject=A.prototype.Mc,A.fromObject=function(O,j,oe){j=new A([],j);for(var Ae=0;Ae<O.length;Ae++){var Ge=O[Ae][0],ft=oe(O[Ae][1]);j.set(Ge,ft)}return j};function H(O){this.a=0,this.b=O}H.prototype.next=function(){return this.a<this.b.length?{done:!1,value:this.b[this.a++]}:{done:!0,value:void 0}},typeof Symbol<"u"&&(H.prototype[Symbol.iterator]=function(){return this}),A.prototype.Jb=function(){return z(this).length},A.prototype.getLength=A.prototype.Jb,A.prototype.clear=function(){this.a={},this.arrClean=!1},A.prototype.clear=A.prototype.clear,A.prototype.Cb=function(O){O=O.toString();var j=this.a.hasOwnProperty(O);return delete this.a[O],this.arrClean=!1,j},A.prototype.del=A.prototype.Cb,A.prototype.Eb=function(){var O=[],j=z(this);j.sort();for(var oe=0;oe<j.length;oe++){var Ae=this.a[j[oe]];O.push([Ae.key,Ae.value])}return O},A.prototype.getEntryList=A.prototype.Eb,A.prototype.entries=function(){var O=[],j=z(this);j.sort();for(var oe=0;oe<j.length;oe++){var Ae=this.a[j[oe]];O.push([Ae.key,F(this,Ae)])}return new H(O)},A.prototype.entries=A.prototype.entries,A.prototype.keys=function(){var O=[],j=z(this);j.sort();for(var oe=0;oe<j.length;oe++)O.push(this.a[j[oe]].key);return new H(O)},A.prototype.keys=A.prototype.keys,A.prototype.values=function(){var O=[],j=z(this);j.sort();for(var oe=0;oe<j.length;oe++)O.push(F(this,this.a[j[oe]]));return new H(O)},A.prototype.values=A.prototype.values,A.prototype.forEach=function(O,j){var oe=z(this);oe.sort();for(var Ae=0;Ae<oe.length;Ae++){var Ge=this.a[oe[Ae]];O.call(j,F(this,Ge),Ge.key,this)}},A.prototype.forEach=A.prototype.forEach,A.prototype.set=function(O,j){var oe=new W(O);return this.b?(oe.a=j,oe.value=j.g()):oe.value=j,this.a[O.toString()]=oe,this.arrClean=!1,this},A.prototype.set=A.prototype.set;function F(O,j){return O.b?(j.a||(j.a=new O.b(j.value)),j.a):j.value}A.prototype.get=function(O){if(O=this.a[O.toString()])return F(this,O)},A.prototype.get=A.prototype.get,A.prototype.has=function(O){return O.toString()in this.a},A.prototype.has=A.prototype.has,A.prototype.Jc=function(O,j,oe,Ae,Ge){var ft=z(this);ft.sort();for(var Jt=0;Jt<ft.length;Jt++){var on=this.a[ft[Jt]];j.Va(O),oe.call(j,1,on.key),this.b?Ae.call(j,2,F(this,on),Ge):Ae.call(j,2,on.value),j.Ya()}},A.prototype.serializeBinary=A.prototype.Jc,A.deserializeBinary=function(O,j,oe,Ae,Ge,ft,Jt){for(;j.oa()&&!j.bb();){var on=j.c;on==1?ft=oe.call(j):on==2&&(O.b?(E(Ge),Jt||(Jt=new O.b),Ae.call(j,Jt,Ge)):Jt=Ae.call(j))}E(ft!=null),E(Jt!=null),O.set(ft,Jt)};function z(O){O=O.a;var j=[],oe;for(oe in O)Object.prototype.hasOwnProperty.call(O,oe)&&j.push(oe);return j}function W(O,j){this.key=O,this.value=j,this.a=void 0}function q(O){if(8192>=O.length)return String.fromCharCode.apply(null,O);for(var j="",oe=0;oe<O.length;oe+=8192)j+=String.fromCharCode.apply(null,T(O,oe,oe+8192));return j}var Z={"\0":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\x0B",'"':'\\"',"\\":"\\\\","<":"\\u003C"},N={"'":"\\'"},B={},V=null;function Y(O,j){j===void 0&&(j=0),fe(),j=B[j];for(var oe=[],Ae=0;Ae<O.length;Ae+=3){var Ge=O[Ae],ft=Ae+1<O.length,Jt=ft?O[Ae+1]:0,on=Ae+2<O.length,Qn=on?O[Ae+2]:0,ni=Ge>>2;Ge=(Ge&3)<<4|Jt>>4,Jt=(Jt&15)<<2|Qn>>6,Qn&=63,on||(Qn=64,ft||(Jt=64)),oe.push(j[ni],j[Ge],j[Jt]||"",j[Qn]||"")}return oe.join("")}function ie(O){var j=O.length,oe=3*j/4;oe%3?oe=Math.floor(oe):"=.".indexOf(O[j-1])!=-1&&(oe="=.".indexOf(O[j-2])!=-1?oe-2:oe-1);var Ae=new Uint8Array(oe),Ge=0;return ce(O,function(ft){Ae[Ge++]=ft}),Ae.subarray(0,Ge)}function ce(O,j){function oe(Qn){for(;Ae<O.length;){var ni=O.charAt(Ae++),zr=V[ni];if(zr!=null)return zr;if(!/^[\s\xa0]*$/.test(ni))throw Error("Unknown base64 encoding at char: "+ni)}return Qn}fe();for(var Ae=0;;){var Ge=oe(-1),ft=oe(0),Jt=oe(64),on=oe(64);if(on===64&&Ge===-1)break;j(Ge<<2|ft>>4),Jt!=64&&(j(ft<<4&240|Jt>>2),on!=64&&j(Jt<<6&192|on))}}function fe(){if(!V){V={};for(var O="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),j=["+/=","+/","-_=","-_.","-_"],oe=0;5>oe;oe++){var Ae=O.concat(j[oe].split(""));B[oe]=Ae;for(var Ge=0;Ge<Ae.length;Ge++){var ft=Ae[Ge];V[ft]===void 0&&(V[ft]=Ge)}}}}h("jspb.ConstBinaryMessage",function(){},void 0),h("jspb.BinaryMessage",function(){},void 0),h("jspb.BinaryConstants.FieldType",{yb:-1,ee:1,FLOAT:2,ke:3,te:4,je:5,xb:6,wb:7,BOOL:8,re:9,ie:10,le:11,ce:12,se:13,ge:14,me:15,ne:16,oe:17,pe:18,he:30,ve:31},void 0),h("jspb.BinaryConstants.WireType",{yb:-1,ue:0,xb:1,de:2,qe:3,fe:4,wb:5},void 0),h("jspb.BinaryConstants.FieldTypeToWireType",function(O){switch(O){case 5:case 3:case 13:case 4:case 17:case 18:case 8:case 14:case 31:return 0;case 1:case 6:case 16:case 30:return 1;case 9:case 11:case 12:return 2;case 2:case 7:case 15:return 5;default:return-1}},void 0),h("jspb.BinaryConstants.INVALID_FIELD_NUMBER",-1,void 0),h("jspb.BinaryConstants.FLOAT32_EPS",1401298464324817e-60,void 0),h("jspb.BinaryConstants.FLOAT32_MIN",11754943508222875e-54,void 0),h("jspb.BinaryConstants.FLOAT32_MAX",34028234663852886e22,void 0),h("jspb.BinaryConstants.FLOAT64_EPS",5e-324,void 0),h("jspb.BinaryConstants.FLOAT64_MIN",22250738585072014e-324,void 0),h("jspb.BinaryConstants.FLOAT64_MAX",17976931348623157e292,void 0),h("jspb.BinaryConstants.TWO_TO_20",1048576,void 0),h("jspb.BinaryConstants.TWO_TO_23",8388608,void 0),h("jspb.BinaryConstants.TWO_TO_31",2147483648,void 0),h("jspb.BinaryConstants.TWO_TO_32",4294967296,void 0),h("jspb.BinaryConstants.TWO_TO_52",4503599627370496,void 0),h("jspb.BinaryConstants.TWO_TO_63",9223372036854776e3,void 0),h("jspb.BinaryConstants.TWO_TO_64",18446744073709552e3,void 0),h("jspb.BinaryConstants.ZERO_HASH","\0\0\0\0\0\0\0\0",void 0);var ee=0,ne=0;h("jspb.utils.getSplit64Low",function(){return ee},void 0),h("jspb.utils.getSplit64High",function(){return ne},void 0);function ue(O){var j=O>>>0;O=Math.floor((O-j)/4294967296)>>>0,ee=j,ne=O}h("jspb.utils.splitUint64",ue,void 0);function ye(O){var j=0>O;O=Math.abs(O);var oe=O>>>0;O=Math.floor((O-oe)/4294967296),O>>>=0,j&&(O=~O>>>0,oe=(~oe>>>0)+1,4294967295<oe&&(oe=0,O++,4294967295<O&&(O=0))),ee=oe,ne=O}h("jspb.utils.splitInt64",ye,void 0);function me(O){var j=0>O;O=2*Math.abs(O),ue(O),O=ee;var oe=ne;j&&(O==0?oe==0?oe=O=4294967295:(oe--,O=4294967295):O--),ee=O,ne=oe}h("jspb.utils.splitZigzag64",me,void 0);function pe(O){var j=0>O?1:0;if(O=j?-O:O,O===0)0<1/O?ee=ne=0:(ne=0,ee=2147483648);else if(isNaN(O))ne=0,ee=2147483647;else if(34028234663852886e22<O)ne=0,ee=(j<<31|2139095040)>>>0;else if(11754943508222875e-54>O)O=Math.round(O/Math.pow(2,-149)),ne=0,ee=(j<<31|O)>>>0;else{var oe=Math.floor(Math.log(O)/Math.LN2);O*=Math.pow(2,-oe),O=Math.round(8388608*O),16777216<=O&&++oe,ne=0,ee=(j<<31|oe+127<<23|O&8388607)>>>0}}h("jspb.utils.splitFloat32",pe,void 0);function he(O){var j=0>O?1:0;if(O=j?-O:O,O===0)ne=0<1/O?0:2147483648,ee=0;else if(isNaN(O))ne=2147483647,ee=4294967295;else if(17976931348623157e292<O)ne=(j<<31|2146435072)>>>0,ee=0;else if(22250738585072014e-324>O)O/=Math.pow(2,-1074),ne=(j<<31|O/4294967296)>>>0,ee=O>>>0;else{var oe=O,Ae=0;if(2<=oe)for(;2<=oe&&1023>Ae;)Ae++,oe/=2;else for(;1>oe&&-1022<Ae;)oe*=2,Ae--;O*=Math.pow(2,-Ae),ne=(j<<31|Ae+1023<<20|1048576*O&1048575)>>>0,ee=4503599627370496*O>>>0}}h("jspb.utils.splitFloat64",he,void 0);function _e(O){var j=O.charCodeAt(4),oe=O.charCodeAt(5),Ae=O.charCodeAt(6),Ge=O.charCodeAt(7);ee=O.charCodeAt(0)+(O.charCodeAt(1)<<8)+(O.charCodeAt(2)<<16)+(O.charCodeAt(3)<<24)>>>0,ne=j+(oe<<8)+(Ae<<16)+(Ge<<24)>>>0}h("jspb.utils.splitHash64",_e,void 0);function le(O,j){return 4294967296*j+(O>>>0)}h("jspb.utils.joinUint64",le,void 0);function xe(O,j){var oe=j&2147483648;return oe&&(O=~O+1>>>0,j=~j>>>0,O==0&&(j=j+1>>>0)),O=le(O,j),oe?-O:O}h("jspb.utils.joinInt64",xe,void 0);function we(O,j,oe){var Ae=j>>31;return oe(O<<1^Ae,(j<<1|O>>>31)^Ae)}h("jspb.utils.toZigzag64",we,void 0);function De(O,j){return Fe(O,j,xe)}h("jspb.utils.joinZigzag64",De,void 0);function Fe(O,j,oe){var Ae=-(O&1);return oe((O>>>1|j<<31)^Ae,j>>>1^Ae)}h("jspb.utils.fromZigzag64",Fe,void 0);function Ce(O){var j=2*(O>>31)+1,oe=O>>>23&255;return O&=8388607,oe==255?O?NaN:1/0*j:oe==0?j*Math.pow(2,-149)*O:j*Math.pow(2,oe-150)*(O+Math.pow(2,23))}h("jspb.utils.joinFloat32",Ce,void 0);function Te(O,j){var oe=2*(j>>31)+1,Ae=j>>>20&2047;return O=4294967296*(j&1048575)+O,Ae==2047?O?NaN:1/0*oe:Ae==0?oe*Math.pow(2,-1074)*O:oe*Math.pow(2,Ae-1075)*(O+4503599627370496)}h("jspb.utils.joinFloat64",Te,void 0);function ke(O,j){return String.fromCharCode(O>>>0&255,O>>>8&255,O>>>16&255,O>>>24&255,j>>>0&255,j>>>8&255,j>>>16&255,j>>>24&255)}h("jspb.utils.joinHash64",ke,void 0),h("jspb.utils.DIGITS","0123456789abcdef".split(""),void 0);function Pe(O,j){function oe(Ge,ft){return Ge=Ge?String(Ge):"",ft?"0000000".slice(Ge.length)+Ge:Ge}if(2097151>=j)return""+le(O,j);var Ae=(O>>>24|j<<8)>>>0&16777215;return j=j>>16&65535,O=(O&16777215)+6777216*Ae+6710656*j,Ae+=8147497*j,j*=2,1e7<=O&&(Ae+=Math.floor(O/1e7),O%=1e7),1e7<=Ae&&(j+=Math.floor(Ae/1e7),Ae%=1e7),oe(j,0)+oe(Ae,j)+oe(O,1)}h("jspb.utils.joinUnsignedDecimalString",Pe,void 0);function Ne(O,j){var oe=j&2147483648;return oe&&(O=~O+1>>>0,j=~j+(O==0?1:0)>>>0),O=Pe(O,j),oe?"-"+O:O}h("jspb.utils.joinSignedDecimalString",Ne,void 0);function We(O,j){_e(O),O=ee;var oe=ne;return j?Ne(O,oe):Pe(O,oe)}h("jspb.utils.hash64ToDecimalString",We,void 0),h("jspb.utils.hash64ArrayToDecimalStrings",function(O,j){for(var oe=Array(O.length),Ae=0;Ae<O.length;Ae++)oe[Ae]=We(O[Ae],j);return oe},void 0);function Q(O){function j(Jt,on){for(var Qn=0;8>Qn&&(Jt!==1||0<on);Qn++)on=Jt*Ge[Qn]+on,Ge[Qn]=on&255,on>>>=8}function oe(){for(var Jt=0;8>Jt;Jt++)Ge[Jt]=~Ge[Jt]&255}E(0<O.length);var Ae=!1;O[0]==="-"&&(Ae=!0,O=O.slice(1));for(var Ge=[0,0,0,0,0,0,0,0],ft=0;ft<O.length;ft++)j(10,O.charCodeAt(ft)-48);return Ae&&(oe(),j(1,1)),q(Ge)}h("jspb.utils.decimalStringToHash64",Q,void 0),h("jspb.utils.splitDecimalString",function(O){_e(Q(O))},void 0);function K(O){return String.fromCharCode(10>O?48+O:87+O)}function J(O){return 97<=O?O-97+10:O-48}h("jspb.utils.hash64ToHexString",function(O){var j=Array(18);j[0]="0",j[1]="x";for(var oe=0;8>oe;oe++){var Ae=O.charCodeAt(7-oe);j[2*oe+2]=K(Ae>>4),j[2*oe+3]=K(Ae&15)}return j.join("")},void 0),h("jspb.utils.hexStringToHash64",function(O){O=O.toLowerCase(),E(O.length==18),E(O[0]=="0"),E(O[1]=="x");for(var j="",oe=0;8>oe;oe++)j=String.fromCharCode(16*J(O.charCodeAt(2*oe+2))+J(O.charCodeAt(2*oe+3)))+j;return j},void 0),h("jspb.utils.hash64ToNumber",function(O,j){_e(O),O=ee;var oe=ne;return j?xe(O,oe):le(O,oe)},void 0),h("jspb.utils.numberToHash64",function(O){return ye(O),ke(ee,ne)},void 0),h("jspb.utils.countVarints",function(O,j,oe){for(var Ae=0,Ge=j;Ge<oe;Ge++)Ae+=O[Ge]>>7;return oe-j-Ae},void 0),h("jspb.utils.countVarintFields",function(O,j,oe,Ae){var Ge=0;if(Ae*=8,128>Ae)for(;j<oe&&O[j++]==Ae;)for(Ge++;;){var ft=O[j++];if(!(ft&128))break}else for(;j<oe;){for(ft=Ae;128<ft;){if(O[j]!=(ft&127|128))return Ge;j++,ft>>=7}if(O[j++]!=ft)break;for(Ge++;ft=O[j++],(ft&128)!=0;);}return Ge},void 0);function be(O,j,oe,Ae,Ge){var ft=0;if(128>Ae)for(;j<oe&&O[j++]==Ae;)ft++,j+=Ge;else for(;j<oe;){for(var Jt=Ae;128<Jt;){if(O[j++]!=(Jt&127|128))return ft;Jt>>=7}if(O[j++]!=Jt)break;ft++,j+=Ge}return ft}h("jspb.utils.countFixed32Fields",function(O,j,oe,Ae){return be(O,j,oe,8*Ae+5,4)},void 0),h("jspb.utils.countFixed64Fields",function(O,j,oe,Ae){return be(O,j,oe,8*Ae+1,8)},void 0),h("jspb.utils.countDelimitedFields",function(O,j,oe,Ae){var Ge=0;for(Ae=8*Ae+2;j<oe;){for(var ft=Ae;128<ft;){if(O[j++]!=(ft&127|128))return Ge;ft>>=7}if(O[j++]!=ft)break;Ge++;for(var Jt=0,on=1;ft=O[j++],Jt+=(ft&127)*on,on*=128,(ft&128)!=0;);j+=Jt}return Ge},void 0),h("jspb.utils.debugBytesToTextFormat",function(O){var j='"';if(O){O=Oe(O);for(var oe=0;oe<O.length;oe++)j+="\\x",16>O[oe]&&(j+="0"),j+=O[oe].toString(16)}return j+'"'},void 0),h("jspb.utils.debugScalarToTextFormat",function(O){if(typeof O=="string"){O=String(O);for(var j=['"'],oe=0;oe<O.length;oe++){var Ae=O.charAt(oe),Ge=Ae.charCodeAt(0),ft=oe+1,Jt;(Jt=Z[Ae])||(31<Ge&&127>Ge||(Ge=Ae,Ge in N?Ae=N[Ge]:Ge in Z?Ae=N[Ge]=Z[Ge]:(Jt=Ge.charCodeAt(0),31<Jt&&127>Jt?Ae=Ge:(256>Jt?(Ae="\\x",(16>Jt||256<Jt)&&(Ae+="0")):(Ae="\\u",4096>Jt&&(Ae+="0")),Ae+=Jt.toString(16).toUpperCase()),Ae=N[Ge]=Ae)),Jt=Ae),j[ft]=Jt}j.push('"'),O=j.join("")}else O=O.toString();return O},void 0),h("jspb.utils.stringToByteArray",function(O){for(var j=new Uint8Array(O.length),oe=0;oe<O.length;oe++){var Ae=O.charCodeAt(oe);if(255<Ae)throw Error("Conversion error: string contains codepoint outside of byte range");j[oe]=Ae}return j},void 0);function Oe(O){return O.constructor===Uint8Array?O:O.constructor===ArrayBuffer?new Uint8Array(O):O.constructor===Array?new Uint8Array(O):O.constructor===String?ie(O):O instanceof Uint8Array?new Uint8Array(O.buffer,O.byteOffset,O.byteLength):(P("Type not convertible to Uint8Array."),new Uint8Array(0))}h("jspb.utils.byteSourceToUint8Array",Oe,void 0);function Se(O,j,oe){this.b=null,this.a=this.c=this.h=0,this.v=!1,O&&this.H(O,j,oe)}h("jspb.BinaryDecoder",Se,void 0);var Ke=[];Se.getInstanceCacheLength=function(){return Ke.length};function tt(O,j,oe){if(Ke.length){var Ae=Ke.pop();return O&&Ae.H(O,j,oe),Ae}return new Se(O,j,oe)}Se.alloc=tt,Se.prototype.Ca=function(){this.clear(),100>Ke.length&&Ke.push(this)},Se.prototype.free=Se.prototype.Ca,Se.prototype.clone=function(){return tt(this.b,this.h,this.c-this.h)},Se.prototype.clone=Se.prototype.clone,Se.prototype.clear=function(){this.b=null,this.a=this.c=this.h=0,this.v=!1},Se.prototype.clear=Se.prototype.clear,Se.prototype.Y=function(){return this.b},Se.prototype.getBuffer=Se.prototype.Y,Se.prototype.H=function(O,j,oe){this.b=Oe(O),this.h=j!==void 0?j:0,this.c=oe!==void 0?this.h+oe:this.b.length,this.a=this.h},Se.prototype.setBlock=Se.prototype.H,Se.prototype.Db=function(){return this.c},Se.prototype.getEnd=Se.prototype.Db,Se.prototype.setEnd=function(O){this.c=O},Se.prototype.setEnd=Se.prototype.setEnd,Se.prototype.reset=function(){this.a=this.h},Se.prototype.reset=Se.prototype.reset,Se.prototype.B=function(){return this.a},Se.prototype.getCursor=Se.prototype.B,Se.prototype.Ma=function(O){this.a=O},Se.prototype.setCursor=Se.prototype.Ma,Se.prototype.advance=function(O){this.a+=O,E(this.a<=this.c)},Se.prototype.advance=Se.prototype.advance,Se.prototype.ya=function(){return this.a==this.c},Se.prototype.atEnd=Se.prototype.ya,Se.prototype.Qb=function(){return this.a>this.c},Se.prototype.pastEnd=Se.prototype.Qb,Se.prototype.getError=function(){return this.v||0>this.a||this.a>this.c},Se.prototype.getError=Se.prototype.getError,Se.prototype.w=function(O){for(var j=128,oe=0,Ae=0,Ge=0;4>Ge&&128<=j;Ge++)j=this.b[this.a++],oe|=(j&127)<<7*Ge;if(128<=j&&(j=this.b[this.a++],oe|=(j&127)<<28,Ae|=(j&127)>>4),128<=j)for(Ge=0;5>Ge&&128<=j;Ge++)j=this.b[this.a++],Ae|=(j&127)<<7*Ge+3;if(128>j)return O(oe>>>0,Ae>>>0);P("Failed to read varint, encoding is invalid."),this.v=!0},Se.prototype.readSplitVarint64=Se.prototype.w,Se.prototype.ea=function(O){return this.w(function(j,oe){return Fe(j,oe,O)})},Se.prototype.readSplitZigzagVarint64=Se.prototype.ea,Se.prototype.ta=function(O){var j=this.b,oe=this.a;this.a+=8;for(var Ae=0,Ge=0,ft=oe+7;ft>=oe;ft--)Ae=Ae<<8|j[ft],Ge=Ge<<8|j[ft+4];return O(Ae,Ge)},Se.prototype.readSplitFixed64=Se.prototype.ta,Se.prototype.kb=function(){for(;this.b[this.a]&128;)this.a++;this.a++},Se.prototype.skipVarint=Se.prototype.kb,Se.prototype.mb=function(O){for(;128<O;)this.a--,O>>>=7;this.a--},Se.prototype.unskipVarint=Se.prototype.mb,Se.prototype.o=function(){var O=this.b,j=O[this.a],oe=j&127;return 128>j?(this.a+=1,E(this.a<=this.c),oe):(j=O[this.a+1],oe|=(j&127)<<7,128>j?(this.a+=2,E(this.a<=this.c),oe):(j=O[this.a+2],oe|=(j&127)<<14,128>j?(this.a+=3,E(this.a<=this.c),oe):(j=O[this.a+3],oe|=(j&127)<<21,128>j?(this.a+=4,E(this.a<=this.c),oe):(j=O[this.a+4],oe|=(j&15)<<28,128>j?(this.a+=5,E(this.a<=this.c),oe>>>0):(this.a+=5,128<=O[this.a++]&&128<=O[this.a++]&&128<=O[this.a++]&&128<=O[this.a++]&&128<=O[this.a++]&&E(!1),E(this.a<=this.c),oe)))))},Se.prototype.readUnsignedVarint32=Se.prototype.o,Se.prototype.da=function(){return~~this.o()},Se.prototype.readSignedVarint32=Se.prototype.da,Se.prototype.O=function(){return this.o().toString()},Se.prototype.Ea=function(){return this.da().toString()},Se.prototype.readSignedVarint32String=Se.prototype.Ea,Se.prototype.Ia=function(){var O=this.o();return O>>>1^-(O&1)},Se.prototype.readZigzagVarint32=Se.prototype.Ia,Se.prototype.Ga=function(){return this.w(le)},Se.prototype.readUnsignedVarint64=Se.prototype.Ga,Se.prototype.Ha=function(){return this.w(Pe)},Se.prototype.readUnsignedVarint64String=Se.prototype.Ha,Se.prototype.sa=function(){return this.w(xe)},Se.prototype.readSignedVarint64=Se.prototype.sa,Se.prototype.Fa=function(){return this.w(Ne)},Se.prototype.readSignedVarint64String=Se.prototype.Fa,Se.prototype.Ja=function(){return this.w(De)},Se.prototype.readZigzagVarint64=Se.prototype.Ja,Se.prototype.fb=function(){return this.ea(ke)},Se.prototype.readZigzagVarintHash64=Se.prototype.fb,Se.prototype.Ka=function(){return this.ea(Ne)},Se.prototype.readZigzagVarint64String=Se.prototype.Ka,Se.prototype.Gc=function(){var O=this.b[this.a];return this.a+=1,E(this.a<=this.c),O},Se.prototype.readUint8=Se.prototype.Gc,Se.prototype.Ec=function(){var O=this.b[this.a],j=this.b[this.a+1];return this.a+=2,E(this.a<=this.c),O<<0|j<<8},Se.prototype.readUint16=Se.prototype.Ec,Se.prototype.m=function(){var O=this.b[this.a],j=this.b[this.a+1],oe=this.b[this.a+2],Ae=this.b[this.a+3];return this.a+=4,E(this.a<=this.c),(O<<0|j<<8|oe<<16|Ae<<24)>>>0},Se.prototype.readUint32=Se.prototype.m,Se.prototype.ga=function(){var O=this.m(),j=this.m();return le(O,j)},Se.prototype.readUint64=Se.prototype.ga,Se.prototype.ha=function(){var O=this.m(),j=this.m();return Pe(O,j)},Se.prototype.readUint64String=Se.prototype.ha,Se.prototype.Xb=function(){var O=this.b[this.a];return this.a+=1,E(this.a<=this.c),O<<24>>24},Se.prototype.readInt8=Se.prototype.Xb,Se.prototype.Vb=function(){var O=this.b[this.a],j=this.b[this.a+1];return this.a+=2,E(this.a<=this.c),(O<<0|j<<8)<<16>>16},Se.prototype.readInt16=Se.prototype.Vb,Se.prototype.P=function(){var O=this.b[this.a],j=this.b[this.a+1],oe=this.b[this.a+2],Ae=this.b[this.a+3];return this.a+=4,E(this.a<=this.c),O<<0|j<<8|oe<<16|Ae<<24},Se.prototype.readInt32=Se.prototype.P,Se.prototype.ba=function(){var O=this.m(),j=this.m();return xe(O,j)},Se.prototype.readInt64=Se.prototype.ba,Se.prototype.ca=function(){var O=this.m(),j=this.m();return Ne(O,j)},Se.prototype.readInt64String=Se.prototype.ca,Se.prototype.aa=function(){var O=this.m();return Ce(O)},Se.prototype.readFloat=Se.prototype.aa,Se.prototype.Z=function(){var O=this.m(),j=this.m();return Te(O,j)},Se.prototype.readDouble=Se.prototype.Z,Se.prototype.pa=function(){return!!this.b[this.a++]},Se.prototype.readBool=Se.prototype.pa,Se.prototype.ra=function(){return this.da()},Se.prototype.readEnum=Se.prototype.ra,Se.prototype.fa=function(O){var j=this.b,oe=this.a;O=oe+O;for(var Ae=[],Ge="";oe<O;){var ft=j[oe++];if(128>ft)Ae.push(ft);else{if(192>ft)continue;if(224>ft){var Jt=j[oe++];Ae.push((ft&31)<<6|Jt&63)}else if(240>ft){Jt=j[oe++];var on=j[oe++];Ae.push((ft&15)<<12|(Jt&63)<<6|on&63)}else if(248>ft){Jt=j[oe++],on=j[oe++];var Qn=j[oe++];ft=(ft&7)<<18|(Jt&63)<<12|(on&63)<<6|Qn&63,ft-=65536,Ae.push((ft>>10&1023)+55296,(ft&1023)+56320)}}8192<=Ae.length&&(Ge+=String.fromCharCode.apply(null,Ae),Ae.length=0)}return Ge+=q(Ae),this.a=oe,Ge},Se.prototype.readString=Se.prototype.fa,Se.prototype.Dc=function(){var O=this.o();return this.fa(O)},Se.prototype.readStringWithLength=Se.prototype.Dc,Se.prototype.qa=function(O){if(0>O||this.a+O>this.b.length)return this.v=!0,P("Invalid byte length!"),new Uint8Array(0);var j=this.b.subarray(this.a,this.a+O);return this.a+=O,E(this.a<=this.c),j},Se.prototype.readBytes=Se.prototype.qa,Se.prototype.ia=function(){return this.w(ke)},Se.prototype.readVarintHash64=Se.prototype.ia,Se.prototype.$=function(){var O=this.b,j=this.a,oe=O[j],Ae=O[j+1],Ge=O[j+2],ft=O[j+3],Jt=O[j+4],on=O[j+5],Qn=O[j+6];return O=O[j+7],this.a+=8,String.fromCharCode(oe,Ae,Ge,ft,Jt,on,Qn,O)},Se.prototype.readFixedHash64=Se.prototype.$;function se(O,j,oe){this.a=tt(O,j,oe),this.O=this.a.B(),this.b=this.c=-1,this.h=!1,this.v=null}h("jspb.BinaryReader",se,void 0);var ze=[];se.clearInstanceCache=function(){ze=[]},se.getInstanceCacheLength=function(){return ze.length};function Ye(O,j,oe){if(ze.length){var Ae=ze.pop();return O&&Ae.a.H(O,j,oe),Ae}return new se(O,j,oe)}se.alloc=Ye,se.prototype.zb=Ye,se.prototype.alloc=se.prototype.zb,se.prototype.Ca=function(){this.a.clear(),this.b=this.c=-1,this.h=!1,this.v=null,100>ze.length&&ze.push(this)},se.prototype.free=se.prototype.Ca,se.prototype.Fb=function(){return this.O},se.prototype.getFieldCursor=se.prototype.Fb,se.prototype.B=function(){return this.a.B()},se.prototype.getCursor=se.prototype.B,se.prototype.Y=function(){return this.a.Y()},se.prototype.getBuffer=se.prototype.Y,se.prototype.Hb=function(){return this.c},se.prototype.getFieldNumber=se.prototype.Hb,se.prototype.Lb=function(){return this.b},se.prototype.getWireType=se.prototype.Lb,se.prototype.Mb=function(){return this.b==2},se.prototype.isDelimited=se.prototype.Mb,se.prototype.bb=function(){return this.b==4},se.prototype.isEndGroup=se.prototype.bb,se.prototype.getError=function(){return this.h||this.a.getError()},se.prototype.getError=se.prototype.getError,se.prototype.H=function(O,j,oe){this.a.H(O,j,oe),this.b=this.c=-1},se.prototype.setBlock=se.prototype.H,se.prototype.reset=function(){this.a.reset(),this.b=this.c=-1},se.prototype.reset=se.prototype.reset,se.prototype.advance=function(O){this.a.advance(O)},se.prototype.advance=se.prototype.advance,se.prototype.oa=function(){if(this.a.ya())return!1;if(this.getError())return P("Decoder hit an error"),!1;this.O=this.a.B();var O=this.a.o(),j=O>>>3;return O&=7,O!=0&&O!=5&&O!=1&&O!=2&&O!=3&&O!=4?(P("Invalid wire type: %s (at position %s)",O,this.O),this.h=!0,!1):(this.c=j,this.b=O,!0)},se.prototype.nextField=se.prototype.oa,se.prototype.Oa=function(){this.a.mb(this.c<<3|this.b)},se.prototype.unskipHeader=se.prototype.Oa,se.prototype.Lc=function(){var O=this.c;for(this.Oa();this.oa()&&this.c==O;)this.C();this.a.ya()||this.Oa()},se.prototype.skipMatchingFields=se.prototype.Lc,se.prototype.lb=function(){this.b!=0?(P("Invalid wire type for skipVarintField"),this.C()):this.a.kb()},se.prototype.skipVarintField=se.prototype.lb,se.prototype.gb=function(){if(this.b!=2)P("Invalid wire type for skipDelimitedField"),this.C();else{var O=this.a.o();this.a.advance(O)}},se.prototype.skipDelimitedField=se.prototype.gb,se.prototype.hb=function(){this.b!=5?(P("Invalid wire type for skipFixed32Field"),this.C()):this.a.advance(4)},se.prototype.skipFixed32Field=se.prototype.hb,se.prototype.ib=function(){this.b!=1?(P("Invalid wire type for skipFixed64Field"),this.C()):this.a.advance(8)},se.prototype.skipFixed64Field=se.prototype.ib,se.prototype.jb=function(){var O=this.c;do{if(!this.oa()){P("Unmatched start-group tag: stream EOF"),this.h=!0;break}if(this.b==4){this.c!=O&&(P("Unmatched end-group tag"),this.h=!0);break}this.C()}while(!0)},se.prototype.skipGroup=se.prototype.jb,se.prototype.C=function(){switch(this.b){case 0:this.lb();break;case 1:this.ib();break;case 2:this.gb();break;case 5:this.hb();break;case 3:this.jb();break;default:P("Invalid wire encoding for field.")}},se.prototype.skipField=se.prototype.C,se.prototype.Hc=function(O,j){this.v===null&&(this.v={}),E(!this.v[O]),this.v[O]=j},se.prototype.registerReadCallback=se.prototype.Hc,se.prototype.Ic=function(O){return E(this.v!==null),O=this.v[O],E(O),O(this)},se.prototype.runReadCallback=se.prototype.Ic,se.prototype.Yb=function(O,j){E(this.b==2);var oe=this.a.c,Ae=this.a.o();Ae=this.a.B()+Ae,this.a.setEnd(Ae),j(O,this),this.a.Ma(Ae),this.a.setEnd(oe)},se.prototype.readMessage=se.prototype.Yb,se.prototype.Ub=function(O,j,oe){E(this.b==3),E(this.c==O),oe(j,this),this.h||this.b==4||(P("Group submessage did not end with an END_GROUP tag"),this.h=!0)},se.prototype.readGroup=se.prototype.Ub,se.prototype.Gb=function(){E(this.b==2);var O=this.a.o(),j=this.a.B(),oe=j+O;return O=tt(this.a.Y(),j,O),this.a.Ma(oe),O},se.prototype.getFieldDecoder=se.prototype.Gb,se.prototype.P=function(){return E(this.b==0),this.a.da()},se.prototype.readInt32=se.prototype.P,se.prototype.Wb=function(){return E(this.b==0),this.a.Ea()},se.prototype.readInt32String=se.prototype.Wb,se.prototype.ba=function(){return E(this.b==0),this.a.sa()},se.prototype.readInt64=se.prototype.ba,se.prototype.ca=function(){return E(this.b==0),this.a.Fa()},se.prototype.readInt64String=se.prototype.ca,se.prototype.m=function(){return E(this.b==0),this.a.o()},se.prototype.readUint32=se.prototype.m,se.prototype.Fc=function(){return E(this.b==0),this.a.O()},se.prototype.readUint32String=se.prototype.Fc,se.prototype.ga=function(){return E(this.b==0),this.a.Ga()},se.prototype.readUint64=se.prototype.ga,se.prototype.ha=function(){return E(this.b==0),this.a.Ha()},se.prototype.readUint64String=se.prototype.ha,se.prototype.zc=function(){return E(this.b==0),this.a.Ia()},se.prototype.readSint32=se.prototype.zc,se.prototype.Ac=function(){return E(this.b==0),this.a.Ja()},se.prototype.readSint64=se.prototype.Ac,se.prototype.Bc=function(){return E(this.b==0),this.a.Ka()},se.prototype.readSint64String=se.prototype.Bc,se.prototype.Rb=function(){return E(this.b==5),this.a.m()},se.prototype.readFixed32=se.prototype.Rb,se.prototype.Sb=function(){return E(this.b==1),this.a.ga()},se.prototype.readFixed64=se.prototype.Sb,se.prototype.Tb=function(){return E(this.b==1),this.a.ha()},se.prototype.readFixed64String=se.prototype.Tb,se.prototype.vc=function(){return E(this.b==5),this.a.P()},se.prototype.readSfixed32=se.prototype.vc,se.prototype.wc=function(){return E(this.b==5),this.a.P().toString()},se.prototype.readSfixed32String=se.prototype.wc,se.prototype.xc=function(){return E(this.b==1),this.a.ba()},se.prototype.readSfixed64=se.prototype.xc,se.prototype.yc=function(){return E(this.b==1),this.a.ca()},se.prototype.readSfixed64String=se.prototype.yc,se.prototype.aa=function(){return E(this.b==5),this.a.aa()},se.prototype.readFloat=se.prototype.aa,se.prototype.Z=function(){return E(this.b==1),this.a.Z()},se.prototype.readDouble=se.prototype.Z,se.prototype.pa=function(){return E(this.b==0),!!this.a.o()},se.prototype.readBool=se.prototype.pa,se.prototype.ra=function(){return E(this.b==0),this.a.sa()},se.prototype.readEnum=se.prototype.ra,se.prototype.fa=function(){E(this.b==2);var O=this.a.o();return this.a.fa(O)},se.prototype.readString=se.prototype.fa,se.prototype.qa=function(){E(this.b==2);var O=this.a.o();return this.a.qa(O)},se.prototype.readBytes=se.prototype.qa,se.prototype.ia=function(){return E(this.b==0),this.a.ia()},se.prototype.readVarintHash64=se.prototype.ia,se.prototype.Cc=function(){return E(this.b==0),this.a.fb()},se.prototype.readSintHash64=se.prototype.Cc,se.prototype.w=function(O){return E(this.b==0),this.a.w(O)},se.prototype.readSplitVarint64=se.prototype.w,se.prototype.ea=function(O){return E(this.b==0),this.a.w(function(j,oe){return Fe(j,oe,O)})},se.prototype.readSplitZigzagVarint64=se.prototype.ea,se.prototype.$=function(){return E(this.b==1),this.a.$()},se.prototype.readFixedHash64=se.prototype.$,se.prototype.ta=function(O){return E(this.b==1),this.a.ta(O)},se.prototype.readSplitFixed64=se.prototype.ta;function Ue(O,j){E(O.b==2);var oe=O.a.o();oe=O.a.B()+oe;for(var Ae=[];O.a.B()<oe;)Ae.push(j.call(O.a));return Ae}se.prototype.gc=function(){return Ue(this,this.a.da)},se.prototype.readPackedInt32=se.prototype.gc,se.prototype.hc=function(){return Ue(this,this.a.Ea)},se.prototype.readPackedInt32String=se.prototype.hc,se.prototype.ic=function(){return Ue(this,this.a.sa)},se.prototype.readPackedInt64=se.prototype.ic,se.prototype.jc=function(){return Ue(this,this.a.Fa)},se.prototype.readPackedInt64String=se.prototype.jc,se.prototype.qc=function(){return Ue(this,this.a.o)},se.prototype.readPackedUint32=se.prototype.qc,se.prototype.rc=function(){return Ue(this,this.a.O)},se.prototype.readPackedUint32String=se.prototype.rc,se.prototype.sc=function(){return Ue(this,this.a.Ga)},se.prototype.readPackedUint64=se.prototype.sc,se.prototype.tc=function(){return Ue(this,this.a.Ha)},se.prototype.readPackedUint64String=se.prototype.tc,se.prototype.nc=function(){return Ue(this,this.a.Ia)},se.prototype.readPackedSint32=se.prototype.nc,se.prototype.oc=function(){return Ue(this,this.a.Ja)},se.prototype.readPackedSint64=se.prototype.oc,se.prototype.pc=function(){return Ue(this,this.a.Ka)},se.prototype.readPackedSint64String=se.prototype.pc,se.prototype.bc=function(){return Ue(this,this.a.m)},se.prototype.readPackedFixed32=se.prototype.bc,se.prototype.cc=function(){return Ue(this,this.a.ga)},se.prototype.readPackedFixed64=se.prototype.cc,se.prototype.dc=function(){return Ue(this,this.a.ha)},se.prototype.readPackedFixed64String=se.prototype.dc,se.prototype.kc=function(){return Ue(this,this.a.P)},se.prototype.readPackedSfixed32=se.prototype.kc,se.prototype.lc=function(){return Ue(this,this.a.ba)},se.prototype.readPackedSfixed64=se.prototype.lc,se.prototype.mc=function(){return Ue(this,this.a.ca)},se.prototype.readPackedSfixed64String=se.prototype.mc,se.prototype.fc=function(){return Ue(this,this.a.aa)},se.prototype.readPackedFloat=se.prototype.fc,se.prototype.$b=function(){return Ue(this,this.a.Z)},se.prototype.readPackedDouble=se.prototype.$b,se.prototype.Zb=function(){return Ue(this,this.a.pa)},se.prototype.readPackedBool=se.prototype.Zb,se.prototype.ac=function(){return Ue(this,this.a.ra)},se.prototype.readPackedEnum=se.prototype.ac,se.prototype.uc=function(){return Ue(this,this.a.ia)},se.prototype.readPackedVarintHash64=se.prototype.uc,se.prototype.ec=function(){return Ue(this,this.a.$)},se.prototype.readPackedFixedHash64=se.prototype.ec;function Je(O,j,oe,Ae,Ge){this.ma=O,this.Ba=j,this.la=oe,this.Na=Ae,this.na=Ge}h("jspb.ExtensionFieldInfo",Je,void 0);function Ze(O,j,oe,Ae,Ge,ft){this.Za=O,this.za=j,this.Aa=oe,this.Wa=Ae,this.Ab=Ge,this.Nb=ft}h("jspb.ExtensionFieldBinaryInfo",Ze,void 0),Je.prototype.F=function(){return!!this.la},Je.prototype.isMessageType=Je.prototype.F;function rt(){}h("jspb.Message",rt,void 0),rt.GENERATE_TO_OBJECT=!0,rt.GENERATE_FROM_OBJECT=!0;var qt=typeof Uint8Array=="function";rt.prototype.Ib=function(){return this.b},rt.prototype.getJsPbMessageId=rt.prototype.Ib,rt.initialize=function(O,j,oe,Ae,Ge,ft){O.f=null,j||(j=oe?[oe]:[]),O.b=oe?String(oe):void 0,O.D=oe===0?-1:0,O.u=j;e:{if(oe=O.u.length,j=-1,oe&&(j=oe-1,oe=O.u[j],!(oe===null||typeof oe!="object"||Array.isArray(oe)||qt&&oe instanceof Uint8Array))){O.G=j-O.D,O.i=oe;break e}-1<Ae?(O.G=Math.max(Ae,j+1-O.D),O.i=null):O.G=Number.MAX_VALUE}if(O.a={},Ge)for(Ae=0;Ae<Ge.length;Ae++)j=Ge[Ae],j<O.G?(j+=O.D,O.u[j]=O.u[j]||St):(Ot(O),O.i[j]=O.i[j]||St);if(ft&&ft.length)for(Ae=0;Ae<ft.length;Ae++)Lt(O,ft[Ae])};var St=Object.freeze?Object.freeze([]):[];function Ot(O){var j=O.G+O.D;O.u[j]||(O.i=O.u[j]={})}function Bt(O,j,oe){for(var Ae=[],Ge=0;Ge<O.length;Ge++)Ae[Ge]=j.call(O[Ge],oe,O[Ge]);return Ae}rt.toObjectList=Bt,rt.toObjectExtension=function(O,j,oe,Ae,Ge){for(var ft in oe){var Jt=oe[ft],on=Ae.call(O,Jt);if(on!=null){for(var Qn in Jt.Ba)if(Jt.Ba.hasOwnProperty(Qn))break;j[Qn]=Jt.Na?Jt.na?Bt(on,Jt.Na,Ge):Jt.Na(Ge,on):on}}},rt.serializeBinaryExtensions=function(O,j,oe,Ae){for(var Ge in oe){var ft=oe[Ge],Jt=ft.Za;if(!ft.Aa)throw Error("Message extension present that was generated without binary serialization support");var on=Ae.call(O,Jt);if(on!=null)if(Jt.F())if(ft.Wa)ft.Aa.call(j,Jt.ma,on,ft.Wa);else throw Error("Message extension present holding submessage without binary support enabled, and message is being serialized to binary format");else ft.Aa.call(j,Jt.ma,on)}},rt.readBinaryExtension=function(O,j,oe,Ae,Ge){var ft=oe[j.c];if(ft){if(oe=ft.Za,!ft.za)throw Error("Deserializing extension whose generated code does not support binary format");if(oe.F()){var Jt=new oe.la;ft.za.call(j,Jt,ft.Ab)}else Jt=ft.za.call(j);oe.na&&!ft.Nb?(j=Ae.call(O,oe))?j.push(Jt):Ge.call(O,oe,[Jt]):Ge.call(O,oe,Jt)}else j.C()};function Dt(O,j){if(j<O.G){j+=O.D;var oe=O.u[j];return oe===St?O.u[j]=[]:oe}if(O.i)return oe=O.i[j],oe===St?O.i[j]=[]:oe}rt.getField=Dt,rt.getRepeatedField=function(O,j){return Dt(O,j)};function an(O,j){return O=Dt(O,j),O==null?O:+O}rt.getOptionalFloatingPointField=an;function Vt(O,j){return O=Dt(O,j),O==null?O:!!O}rt.getBooleanField=Vt,rt.getRepeatedFloatingPointField=function(O,j){var oe=Dt(O,j);if(O.a||(O.a={}),!O.a[j]){for(var Ae=0;Ae<oe.length;Ae++)oe[Ae]=+oe[Ae];O.a[j]=!0}return oe},rt.getRepeatedBooleanField=function(O,j){var oe=Dt(O,j);if(O.a||(O.a={}),!O.a[j]){for(var Ae=0;Ae<oe.length;Ae++)oe[Ae]=!!oe[Ae];O.a[j]=!0}return oe};function Kt(O){return O==null||typeof O=="string"?O:qt&&O instanceof Uint8Array?Y(O):(P("Cannot coerce to b64 string: "+p(O)),null)}rt.bytesAsB64=Kt;function Qt(O){return O==null||O instanceof Uint8Array?O:typeof O=="string"?ie(O):(P("Cannot coerce to Uint8Array: "+p(O)),null)}rt.bytesAsU8=Qt,rt.bytesListAsB64=function(O){return et(O),O.length&&typeof O[0]!="string"?_(O,Kt):O},rt.bytesListAsU8=function(O){return et(O),!O.length||O[0]instanceof Uint8Array?O:_(O,Qt)};function et(O){if(O&&1<O.length){var j=p(O[0]);C(O,function(oe){p(oe)!=j&&P("Inconsistent type in JSPB repeated field array. Got "+p(oe)+" expected "+j)})}}function ot(O,j,oe){return O=Dt(O,j),O??oe}rt.getFieldWithDefault=ot,rt.getBooleanFieldWithDefault=function(O,j,oe){return O=Vt(O,j),O??oe},rt.getFloatingPointFieldWithDefault=function(O,j,oe){return O=an(O,j),O??oe},rt.getFieldProto3=ot,rt.getMapField=function(O,j,oe,Ae){if(O.f||(O.f={}),j in O.f)return O.f[j];var Ge=Dt(O,j);if(!Ge){if(oe)return;Ge=[],Qe(O,j,Ge)}return O.f[j]=new A(Ge,Ae)};function Qe(O,j,oe){return D(O,rt),j<O.G?O.u[j+O.D]=oe:(Ot(O),O.i[j]=oe),O}rt.setField=Qe,rt.setProto3IntField=function(O,j,oe){return ct(O,j,oe,0)},rt.setProto3FloatField=function(O,j,oe){return ct(O,j,oe,0)},rt.setProto3BooleanField=function(O,j,oe){return ct(O,j,oe,!1)},rt.setProto3StringField=function(O,j,oe){return ct(O,j,oe,"")},rt.setProto3BytesField=function(O,j,oe){return ct(O,j,oe,"")},rt.setProto3EnumField=function(O,j,oe){return ct(O,j,oe,0)},rt.setProto3StringIntField=function(O,j,oe){return ct(O,j,oe,"0")};function ct(O,j,oe,Ae){return D(O,rt),oe!==Ae?Qe(O,j,oe):j<O.G?O.u[j+O.D]=null:(Ot(O),delete O.i[j]),O}rt.addToRepeatedField=function(O,j,oe,Ae){return D(O,rt),j=Dt(O,j),Ae!=null?j.splice(Ae,0,oe):j.push(oe),O};function Nt(O,j,oe,Ae){return D(O,rt),(oe=Lt(O,oe))&&oe!==j&&Ae!==void 0&&(O.f&&oe in O.f&&(O.f[oe]=void 0),Qe(O,oe,void 0)),Qe(O,j,Ae)}rt.setOneofField=Nt;function Lt(O,j){for(var oe,Ae,Ge=0;Ge<j.length;Ge++){var ft=j[Ge],Jt=Dt(O,ft);Jt!=null&&(oe=ft,Ae=Jt,Qe(O,ft,void 0))}return oe?(Qe(O,oe,Ae),oe):0}rt.computeOneofCase=Lt,rt.getWrapperField=function(O,j,oe,Ae){if(O.f||(O.f={}),!O.f[oe]){var Ge=Dt(O,oe);(Ae||Ge)&&(O.f[oe]=new j(Ge))}return O.f[oe]},rt.getRepeatedWrapperField=function(O,j,oe){return Zt(O,j,oe),j=O.f[oe],j==St&&(j=O.f[oe]=[]),j};function Zt(O,j,oe){if(O.f||(O.f={}),!O.f[oe]){for(var Ae=Dt(O,oe),Ge=[],ft=0;ft<Ae.length;ft++)Ge[ft]=new j(Ae[ft]);O.f[oe]=Ge}}rt.setWrapperField=function(O,j,oe){D(O,rt),O.f||(O.f={});var Ae=oe&&oe.g();return O.f[j]=oe,Qe(O,j,Ae)},rt.setOneofWrapperField=function(O,j,oe,Ae){D(O,rt),O.f||(O.f={});var Ge=Ae&&Ae.g();return O.f[j]=Ae,Nt(O,j,oe,Ge)},rt.setRepeatedWrapperField=function(O,j,oe){D(O,rt),O.f||(O.f={}),oe=oe||[];for(var Ae=[],Ge=0;Ge<oe.length;Ge++)Ae[Ge]=oe[Ge].g();return O.f[j]=oe,Qe(O,j,Ae)},rt.addToRepeatedWrapperField=function(O,j,oe,Ae,Ge){Zt(O,Ae,j);var ft=O.f[j];return ft||(ft=O.f[j]=[]),oe=oe||new Ae,O=Dt(O,j),Ge!=null?(ft.splice(Ge,0,oe),O.splice(Ge,0,oe.g())):(ft.push(oe),O.push(oe.g())),oe},rt.toMap=function(O,j,oe,Ae){for(var Ge={},ft=0;ft<O.length;ft++)Ge[j.call(O[ft])]=oe?oe.call(O[ft],Ae,O[ft]):O[ft];return Ge};function Wt(O){if(O.f)for(var j in O.f){var oe=O.f[j];if(Array.isArray(oe))for(var Ae=0;Ae<oe.length;Ae++)oe[Ae]&&oe[Ae].g();else oe&&oe.g()}}rt.prototype.g=function(){return Wt(this),this.u},rt.prototype.toArray=rt.prototype.g,rt.prototype.toString=function(){return Wt(this),this.u.toString()},rt.prototype.getExtension=function(O){if(this.i){this.f||(this.f={});var j=O.ma;if(O.na){if(O.F())return this.f[j]||(this.f[j]=_(this.i[j]||[],function(oe){return new O.la(oe)})),this.f[j]}else if(O.F())return!this.f[j]&&this.i[j]&&(this.f[j]=new O.la(this.i[j])),this.f[j];return this.i[j]}},rt.prototype.getExtension=rt.prototype.getExtension,rt.prototype.Kc=function(O,j){this.f||(this.f={}),Ot(this);var oe=O.ma;return O.na?(j=j||[],O.F()?(this.f[oe]=j,this.i[oe]=_(j,function(Ae){return Ae.g()})):this.i[oe]=j):O.F()?(this.f[oe]=j,this.i[oe]=j&&j.g()):this.i[oe]=j,this},rt.prototype.setExtension=rt.prototype.Kc,rt.difference=function(O,j){if(!(O instanceof j.constructor))throw Error("Messages have different types.");var oe=O.g();j=j.g();var Ae=[],Ge=0,ft=oe.length>j.length?oe.length:j.length;for(O.b&&(Ae[0]=O.b,Ge=1);Ge<ft;Ge++)$t(oe[Ge],j[Ge])||(Ae[Ge]=j[Ge]);return new O.constructor(Ae)},rt.equals=function(O,j){return O==j||!(!O||!j)&&O instanceof j.constructor&&$t(O.g(),j.g())};function At(O,j){O=O||{},j=j||{};var oe={},Ae;for(Ae in O)oe[Ae]=0;for(Ae in j)oe[Ae]=0;for(Ae in oe)if(!$t(O[Ae],j[Ae]))return!1;return!0}rt.compareExtensions=At;function $t(O,j){if(O==j)return!0;if(!m(O)||!m(j))return typeof O=="number"&&isNaN(O)||typeof j=="number"&&isNaN(j)?String(O)==String(j):!1;if(O.constructor!=j.constructor)return!1;if(qt&&O.constructor===Uint8Array){if(O.length!=j.length)return!1;for(var oe=0;oe<O.length;oe++)if(O[oe]!=j[oe])return!1;return!0}if(O.constructor===Array){var Ae=void 0,Ge=void 0,ft=Math.max(O.length,j.length);for(oe=0;oe<ft;oe++){var Jt=O[oe],on=j[oe];if(Jt&&Jt.constructor==Object&&(E(Ae===void 0),E(oe===O.length-1),Ae=Jt,Jt=void 0),on&&on.constructor==Object&&(E(Ge===void 0),E(oe===j.length-1),Ge=on,on=void 0),!$t(Jt,on))return!1}return Ae||Ge?(Ae=Ae||{},Ge=Ge||{},At(Ae,Ge)):!0}if(O.constructor===Object)return At(O,j);throw Error("Invalid type in JSPB array")}rt.compareFields=$t,rt.prototype.Bb=function(){return Gt(this)},rt.prototype.cloneMessage=rt.prototype.Bb,rt.prototype.clone=function(){return Gt(this)},rt.prototype.clone=rt.prototype.clone,rt.clone=function(O){return Gt(O)};function Gt(O){return new O.constructor(Ft(O.g()))}rt.copyInto=function(O,j){D(O,rt),D(j,rt),E(O.constructor==j.constructor,"Copy source and target message should have the same type."),O=Gt(O);for(var oe=j.g(),Ae=O.g(),Ge=oe.length=0;Ge<Ae.length;Ge++)oe[Ge]=Ae[Ge];j.f=O.f,j.i=O.i};function Ft(O){if(Array.isArray(O)){for(var j=Array(O.length),oe=0;oe<O.length;oe++){var Ae=O[oe];Ae!=null&&(j[oe]=typeof Ae=="object"?Ft(E(Ae)):Ae)}return j}if(qt&&O instanceof Uint8Array)return new Uint8Array(O);j={};for(oe in O)Ae=O[oe],Ae!=null&&(j[oe]=typeof Ae=="object"?Ft(E(Ae)):Ae);return j}rt.registerMessageType=function(O,j){j.we=O};var cn={dump:function(O){return D(O,rt,"jspb.Message instance expected"),E(O.getExtension,"Only unobfuscated and unoptimized compilation modes supported."),cn.X(O)}};h("jspb.debug.dump",cn.dump,void 0),cn.X=function(O){var j=p(O);if(j=="number"||j=="string"||j=="boolean"||j=="null"||j=="undefined"||typeof Uint8Array<"u"&&O instanceof Uint8Array)return O;if(j=="array")return M(O),_(O,cn.X);if(O instanceof A){var oe={};O=O.entries();for(var Ae=O.next();!Ae.done;Ae=O.next())oe[Ae.value[0]]=cn.X(Ae.value[1]);return oe}D(O,rt,"Only messages expected: "+O),j=O.constructor;var Ge={$name:j.name||j.displayName};for(on in j.prototype){var ft=/^get([A-Z]\w*)/.exec(on);if(ft&&on!="getExtension"&&on!="getJsPbMessageId"){var Jt="has"+ft[1];(!O[Jt]||O[Jt]())&&(Jt=O[on](),Ge[cn.$a(ft[1])]=cn.X(Jt))}}if(O.extensionObject_)return Ge.$extensions="Recursive dumping of extensions not supported in compiled code. Switch to uncompiled or dump extension object directly",Ge;for(Ae in j.extensions)if(/^\d+$/.test(Ae)){Jt=j.extensions[Ae];var on=O.getExtension(Jt);ft=void 0,Jt=Jt.Ba;var Qn=[],ni=0;for(ft in Jt)Qn[ni++]=ft;ft=Qn[0],on!=null&&(oe||(oe=Ge.$extensions={}),oe[cn.$a(ft)]=cn.X(on))}return Ge},cn.$a=function(O){return O.replace(/^[A-Z]/,function(j){return j.toLowerCase()})};function _t(){this.a=[]}h("jspb.BinaryEncoder",_t,void 0),_t.prototype.length=function(){return this.a.length},_t.prototype.length=_t.prototype.length,_t.prototype.end=function(){var O=this.a;return this.a=[],O},_t.prototype.end=_t.prototype.end,_t.prototype.l=function(O,j){for(E(O==Math.floor(O)),E(j==Math.floor(j)),E(0<=O&&4294967296>O),E(0<=j&&4294967296>j);0<j||127<O;)this.a.push(O&127|128),O=(O>>>7|j<<25)>>>0,j>>>=7;this.a.push(O)},_t.prototype.writeSplitVarint64=_t.prototype.l,_t.prototype.A=function(O,j){E(O==Math.floor(O)),E(j==Math.floor(j)),E(0<=O&&4294967296>O),E(0<=j&&4294967296>j),this.s(O),this.s(j)},_t.prototype.writeSplitFixed64=_t.prototype.A,_t.prototype.j=function(O){for(E(O==Math.floor(O)),E(0<=O&&4294967296>O);127<O;)this.a.push(O&127|128),O>>>=7;this.a.push(O)},_t.prototype.writeUnsignedVarint32=_t.prototype.j,_t.prototype.M=function(O){if(E(O==Math.floor(O)),E(-2147483648<=O&&2147483648>O),0<=O)this.j(O);else{for(var j=0;9>j;j++)this.a.push(O&127|128),O>>=7;this.a.push(1)}},_t.prototype.writeSignedVarint32=_t.prototype.M,_t.prototype.va=function(O){E(O==Math.floor(O)),E(0<=O&&18446744073709552e3>O),ye(O),this.l(ee,ne)},_t.prototype.writeUnsignedVarint64=_t.prototype.va,_t.prototype.ua=function(O){E(O==Math.floor(O)),E(-9223372036854776e3<=O&&9223372036854776e3>O),ye(O),this.l(ee,ne)},_t.prototype.writeSignedVarint64=_t.prototype.ua,_t.prototype.wa=function(O){E(O==Math.floor(O)),E(-2147483648<=O&&2147483648>O),this.j((O<<1^O>>31)>>>0)},_t.prototype.writeZigzagVarint32=_t.prototype.wa,_t.prototype.xa=function(O){E(O==Math.floor(O)),E(-9223372036854776e3<=O&&9223372036854776e3>O),me(O),this.l(ee,ne)},_t.prototype.writeZigzagVarint64=_t.prototype.xa,_t.prototype.Ta=function(O){this.W(Q(O))},_t.prototype.writeZigzagVarint64String=_t.prototype.Ta,_t.prototype.W=function(O){var j=this;_e(O),we(ee,ne,function(oe,Ae){j.l(oe>>>0,Ae>>>0)})},_t.prototype.writeZigzagVarintHash64=_t.prototype.W,_t.prototype.be=function(O){E(O==Math.floor(O)),E(0<=O&&256>O),this.a.push(O>>>0&255)},_t.prototype.writeUint8=_t.prototype.be,_t.prototype.ae=function(O){E(O==Math.floor(O)),E(0<=O&&65536>O),this.a.push(O>>>0&255),this.a.push(O>>>8&255)},_t.prototype.writeUint16=_t.prototype.ae,_t.prototype.s=function(O){E(O==Math.floor(O)),E(0<=O&&4294967296>O),this.a.push(O>>>0&255),this.a.push(O>>>8&255),this.a.push(O>>>16&255),this.a.push(O>>>24&255)},_t.prototype.writeUint32=_t.prototype.s,_t.prototype.V=function(O){E(O==Math.floor(O)),E(0<=O&&18446744073709552e3>O),ue(O),this.s(ee),this.s(ne)},_t.prototype.writeUint64=_t.prototype.V,_t.prototype.Qc=function(O){E(O==Math.floor(O)),E(-128<=O&&128>O),this.a.push(O>>>0&255)},_t.prototype.writeInt8=_t.prototype.Qc,_t.prototype.Pc=function(O){E(O==Math.floor(O)),E(-32768<=O&&32768>O),this.a.push(O>>>0&255),this.a.push(O>>>8&255)},_t.prototype.writeInt16=_t.prototype.Pc,_t.prototype.S=function(O){E(O==Math.floor(O)),E(-2147483648<=O&&2147483648>O),this.a.push(O>>>0&255),this.a.push(O>>>8&255),this.a.push(O>>>16&255),this.a.push(O>>>24&255)},_t.prototype.writeInt32=_t.prototype.S,_t.prototype.T=function(O){E(O==Math.floor(O)),E(-9223372036854776e3<=O&&9223372036854776e3>O),ye(O),this.A(ee,ne)},_t.prototype.writeInt64=_t.prototype.T,_t.prototype.ka=function(O){E(O==Math.floor(O)),E(-9223372036854776e3<=+O&&9223372036854776e3>+O),_e(Q(O)),this.A(ee,ne)},_t.prototype.writeInt64String=_t.prototype.ka,_t.prototype.L=function(O){E(O===1/0||O===-1/0||isNaN(O)||-34028234663852886e22<=O&&34028234663852886e22>=O),pe(O),this.s(ee)},_t.prototype.writeFloat=_t.prototype.L,_t.prototype.J=function(O){E(O===1/0||O===-1/0||isNaN(O)||-17976931348623157e292<=O&&17976931348623157e292>=O),he(O),this.s(ee),this.s(ne)},_t.prototype.writeDouble=_t.prototype.J,_t.prototype.I=function(O){E(typeof O=="boolean"||typeof O=="number"),this.a.push(O?1:0)},_t.prototype.writeBool=_t.prototype.I,_t.prototype.R=function(O){E(O==Math.floor(O)),E(-2147483648<=O&&2147483648>O),this.M(O)},_t.prototype.writeEnum=_t.prototype.R,_t.prototype.ja=function(O){this.a.push.apply(this.a,O)},_t.prototype.writeBytes=_t.prototype.ja,_t.prototype.N=function(O){_e(O),this.l(ee,ne)},_t.prototype.writeVarintHash64=_t.prototype.N,_t.prototype.K=function(O){_e(O),this.s(ee),this.s(ne)},_t.prototype.writeFixedHash64=_t.prototype.K,_t.prototype.U=function(O){var j=this.a.length;k(O);for(var oe=0;oe<O.length;oe++){var Ae=O.charCodeAt(oe);if(128>Ae)this.a.push(Ae);else if(2048>Ae)this.a.push(Ae>>6|192),this.a.push(Ae&63|128);else if(65536>Ae)if(55296<=Ae&&56319>=Ae&&oe+1<O.length){var Ge=O.charCodeAt(oe+1);56320<=Ge&&57343>=Ge&&(Ae=1024*(Ae-55296)+Ge-56320+65536,this.a.push(Ae>>18|240),this.a.push(Ae>>12&63|128),this.a.push(Ae>>6&63|128),this.a.push(Ae&63|128),oe++)}else this.a.push(Ae>>12|224),this.a.push(Ae>>6&63|128),this.a.push(Ae&63|128)}return this.a.length-j},_t.prototype.writeString=_t.prototype.U;function jt(O,j){this.lo=O,this.hi=j}h("jspb.arith.UInt64",jt,void 0),jt.prototype.cmp=function(O){return this.hi<O.hi||this.hi==O.hi&&this.lo<O.lo?-1:this.hi==O.hi&&this.lo==O.lo?0:1},jt.prototype.cmp=jt.prototype.cmp,jt.prototype.La=function(){return new jt((this.lo>>>1|(this.hi&1)<<31)>>>0,this.hi>>>1>>>0)},jt.prototype.rightShift=jt.prototype.La,jt.prototype.Da=function(){return new jt(this.lo<<1>>>0,(this.hi<<1|this.lo>>>31)>>>0)},jt.prototype.leftShift=jt.prototype.Da,jt.prototype.cb=function(){return!!(this.hi&2147483648)},jt.prototype.msb=jt.prototype.cb,jt.prototype.Ob=function(){return!!(this.lo&1)},jt.prototype.lsb=jt.prototype.Ob,jt.prototype.Ua=function(){return this.lo==0&&this.hi==0},jt.prototype.zero=jt.prototype.Ua,jt.prototype.add=function(O){return new jt((this.lo+O.lo&4294967295)>>>0>>>0,((this.hi+O.hi&4294967295)>>>0)+(4294967296<=this.lo+O.lo?1:0)>>>0)},jt.prototype.add=jt.prototype.add,jt.prototype.sub=function(O){return new jt((this.lo-O.lo&4294967295)>>>0>>>0,((this.hi-O.hi&4294967295)>>>0)-(0>this.lo-O.lo?1:0)>>>0)},jt.prototype.sub=jt.prototype.sub;function nn(O,j){var oe=O&65535;O>>>=16;var Ae=j&65535,Ge=j>>>16;for(j=oe*Ae+65536*(oe*Ge&65535)+65536*(O*Ae&65535),oe=O*Ge+(oe*Ge>>>16)+(O*Ae>>>16);4294967296<=j;)j-=4294967296,oe+=1;return new jt(j>>>0,oe>>>0)}jt.mul32x32=nn,jt.prototype.eb=function(O){var j=nn(this.lo,O);return O=nn(this.hi,O),O.hi=O.lo,O.lo=0,j.add(O)},jt.prototype.mul=jt.prototype.eb,jt.prototype.Xa=function(O){if(O==0)return[];var j=new jt(0,0),oe=new jt(this.lo,this.hi);O=new jt(O,0);for(var Ae=new jt(1,0);!O.cb();)O=O.Da(),Ae=Ae.Da();for(;!Ae.Ua();)0>=O.cmp(oe)&&(j=j.add(Ae),oe=oe.sub(O)),O=O.La(),Ae=Ae.La();return[j,oe]},jt.prototype.div=jt.prototype.Xa,jt.prototype.toString=function(){for(var O="",j=this;!j.Ua();){j=j.Xa(10);var oe=j[0];O=j[1].lo+O,j=oe}return O==""&&(O="0"),O},jt.prototype.toString=jt.prototype.toString;function Ht(O){for(var j=new jt(0,0),oe=new jt(0,0),Ae=0;Ae<O.length;Ae++){if("0">O[Ae]||"9"<O[Ae])return null;oe.lo=parseInt(O[Ae],10),j=j.eb(10).add(oe)}return j}jt.fromString=Ht,jt.prototype.clone=function(){return new jt(this.lo,this.hi)},jt.prototype.clone=jt.prototype.clone;function Tt(O,j){this.lo=O,this.hi=j}h("jspb.arith.Int64",Tt,void 0),Tt.prototype.add=function(O){return new Tt((this.lo+O.lo&4294967295)>>>0>>>0,((this.hi+O.hi&4294967295)>>>0)+(4294967296<=this.lo+O.lo?1:0)>>>0)},Tt.prototype.add=Tt.prototype.add,Tt.prototype.sub=function(O){return new Tt((this.lo-O.lo&4294967295)>>>0>>>0,((this.hi-O.hi&4294967295)>>>0)-(0>this.lo-O.lo?1:0)>>>0)},Tt.prototype.sub=Tt.prototype.sub,Tt.prototype.clone=function(){return new Tt(this.lo,this.hi)},Tt.prototype.clone=Tt.prototype.clone,Tt.prototype.toString=function(){var O=(this.hi&2147483648)!=0,j=new jt(this.lo,this.hi);return O&&(j=new jt(0,0).sub(j)),(O?"-":"")+j.toString()},Tt.prototype.toString=Tt.prototype.toString;function gt(O){var j=0<O.length&&O[0]=="-";return j&&(O=O.substring(1)),O=Ht(O),O===null?null:(j&&(O=new jt(0,0).sub(O)),new Tt(O.lo,O.hi))}Tt.fromString=gt;function Ve(){this.c=[],this.b=0,this.a=new _t,this.h=[]}h("jspb.BinaryWriter",Ve,void 0);function Yt(O,j){var oe=O.a.end();O.c.push(oe),O.c.push(j),O.b+=oe.length+j.length}function mt(O,j){return zt(O,j,2),j=O.a.end(),O.c.push(j),O.b+=j.length,j.push(O.b),j}function Mt(O,j){var oe=j.pop();for(oe=O.b+O.a.length()-oe,E(0<=oe);127<oe;)j.push(oe&127|128),oe>>>=7,O.b++;j.push(oe),O.b++}Ve.prototype.pb=function(O,j,oe){Yt(this,O.subarray(j,oe))},Ve.prototype.writeSerializedMessage=Ve.prototype.pb,Ve.prototype.Pb=function(O,j,oe){O!=null&&j!=null&&oe!=null&&this.pb(O,j,oe)},Ve.prototype.maybeWriteSerializedMessage=Ve.prototype.Pb,Ve.prototype.reset=function(){this.c=[],this.a.end(),this.b=0,this.h=[]},Ve.prototype.reset=Ve.prototype.reset,Ve.prototype.ab=function(){E(this.h.length==0);for(var O=new Uint8Array(this.b+this.a.length()),j=this.c,oe=j.length,Ae=0,Ge=0;Ge<oe;Ge++){var ft=j[Ge];O.set(ft,Ae),Ae+=ft.length}return j=this.a.end(),O.set(j,Ae),Ae+=j.length,E(Ae==O.length),this.c=[O],O},Ve.prototype.getResultBuffer=Ve.prototype.ab,Ve.prototype.Kb=function(O){return Y(this.ab(),O)},Ve.prototype.getResultBase64String=Ve.prototype.Kb,Ve.prototype.Va=function(O){this.h.push(mt(this,O))},Ve.prototype.beginSubMessage=Ve.prototype.Va,Ve.prototype.Ya=function(){E(0<=this.h.length),Mt(this,this.h.pop())},Ve.prototype.endSubMessage=Ve.prototype.Ya;function zt(O,j,oe){E(1<=j&&j==Math.floor(j)),O.a.j(8*j+oe)}Ve.prototype.Nc=function(O,j,oe){switch(O){case 1:this.J(j,oe);break;case 2:this.L(j,oe);break;case 3:this.T(j,oe);break;case 4:this.V(j,oe);break;case 5:this.S(j,oe);break;case 6:this.Qa(j,oe);break;case 7:this.Pa(j,oe);break;case 8:this.I(j,oe);break;case 9:this.U(j,oe);break;case 10:P("Group field type not supported in writeAny()");break;case 11:P("Message field type not supported in writeAny()");break;case 12:this.ja(j,oe);break;case 13:this.s(j,oe);break;case 14:this.R(j,oe);break;case 15:this.Ra(j,oe);break;case 16:this.Sa(j,oe);break;case 17:this.rb(j,oe);break;case 18:this.sb(j,oe);break;case 30:this.K(j,oe);break;case 31:this.N(j,oe);break;default:P("Invalid field type in writeAny()")}},Ve.prototype.writeAny=Ve.prototype.Nc;function Dn(O,j,oe){oe!=null&&(zt(O,j,0),O.a.j(oe))}function Xn(O,j,oe){oe!=null&&(zt(O,j,0),O.a.M(oe))}Ve.prototype.S=function(O,j){j!=null&&(E(-2147483648<=j&&2147483648>j),Xn(this,O,j))},Ve.prototype.writeInt32=Ve.prototype.S,Ve.prototype.ob=function(O,j){j!=null&&(j=parseInt(j,10),E(-2147483648<=j&&2147483648>j),Xn(this,O,j))},Ve.prototype.writeInt32String=Ve.prototype.ob,Ve.prototype.T=function(O,j){j!=null&&(E(-9223372036854776e3<=j&&9223372036854776e3>j),j!=null&&(zt(this,O,0),this.a.ua(j)))},Ve.prototype.writeInt64=Ve.prototype.T,Ve.prototype.ka=function(O,j){j!=null&&(j=gt(j),zt(this,O,0),this.a.l(j.lo,j.hi))},Ve.prototype.writeInt64String=Ve.prototype.ka,Ve.prototype.s=function(O,j){j!=null&&(E(0<=j&&4294967296>j),Dn(this,O,j))},Ve.prototype.writeUint32=Ve.prototype.s,Ve.prototype.ub=function(O,j){j!=null&&(j=parseInt(j,10),E(0<=j&&4294967296>j),Dn(this,O,j))},Ve.prototype.writeUint32String=Ve.prototype.ub,Ve.prototype.V=function(O,j){j!=null&&(E(0<=j&&18446744073709552e3>j),j!=null&&(zt(this,O,0),this.a.va(j)))},Ve.prototype.writeUint64=Ve.prototype.V,Ve.prototype.vb=function(O,j){j!=null&&(j=Ht(j),zt(this,O,0),this.a.l(j.lo,j.hi))},Ve.prototype.writeUint64String=Ve.prototype.vb,Ve.prototype.rb=function(O,j){j!=null&&(E(-2147483648<=j&&2147483648>j),j!=null&&(zt(this,O,0),this.a.wa(j)))},Ve.prototype.writeSint32=Ve.prototype.rb,Ve.prototype.sb=function(O,j){j!=null&&(E(-9223372036854776e3<=j&&9223372036854776e3>j),j!=null&&(zt(this,O,0),this.a.xa(j)))},Ve.prototype.writeSint64=Ve.prototype.sb,Ve.prototype.$d=function(O,j){j!=null&&j!=null&&(zt(this,O,0),this.a.W(j))},Ve.prototype.writeSintHash64=Ve.prototype.$d,Ve.prototype.Zd=function(O,j){j!=null&&j!=null&&(zt(this,O,0),this.a.Ta(j))},Ve.prototype.writeSint64String=Ve.prototype.Zd,Ve.prototype.Pa=function(O,j){j!=null&&(E(0<=j&&4294967296>j),zt(this,O,5),this.a.s(j))},Ve.prototype.writeFixed32=Ve.prototype.Pa,Ve.prototype.Qa=function(O,j){j!=null&&(E(0<=j&&18446744073709552e3>j),zt(this,O,1),this.a.V(j))},Ve.prototype.writeFixed64=Ve.prototype.Qa,Ve.prototype.nb=function(O,j){j!=null&&(j=Ht(j),zt(this,O,1),this.a.A(j.lo,j.hi))},Ve.prototype.writeFixed64String=Ve.prototype.nb,Ve.prototype.Ra=function(O,j){j!=null&&(E(-2147483648<=j&&2147483648>j),zt(this,O,5),this.a.S(j))},Ve.prototype.writeSfixed32=Ve.prototype.Ra,Ve.prototype.Sa=function(O,j){j!=null&&(E(-9223372036854776e3<=j&&9223372036854776e3>j),zt(this,O,1),this.a.T(j))},Ve.prototype.writeSfixed64=Ve.prototype.Sa,Ve.prototype.qb=function(O,j){j!=null&&(j=gt(j),zt(this,O,1),this.a.A(j.lo,j.hi))},Ve.prototype.writeSfixed64String=Ve.prototype.qb,Ve.prototype.L=function(O,j){j!=null&&(zt(this,O,5),this.a.L(j))},Ve.prototype.writeFloat=Ve.prototype.L,Ve.prototype.J=function(O,j){j!=null&&(zt(this,O,1),this.a.J(j))},Ve.prototype.writeDouble=Ve.prototype.J,Ve.prototype.I=function(O,j){j!=null&&(E(typeof j=="boolean"||typeof j=="number"),zt(this,O,0),this.a.I(j))},Ve.prototype.writeBool=Ve.prototype.I,Ve.prototype.R=function(O,j){j!=null&&(E(-2147483648<=j&&2147483648>j),zt(this,O,0),this.a.M(j))},Ve.prototype.writeEnum=Ve.prototype.R,Ve.prototype.U=function(O,j){j!=null&&(O=mt(this,O),this.a.U(j),Mt(this,O))},Ve.prototype.writeString=Ve.prototype.U,Ve.prototype.ja=function(O,j){j!=null&&(j=Oe(j),zt(this,O,2),this.a.j(j.length),Yt(this,j))},Ve.prototype.writeBytes=Ve.prototype.ja,Ve.prototype.Rc=function(O,j,oe){j!=null&&(O=mt(this,O),oe(j,this),Mt(this,O))},Ve.prototype.writeMessage=Ve.prototype.Rc,Ve.prototype.Sc=function(O,j,oe){j!=null&&(zt(this,1,3),zt(this,2,0),this.a.M(O),O=mt(this,3),oe(j,this),Mt(this,O),zt(this,1,4))},Ve.prototype.writeMessageSet=Ve.prototype.Sc,Ve.prototype.Oc=function(O,j,oe){j!=null&&(zt(this,O,3),oe(j,this),zt(this,O,4))},Ve.prototype.writeGroup=Ve.prototype.Oc,Ve.prototype.K=function(O,j){j!=null&&(E(j.length==8),zt(this,O,1),this.a.K(j))},Ve.prototype.writeFixedHash64=Ve.prototype.K,Ve.prototype.N=function(O,j){j!=null&&(E(j.length==8),zt(this,O,0),this.a.N(j))},Ve.prototype.writeVarintHash64=Ve.prototype.N,Ve.prototype.A=function(O,j,oe){zt(this,O,1),this.a.A(j,oe)},Ve.prototype.writeSplitFixed64=Ve.prototype.A,Ve.prototype.l=function(O,j,oe){zt(this,O,0),this.a.l(j,oe)},Ve.prototype.writeSplitVarint64=Ve.prototype.l,Ve.prototype.tb=function(O,j,oe){zt(this,O,0);var Ae=this.a;we(j,oe,function(Ge,ft){Ae.l(Ge>>>0,ft>>>0)})},Ve.prototype.writeSplitZigzagVarint64=Ve.prototype.tb,Ve.prototype.Ed=function(O,j){if(j!=null)for(var oe=0;oe<j.length;oe++)Xn(this,O,j[oe])},Ve.prototype.writeRepeatedInt32=Ve.prototype.Ed,Ve.prototype.Fd=function(O,j){if(j!=null)for(var oe=0;oe<j.length;oe++)this.ob(O,j[oe])},Ve.prototype.writeRepeatedInt32String=Ve.prototype.Fd,Ve.prototype.Gd=function(O,j){if(j!=null)for(var oe=0;oe<j.length;oe++){var Ae=j[oe];Ae!=null&&(zt(this,O,0),this.a.ua(Ae))}},Ve.prototype.writeRepeatedInt64=Ve.prototype.Gd,Ve.prototype.Qd=function(O,j,oe,Ae){if(j!=null)for(var Ge=0;Ge<j.length;Ge++)this.A(O,oe(j[Ge]),Ae(j[Ge]))},Ve.prototype.writeRepeatedSplitFixed64=Ve.prototype.Qd,Ve.prototype.Rd=function(O,j,oe,Ae){if(j!=null)for(var Ge=0;Ge<j.length;Ge++)this.l(O,oe(j[Ge]),Ae(j[Ge]))},Ve.prototype.writeRepeatedSplitVarint64=Ve.prototype.Rd,Ve.prototype.Sd=function(O,j,oe,Ae){if(j!=null)for(var Ge=0;Ge<j.length;Ge++)this.tb(O,oe(j[Ge]),Ae(j[Ge]))},Ve.prototype.writeRepeatedSplitZigzagVarint64=Ve.prototype.Sd,Ve.prototype.Hd=function(O,j){if(j!=null)for(var oe=0;oe<j.length;oe++)this.ka(O,j[oe])},Ve.prototype.writeRepeatedInt64String=Ve.prototype.Hd,Ve.prototype.Ud=function(O,j){if(j!=null)for(var oe=0;oe<j.length;oe++)Dn(this,O,j[oe])},Ve.prototype.writeRepeatedUint32=Ve.prototype.Ud,Ve.prototype.Vd=function(O,j){if(j!=null)for(var oe=0;oe<j.length;oe++)this.ub(O,j[oe])},Ve.prototype.writeRepeatedUint32String=Ve.prototype.Vd,Ve.prototype.Wd=function(O,j){if(j!=null)for(var oe=0;oe<j.length;oe++){var Ae=j[oe];Ae!=null&&(zt(this,O,0),this.a.va(Ae))}},Ve.prototype.writeRepeatedUint64=Ve.prototype.Wd,Ve.prototype.Xd=function(O,j){if(j!=null)for(var oe=0;oe<j.length;oe++)this.vb(O,j[oe])},Ve.prototype.writeRepeatedUint64String=Ve.prototype.Xd,Ve.prototype.Md=function(O,j){if(j!=null)for(var oe=0;oe<j.length;oe++){var Ae=j[oe];Ae!=null&&(zt(this,O,0),this.a.wa(Ae))}},Ve.prototype.writeRepeatedSint32=Ve.prototype.Md,Ve.prototype.Nd=function(O,j){if(j!=null)for(var oe=0;oe<j.length;oe++){var Ae=j[oe];Ae!=null&&(zt(this,O,0),this.a.xa(Ae))}},Ve.prototype.writeRepeatedSint64=Ve.prototype.Nd,Ve.prototype.Od=function(O,j){if(j!=null)for(var oe=0;oe<j.length;oe++){var Ae=j[oe];Ae!=null&&(zt(this,O,0),this.a.Ta(Ae))}},Ve.prototype.writeRepeatedSint64String=Ve.prototype.Od,Ve.prototype.Pd=function(O,j){if(j!=null)for(var oe=0;oe<j.length;oe++){var Ae=j[oe];Ae!=null&&(zt(this,O,0),this.a.W(Ae))}},Ve.prototype.writeRepeatedSintHash64=Ve.prototype.Pd,Ve.prototype.yd=function(O,j){if(j!=null)for(var oe=0;oe<j.length;oe++)this.Pa(O,j[oe])},Ve.prototype.writeRepeatedFixed32=Ve.prototype.yd,Ve.prototype.zd=function(O,j){if(j!=null)for(var oe=0;oe<j.length;oe++)this.Qa(O,j[oe])},Ve.prototype.writeRepeatedFixed64=Ve.prototype.zd,Ve.prototype.Ad=function(O,j){if(j!=null)for(var oe=0;oe<j.length;oe++)this.nb(O,j[oe])},Ve.prototype.writeRepeatedFixed64String=Ve.prototype.Ad,Ve.prototype.Jd=function(O,j){if(j!=null)for(var oe=0;oe<j.length;oe++)this.Ra(O,j[oe])},Ve.prototype.writeRepeatedSfixed32=Ve.prototype.Jd,Ve.prototype.Kd=function(O,j){if(j!=null)for(var oe=0;oe<j.length;oe++)this.Sa(O,j[oe])},Ve.prototype.writeRepeatedSfixed64=Ve.prototype.Kd,Ve.prototype.Ld=function(O,j){if(j!=null)for(var oe=0;oe<j.length;oe++)this.qb(O,j[oe])},Ve.prototype.writeRepeatedSfixed64String=Ve.prototype.Ld,Ve.prototype.Cd=function(O,j){if(j!=null)for(var oe=0;oe<j.length;oe++)this.L(O,j[oe])},Ve.prototype.writeRepeatedFloat=Ve.prototype.Cd,Ve.prototype.wd=function(O,j){if(j!=null)for(var oe=0;oe<j.length;oe++)this.J(O,j[oe])},Ve.prototype.writeRepeatedDouble=Ve.prototype.wd,Ve.prototype.ud=function(O,j){if(j!=null)for(var oe=0;oe<j.length;oe++)this.I(O,j[oe])},Ve.prototype.writeRepeatedBool=Ve.prototype.ud,Ve.prototype.xd=function(O,j){if(j!=null)for(var oe=0;oe<j.length;oe++)this.R(O,j[oe])},Ve.prototype.writeRepeatedEnum=Ve.prototype.xd,Ve.prototype.Td=function(O,j){if(j!=null)for(var oe=0;oe<j.length;oe++)this.U(O,j[oe])},Ve.prototype.writeRepeatedString=Ve.prototype.Td,Ve.prototype.vd=function(O,j){if(j!=null)for(var oe=0;oe<j.length;oe++)this.ja(O,j[oe])},Ve.prototype.writeRepeatedBytes=Ve.prototype.vd,Ve.prototype.Id=function(O,j,oe){if(j!=null)for(var Ae=0;Ae<j.length;Ae++){var Ge=mt(this,O);oe(j[Ae],this),Mt(this,Ge)}},Ve.prototype.writeRepeatedMessage=Ve.prototype.Id,Ve.prototype.Dd=function(O,j,oe){if(j!=null)for(var Ae=0;Ae<j.length;Ae++)zt(this,O,3),oe(j[Ae],this),zt(this,O,4)},Ve.prototype.writeRepeatedGroup=Ve.prototype.Dd,Ve.prototype.Bd=function(O,j){if(j!=null)for(var oe=0;oe<j.length;oe++)this.K(O,j[oe])},Ve.prototype.writeRepeatedFixedHash64=Ve.prototype.Bd,Ve.prototype.Yd=function(O,j){if(j!=null)for(var oe=0;oe<j.length;oe++)this.N(O,j[oe])},Ve.prototype.writeRepeatedVarintHash64=Ve.prototype.Yd,Ve.prototype.ad=function(O,j){if(j!=null&&j.length){O=mt(this,O);for(var oe=0;oe<j.length;oe++)this.a.M(j[oe]);Mt(this,O)}},Ve.prototype.writePackedInt32=Ve.prototype.ad,Ve.prototype.bd=function(O,j){if(j!=null&&j.length){O=mt(this,O);for(var oe=0;oe<j.length;oe++)this.a.M(parseInt(j[oe],10));Mt(this,O)}},Ve.prototype.writePackedInt32String=Ve.prototype.bd,Ve.prototype.cd=function(O,j){if(j!=null&&j.length){O=mt(this,O);for(var oe=0;oe<j.length;oe++)this.a.ua(j[oe]);Mt(this,O)}},Ve.prototype.writePackedInt64=Ve.prototype.cd,Ve.prototype.md=function(O,j,oe,Ae){if(j!=null){O=mt(this,O);for(var Ge=0;Ge<j.length;Ge++)this.a.A(oe(j[Ge]),Ae(j[Ge]));Mt(this,O)}},Ve.prototype.writePackedSplitFixed64=Ve.prototype.md,Ve.prototype.nd=function(O,j,oe,Ae){if(j!=null){O=mt(this,O);for(var Ge=0;Ge<j.length;Ge++)this.a.l(oe(j[Ge]),Ae(j[Ge]));Mt(this,O)}},Ve.prototype.writePackedSplitVarint64=Ve.prototype.nd,Ve.prototype.od=function(O,j,oe,Ae){if(j!=null){O=mt(this,O);for(var Ge=this.a,ft=0;ft<j.length;ft++)we(oe(j[ft]),Ae(j[ft]),function(Jt,on){Ge.l(Jt>>>0,on>>>0)});Mt(this,O)}},Ve.prototype.writePackedSplitZigzagVarint64=Ve.prototype.od,Ve.prototype.dd=function(O,j){if(j!=null&&j.length){O=mt(this,O);for(var oe=0;oe<j.length;oe++){var Ae=gt(j[oe]);this.a.l(Ae.lo,Ae.hi)}Mt(this,O)}},Ve.prototype.writePackedInt64String=Ve.prototype.dd,Ve.prototype.pd=function(O,j){if(j!=null&&j.length){O=mt(this,O);for(var oe=0;oe<j.length;oe++)this.a.j(j[oe]);Mt(this,O)}},Ve.prototype.writePackedUint32=Ve.prototype.pd,Ve.prototype.qd=function(O,j){if(j!=null&&j.length){O=mt(this,O);for(var oe=0;oe<j.length;oe++)this.a.j(parseInt(j[oe],10));Mt(this,O)}},Ve.prototype.writePackedUint32String=Ve.prototype.qd,Ve.prototype.rd=function(O,j){if(j!=null&&j.length){O=mt(this,O);for(var oe=0;oe<j.length;oe++)this.a.va(j[oe]);Mt(this,O)}},Ve.prototype.writePackedUint64=Ve.prototype.rd,Ve.prototype.sd=function(O,j){if(j!=null&&j.length){O=mt(this,O);for(var oe=0;oe<j.length;oe++){var Ae=Ht(j[oe]);this.a.l(Ae.lo,Ae.hi)}Mt(this,O)}},Ve.prototype.writePackedUint64String=Ve.prototype.sd,Ve.prototype.hd=function(O,j){if(j!=null&&j.length){O=mt(this,O);for(var oe=0;oe<j.length;oe++)this.a.wa(j[oe]);Mt(this,O)}},Ve.prototype.writePackedSint32=Ve.prototype.hd,Ve.prototype.jd=function(O,j){if(j!=null&&j.length){O=mt(this,O);for(var oe=0;oe<j.length;oe++)this.a.xa(j[oe]);Mt(this,O)}},Ve.prototype.writePackedSint64=Ve.prototype.jd,Ve.prototype.kd=function(O,j){if(j!=null&&j.length){O=mt(this,O);for(var oe=0;oe<j.length;oe++)this.a.W(Q(j[oe]));Mt(this,O)}},Ve.prototype.writePackedSint64String=Ve.prototype.kd,Ve.prototype.ld=function(O,j){if(j!=null&&j.length){O=mt(this,O);for(var oe=0;oe<j.length;oe++)this.a.W(j[oe]);Mt(this,O)}},Ve.prototype.writePackedSintHash64=Ve.prototype.ld,Ve.prototype.Wc=function(O,j){if(j!=null&&j.length)for(zt(this,O,2),this.a.j(4*j.length),O=0;O<j.length;O++)this.a.s(j[O])},Ve.prototype.writePackedFixed32=Ve.prototype.Wc,Ve.prototype.Xc=function(O,j){if(j!=null&&j.length)for(zt(this,O,2),this.a.j(8*j.length),O=0;O<j.length;O++)this.a.V(j[O])},Ve.prototype.writePackedFixed64=Ve.prototype.Xc,Ve.prototype.Yc=function(O,j){if(j!=null&&j.length)for(zt(this,O,2),this.a.j(8*j.length),O=0;O<j.length;O++){var oe=Ht(j[O]);this.a.A(oe.lo,oe.hi)}},Ve.prototype.writePackedFixed64String=Ve.prototype.Yc,Ve.prototype.ed=function(O,j){if(j!=null&&j.length)for(zt(this,O,2),this.a.j(4*j.length),O=0;O<j.length;O++)this.a.S(j[O])},Ve.prototype.writePackedSfixed32=Ve.prototype.ed,Ve.prototype.fd=function(O,j){if(j!=null&&j.length)for(zt(this,O,2),this.a.j(8*j.length),O=0;O<j.length;O++)this.a.T(j[O])},Ve.prototype.writePackedSfixed64=Ve.prototype.fd,Ve.prototype.gd=function(O,j){if(j!=null&&j.length)for(zt(this,O,2),this.a.j(8*j.length),O=0;O<j.length;O++)this.a.ka(j[O])},Ve.prototype.writePackedSfixed64String=Ve.prototype.gd,Ve.prototype.$c=function(O,j){if(j!=null&&j.length)for(zt(this,O,2),this.a.j(4*j.length),O=0;O<j.length;O++)this.a.L(j[O])},Ve.prototype.writePackedFloat=Ve.prototype.$c,Ve.prototype.Uc=function(O,j){if(j!=null&&j.length)for(zt(this,O,2),this.a.j(8*j.length),O=0;O<j.length;O++)this.a.J(j[O])},Ve.prototype.writePackedDouble=Ve.prototype.Uc,Ve.prototype.Tc=function(O,j){if(j!=null&&j.length)for(zt(this,O,2),this.a.j(j.length),O=0;O<j.length;O++)this.a.I(j[O])},Ve.prototype.writePackedBool=Ve.prototype.Tc,Ve.prototype.Vc=function(O,j){if(j!=null&&j.length){O=mt(this,O);for(var oe=0;oe<j.length;oe++)this.a.R(j[oe]);Mt(this,O)}},Ve.prototype.writePackedEnum=Ve.prototype.Vc,Ve.prototype.Zc=function(O,j){if(j!=null&&j.length)for(zt(this,O,2),this.a.j(8*j.length),O=0;O<j.length;O++)this.a.K(j[O])},Ve.prototype.writePackedFixedHash64=Ve.prototype.Zc,Ve.prototype.td=function(O,j){if(j!=null&&j.length){O=mt(this,O);for(var oe=0;oe<j.length;oe++)this.a.N(j[oe]);Mt(this,O)}},Ve.prototype.writePackedVarintHash64=Ve.prototype.td,e.debug=cn,e.Map=A,e.Message=rt,e.BinaryReader=se,e.BinaryWriter=Ve,e.ExtensionFieldInfo=Je,e.ExtensionFieldBinaryInfo=Ze,e.exportSymbol=v,e.inherits=y,e.object={extend:b},e.typeOf=p})(Vn);const IAe=hi(Vn),Uz=Qk({__proto__:null,default:IAe},[Vn]);var Wz=Uz,VL=(function(){return this?this:typeof window<"u"?window:typeof VL<"u"?VL:typeof self<"u"?self:Function("return this")()}).call(null);Wz.exportSymbol("proto.User",null,VL);proto.User=function(e){Vn.Message.initialize(this,e,0,-1,null,null)};Wz.inherits(proto.User,Vn.Message);Wz.DEBUG&&!COMPILED&&(proto.User.displayName="proto.User");Vn.Message.GENERATE_TO_OBJECT&&(proto.User.prototype.toObject=function(e){return proto.User.toObject(e,this)},proto.User.toObject=function(e,t){var n={uid:Vn.Message.getFieldWithDefault(t,1,""),nickname:Vn.Message.getFieldWithDefault(t,2,""),avatar:Vn.Message.getFieldWithDefault(t,3,""),type:Vn.Message.getFieldWithDefault(t,4,""),extra:Vn.Message.getFieldWithDefault(t,5,"")};return e&&(n.$jspbMessageInstance=t),n});proto.User.deserializeBinary=function(e){var t=new Vn.BinaryReader(e),n=new proto.User;return proto.User.deserializeBinaryFromReader(n,t)};proto.User.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){var n=t.getFieldNumber();switch(n){case 1:var r=t.readString();e.setUid(r);break;case 2:var r=t.readString();e.setNickname(r);break;case 3:var r=t.readString();e.setAvatar(r);break;case 4:var r=t.readString();e.setType(r);break;case 5:var r=t.readString();e.setExtra(r);break;default:t.skipField();break}}return e};proto.User.prototype.serializeBinary=function(){var e=new Vn.BinaryWriter;return proto.User.serializeBinaryToWriter(this,e),e.getResultBuffer()};proto.User.serializeBinaryToWriter=function(e,t){var n=void 0;n=e.getUid(),n.length>0&&t.writeString(1,n),n=e.getNickname(),n.length>0&&t.writeString(2,n),n=e.getAvatar(),n.length>0&&t.writeString(3,n),n=e.getType(),n.length>0&&t.writeString(4,n),n=e.getExtra(),n.length>0&&t.writeString(5,n)};proto.User.prototype.getUid=function(){return Vn.Message.getFieldWithDefault(this,1,"")};proto.User.prototype.setUid=function(e){return Vn.Message.setProto3StringField(this,1,e)};proto.User.prototype.getNickname=function(){return Vn.Message.getFieldWithDefault(this,2,"")};proto.User.prototype.setNickname=function(e){return Vn.Message.setProto3StringField(this,2,e)};proto.User.prototype.getAvatar=function(){return Vn.Message.getFieldWithDefault(this,3,"")};proto.User.prototype.setAvatar=function(e){return Vn.Message.setProto3StringField(this,3,e)};proto.User.prototype.getType=function(){return Vn.Message.getFieldWithDefault(this,4,"")};proto.User.prototype.setType=function(e){return Vn.Message.setProto3StringField(this,4,e)};proto.User.prototype.getExtra=function(){return Vn.Message.getFieldWithDefault(this,5,"")};proto.User.prototype.setExtra=function(e){return Vn.Message.setProto3StringField(this,5,e)};const iZ=proto;var Vz=Uz,KL=(function(){return this?this:typeof window<"u"?window:typeof KL<"u"?KL:typeof self<"u"?self:Function("return this")()}).call(null);Vz.exportSymbol("proto.Thread",null,KL);proto.Thread=function(e){Vn.Message.initialize(this,e,0,-1,null,null)};Vz.inherits(proto.Thread,Vn.Message);Vz.DEBUG&&!COMPILED&&(proto.Thread.displayName="proto.Thread");Vn.Message.GENERATE_TO_OBJECT&&(proto.Thread.prototype.toObject=function(e){return proto.Thread.toObject(e,this)},proto.Thread.toObject=function(e,t){var n,r={uid:Vn.Message.getFieldWithDefault(t,1,""),topic:Vn.Message.getFieldWithDefault(t,2,""),type:Vn.Message.getFieldWithDefault(t,3,""),state:Vn.Message.getFieldWithDefault(t,4,""),user:(n=t.getUser())&&proto.User.toObject(e,n),extra:Vn.Message.getFieldWithDefault(t,6,"")};return e&&(r.$jspbMessageInstance=t),r});proto.Thread.deserializeBinary=function(e){var t=new Vn.BinaryReader(e),n=new proto.Thread;return proto.Thread.deserializeBinaryFromReader(n,t)};proto.Thread.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){var n=t.getFieldNumber();switch(n){case 1:var r=t.readString();e.setUid(r);break;case 2:var r=t.readString();e.setTopic(r);break;case 3:var r=t.readString();e.setType(r);break;case 4:var r=t.readString();e.setState(r);break;case 5:var r=new proto.User;t.readMessage(r,proto.User.deserializeBinaryFromReader),e.setUser(r);break;case 6:var r=t.readString();e.setExtra(r);break;default:t.skipField();break}}return e};proto.Thread.prototype.serializeBinary=function(){var e=new Vn.BinaryWriter;return proto.Thread.serializeBinaryToWriter(this,e),e.getResultBuffer()};proto.Thread.serializeBinaryToWriter=function(e,t){var n=void 0;n=e.getUid(),n.length>0&&t.writeString(1,n),n=e.getTopic(),n.length>0&&t.writeString(2,n),n=e.getType(),n.length>0&&t.writeString(3,n),n=e.getState(),n.length>0&&t.writeString(4,n),n=e.getUser(),n!=null&&t.writeMessage(5,n,proto.User.serializeBinaryToWriter),n=e.getExtra(),n.length>0&&t.writeString(6,n)};proto.Thread.prototype.getUid=function(){return Vn.Message.getFieldWithDefault(this,1,"")};proto.Thread.prototype.setUid=function(e){return Vn.Message.setProto3StringField(this,1,e)};proto.Thread.prototype.getTopic=function(){return Vn.Message.getFieldWithDefault(this,2,"")};proto.Thread.prototype.setTopic=function(e){return Vn.Message.setProto3StringField(this,2,e)};proto.Thread.prototype.getType=function(){return Vn.Message.getFieldWithDefault(this,3,"")};proto.Thread.prototype.setType=function(e){return Vn.Message.setProto3StringField(this,3,e)};proto.Thread.prototype.getState=function(){return Vn.Message.getFieldWithDefault(this,4,"")};proto.Thread.prototype.setState=function(e){return Vn.Message.setProto3StringField(this,4,e)};proto.Thread.prototype.getUser=function(){return Vn.Message.getWrapperField(this,proto.User,5)};proto.Thread.prototype.setUser=function(e){return Vn.Message.setWrapperField(this,5,e)};proto.Thread.prototype.clearUser=function(){return this.setUser(void 0)};proto.Thread.prototype.hasUser=function(){return Vn.Message.getField(this,5)!=null};proto.Thread.prototype.getExtra=function(){return Vn.Message.getFieldWithDefault(this,6,"")};proto.Thread.prototype.setExtra=function(e){return Vn.Message.setProto3StringField(this,6,e)};const $Ae=proto;var Kz=Uz,qL=(function(){return this?this:typeof window<"u"?window:typeof qL<"u"?qL:typeof self<"u"?self:Function("return this")()}).call(null);Kz.exportSymbol("proto.Message",null,qL);proto.Message=function(e){Vn.Message.initialize(this,e,0,-1,null,null)};Kz.inherits(proto.Message,Vn.Message);Kz.DEBUG&&!COMPILED&&(proto.Message.displayName="proto.Message");Vn.Message.GENERATE_TO_OBJECT&&(proto.Message.prototype.toObject=function(e){return proto.Message.toObject(e,this)},proto.Message.toObject=function(e,t){var n,r={uid:Vn.Message.getFieldWithDefault(t,1,""),type:Vn.Message.getFieldWithDefault(t,2,""),content:Vn.Message.getFieldWithDefault(t,3,""),status:Vn.Message.getFieldWithDefault(t,4,""),createdat:Vn.Message.getFieldWithDefault(t,5,""),client:Vn.Message.getFieldWithDefault(t,6,""),thread:(n=t.getThread())&&proto.Thread.toObject(e,n),user:(n=t.getUser())&&proto.User.toObject(e,n),extra:Vn.Message.getFieldWithDefault(t,9,"")};return e&&(r.$jspbMessageInstance=t),r});proto.Message.deserializeBinary=function(e){var t=new Vn.BinaryReader(e),n=new proto.Message;return proto.Message.deserializeBinaryFromReader(n,t)};proto.Message.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){var n=t.getFieldNumber();switch(n){case 1:var r=t.readString();e.setUid(r);break;case 2:var r=t.readString();e.setType(r);break;case 3:var r=t.readString();e.setContent(r);break;case 4:var r=t.readString();e.setStatus(r);break;case 5:var r=t.readString();e.setCreatedat(r);break;case 6:var r=t.readString();e.setClient(r);break;case 7:var r=new proto.Thread;t.readMessage(r,proto.Thread.deserializeBinaryFromReader),e.setThread(r);break;case 8:var r=new proto.User;t.readMessage(r,proto.User.deserializeBinaryFromReader),e.setUser(r);break;case 9:var r=t.readString();e.setExtra(r);break;default:t.skipField();break}}return e};proto.Message.prototype.serializeBinary=function(){var e=new Vn.BinaryWriter;return proto.Message.serializeBinaryToWriter(this,e),e.getResultBuffer()};proto.Message.serializeBinaryToWriter=function(e,t){var n=void 0;n=e.getUid(),n.length>0&&t.writeString(1,n),n=e.getType(),n.length>0&&t.writeString(2,n),n=e.getContent(),n.length>0&&t.writeString(3,n),n=e.getStatus(),n.length>0&&t.writeString(4,n),n=e.getCreatedat(),n.length>0&&t.writeString(5,n),n=e.getClient(),n.length>0&&t.writeString(6,n),n=e.getThread(),n!=null&&t.writeMessage(7,n,proto.Thread.serializeBinaryToWriter),n=e.getUser(),n!=null&&t.writeMessage(8,n,proto.User.serializeBinaryToWriter),n=e.getExtra(),n.length>0&&t.writeString(9,n)};proto.Message.prototype.getUid=function(){return Vn.Message.getFieldWithDefault(this,1,"")};proto.Message.prototype.setUid=function(e){return Vn.Message.setProto3StringField(this,1,e)};proto.Message.prototype.getType=function(){return Vn.Message.getFieldWithDefault(this,2,"")};proto.Message.prototype.setType=function(e){return Vn.Message.setProto3StringField(this,2,e)};proto.Message.prototype.getContent=function(){return Vn.Message.getFieldWithDefault(this,3,"")};proto.Message.prototype.setContent=function(e){return Vn.Message.setProto3StringField(this,3,e)};proto.Message.prototype.getStatus=function(){return Vn.Message.getFieldWithDefault(this,4,"")};proto.Message.prototype.setStatus=function(e){return Vn.Message.setProto3StringField(this,4,e)};proto.Message.prototype.getCreatedat=function(){return Vn.Message.getFieldWithDefault(this,5,"")};proto.Message.prototype.setCreatedat=function(e){return Vn.Message.setProto3StringField(this,5,e)};proto.Message.prototype.getClient=function(){return Vn.Message.getFieldWithDefault(this,6,"")};proto.Message.prototype.setClient=function(e){return Vn.Message.setProto3StringField(this,6,e)};proto.Message.prototype.getThread=function(){return Vn.Message.getWrapperField(this,proto.Thread,7)};proto.Message.prototype.setThread=function(e){return Vn.Message.setWrapperField(this,7,e)};proto.Message.prototype.clearThread=function(){return this.setThread(void 0)};proto.Message.prototype.hasThread=function(){return Vn.Message.getField(this,7)!=null};proto.Message.prototype.getUser=function(){return Vn.Message.getWrapperField(this,proto.User,8)};proto.Message.prototype.setUser=function(e){return Vn.Message.setWrapperField(this,8,e)};proto.Message.prototype.clearUser=function(){return this.setUser(void 0)};proto.Message.prototype.hasUser=function(){return Vn.Message.getField(this,8)!=null};proto.Message.prototype.getExtra=function(){return Vn.Message.getFieldWithDefault(this,9,"")};proto.Message.prototype.setExtra=function(e){return Vn.Message.setProto3StringField(this,9,e)};const _me=proto,RAe="modulepreload",AAe=function(e){return"/notebase/"+e},oZ={},qz=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),s=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));i=Promise.allSettled(n.map(l=>{if(l=AAe(l),l in oZ)return;oZ[l]=!0;const c=l.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const d=document.createElement("link");if(d.rel=c?"stylesheet":RAe,c||(d.as="script"),d.crossOrigin="",d.href=l,s&&d.setAttribute("nonce",s),document.head.appendChild(d),c)return new Promise((h,p)=>{d.addEventListener("load",h),d.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${l}`)))})}))}function o(a){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a}return i.then(a=>{for(const s of a||[])s.status==="rejected"&&o(s.reason);return t().catch(o)})};//! moment.js
|
||
//! version : 2.30.1
|
||
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
||
//! license : MIT
|
||
//! momentjs.com
|
||
var Eme;function Kn(){return Eme.apply(null,arguments)}function NAe(e){Eme=e}function Nd(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function K1(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function Pi(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Gz(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(Pi(e,t))return!1;return!0}function $l(e){return e===void 0}function up(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function dE(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Tme(e,t){var n=[],r,i=e.length;for(r=0;r<i;++r)n.push(t(e[r],r));return n}function Mm(e,t){for(var n in t)Pi(t,n)&&(e[n]=t[n]);return Pi(t,"toString")&&(e.toString=t.toString),Pi(t,"valueOf")&&(e.valueOf=t.valueOf),e}function Zf(e,t,n,r){return Yme(e,t,n,r,!0).utc()}function DAe(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function Qr(e){return e._pf==null&&(e._pf=DAe()),e._pf}var GL;Array.prototype.some?GL=Array.prototype.some:GL=function(e){var t=Object(this),n=t.length>>>0,r;for(r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};function Yz(e){var t=null,n=!1,r=e._d&&!isNaN(e._d.getTime());if(r&&(t=Qr(e),n=GL.call(t.parsedDateParts,function(i){return i!=null}),r=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(r=r&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=r;else return r;return e._isValid}function q6(e){var t=Zf(NaN);return e!=null?Mm(Qr(t),e):Qr(t).userInvalidated=!0,t}var aZ=Kn.momentProperties=[],Q$=!1;function Xz(e,t){var n,r,i,o=aZ.length;if($l(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),$l(t._i)||(e._i=t._i),$l(t._f)||(e._f=t._f),$l(t._l)||(e._l=t._l),$l(t._strict)||(e._strict=t._strict),$l(t._tzm)||(e._tzm=t._tzm),$l(t._isUTC)||(e._isUTC=t._isUTC),$l(t._offset)||(e._offset=t._offset),$l(t._pf)||(e._pf=Qr(t)),$l(t._locale)||(e._locale=t._locale),o>0)for(n=0;n<o;n++)r=aZ[n],i=t[r],$l(i)||(e[r]=i);return e}function fE(e){Xz(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Q$===!1&&(Q$=!0,Kn.updateOffset(this),Q$=!1)}function Dd(e){return e instanceof fE||e!=null&&e._isAMomentObject!=null}function kme(e){Kn.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function Ru(e,t){var n=!0;return Mm(function(){if(Kn.deprecationHandler!=null&&Kn.deprecationHandler(null,e),n){var r=[],i,o,a,s=arguments.length;for(o=0;o<s;o++){if(i="",typeof arguments[o]=="object"){i+=`
|
||
[`+o+"] ";for(a in arguments[0])Pi(arguments[0],a)&&(i+=a+": "+arguments[0][a]+", ");i=i.slice(0,-2)}else i=arguments[o];r.push(i)}kme(e+`
|
||
Arguments: `+Array.prototype.slice.call(r).join("")+`
|
||
`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var sZ={};function Ome(e,t){Kn.deprecationHandler!=null&&Kn.deprecationHandler(e,t),sZ[e]||(kme(t),sZ[e]=!0)}Kn.suppressDeprecationWarnings=!1;Kn.deprecationHandler=null;function Jf(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function LAe(e){var t,n;for(n in e)Pi(e,n)&&(t=e[n],Jf(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function YL(e,t){var n=Mm({},e),r;for(r in t)Pi(t,r)&&(K1(e[r])&&K1(t[r])?(n[r]={},Mm(n[r],e[r]),Mm(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)Pi(e,r)&&!Pi(t,r)&&K1(e[r])&&(n[r]=Mm({},n[r]));return n}function Qz(e){e!=null&&this.set(e)}var XL;Object.keys?XL=Object.keys:XL=function(e){var t,n=[];for(t in e)Pi(e,t)&&n.push(t);return n};var FAe={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function jAe(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return Jf(r)?r.call(t,n):r}function Kf(e,t,n){var r=""+Math.abs(e),i=t-r.length,o=e>=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var Zz=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,RT=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Z$={},sb={};function xr(e,t,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&(sb[e]=i),t&&(sb[t[0]]=function(){return Kf(i.apply(this,arguments),t[1],t[2])}),n&&(sb[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function BAe(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function HAe(e){var t=e.match(Zz),n,r;for(n=0,r=t.length;n<r;n++)sb[t[n]]?t[n]=sb[t[n]]:t[n]=BAe(t[n]);return function(i){var o="",a;for(a=0;a<r;a++)o+=Jf(t[a])?t[a].call(i,e):t[a];return o}}function E3(e,t){return e.isValid()?(t=Pme(t,e.localeData()),Z$[t]=Z$[t]||HAe(t),Z$[t](e)):e.localeData().invalidDate()}function Pme(e,t){var n=5;function r(i){return t.longDateFormat(i)||i}for(RT.lastIndex=0;n>=0&&RT.test(e);)e=e.replace(RT,r),RT.lastIndex=0,n-=1;return e}var zAe={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function UAe(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(Zz).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var WAe="Invalid date";function VAe(){return this._invalidDate}var KAe="%d",qAe=/\d{1,2}/;function GAe(e){return this._ordinal.replace("%d",e)}var YAe={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function XAe(e,t,n,r){var i=this._relativeTime[n];return Jf(i)?i(e,t,n,r):i.replace(/%d/i,e)}function QAe(e,t){var n=this._relativeTime[e>0?"future":"past"];return Jf(n)?n(t):n.replace(/%s/i,t)}var lZ={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Au(e){return typeof e=="string"?lZ[e]||lZ[e.toLowerCase()]:void 0}function Jz(e){var t={},n,r;for(r in e)Pi(e,r)&&(n=Au(r),n&&(t[n]=e[r]));return t}var ZAe={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function JAe(e){var t=[],n;for(n in e)Pi(e,n)&&t.push({unit:n,priority:ZAe[n]});return t.sort(function(r,i){return r.priority-i.priority}),t}var Mme=/\d/,Vc=/\d\d/,Ime=/\d{3}/,eU=/\d{4}/,G6=/[+-]?\d{6}/,wo=/\d\d?/,$me=/\d\d\d\d?/,Rme=/\d\d\d\d\d\d?/,Y6=/\d{1,3}/,tU=/\d{1,4}/,X6=/[+-]?\d{1,6}/,BS=/\d+/,Q6=/[+-]?\d+/,eNe=/Z|[+-]\d\d:?\d\d/gi,Z6=/Z|[+-]\d\d(?::?\d\d)?/gi,tNe=/[+-]?\d+(\.\d{1,3})?/,hE=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,HS=/^[1-9]\d?/,nU=/^([1-9]\d|\d)/,s9;s9={};function nr(e,t,n){s9[e]=Jf(t)?t:function(r,i){return r&&n?n:t}}function nNe(e,t){return Pi(s9,e)?s9[e](t._strict,t._locale):new RegExp(rNe(e))}function rNe(e){return Jh(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,i,o){return n||r||i||o}))}function Jh(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function fu(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ui(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=fu(t)),n}var QL={};function Ji(e,t){var n,r=t,i;for(typeof e=="string"&&(e=[e]),up(t)&&(r=function(o,a){a[t]=ui(o)}),i=e.length,n=0;n<i;n++)QL[e[n]]=r}function pE(e,t){Ji(e,function(n,r,i,o){i._w=i._w||{},t(n,i._w,i,o)})}function iNe(e,t,n){t!=null&&Pi(QL,e)&&QL[e](t,n._a,n,e)}function J6(e){return e%4===0&&e%100!==0||e%400===0}var Us=0,Yh=1,Pf=2,Ua=3,bd=4,Xh=5,_1=6,oNe=7,aNe=8;xr("Y",0,0,function(){var e=this.year();return e<=9999?Kf(e,4):"+"+e});xr(0,["YY",2],0,function(){return this.year()%100});xr(0,["YYYY",4],0,"year");xr(0,["YYYYY",5],0,"year");xr(0,["YYYYYY",6,!0],0,"year");nr("Y",Q6);nr("YY",wo,Vc);nr("YYYY",tU,eU);nr("YYYYY",X6,G6);nr("YYYYYY",X6,G6);Ji(["YYYYY","YYYYYY"],Us);Ji("YYYY",function(e,t){t[Us]=e.length===2?Kn.parseTwoDigitYear(e):ui(e)});Ji("YY",function(e,t){t[Us]=Kn.parseTwoDigitYear(e)});Ji("Y",function(e,t){t[Us]=parseInt(e,10)});function G2(e){return J6(e)?366:365}Kn.parseTwoDigitYear=function(e){return ui(e)+(ui(e)>68?1900:2e3)};var Ame=zS("FullYear",!0);function sNe(){return J6(this.year())}function zS(e,t){return function(n){return n!=null?(Nme(this,e,n),Kn.updateOffset(this,t),this):Jw(this,e)}}function Jw(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Nme(e,t,n){var r,i,o,a,s;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}o=n,a=e.month(),s=e.date(),s=s===29&&a===1&&!J6(o)?28:s,i?r.setUTCFullYear(o,a,s):r.setFullYear(o,a,s)}}function lNe(e){return e=Au(e),Jf(this[e])?this[e]():this}function cNe(e,t){if(typeof e=="object"){e=Jz(e);var n=JAe(e),r,i=n.length;for(r=0;r<i;r++)this[n[r].unit](e[n[r].unit])}else if(e=Au(e),Jf(this[e]))return this[e](t);return this}function uNe(e,t){return(e%t+t)%t}var ca;Array.prototype.indexOf?ca=Array.prototype.indexOf:ca=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function rU(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=uNe(t,12);return e+=(t-n)/12,n===1?J6(e)?29:28:31-n%7%2}xr("M",["MM",2],"Mo",function(){return this.month()+1});xr("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});xr("MMMM",0,0,function(e){return this.localeData().months(this,e)});nr("M",wo,HS);nr("MM",wo,Vc);nr("MMM",function(e,t){return t.monthsShortRegex(e)});nr("MMMM",function(e,t){return t.monthsRegex(e)});Ji(["M","MM"],function(e,t){t[Yh]=ui(e)-1});Ji(["MMM","MMMM"],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);i!=null?t[Yh]=i:Qr(n).invalidMonth=e});var dNe="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Dme="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Lme=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,fNe=hE,hNe=hE;function pNe(e,t){return e?Nd(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Lme).test(t)?"format":"standalone"][e.month()]:Nd(this._months)?this._months:this._months.standalone}function mNe(e,t){return e?Nd(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Lme.test(t)?"format":"standalone"][e.month()]:Nd(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function gNe(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=Zf([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?t==="MMM"?(i=ca.call(this._shortMonthsParse,a),i!==-1?i:null):(i=ca.call(this._longMonthsParse,a),i!==-1?i:null):t==="MMM"?(i=ca.call(this._shortMonthsParse,a),i!==-1?i:(i=ca.call(this._longMonthsParse,a),i!==-1?i:null)):(i=ca.call(this._longMonthsParse,a),i!==-1?i:(i=ca.call(this._shortMonthsParse,a),i!==-1?i:null))}function vNe(e,t,n){var r,i,o;if(this._monthsParseExact)return gNe.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=Zf([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),!n&&!this._monthsParse[r]&&(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&t==="MMMM"&&this._longMonthsParse[r].test(e))return r;if(n&&t==="MMM"&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function Fme(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=ui(t);else if(t=e.localeData().monthsParse(t),!up(t))return e}var n=t,r=e.date();return r=r<29?r:Math.min(r,rU(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function jme(e){return e!=null?(Fme(this,e),Kn.updateOffset(this,!0),this):Jw(this,"Month")}function yNe(){return rU(this.year(),this.month())}function bNe(e){return this._monthsParseExact?(Pi(this,"_monthsRegex")||Bme.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(Pi(this,"_monthsShortRegex")||(this._monthsShortRegex=fNe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function SNe(e){return this._monthsParseExact?(Pi(this,"_monthsRegex")||Bme.call(this),e?this._monthsStrictRegex:this._monthsRegex):(Pi(this,"_monthsRegex")||(this._monthsRegex=hNe),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function Bme(){function e(l,c){return c.length-l.length}var t=[],n=[],r=[],i,o,a,s;for(i=0;i<12;i++)o=Zf([2e3,i]),a=Jh(this.monthsShort(o,"")),s=Jh(this.months(o,"")),t.push(a),n.push(s),r.push(s),r.push(a);t.sort(e),n.sort(e),r.sort(e),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function CNe(e,t,n,r,i,o,a){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,i,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,o,a),s}function e_(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function l9(e,t,n){var r=7+t-n,i=(7+e_(e,0,r).getUTCDay()-t)%7;return-i+r-1}function Hme(e,t,n,r,i){var o=(7+n-r)%7,a=l9(e,r,i),s=1+7*(t-1)+o+a,l,c;return s<=0?(l=e-1,c=G2(l)+s):s>G2(e)?(l=e+1,c=s-G2(e)):(l=e,c=s),{year:l,dayOfYear:c}}function t_(e,t,n){var r=l9(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,o,a;return i<1?(a=e.year()-1,o=i+ep(a,t,n)):i>ep(e.year(),t,n)?(o=i-ep(e.year(),t,n),a=e.year()+1):(a=e.year(),o=i),{week:o,year:a}}function ep(e,t,n){var r=l9(e,t,n),i=l9(e+1,t,n);return(G2(e)-r+i)/7}xr("w",["ww",2],"wo","week");xr("W",["WW",2],"Wo","isoWeek");nr("w",wo,HS);nr("ww",wo,Vc);nr("W",wo,HS);nr("WW",wo,Vc);pE(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=ui(e)});function xNe(e){return t_(e,this._week.dow,this._week.doy).week}var wNe={dow:0,doy:6};function _Ne(){return this._week.dow}function ENe(){return this._week.doy}function TNe(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function kNe(e){var t=t_(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}xr("d",0,"do","day");xr("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});xr("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});xr("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});xr("e",0,0,"weekday");xr("E",0,0,"isoWeekday");nr("d",wo);nr("e",wo);nr("E",wo);nr("dd",function(e,t){return t.weekdaysMinRegex(e)});nr("ddd",function(e,t){return t.weekdaysShortRegex(e)});nr("dddd",function(e,t){return t.weekdaysRegex(e)});pE(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i!=null?t.d=i:Qr(n).invalidWeekday=e});pE(["d","e","E"],function(e,t,n,r){t[r]=ui(e)});function ONe(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function PNe(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function iU(e,t){return e.slice(t,7).concat(e.slice(0,t))}var MNe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),zme="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),INe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),$Ne=hE,RNe=hE,ANe=hE;function NNe(e,t){var n=Nd(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?iU(n,this._week.dow):e?n[e.day()]:n}function DNe(e){return e===!0?iU(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function LNe(e){return e===!0?iU(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function FNe(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=Zf([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?t==="dddd"?(i=ca.call(this._weekdaysParse,a),i!==-1?i:null):t==="ddd"?(i=ca.call(this._shortWeekdaysParse,a),i!==-1?i:null):(i=ca.call(this._minWeekdaysParse,a),i!==-1?i:null):t==="dddd"?(i=ca.call(this._weekdaysParse,a),i!==-1||(i=ca.call(this._shortWeekdaysParse,a),i!==-1)?i:(i=ca.call(this._minWeekdaysParse,a),i!==-1?i:null)):t==="ddd"?(i=ca.call(this._shortWeekdaysParse,a),i!==-1||(i=ca.call(this._weekdaysParse,a),i!==-1)?i:(i=ca.call(this._minWeekdaysParse,a),i!==-1?i:null)):(i=ca.call(this._minWeekdaysParse,a),i!==-1||(i=ca.call(this._weekdaysParse,a),i!==-1)?i:(i=ca.call(this._shortWeekdaysParse,a),i!==-1?i:null))}function jNe(e,t,n){var r,i,o;if(this._weekdaysParseExact)return FNe.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=Zf([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function BNe(e){if(!this.isValid())return e!=null?this:NaN;var t=Jw(this,"Day");return e!=null?(e=ONe(e,this.localeData()),this.add(e-t,"d")):t}function HNe(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function zNe(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=PNe(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function UNe(e){return this._weekdaysParseExact?(Pi(this,"_weekdaysRegex")||oU.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(Pi(this,"_weekdaysRegex")||(this._weekdaysRegex=$Ne),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function WNe(e){return this._weekdaysParseExact?(Pi(this,"_weekdaysRegex")||oU.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Pi(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=RNe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function VNe(e){return this._weekdaysParseExact?(Pi(this,"_weekdaysRegex")||oU.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Pi(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ANe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function oU(){function e(u,d){return d.length-u.length}var t=[],n=[],r=[],i=[],o,a,s,l,c;for(o=0;o<7;o++)a=Zf([2e3,1]).day(o),s=Jh(this.weekdaysMin(a,"")),l=Jh(this.weekdaysShort(a,"")),c=Jh(this.weekdays(a,"")),t.push(s),n.push(l),r.push(c),i.push(s),i.push(l),i.push(c);t.sort(e),n.sort(e),r.sort(e),i.sort(e),this._weekdaysRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function aU(){return this.hours()%12||12}function KNe(){return this.hours()||24}xr("H",["HH",2],0,"hour");xr("h",["hh",2],0,aU);xr("k",["kk",2],0,KNe);xr("hmm",0,0,function(){return""+aU.apply(this)+Kf(this.minutes(),2)});xr("hmmss",0,0,function(){return""+aU.apply(this)+Kf(this.minutes(),2)+Kf(this.seconds(),2)});xr("Hmm",0,0,function(){return""+this.hours()+Kf(this.minutes(),2)});xr("Hmmss",0,0,function(){return""+this.hours()+Kf(this.minutes(),2)+Kf(this.seconds(),2)});function Ume(e,t){xr(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Ume("a",!0);Ume("A",!1);function Wme(e,t){return t._meridiemParse}nr("a",Wme);nr("A",Wme);nr("H",wo,nU);nr("h",wo,HS);nr("k",wo,HS);nr("HH",wo,Vc);nr("hh",wo,Vc);nr("kk",wo,Vc);nr("hmm",$me);nr("hmmss",Rme);nr("Hmm",$me);nr("Hmmss",Rme);Ji(["H","HH"],Ua);Ji(["k","kk"],function(e,t,n){var r=ui(e);t[Ua]=r===24?0:r});Ji(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});Ji(["h","hh"],function(e,t,n){t[Ua]=ui(e),Qr(n).bigHour=!0});Ji("hmm",function(e,t,n){var r=e.length-2;t[Ua]=ui(e.substr(0,r)),t[bd]=ui(e.substr(r)),Qr(n).bigHour=!0});Ji("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Ua]=ui(e.substr(0,r)),t[bd]=ui(e.substr(r,2)),t[Xh]=ui(e.substr(i)),Qr(n).bigHour=!0});Ji("Hmm",function(e,t,n){var r=e.length-2;t[Ua]=ui(e.substr(0,r)),t[bd]=ui(e.substr(r))});Ji("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Ua]=ui(e.substr(0,r)),t[bd]=ui(e.substr(r,2)),t[Xh]=ui(e.substr(i))});function qNe(e){return(e+"").toLowerCase().charAt(0)==="p"}var GNe=/[ap]\.?m?\.?/i,YNe=zS("Hours",!0);function XNe(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var Vme={calendar:FAe,longDateFormat:zAe,invalidDate:WAe,ordinal:KAe,dayOfMonthOrdinalParse:qAe,relativeTime:YAe,months:dNe,monthsShort:Dme,week:wNe,weekdays:MNe,weekdaysMin:INe,weekdaysShort:zme,meridiemParse:GNe},ko={},Ix={},n_;function QNe(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function cZ(e){return e&&e.toLowerCase().replace("_","-")}function ZNe(e){for(var t=0,n,r,i,o;t<e.length;){for(o=cZ(e[t]).split("-"),n=o.length,r=cZ(e[t+1]),r=r?r.split("-"):null;n>0;){if(i=eO(o.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&QNe(o,r)>=n-1)break;n--}t++}return n_}function JNe(e){return!!(e&&e.match("^[^/\\\\]*$"))}function eO(e){var t=null,n;if(ko[e]===void 0&&typeof module<"u"&&module&&module.exports&&JNe(e))try{t=n_._abbr,n=require,n("./locale/"+e),qm(t)}catch{ko[e]=null}return ko[e]}function qm(e,t){var n;return e&&($l(t)?n=_p(e):n=sU(e,t),n?n_=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),n_._abbr}function sU(e,t){if(t!==null){var n,r=Vme;if(t.abbr=e,ko[e]!=null)Ome("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=ko[e]._config;else if(t.parentLocale!=null)if(ko[t.parentLocale]!=null)r=ko[t.parentLocale]._config;else if(n=eO(t.parentLocale),n!=null)r=n._config;else return Ix[t.parentLocale]||(Ix[t.parentLocale]=[]),Ix[t.parentLocale].push({name:e,config:t}),null;return ko[e]=new Qz(YL(r,t)),Ix[e]&&Ix[e].forEach(function(i){sU(i.name,i.config)}),qm(e),ko[e]}else return delete ko[e],null}function e7e(e,t){if(t!=null){var n,r,i=Vme;ko[e]!=null&&ko[e].parentLocale!=null?ko[e].set(YL(ko[e]._config,t)):(r=eO(e),r!=null&&(i=r._config),t=YL(i,t),r==null&&(t.abbr=e),n=new Qz(t),n.parentLocale=ko[e],ko[e]=n),qm(e)}else ko[e]!=null&&(ko[e].parentLocale!=null?(ko[e]=ko[e].parentLocale,e===qm()&&qm(e)):ko[e]!=null&&delete ko[e]);return ko[e]}function _p(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return n_;if(!Nd(e)){if(t=eO(e),t)return t;e=[e]}return ZNe(e)}function t7e(){return XL(ko)}function lU(e){var t,n=e._a;return n&&Qr(e).overflow===-2&&(t=n[Yh]<0||n[Yh]>11?Yh:n[Pf]<1||n[Pf]>rU(n[Us],n[Yh])?Pf:n[Ua]<0||n[Ua]>24||n[Ua]===24&&(n[bd]!==0||n[Xh]!==0||n[_1]!==0)?Ua:n[bd]<0||n[bd]>59?bd:n[Xh]<0||n[Xh]>59?Xh:n[_1]<0||n[_1]>999?_1:-1,Qr(e)._overflowDayOfYear&&(t<Us||t>Pf)&&(t=Pf),Qr(e)._overflowWeeks&&t===-1&&(t=oNe),Qr(e)._overflowWeekday&&t===-1&&(t=aNe),Qr(e).overflow=t),e}var n7e=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,r7e=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,i7e=/Z|[+-]\d\d(?::?\d\d)?/,AT=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],J$=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],o7e=/^\/?Date\((-?\d+)/i,a7e=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,s7e={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Kme(e){var t,n,r=e._i,i=n7e.exec(r)||r7e.exec(r),o,a,s,l,c=AT.length,u=J$.length;if(i){for(Qr(e).iso=!0,t=0,n=c;t<n;t++)if(AT[t][1].exec(i[1])){a=AT[t][0],o=AT[t][2]!==!1;break}if(a==null){e._isValid=!1;return}if(i[3]){for(t=0,n=u;t<n;t++)if(J$[t][1].exec(i[3])){s=(i[2]||" ")+J$[t][0];break}if(s==null){e._isValid=!1;return}}if(!o&&s!=null){e._isValid=!1;return}if(i[4])if(i7e.exec(i[4]))l="Z";else{e._isValid=!1;return}e._f=a+(s||"")+(l||""),uU(e)}else e._isValid=!1}function l7e(e,t,n,r,i,o){var a=[c7e(e),Dme.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&a.push(parseInt(o,10)),a}function c7e(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function u7e(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function d7e(e,t,n){if(e){var r=zme.indexOf(e),i=new Date(t[0],t[1],t[2]).getDay();if(r!==i)return Qr(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function f7e(e,t,n){if(e)return s7e[e];if(t)return 0;var r=parseInt(n,10),i=r%100,o=(r-i)/100;return o*60+i}function qme(e){var t=a7e.exec(u7e(e._i)),n;if(t){if(n=l7e(t[4],t[3],t[2],t[5],t[6],t[7]),!d7e(t[1],n,e))return;e._a=n,e._tzm=f7e(t[8],t[9],t[10]),e._d=e_.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),Qr(e).rfc2822=!0}else e._isValid=!1}function h7e(e){var t=o7e.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(Kme(e),e._isValid===!1)delete e._isValid;else return;if(qme(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:Kn.createFromInputFallback(e)}Kn.createFromInputFallback=Ru("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function by(e,t,n){return e??t??n}function p7e(e){var t=new Date(Kn.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function cU(e){var t,n,r=[],i,o,a;if(!e._d){for(i=p7e(e),e._w&&e._a[Pf]==null&&e._a[Yh]==null&&m7e(e),e._dayOfYear!=null&&(a=by(e._a[Us],i[Us]),(e._dayOfYear>G2(a)||e._dayOfYear===0)&&(Qr(e)._overflowDayOfYear=!0),n=e_(a,0,e._dayOfYear),e._a[Yh]=n.getUTCMonth(),e._a[Pf]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=i[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[Ua]===24&&e._a[bd]===0&&e._a[Xh]===0&&e._a[_1]===0&&(e._nextDay=!0,e._a[Ua]=0),e._d=(e._useUTC?e_:CNe).apply(null,r),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ua]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==o&&(Qr(e).weekdayMismatch=!0)}}function m7e(e){var t,n,r,i,o,a,s,l,c;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(o=1,a=4,n=by(t.GG,e._a[Us],t_(Co(),1,4).year),r=by(t.W,1),i=by(t.E,1),(i<1||i>7)&&(l=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,c=t_(Co(),o,a),n=by(t.gg,e._a[Us],c.year),r=by(t.w,c.week),t.d!=null?(i=t.d,(i<0||i>6)&&(l=!0)):t.e!=null?(i=t.e+o,(t.e<0||t.e>6)&&(l=!0)):i=o),r<1||r>ep(n,o,a)?Qr(e)._overflowWeeks=!0:l!=null?Qr(e)._overflowWeekday=!0:(s=Hme(n,r,i,o,a),e._a[Us]=s.year,e._dayOfYear=s.dayOfYear)}Kn.ISO_8601=function(){};Kn.RFC_2822=function(){};function uU(e){if(e._f===Kn.ISO_8601){Kme(e);return}if(e._f===Kn.RFC_2822){qme(e);return}e._a=[],Qr(e).empty=!0;var t=""+e._i,n,r,i,o,a,s=t.length,l=0,c,u;for(i=Pme(e._f,e._locale).match(Zz)||[],u=i.length,n=0;n<u;n++)o=i[n],r=(t.match(nNe(o,e))||[])[0],r&&(a=t.substr(0,t.indexOf(r)),a.length>0&&Qr(e).unusedInput.push(a),t=t.slice(t.indexOf(r)+r.length),l+=r.length),sb[o]?(r?Qr(e).empty=!1:Qr(e).unusedTokens.push(o),iNe(o,r,e)):e._strict&&!r&&Qr(e).unusedTokens.push(o);Qr(e).charsLeftOver=s-l,t.length>0&&Qr(e).unusedInput.push(t),e._a[Ua]<=12&&Qr(e).bigHour===!0&&e._a[Ua]>0&&(Qr(e).bigHour=void 0),Qr(e).parsedDateParts=e._a.slice(0),Qr(e).meridiem=e._meridiem,e._a[Ua]=g7e(e._locale,e._a[Ua],e._meridiem),c=Qr(e).era,c!==null&&(e._a[Us]=e._locale.erasConvertYear(c,e._a[Us])),cU(e),lU(e)}function g7e(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function v7e(e){var t,n,r,i,o,a,s=!1,l=e._f.length;if(l===0){Qr(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;i<l;i++)o=0,a=!1,t=Xz({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[i],uU(t),Yz(t)&&(a=!0),o+=Qr(t).charsLeftOver,o+=Qr(t).unusedTokens.length*10,Qr(t).score=o,s?o<r&&(r=o,n=t):(r==null||o<r||a)&&(r=o,n=t,a&&(s=!0));Mm(e,n||t)}function y7e(e){if(!e._d){var t=Jz(e._i),n=t.day===void 0?t.date:t.day;e._a=Tme([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),cU(e)}}function b7e(e){var t=new fE(lU(Gme(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Gme(e){var t=e._i,n=e._f;return e._locale=e._locale||_p(e._l),t===null||n===void 0&&t===""?q6({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),Dd(t)?new fE(lU(t)):(dE(t)?e._d=t:Nd(n)?v7e(e):n?uU(e):S7e(e),Yz(e)||(e._d=null),e))}function S7e(e){var t=e._i;$l(t)?e._d=new Date(Kn.now()):dE(t)?e._d=new Date(t.valueOf()):typeof t=="string"?h7e(e):Nd(t)?(e._a=Tme(t.slice(0),function(n){return parseInt(n,10)}),cU(e)):K1(t)?y7e(e):up(t)?e._d=new Date(t):Kn.createFromInputFallback(e)}function Yme(e,t,n,r,i){var o={};return(t===!0||t===!1)&&(r=t,t=void 0),(n===!0||n===!1)&&(r=n,n=void 0),(K1(e)&&Gz(e)||Nd(e)&&e.length===0)&&(e=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=i,o._l=n,o._i=e,o._f=t,o._strict=r,b7e(o)}function Co(e,t,n,r){return Yme(e,t,n,r,!1)}var C7e=Ru("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Co.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:q6()}),x7e=Ru("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Co.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:q6()});function Xme(e,t){var n,r;if(t.length===1&&Nd(t[0])&&(t=t[0]),!t.length)return Co();for(n=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](n))&&(n=t[r]);return n}function w7e(){var e=[].slice.call(arguments,0);return Xme("isBefore",e)}function _7e(){var e=[].slice.call(arguments,0);return Xme("isAfter",e)}var E7e=function(){return Date.now?Date.now():+new Date},$x=["year","quarter","month","week","day","hour","minute","second","millisecond"];function T7e(e){var t,n=!1,r,i=$x.length;for(t in e)if(Pi(e,t)&&!(ca.call($x,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<i;++r)if(e[$x[r]]){if(n)return!1;parseFloat(e[$x[r]])!==ui(e[$x[r]])&&(n=!0)}return!0}function k7e(){return this._isValid}function O7e(){return Xd(NaN)}function tO(e){var t=Jz(e),n=t.year||0,r=t.quarter||0,i=t.month||0,o=t.week||t.isoWeek||0,a=t.day||0,s=t.hour||0,l=t.minute||0,c=t.second||0,u=t.millisecond||0;this._isValid=T7e(t),this._milliseconds=+u+c*1e3+l*6e4+s*1e3*60*60,this._days=+a+o*7,this._months=+i+r*3+n*12,this._data={},this._locale=_p(),this._bubble()}function T3(e){return e instanceof tO}function ZL(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function P7e(e,t,n){var r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),o=0,a;for(a=0;a<r;a++)ui(e[a])!==ui(t[a])&&o++;return o+i}function Qme(e,t){xr(e,0,0,function(){var n=this.utcOffset(),r="+";return n<0&&(n=-n,r="-"),r+Kf(~~(n/60),2)+t+Kf(~~n%60,2)})}Qme("Z",":");Qme("ZZ","");nr("Z",Z6);nr("ZZ",Z6);Ji(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=dU(Z6,e)});var M7e=/([\+\-]|\d\d)/gi;function dU(e,t){var n=(t||"").match(e),r,i,o;return n===null?null:(r=n[n.length-1]||[],i=(r+"").match(M7e)||["-",0,0],o=+(i[1]*60)+ui(i[2]),o===0?0:i[0]==="+"?o:-o)}function fU(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(Dd(e)||dE(e)?e.valueOf():Co(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),Kn.updateOffset(n,!1),n):Co(e).local()}function JL(e){return-Math.round(e._d.getTimezoneOffset())}Kn.updateOffset=function(){};function I7e(e,t,n){var r=this._offset||0,i;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=dU(Z6,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(i=JL(this)),this._offset=e,this._isUTC=!0,i!=null&&this.add(i,"m"),r!==e&&(!t||this._changeInProgress?ege(this,Xd(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,Kn.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:JL(this)}function $7e(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function R7e(e){return this.utcOffset(0,e)}function A7e(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(JL(this),"m")),this}function N7e(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=dU(eNe,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function D7e(e){return this.isValid()?(e=e?Co(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function L7e(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function F7e(){if(!$l(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Xz(e,this),e=Gme(e),e._a?(t=e._isUTC?Zf(e._a):Co(e._a),this._isDSTShifted=this.isValid()&&P7e(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function j7e(){return this.isValid()?!this._isUTC:!1}function B7e(){return this.isValid()?this._isUTC:!1}function Zme(){return this.isValid()?this._isUTC&&this._offset===0:!1}var H7e=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,z7e=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Xd(e,t){var n=e,r=null,i,o,a;return T3(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:up(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=H7e.exec(e))?(i=r[1]==="-"?-1:1,n={y:0,d:ui(r[Pf])*i,h:ui(r[Ua])*i,m:ui(r[bd])*i,s:ui(r[Xh])*i,ms:ui(ZL(r[_1]*1e3))*i}):(r=z7e.exec(e))?(i=r[1]==="-"?-1:1,n={y:Kg(r[2],i),M:Kg(r[3],i),w:Kg(r[4],i),d:Kg(r[5],i),h:Kg(r[6],i),m:Kg(r[7],i),s:Kg(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(a=U7e(Co(n.from),Co(n.to)),n={},n.ms=a.milliseconds,n.M=a.months),o=new tO(n),T3(e)&&Pi(e,"_locale")&&(o._locale=e._locale),T3(e)&&Pi(e,"_isValid")&&(o._isValid=e._isValid),o}Xd.fn=tO.prototype;Xd.invalid=O7e;function Kg(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function uZ(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function U7e(e,t){var n;return e.isValid()&&t.isValid()?(t=fU(t,e),e.isBefore(t)?n=uZ(e,t):(n=uZ(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Jme(e,t){return function(n,r){var i,o;return r!==null&&!isNaN(+r)&&(Ome(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),i=Xd(n,r),ege(this,i,e),this}}function ege(e,t,n,r){var i=t._milliseconds,o=ZL(t._days),a=ZL(t._months);e.isValid()&&(r=r??!0,a&&Fme(e,Jw(e,"Month")+a*n),o&&Nme(e,"Date",Jw(e,"Date")+o*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&Kn.updateOffset(e,o||a))}var W7e=Jme(1,"add"),V7e=Jme(-1,"subtract");function tge(e){return typeof e=="string"||e instanceof String}function K7e(e){return Dd(e)||dE(e)||tge(e)||up(e)||G7e(e)||q7e(e)||e===null||e===void 0}function q7e(e){var t=K1(e)&&!Gz(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],i,o,a=r.length;for(i=0;i<a;i+=1)o=r[i],n=n||Pi(e,o);return t&&n}function G7e(e){var t=Nd(e),n=!1;return t&&(n=e.filter(function(r){return!up(r)&&tge(e)}).length===0),t&&n}function Y7e(e){var t=K1(e)&&!Gz(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i,o;for(i=0;i<r.length;i+=1)o=r[i],n=n||Pi(e,o);return t&&n}function X7e(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Q7e(e,t){arguments.length===1&&(arguments[0]?K7e(arguments[0])?(e=arguments[0],t=void 0):Y7e(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Co(),r=fU(n,this).startOf("day"),i=Kn.calendarFormat(this,r)||"sameElse",o=t&&(Jf(t[i])?t[i].call(this,n):t[i]);return this.format(o||this.localeData().calendar(i,this,Co(n)))}function Z7e(){return new fE(this)}function J7e(e,t){var n=Dd(e)?e:Co(e);return this.isValid()&&n.isValid()?(t=Au(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function eDe(e,t){var n=Dd(e)?e:Co(e);return this.isValid()&&n.isValid()?(t=Au(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function tDe(e,t,n,r){var i=Dd(e)?e:Co(e),o=Dd(t)?t:Co(t);return this.isValid()&&i.isValid()&&o.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(i,n):!this.isBefore(i,n))&&(r[1]===")"?this.isBefore(o,n):!this.isAfter(o,n))):!1}function nDe(e,t){var n=Dd(e)?e:Co(e),r;return this.isValid()&&n.isValid()?(t=Au(t)||"millisecond",t==="millisecond"?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function rDe(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function iDe(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function oDe(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(r=fU(e,this),!r.isValid())return NaN;switch(i=(r.utcOffset()-this.utcOffset())*6e4,t=Au(t),t){case"year":o=k3(this,r)/12;break;case"month":o=k3(this,r);break;case"quarter":o=k3(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:fu(o)}function k3(e,t){if(e.date()<t.date())return-k3(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,"months"),i,o;return t-r<0?(i=e.clone().add(n-1,"months"),o=(t-r)/(r-i)):(i=e.clone().add(n+1,"months"),o=(t-r)/(i-r)),-(n+o)||0}Kn.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";Kn.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function aDe(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function sDe(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?E3(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Jf(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",E3(n,"Z")):E3(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function lDe(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,i,o;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",o=t+'[")]',this.format(n+r+i+o)}function cDe(e){e||(e=this.isUtc()?Kn.defaultFormatUtc:Kn.defaultFormat);var t=E3(this,e);return this.localeData().postformat(t)}function uDe(e,t){return this.isValid()&&(Dd(e)&&e.isValid()||Co(e).isValid())?Xd({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function dDe(e){return this.from(Co(),e)}function fDe(e,t){return this.isValid()&&(Dd(e)&&e.isValid()||Co(e).isValid())?Xd({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function hDe(e){return this.to(Co(),e)}function nge(e){var t;return e===void 0?this._locale._abbr:(t=_p(e),t!=null&&(this._locale=t),this)}var rge=Ru("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function ige(){return this._locale}var c9=1e3,lb=60*c9,u9=60*lb,oge=(365*400+97)*24*u9;function cb(e,t){return(e%t+t)%t}function age(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-oge:new Date(e,t,n).valueOf()}function sge(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-oge:Date.UTC(e,t,n)}function pDe(e){var t,n;if(e=Au(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?sge:age,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=cb(t+(this._isUTC?0:this.utcOffset()*lb),u9);break;case"minute":t=this._d.valueOf(),t-=cb(t,lb);break;case"second":t=this._d.valueOf(),t-=cb(t,c9);break}return this._d.setTime(t),Kn.updateOffset(this,!0),this}function mDe(e){var t,n;if(e=Au(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?sge:age,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=u9-cb(t+(this._isUTC?0:this.utcOffset()*lb),u9)-1;break;case"minute":t=this._d.valueOf(),t+=lb-cb(t,lb)-1;break;case"second":t=this._d.valueOf(),t+=c9-cb(t,c9)-1;break}return this._d.setTime(t),Kn.updateOffset(this,!0),this}function gDe(){return this._d.valueOf()-(this._offset||0)*6e4}function vDe(){return Math.floor(this.valueOf()/1e3)}function yDe(){return new Date(this.valueOf())}function bDe(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function SDe(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function CDe(){return this.isValid()?this.toISOString():null}function xDe(){return Yz(this)}function wDe(){return Mm({},Qr(this))}function _De(){return Qr(this).overflow}function EDe(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}xr("N",0,0,"eraAbbr");xr("NN",0,0,"eraAbbr");xr("NNN",0,0,"eraAbbr");xr("NNNN",0,0,"eraName");xr("NNNNN",0,0,"eraNarrow");xr("y",["y",1],"yo","eraYear");xr("y",["yy",2],0,"eraYear");xr("y",["yyy",3],0,"eraYear");xr("y",["yyyy",4],0,"eraYear");nr("N",hU);nr("NN",hU);nr("NNN",hU);nr("NNNN",DDe);nr("NNNNN",LDe);Ji(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?Qr(n).era=i:Qr(n).invalidEra=e});nr("y",BS);nr("yy",BS);nr("yyy",BS);nr("yyyy",BS);nr("yo",FDe);Ji(["y","yy","yyy","yyyy"],Us);Ji(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Us]=n._locale.eraYearOrdinalParse(e,i):t[Us]=parseInt(e,10)});function TDe(e,t){var n,r,i,o=this._eras||_p("en")._eras;for(n=0,r=o.length;n<r;++n){switch(typeof o[n].since){case"string":i=Kn(o[n].since).startOf("day"),o[n].since=i.valueOf();break}switch(typeof o[n].until){case"undefined":o[n].until=1/0;break;case"string":i=Kn(o[n].until).startOf("day").valueOf(),o[n].until=i.valueOf();break}}return o}function kDe(e,t,n){var r,i,o=this.eras(),a,s,l;for(e=e.toUpperCase(),r=0,i=o.length;r<i;++r)if(a=o[r].name.toUpperCase(),s=o[r].abbr.toUpperCase(),l=o[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(s===e)return o[r];break;case"NNNN":if(a===e)return o[r];break;case"NNNNN":if(l===e)return o[r];break}else if([a,s,l].indexOf(e)>=0)return o[r]}function ODe(e,t){var n=e.since<=e.until?1:-1;return t===void 0?Kn(e.since).year():Kn(e.since).year()+(t-e.offset)*n}function PDe(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].name;return""}function MDe(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].narrow;return""}function IDe(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].abbr;return""}function $De(){var e,t,n,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=i[e].since<=i[e].until?1:-1,r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return(this.year()-Kn(i[e].since).year())*n+i[e].offset;return this.year()}function RDe(e){return Pi(this,"_erasNameRegex")||pU.call(this),e?this._erasNameRegex:this._erasRegex}function ADe(e){return Pi(this,"_erasAbbrRegex")||pU.call(this),e?this._erasAbbrRegex:this._erasRegex}function NDe(e){return Pi(this,"_erasNarrowRegex")||pU.call(this),e?this._erasNarrowRegex:this._erasRegex}function hU(e,t){return t.erasAbbrRegex(e)}function DDe(e,t){return t.erasNameRegex(e)}function LDe(e,t){return t.erasNarrowRegex(e)}function FDe(e,t){return t._eraYearOrdinalRegex||BS}function pU(){var e=[],t=[],n=[],r=[],i,o,a,s,l,c=this.eras();for(i=0,o=c.length;i<o;++i)a=Jh(c[i].name),s=Jh(c[i].abbr),l=Jh(c[i].narrow),t.push(a),e.push(s),n.push(l),r.push(a),r.push(s),r.push(l);this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}xr(0,["gg",2],0,function(){return this.weekYear()%100});xr(0,["GG",2],0,function(){return this.isoWeekYear()%100});function nO(e,t){xr(0,[e,e.length],0,t)}nO("gggg","weekYear");nO("ggggg","weekYear");nO("GGGG","isoWeekYear");nO("GGGGG","isoWeekYear");nr("G",Q6);nr("g",Q6);nr("GG",wo,Vc);nr("gg",wo,Vc);nr("GGGG",tU,eU);nr("gggg",tU,eU);nr("GGGGG",X6,G6);nr("ggggg",X6,G6);pE(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=ui(e)});pE(["gg","GG"],function(e,t,n,r){t[r]=Kn.parseTwoDigitYear(e)});function jDe(e){return lge.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function BDe(e){return lge.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function HDe(){return ep(this.year(),1,4)}function zDe(){return ep(this.isoWeekYear(),1,4)}function UDe(){var e=this.localeData()._week;return ep(this.year(),e.dow,e.doy)}function WDe(){var e=this.localeData()._week;return ep(this.weekYear(),e.dow,e.doy)}function lge(e,t,n,r,i){var o;return e==null?t_(this,r,i).year:(o=ep(e,r,i),t>o&&(t=o),VDe.call(this,e,t,n,r,i))}function VDe(e,t,n,r,i){var o=Hme(e,t,n,r,i),a=e_(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}xr("Q",0,"Qo","quarter");nr("Q",Mme);Ji("Q",function(e,t){t[Yh]=(ui(e)-1)*3});function KDe(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}xr("D",["DD",2],"Do","date");nr("D",wo,HS);nr("DD",wo,Vc);nr("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});Ji(["D","DD"],Pf);Ji("Do",function(e,t){t[Pf]=ui(e.match(wo)[0])});var cge=zS("Date",!0);xr("DDD",["DDDD",3],"DDDo","dayOfYear");nr("DDD",Y6);nr("DDDD",Ime);Ji(["DDD","DDDD"],function(e,t,n){n._dayOfYear=ui(e)});function qDe(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}xr("m",["mm",2],0,"minute");nr("m",wo,nU);nr("mm",wo,Vc);Ji(["m","mm"],bd);var GDe=zS("Minutes",!1);xr("s",["ss",2],0,"second");nr("s",wo,nU);nr("ss",wo,Vc);Ji(["s","ss"],Xh);var YDe=zS("Seconds",!1);xr("S",0,0,function(){return~~(this.millisecond()/100)});xr(0,["SS",2],0,function(){return~~(this.millisecond()/10)});xr(0,["SSS",3],0,"millisecond");xr(0,["SSSS",4],0,function(){return this.millisecond()*10});xr(0,["SSSSS",5],0,function(){return this.millisecond()*100});xr(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});xr(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});xr(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});xr(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});nr("S",Y6,Mme);nr("SS",Y6,Vc);nr("SSS",Y6,Ime);var Im,uge;for(Im="SSSS";Im.length<=9;Im+="S")nr(Im,BS);function XDe(e,t){t[_1]=ui(("0."+e)*1e3)}for(Im="S";Im.length<=9;Im+="S")Ji(Im,XDe);uge=zS("Milliseconds",!1);xr("z",0,0,"zoneAbbr");xr("zz",0,0,"zoneName");function QDe(){return this._isUTC?"UTC":""}function ZDe(){return this._isUTC?"Coordinated Universal Time":""}var In=fE.prototype;In.add=W7e;In.calendar=Q7e;In.clone=Z7e;In.diff=oDe;In.endOf=mDe;In.format=cDe;In.from=uDe;In.fromNow=dDe;In.to=fDe;In.toNow=hDe;In.get=lNe;In.invalidAt=_De;In.isAfter=J7e;In.isBefore=eDe;In.isBetween=tDe;In.isSame=nDe;In.isSameOrAfter=rDe;In.isSameOrBefore=iDe;In.isValid=xDe;In.lang=rge;In.locale=nge;In.localeData=ige;In.max=x7e;In.min=C7e;In.parsingFlags=wDe;In.set=cNe;In.startOf=pDe;In.subtract=V7e;In.toArray=bDe;In.toObject=SDe;In.toDate=yDe;In.toISOString=sDe;In.inspect=lDe;typeof Symbol<"u"&&Symbol.for!=null&&(In[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});In.toJSON=CDe;In.toString=aDe;In.unix=vDe;In.valueOf=gDe;In.creationData=EDe;In.eraName=PDe;In.eraNarrow=MDe;In.eraAbbr=IDe;In.eraYear=$De;In.year=Ame;In.isLeapYear=sNe;In.weekYear=jDe;In.isoWeekYear=BDe;In.quarter=In.quarters=KDe;In.month=jme;In.daysInMonth=yNe;In.week=In.weeks=TNe;In.isoWeek=In.isoWeeks=kNe;In.weeksInYear=UDe;In.weeksInWeekYear=WDe;In.isoWeeksInYear=HDe;In.isoWeeksInISOWeekYear=zDe;In.date=cge;In.day=In.days=BNe;In.weekday=HNe;In.isoWeekday=zNe;In.dayOfYear=qDe;In.hour=In.hours=YNe;In.minute=In.minutes=GDe;In.second=In.seconds=YDe;In.millisecond=In.milliseconds=uge;In.utcOffset=I7e;In.utc=R7e;In.local=A7e;In.parseZone=N7e;In.hasAlignedHourOffset=D7e;In.isDST=L7e;In.isLocal=j7e;In.isUtcOffset=B7e;In.isUtc=Zme;In.isUTC=Zme;In.zoneAbbr=QDe;In.zoneName=ZDe;In.dates=Ru("dates accessor is deprecated. Use date instead.",cge);In.months=Ru("months accessor is deprecated. Use month instead",jme);In.years=Ru("years accessor is deprecated. Use year instead",Ame);In.zone=Ru("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",$7e);In.isDSTShifted=Ru("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",F7e);function JDe(e){return Co(e*1e3)}function eLe(){return Co.apply(null,arguments).parseZone()}function dge(e){return e}var Mi=Qz.prototype;Mi.calendar=jAe;Mi.longDateFormat=UAe;Mi.invalidDate=VAe;Mi.ordinal=GAe;Mi.preparse=dge;Mi.postformat=dge;Mi.relativeTime=XAe;Mi.pastFuture=QAe;Mi.set=LAe;Mi.eras=TDe;Mi.erasParse=kDe;Mi.erasConvertYear=ODe;Mi.erasAbbrRegex=ADe;Mi.erasNameRegex=RDe;Mi.erasNarrowRegex=NDe;Mi.months=pNe;Mi.monthsShort=mNe;Mi.monthsParse=vNe;Mi.monthsRegex=SNe;Mi.monthsShortRegex=bNe;Mi.week=xNe;Mi.firstDayOfYear=ENe;Mi.firstDayOfWeek=_Ne;Mi.weekdays=NNe;Mi.weekdaysMin=LNe;Mi.weekdaysShort=DNe;Mi.weekdaysParse=jNe;Mi.weekdaysRegex=UNe;Mi.weekdaysShortRegex=WNe;Mi.weekdaysMinRegex=VNe;Mi.isPM=qNe;Mi.meridiem=XNe;function d9(e,t,n,r){var i=_p(),o=Zf().set(r,t);return i[n](o,e)}function fge(e,t,n){if(up(e)&&(t=e,e=void 0),e=e||"",t!=null)return d9(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=d9(e,r,n,"month");return i}function mU(e,t,n,r){typeof e=="boolean"?(up(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,up(t)&&(n=t,t=void 0),t=t||"");var i=_p(),o=e?i._week.dow:0,a,s=[];if(n!=null)return d9(t,(n+o)%7,r,"day");for(a=0;a<7;a++)s[a]=d9(t,(a+o)%7,r,"day");return s}function tLe(e,t){return fge(e,t,"months")}function nLe(e,t){return fge(e,t,"monthsShort")}function rLe(e,t,n){return mU(e,t,n,"weekdays")}function iLe(e,t,n){return mU(e,t,n,"weekdaysShort")}function oLe(e,t,n){return mU(e,t,n,"weekdaysMin")}qm("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=ui(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});Kn.lang=Ru("moment.lang is deprecated. Use moment.locale instead.",qm);Kn.langData=Ru("moment.langData is deprecated. Use moment.localeData instead.",_p);var yh=Math.abs;function aLe(){var e=this._data;return this._milliseconds=yh(this._milliseconds),this._days=yh(this._days),this._months=yh(this._months),e.milliseconds=yh(e.milliseconds),e.seconds=yh(e.seconds),e.minutes=yh(e.minutes),e.hours=yh(e.hours),e.months=yh(e.months),e.years=yh(e.years),this}function hge(e,t,n,r){var i=Xd(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function sLe(e,t){return hge(this,e,t,1)}function lLe(e,t){return hge(this,e,t,-1)}function dZ(e){return e<0?Math.floor(e):Math.ceil(e)}function cLe(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,i,o,a,s,l;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=dZ(eF(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=fu(e/1e3),r.seconds=i%60,o=fu(i/60),r.minutes=o%60,a=fu(o/60),r.hours=a%24,t+=fu(a/24),l=fu(pge(t)),n+=l,t-=dZ(eF(l)),s=fu(n/12),n%=12,r.days=t,r.months=n,r.years=s,this}function pge(e){return e*4800/146097}function eF(e){return e*146097/4800}function uLe(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=Au(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+pge(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(eF(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function Ep(e){return function(){return this.as(e)}}var mge=Ep("ms"),dLe=Ep("s"),fLe=Ep("m"),hLe=Ep("h"),pLe=Ep("d"),mLe=Ep("w"),gLe=Ep("M"),vLe=Ep("Q"),yLe=Ep("y"),bLe=mge;function SLe(){return Xd(this)}function CLe(e){return e=Au(e),this.isValid()?this[e+"s"]():NaN}function Vv(e){return function(){return this.isValid()?this._data[e]:NaN}}var xLe=Vv("milliseconds"),wLe=Vv("seconds"),_Le=Vv("minutes"),ELe=Vv("hours"),TLe=Vv("days"),kLe=Vv("months"),OLe=Vv("years");function PLe(){return fu(this.days()/7)}var Dh=Math.round,zy={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function MLe(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function ILe(e,t,n,r){var i=Xd(e).abs(),o=Dh(i.as("s")),a=Dh(i.as("m")),s=Dh(i.as("h")),l=Dh(i.as("d")),c=Dh(i.as("M")),u=Dh(i.as("w")),d=Dh(i.as("y")),h=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||a<=1&&["m"]||a<n.m&&["mm",a]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l];return n.w!=null&&(h=h||u<=1&&["w"]||u<n.w&&["ww",u]),h=h||c<=1&&["M"]||c<n.M&&["MM",c]||d<=1&&["y"]||["yy",d],h[2]=t,h[3]=+e>0,h[4]=r,MLe.apply(null,h)}function $Le(e){return e===void 0?Dh:typeof e=="function"?(Dh=e,!0):!1}function RLe(e,t){return zy[e]===void 0?!1:t===void 0?zy[e]:(zy[e]=t,e==="s"&&(zy.ss=t-1),!0)}function ALe(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=zy,i,o;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},zy,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),o=ILe(this,!n,r,i),n&&(o=i.pastFuture(+this,o)),i.postformat(o)}var eR=Math.abs;function K0(e){return(e>0)-(e<0)||+e}function rO(){if(!this.isValid())return this.localeData().invalidDate();var e=eR(this._milliseconds)/1e3,t=eR(this._days),n=eR(this._months),r,i,o,a,s=this.asSeconds(),l,c,u,d;return s?(r=fu(e/60),i=fu(r/60),e%=60,r%=60,o=fu(n/12),n%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",c=K0(this._months)!==K0(s)?"-":"",u=K0(this._days)!==K0(s)?"-":"",d=K0(this._milliseconds)!==K0(s)?"-":"",l+"P"+(o?c+o+"Y":"")+(n?c+n+"M":"")+(t?u+t+"D":"")+(i||r||e?"T":"")+(i?d+i+"H":"")+(r?d+r+"M":"")+(e?d+a+"S":"")):"P0D"}var Si=tO.prototype;Si.isValid=k7e;Si.abs=aLe;Si.add=sLe;Si.subtract=lLe;Si.as=uLe;Si.asMilliseconds=mge;Si.asSeconds=dLe;Si.asMinutes=fLe;Si.asHours=hLe;Si.asDays=pLe;Si.asWeeks=mLe;Si.asMonths=gLe;Si.asQuarters=vLe;Si.asYears=yLe;Si.valueOf=bLe;Si._bubble=cLe;Si.clone=SLe;Si.get=CLe;Si.milliseconds=xLe;Si.seconds=wLe;Si.minutes=_Le;Si.hours=ELe;Si.days=TLe;Si.weeks=PLe;Si.months=kLe;Si.years=OLe;Si.humanize=ALe;Si.toISOString=rO;Si.toString=rO;Si.toJSON=rO;Si.locale=nge;Si.localeData=ige;Si.toIsoString=Ru("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",rO);Si.lang=rge;xr("X",0,0,"unix");xr("x",0,0,"valueOf");nr("x",Q6);nr("X",tNe);Ji("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});Ji("x",function(e,t,n){n._d=new Date(ui(e))});//! moment.js
|
||
Kn.version="2.30.1";NAe(Co);Kn.fn=In;Kn.min=w7e;Kn.max=_7e;Kn.now=E7e;Kn.utc=Zf;Kn.unix=JDe;Kn.months=tLe;Kn.isDate=dE;Kn.locale=qm;Kn.invalid=q6;Kn.duration=Xd;Kn.isMoment=Dd;Kn.weekdays=rLe;Kn.parseZone=eLe;Kn.localeData=_p;Kn.isDuration=T3;Kn.monthsShort=nLe;Kn.weekdaysMin=oLe;Kn.defineLocale=sU;Kn.updateLocale=e7e;Kn.locales=t7e;Kn.weekdaysShort=iLe;Kn.normalizeUnits=Au;Kn.relativeTimeRounding=$Le;Kn.relativeTimeThreshold=RLe;Kn.calendarFormat=X7e;Kn.prototype=In;Kn.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};let NT;const NLe=new Uint8Array(16);function DLe(){if(!NT&&(NT=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!NT))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return NT(NLe)}const ps=[];for(let e=0;e<256;++e)ps.push((e+256).toString(16).slice(1));function LLe(e,t=0){return ps[e[t+0]]+ps[e[t+1]]+ps[e[t+2]]+ps[e[t+3]]+"-"+ps[e[t+4]]+ps[e[t+5]]+"-"+ps[e[t+6]]+ps[e[t+7]]+"-"+ps[e[t+8]]+ps[e[t+9]]+"-"+ps[e[t+10]]+ps[e[t+11]]+ps[e[t+12]]+ps[e[t+13]]+ps[e[t+14]]+ps[e[t+15]]}const FLe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),fZ={randomUUID:FLe};function jLe(e,t,n){if(fZ.randomUUID&&!t&&!e)return fZ.randomUUID();e=e||{};const r=e.random||(e.rng||DLe)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,LLe(r)}const BLe="1.0.2";function HLe(){return BLe}function zLe(){const e=localStorage.getItem(d3);(e===null||e==="true")&&new Audio(APe).play()}function ULe(){return Kn().format("YYYY-MM-DD HH:mm:ss")}function iO(){return jLe().replaceAll(/-/g,"")}function q0(e){return e.endsWith("/")?e.slice(0,-1):e}function hZ(e,t){return e.length>t?e.slice(0,t-3)+"...":e}function WLe(e){if(BPe===e||HPe===e||zPe===e||UPe===e||WPe===e)return!0}function VLe(e){return e===Xw||e===Qw}function KLe(e){return e===Xw||e===Qw}function qLe(e){return e.startsWith(QPe)}function GLe(){console.log("%cWelcome to Bytedesk","font-family:Arial; color:#3370ff ; font-size:18px; font-weight:bold;","GitHub:https://github.com/bytedesk/bytedesk")}const pg=Wc()(Kd(qd(Gd(e=>({orgTree:[],currentOrg:{uid:"",name:"",logo:"",description:""},setCurrentOrg(t){e({currentOrg:t})},deleteOrg:()=>e({currentOrg:{uid:"",name:"",logo:"",description:""}})})),{name:pPe}))),Sd=Wc()(Kd(qd(Gd((e,t)=>({threads:[],queuingThreads:[],currentThread:{uid:"",user:{uid:"",nickname:"",avatar:""},topic:"",content:"",type:"",unreadCount:0,extra:"",updatedAt:""},currentQueuingThread:{uid:"",user:{uid:"",nickname:"",avatar:""}},threadResult:{data:{content:[],last:!0}},showQueueButton:!1,showQueueList:!1,showRightPanel:!1,loading:!1,error:null,searchText:"",pagination:{pageNumber:0,pageSize:100,total:0},filters:{},addThread(n){var i,o;if(n.state===zX)return t().addQueuingThread(n),0;if(t().threads.some(a=>a.topic===n.topic))if(((i=t().currentThread)==null?void 0:i.topic)===""||((o=t().currentThread)==null?void 0:o.topic)!==n.topic){for(let a=0;a<t().threads.length;a++){const s=t().threads[a];s.topic===n.topic&&(n.unreadCount=s.unreadCount+1,n.top=s.top,n.mute=s.mute,n.unread=s.unread,n.agent=s.agent)}return e({threads:[n,...t().threads.filter(a=>a.topic!==n.topic)]}),n.unreadCount}else{const a=t().threads.map(s=>s.topic===n.topic?(n.top=s.top,n.mute=s.mute,n.unread=s.unread,n.agent=s.agent,n):s);return e({threads:a}),0}else return n.unreadCount=1,e({threads:[n,...t().threads]}),n.unreadCount},addThreadWithMessage(n,r){var s,l;if(r.type===jPe)return t().addQueuingThread(n),0;const i=t().threads.some(c=>c.topic===n.topic),o=!VLe(r.type);if(KLe(r.type)&&(n.state=UX),i)if(((s=t().currentThread)==null?void 0:s.topic)===""||((l=t().currentThread)==null?void 0:l.topic)!==n.topic){for(let c=0;c<t().threads.length;c++){const u=t().threads[c];u.topic===n.topic&&(o&&(n.unreadCount=u.unreadCount+1),n.top=u.top,n.mute=u.mute,n.unread=u.unread,n.agent=u.agent)}return e({threads:[n,...t().threads.filter(c=>c.topic!==n.topic)]}),n.unreadCount}else{const c=t().threads.map(u=>u.topic===n.topic?(n.top=u.top,n.mute=u.mute,n.unread=u.unread,n.agent=u.agent,n):u);return e({threads:c}),0}else return o&&(n.unreadCount=1),e({threads:[n,...t().threads]}),n.unreadCount},addQueuingThread(n){t().queuingThreads.some(i=>i.topic===n.topic)||e({queuingThreads:[n,...t().queuingThreads]})},updateThreadContent(n,r){let i=null;const o=t().threads.map(a=>a.topic===n?(i={...a,unreadCount:a.unreadCount+1,content:r},i):a);return e({threads:o}),i},updateThreadStatus(n,r){let i=null;const o=t().threads.map(a=>a.topic===n?(i={...a,state:r},i):a);return e({threads:o}),i},removeThread(n){e({threads:[...t().threads.filter(r=>(r==null?void 0:r.uid)!==(n==null?void 0:n.uid))]})},closeThread(n){const r=t().threads.map(i=>i.topic===n?{...i,state:UX}:i);e({threads:r})},addThreads(n){for(let r=0;r<n.length;r++){const i=n[r];if(i.state===zX){t().addQueuingThread(i);continue}if(!t().threads.some(a=>a.topic===i.topic))e({threads:[...t().threads,i]});else{const a=t().threads.map(s=>s.topic===i.topic?{...i,unreadCount:s.unreadCount}:s);e({threads:a})}}},setThreads(n){e(r=>{r.threads=n})},setQueuingThreads(n){e(r=>{r.queuingThreads=n})},setCurrentThread(n){e(o=>{o.showQueueList=!1});const r={...n,unreadCount:0},i=t().threads.map(o=>o.topic===r.topic?r:o);e(o=>{o.currentThread=r,o.threads=i})},setCurrentQueuingThread(n){e(r=>{r.currentQueuingThread=n})},setThreadResult(n){e(r=>{r.threadResult=n})},getUnreadCount(){return t().threads.reduce((n,r)=>{var i;return r.unreadCount>0&&r.topic!==((i=t().currentThread)==null?void 0:i.topic)?n+r.unreadCount:n},0)},setShowQueueButton(n){e(r=>{r.showQueueButton=n})},setShowQueueList(n){e(r=>{r.showQueueList=n,r.showRightPanel=!1})},setShowRightPanel(n){e(r=>{r.showRightPanel=n})},resetThreads(){e(n=>{n.threads=[],n.queuingThreads=[],n.currentThread={uid:"",user:{uid:"",nickname:"",avatar:""},topic:"",content:"",type:"",unreadCount:0,extra:"",updatedAt:""},n.currentQueuingThread={uid:"",user:{uid:"",nickname:"",avatar:""}},n.threadResult={data:{content:[],last:!0}},n.showQueueButton=!1,n.showQueueList=!1,n.showRightPanel=!1})},setLoading:n=>e({loading:n}),setError:n=>e({error:n}),setSearchText:n=>e({searchText:n}),setFilter:(n,r)=>e(i=>{i.filters[n]=r}),clearFilters:()=>e({filters:{}}),refreshThreads:async()=>{const{currentOrg:n}=pg.getState();if(n!=null&&n.uid){const{threadService:r}=await qz(async()=>{const{threadService:i}=await import("./threadService-B8kwmvI0.js");return{threadService:i}},[]);await r.loadThreads(n.uid)}},setPagination:n=>e({pagination:n})})),{name:SPe}))),Tp=Wc()(Kd(qd(Gd((e,t)=>({messageList:[],addMessage(n){if(t().messageList.some(i=>i.uid===n.uid)){if(n.type===Yw){const o=t().messageList.findIndex(a=>a.type===Yw&&a.uid===n.uid);if(o!==-1){const a=[...t().messageList];a[o].content+=n.content,e({messageList:a});return}}const i=t().messageList.findIndex(o=>o.uid===n.uid);if(i!==-1){const o=[...t().messageList];o[i]=n,e({messageList:o})}}else{const i=t().messageList[t().messageList.length-1];if(i&&n.type===fD&&i.type===fD){const o=t().messageList.findIndex(s=>s.uid===i.uid),a=[...t().messageList];a[o]=n,e({messageList:a})}else e({messageList:[...t().messageList,n]})}t().sortMessageList()},addMessageList(n){const r=[];for(let o=0;o<n.length;o++){const a=n[o];t().messageList.some(l=>l.uid===a.uid)||r.unshift(a)}const i=[...r,...t().messageList].sort((o,a)=>{const s=Kn(o.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf(),l=Kn(a.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf();return s-l});console.log("sortedMessageList",i),e({messageList:i})},updateMessageStatus(n,r){const i=t().messageList.findIndex(o=>o.uid===n);if(i!==-1){const o=[...t().messageList];o[i].status=r,e({messageList:o})}},updateMessage(n){const r=t().messageList.findIndex(i=>i.uid===n.uid);if(r!==-1){const i=[...t().messageList];i[r].content=n.content,e({messageList:i})}else console.log("找不到该消息")},deleteMessage(n){const r=t().messageList.findIndex(i=>i.uid===n);if(r!==-1){const i=[...t().messageList];i.splice(r,1),e({messageList:i})}},recallMessage(n){const r=t().messageList.findIndex(i=>i.uid===n);if(r!==-1){const i=[...t().messageList];i[r].type=Xfe,i[r].content="该消息已被撤回",e({messageList:i})}},sortMessageList(){const n=t().messageList.sort((r,i)=>{const o=Kn(r.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf(),a=Kn(i.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf();return o-a});e({messageList:n})},resetMessageList(){e({messageList:[]})}})),{name:gPe}))),qa=Wc()(Kd(qd(Gd((e,t)=>({userInfo:{uid:"",nickname:"",avatar:""},deviceUid:"",setUserInfo:n=>{e({userInfo:n})},setDeviceUid(n){e({deviceUid:n})},resetUserInfo(){e({userInfo:{uid:t().userInfo.uid,nickname:"",avatar:""}})}})),{name:yPe}))),Kv=Wc()(Kd(qd(Gd((e,t)=>({agentResult:{data:{content:[]}},agentInfo:{uid:"",orgUid:""},insertAgent(n){e(r=>{r.agentResult.data.content.unshift(n)})},updateAgent(n){e(r=>{const i=r.agentResult.data.content,o=i.findIndex(a=>a.uid===n.uid);o!==-1?i[o]=n:console.warn(`Agent with uid ${n.uid} not found.`)})},deleteAgent(n){e(r=>{const i=r.agentResult.data.content,o=i.findIndex(a=>a.uid===n.uid);o!==-1?i.splice(o,1):console.warn(`Agent with uid ${n.uid} not found.`)})},setAgentResult:n=>{e({agentResult:n})},setAgentInfo(n){e({agentInfo:n})},deleteAgentInfo(n){const r=t().agentResult.data.content,i=r.findIndex(o=>o.uid===n);i!==-1?e({agentResult:{...t().agentResult,data:{content:[...r.slice(0,i),...r.slice(i+1)]}}}):console.warn("Agent not found in cache:",n),t().agentInfo.uid===n&&e({agentInfo:{uid:"",orgUid:""}})},resetAgentInfo(){e({agentResult:{data:{content:[]}},agentInfo:{uid:"",orgUid:""}})}})),{name:xPe})));var gge={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 s=arguments[a];s&&(o=i(o,r(s)))}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 s in o)t.call(o,s)&&o[s]&&(a=i(a,s));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})()})(gge);var oO=gge.exports;const Re=hi(oO);function ut(){return ut=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},ut.apply(null,arguments)}function ln(e){"@babel/helpers - typeof";return ln=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},ln(e)}var YLe=Symbol.for("react.element"),XLe=Symbol.for("react.transitional.element"),QLe=Symbol.for("react.fragment");function vge(e){return e&&ln(e)==="object"&&(e.$$typeof===YLe||e.$$typeof===XLe)&&e.type===QLe}function Uo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return ge.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(Uo(r)):vge(r)&&r.props?n=n.concat(Uo(r.props.children,t)):n.push(r))}),n}var tF={},ZLe=function(t){};function JLe(e,t){}function eFe(e,t){}function tFe(){tF={}}function yge(e,t,n){!t&&!tF[n]&&(e(!1,n),tF[n]=!0)}function fi(e,t){yge(JLe,e,t)}function f9(e,t){yge(eFe,e,t)}fi.preMessage=ZLe;fi.resetWarned=tFe;fi.noteOnce=f9;function nFe(e,t){if(ln(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ln(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bge(e){var t=nFe(e,"string");return ln(t)=="symbol"?t:t+""}function ae(e,t,n){return(t=bge(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pZ(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 G(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pZ(Object(n),!0).forEach(function(r){ae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pZ(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function r_(e){return e instanceof HTMLElement||e instanceof SVGElement}function aO(e){return e&&ln(e)==="object"&&r_(e.nativeElement)?e.nativeElement:r_(e)?e:null}function Y2(e){var t=aO(e);if(t)return t;if(e instanceof ge.Component){var n;return(n=Uw.findDOMNode)===null||n===void 0?void 0:n.call(Uw,e)}return null}var Sge={exports:{}},zi={};/**
|
||
* @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 gU=Symbol.for("react.element"),vU=Symbol.for("react.portal"),sO=Symbol.for("react.fragment"),lO=Symbol.for("react.strict_mode"),cO=Symbol.for("react.profiler"),uO=Symbol.for("react.provider"),dO=Symbol.for("react.context"),rFe=Symbol.for("react.server_context"),fO=Symbol.for("react.forward_ref"),hO=Symbol.for("react.suspense"),pO=Symbol.for("react.suspense_list"),mO=Symbol.for("react.memo"),gO=Symbol.for("react.lazy"),iFe=Symbol.for("react.offscreen"),Cge;Cge=Symbol.for("react.module.reference");function Nu(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case gU:switch(e=e.type,e){case sO:case cO:case lO:case hO:case pO:return e;default:switch(e=e&&e.$$typeof,e){case rFe:case dO:case fO:case gO:case mO:case uO:return e;default:return t}}case vU:return t}}}zi.ContextConsumer=dO;zi.ContextProvider=uO;zi.Element=gU;zi.ForwardRef=fO;zi.Fragment=sO;zi.Lazy=gO;zi.Memo=mO;zi.Portal=vU;zi.Profiler=cO;zi.StrictMode=lO;zi.Suspense=hO;zi.SuspenseList=pO;zi.isAsyncMode=function(){return!1};zi.isConcurrentMode=function(){return!1};zi.isContextConsumer=function(e){return Nu(e)===dO};zi.isContextProvider=function(e){return Nu(e)===uO};zi.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===gU};zi.isForwardRef=function(e){return Nu(e)===fO};zi.isFragment=function(e){return Nu(e)===sO};zi.isLazy=function(e){return Nu(e)===gO};zi.isMemo=function(e){return Nu(e)===mO};zi.isPortal=function(e){return Nu(e)===vU};zi.isProfiler=function(e){return Nu(e)===cO};zi.isStrictMode=function(e){return Nu(e)===lO};zi.isSuspense=function(e){return Nu(e)===hO};zi.isSuspenseList=function(e){return Nu(e)===pO};zi.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===sO||e===cO||e===lO||e===hO||e===pO||e===iFe||typeof e=="object"&&e!==null&&(e.$$typeof===gO||e.$$typeof===mO||e.$$typeof===uO||e.$$typeof===dO||e.$$typeof===fO||e.$$typeof===Cge||e.getModuleId!==void 0)};zi.typeOf=Nu;Sge.exports=zi;var tR=Sge.exports;function dp(e,t,n){var r=f.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var i_=function(t,n){typeof t=="function"?t(n):ln(t)==="object"&&t&&"current"in t&&(t.current=n)},va=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){i_(a,o)})}},Qd=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return dp(function(){return va.apply(void 0,n)},n,function(i,o){return i.length!==o.length||i.every(function(a,s){return a!==o[s]})})},Ld=function(t){var n,r;if(!t)return!1;if(yU(t)&&t.props.propertyIsEnumerable("ref"))return!0;var i=tR.isMemo(t)?t.type.type:t.type;return!(typeof i=="function"&&!((n=i.prototype)!==null&&n!==void 0&&n.render)&&i.$$typeof!==tR.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==tR.ForwardRef)};function yU(e){return f.isValidElement(e)&&!vge(e)}var oFe=function(t){return yU(t)&&Ld(t)},mg=function(t){if(t&&yU(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null},nF=f.createContext(null);function aFe(e){var t=e.children,n=e.onBatchResize,r=f.useRef(0),i=f.useRef([]),o=f.useContext(nF),a=f.useCallback(function(s,l,c){r.current+=1;var u=r.current;i.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){u===r.current&&(n==null||n(i.current),i.current=[])}),o==null||o(s,l,c)},[n,o]);return f.createElement(nF.Provider,{value:a},t)}var xge=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}()}(),rF=typeof window<"u"&&typeof document<"u"&&window.document===document,h9=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")()}(),sFe=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(h9):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),lFe=2;function cFe(e,t){var n=!1,r=!1,i=0;function o(){n&&(n=!1,e()),r&&s()}function a(){sFe(o)}function s(){var l=Date.now();if(n){if(l-i<lFe)return;r=!0}else n=!0,r=!1,setTimeout(a,t);i=l}return s}var uFe=20,dFe=["top","right","bottom","left","width","height","size","weight"],fFe=typeof MutationObserver<"u",hFe=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=cFe(this.refresh.bind(this),uFe)}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(){!rF||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),fFe?(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(){!rF||!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=dFe.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}(),wge=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},Ub=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||h9},_ge=vO(0,0,0,0);function p9(e){return parseFloat(e)||0}function mZ(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+p9(o)},0)}function pFe(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]=p9(a)}return n}function mFe(e){var t=e.getBBox();return vO(0,0,t.width,t.height)}function gFe(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return _ge;var r=Ub(e).getComputedStyle(e),i=pFe(r),o=i.left+i.right,a=i.top+i.bottom,s=p9(r.width),l=p9(r.height);if(r.boxSizing==="border-box"&&(Math.round(s+o)!==t&&(s-=mZ(r,"left","right")+o),Math.round(l+a)!==n&&(l-=mZ(r,"top","bottom")+a)),!yFe(e)){var c=Math.round(s+o)-t,u=Math.round(l+a)-n;Math.abs(c)!==1&&(s-=c),Math.abs(u)!==1&&(l-=u)}return vO(i.left,i.top,s,l)}var vFe=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Ub(e).SVGGraphicsElement}:function(e){return e instanceof Ub(e).SVGElement&&typeof e.getBBox=="function"}}();function yFe(e){return e===Ub(e).document.documentElement}function bFe(e){return rF?vFe(e)?mFe(e):gFe(e):_ge}function SFe(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 wge(a,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),a}function vO(e,t,n,r){return{x:e,y:t,width:n,height:r}}var CFe=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=vO(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=bFe(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}(),xFe=function(){function e(t,n){var r=SFe(n);wge(this,{target:t,contentRect:r})}return e}(),wFe=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new xge,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 Ub(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new CFe(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 Ub(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 xFe(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}(),Ege=typeof WeakMap<"u"?new WeakMap:new xge,Tge=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=hFe.getInstance(),r=new wFe(t,n,this);Ege.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){Tge.prototype[e]=function(){var t;return(t=Ege.get(this))[e].apply(t,arguments)}});var _Fe=function(){return typeof h9.ResizeObserver<"u"?h9.ResizeObserver:Tge}(),$m=new Map;function EFe(e){e.forEach(function(t){var n,r=t.target;(n=$m.get(r))===null||n===void 0||n.forEach(function(i){return i(r)})})}var kge=new _Fe(EFe);function TFe(e,t){$m.has(e)||($m.set(e,new Set),kge.observe(e)),$m.get(e).add(t)}function kFe(e,t){$m.has(e)&&($m.get(e).delete(t),$m.get(e).size||(kge.unobserve(e),$m.delete(e)))}function pi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gZ(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,bge(r.key),r)}}function mi(e,t,n){return t&&gZ(e.prototype,t),n&&gZ(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function o_(e,t){return o_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},o_(e,t)}function Xs(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&&o_(e,t)}function vv(e){return vv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},vv(e)}function yO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(yO=function(){return!!e})()}function On(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Oge(e,t){if(t&&(ln(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return On(e)}function Sl(e){var t=yO();return function(){var n,r=vv(e);if(t){var i=vv(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Oge(this,n)}}var OFe=function(e){Xs(n,e);var t=Sl(n);function n(){return pi(this,n),t.apply(this,arguments)}return mi(n,[{key:"render",value:function(){return this.props.children}}]),n}(f.Component);function PFe(e,t){var n=e.children,r=e.disabled,i=f.useRef(null),o=f.useRef(null),a=f.useContext(nF),s=typeof n=="function",l=s?n(i):n,c=f.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&f.isValidElement(l)&&Ld(l),d=u?mg(l):null,h=Qd(d,i),p=function(){var S;return Y2(i.current)||(i.current&&ln(i.current)==="object"?Y2((S=i.current)===null||S===void 0?void 0:S.nativeElement):null)||Y2(o.current)};f.useImperativeHandle(t,function(){return p()});var m=f.useRef(e);m.current=e;var v=f.useCallback(function(y){var S=m.current,b=S.onResize,C=S.data,_=y.getBoundingClientRect(),T=_.width,x=_.height,E=y.offsetWidth,k=y.offsetHeight,M=Math.floor(T),P=Math.floor(x);if(c.current.width!==M||c.current.height!==P||c.current.offsetWidth!==E||c.current.offsetHeight!==k){var D={width:M,height:P,offsetWidth:E,offsetHeight:k};c.current=D;var R=E===Math.round(T)?T:E,A=k===Math.round(x)?x:k,H=G(G({},D),{},{offsetWidth:R,offsetHeight:A});a==null||a(H,y,C),b&&Promise.resolve().then(function(){b(H,y)})}},[]);return f.useEffect(function(){var y=p();return y&&!r&&TFe(y,v),function(){return kFe(y,v)}},[i.current,r]),f.createElement(OFe,{ref:o},u?f.cloneElement(l,{ref:h}):l)}var MFe=f.forwardRef(PFe),IFe="rc-observer-key";function $Fe(e,t){var n=e.children,r=typeof n=="function"?[n]:Uo(n);return r.map(function(i,o){var a=(i==null?void 0:i.key)||"".concat(IFe,"-").concat(o);return f.createElement(MFe,ut({},e,{key:a,ref:o===0?t:void 0}),i)})}var Va=f.forwardRef($Fe);Va.Collection=aFe;function Pr(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}function iF(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 RFe(e){if(Array.isArray(e))return iF(e)}function Pge(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bO(e,t){if(e){if(typeof e=="string")return iF(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)?iF(e,t):void 0}}function AFe(){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 pt(e){return RFe(e)||Pge(e)||bO(e)||AFe()}var Mge=function(t){return+setTimeout(t,16)},Ige=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(Mge=function(t){return window.requestAnimationFrame(t)},Ige=function(t){return window.cancelAnimationFrame(t)});var vZ=0,bU=new Map;function $ge(e){bU.delete(e)}var Sr=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;vZ+=1;var r=vZ;function i(o){if(o===0)$ge(r),t();else{var a=Mge(function(){i(o-1)});bU.set(r,a)}}return i(n),r};Sr.cancel=function(e){var t=bU.get(e);return $ge(e),Ige(t)};function Rge(e){if(Array.isArray(e))return e}function NFe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}function Age(){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 Le(e,t){return Rge(e)||NFe(e,t)||bO(e,t)||Age()}function a_(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 US(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function DFe(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 yZ="data-rc-order",bZ="data-rc-priority",LFe="rc-util-key",oF=new Map;function Nge(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):LFe}function SO(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function FFe(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function SU(e){return Array.from((oF.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Dge(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!US())return null;var n=t.csp,r=t.prepend,i=t.priority,o=i===void 0?0:i,a=FFe(r),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(yZ,a),s&&o&&l.setAttribute(bZ,"".concat(o)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=SO(t),u=c.firstChild;if(r){if(s){var d=(t.styles||SU(c)).filter(function(h){if(!["prepend","prependQueue"].includes(h.getAttribute(yZ)))return!1;var p=Number(h.getAttribute(bZ)||0);return o>=p});if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function Lge(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=SO(t);return(t.styles||SU(n)).find(function(r){return r.getAttribute(Nge(t))===e})}function CU(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Lge(e,t);if(n){var r=SO(t);r.removeChild(n)}}function jFe(e,t){var n=oF.get(e);if(!n||!DFe(document,n)){var r=Dge("",t),i=r.parentNode;oF.set(e,i),e.removeChild(r)}}function q1(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=SO(n),i=SU(r),o=G(G({},n),{},{styles:i});jFe(r,o);var a=Lge(t,o);if(a){var s,l;if((s=o.csp)!==null&&s!==void 0&&s.nonce&&a.nonce!==((l=o.csp)===null||l===void 0?void 0:l.nonce)){var c;a.nonce=(c=o.csp)===null||c===void 0?void 0:c.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var u=Dge(e,o);return u.setAttribute(Nge(o),t),u}function BFe(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 tn(e,t){if(e==null)return{};var n,r,i=BFe(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 HFe(e,t,n){var r=f.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var aF={},zFe=function(t){};function UFe(e,t){}function WFe(e,t){}function VFe(){aF={}}function Fge(e,t,n){!t&&!aF[n]&&(e(!1,n),aF[n]=!0)}function WS(e,t){Fge(UFe,e,t)}function KFe(e,t){Fge(WFe,e,t)}WS.preMessage=zFe;WS.resetWarned=VFe;WS.noteOnce=KFe;function SZ(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(o,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(o);if(WS(!l,"Warning: There may be circular references"),l)return!1;if(o===a)return!0;if(n&&s>1)return!1;r.add(o);var c=s+1;if(Array.isArray(o)){if(!Array.isArray(a)||o.length!==a.length)return!1;for(var u=0;u<o.length;u++)if(!i(o[u],a[u],c))return!1;return!0}if(o&&a&&ln(o)==="object"&&ln(a)==="object"){var d=Object.keys(o);return d.length!==Object.keys(a).length?!1:d.every(function(h){return i(o[h],a[h],c)})}return!1}return i(e,t)}var qFe="%";function sF(e){return e.join(qFe)}var GFe=function(){function e(t){pi(this,e),ae(this,"instanceId",void 0),ae(this,"cache",new Map),this.instanceId=t}return mi(e,[{key:"get",value:function(n){return this.opGet(sF(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(sF(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}(),YFe=["children"],Wb="data-token-hash",Ed="data-css-hash",Rm="__cssinjs_instance__";function xU(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Ed,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(i){i[Rm]=i[Rm]||e,i[Rm]===e&&document.head.insertBefore(i,n)});var r={};Array.from(document.querySelectorAll("style[".concat(Ed,"]"))).forEach(function(i){var o=i.getAttribute(Ed);if(r[o]){if(i[Rm]===e){var a;(a=i.parentNode)===null||a===void 0||a.removeChild(i)}}else r[o]=!0})}return new GFe(e)}var Vb=f.createContext({hashPriority:"low",cache:xU(),defaultCache:!0}),XFe=function(t){var n=t.children,r=tn(t,YFe),i=f.useContext(Vb),o=HFe(function(){var a=G({},i);Object.keys(r).forEach(function(l){var c=r[l];r[l]!==void 0&&(a[l]=c)});var s=r.cache;return a.cache=a.cache||xU(),a.defaultCache=!s&&i.defaultCache,a},[i,r],function(a,s){return!SZ(a[0],s[0],!0)||!SZ(a[1],s[1],!0)});return f.createElement(Vb.Provider,{value:o},n)},jge=mi(function e(){pi(this,e)}),Bge="CALC_UNIT",QFe=new RegExp(Bge,"g");function nR(e){return typeof e=="number"?"".concat(e).concat(Bge):e}var ZFe=function(e){Xs(n,e);var t=Sl(n);function n(r,i){var o;pi(this,n),o=t.call(this),ae(On(o),"result",""),ae(On(o),"unitlessCssVar",void 0),ae(On(o),"lowPriority",void 0);var a=ln(r);return o.unitlessCssVar=i,r instanceof n?o.result="(".concat(r.result,")"):a==="number"?o.result=nR(r):a==="string"&&(o.result=r),o}return mi(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(nR(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(nR(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||{},s=a.unit,l=!0;return typeof s=="boolean"?l=s:Array.from(this.unitlessCssVar).some(function(c){return o.result.includes(c)})&&(l=!1),this.result=this.result.replace(QFe,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(jge),JFe=function(e){Xs(n,e);var t=Sl(n);function n(r){var i;return pi(this,n),i=t.call(this),ae(On(i),"result",0),r instanceof n?i.result=r.result:typeof r=="number"&&(i.result=r),i}return mi(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}(jge),eje=function(t,n){var r=t==="css"?ZFe:JFe;return function(i){return new r(i,n)}};function tje(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 wU=function(){function e(){pi(this,e),ae(this,"cache",void 0),ae(this,"keys",void 0),ae(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return mi(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(s){if(!a)a=void 0;else{var l;a=(l=a)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s)}}),(r=a)!==null&&r!==void 0&&r.value&&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(c,u){var d=Le(c,2),h=d[1];return i.internalGet(u)[1]<h?[u,i.internalGet(u)[1]]:c},[this.keys[0],this.cacheCallTimes]),a=Le(o,1),s=a[0];this.delete(s)}this.keys.push(n)}var l=this.cache;n.forEach(function(c,u){if(u===n.length-1)l.set(c,{value:[r,i.cacheCallTimes++]});else{var d=l.get(c);d?d.map||(d.map=new Map):l.set(c,{map:new Map}),l=l.get(c).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!tje(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();ae(wU,"MAX_CACHE_SIZE",20);ae(wU,"MAX_CACHE_OFFSET",5);var CZ=0,_U=function(){function e(t){pi(this,e),ae(this,"derivatives",void 0),ae(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=CZ,t.length===0&&(t.length>0,void 0),CZ+=1}return mi(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,i){return i(n,r)},void 0)}}]),e}(),rR=new wU;function yv(e){var t=Array.isArray(e)?e:[e];return rR.has(t)||rR.set(t,new _U(t)),rR.get(t)}var nje=new WeakMap,iR={};function rje(e,t){for(var n=nje,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(iR)||n.set(iR,e()),n.get(iR)}var xZ=new WeakMap;function X2(e){var t=xZ.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof _U?t+=r.id:r&&ln(r)==="object"?t+=X2(r):t+=r}),t=a_(t),xZ.set(e,t)),t}function wZ(e,t){return a_("".concat(t,"_").concat(X2(e)))}var Kb="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),Hge="_bAmBoO_";function zge(e,t,n){if(US()){var r,i;q1(e,Kb);var o=document.createElement("div");o.style.position="fixed",o.style.left="0",o.style.top="0",t==null||t(o),document.body.appendChild(o);var a=n?n(o):(r=getComputedStyle(o).content)===null||r===void 0?void 0:r.includes(Hge);return(i=o.parentNode)===null||i===void 0||i.removeChild(o),CU(Kb),a}return!1}var oR=void 0;function ije(){return oR===void 0&&(oR=zge(":where(.".concat(Kb,') { content: "').concat(Hge,'"!important; }'),function(e){e.className=Kb})),oR}var aR=void 0;function oje(){return aR===void 0&&(aR=zge(".".concat(Kb," { inset-block: 93px !important; }"),function(e){e.className=Kb},function(e){return getComputedStyle(e).bottom==="93px"})),aR}var lF=US();function je(e){return typeof e=="number"?"".concat(e,"px"):e}function s_(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=G(G({},i),{},(r={},ae(r,Wb,t),ae(r,Ed,n),r)),s=Object.keys(a).map(function(l){var c=a[l];return c?"".concat(l,'="').concat(c,'"'):null}).filter(function(l){return l}).join(" ");return"<style ".concat(s,">").concat(e,"</style>")}var Q2=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()},aje=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=Le(i,2),a=o[0],s=o[1];return"".concat(a,":").concat(s,";")}).join(""),"}"):""},Uge=function(t,n,r){var i={},o={};return Object.entries(t).forEach(function(a){var s,l,c=Le(a,2),u=c[0],d=c[1];if(r!=null&&(s=r.preserve)!==null&&s!==void 0&&s[u])o[u]=d;else if((typeof d=="string"||typeof d=="number")&&!(r!=null&&(l=r.ignore)!==null&&l!==void 0&&l[u])){var h,p=Q2(u,r==null?void 0:r.prefix);i[p]=typeof d=="number"&&!(r!=null&&(h=r.unitless)!==null&&h!==void 0&&h[u])?"".concat(d,"px"):String(d),o[u]="var(".concat(p,")")}}),[o,aje(i,n,{scope:r==null?void 0:r.scope})]},_Z=US()?f.useLayoutEffect:f.useEffect,sje=function(t,n){var r=f.useRef(!0);_Z(function(){return t(r.current)},n),_Z(function(){return r.current=!1,function(){r.current=!0}},[])},lje=G({},Q_),EZ=lje.useInsertionEffect,cje=function(t,n,r){f.useMemo(t,r),sje(function(){return n(!0)},r)},uje=EZ?function(e,t,n){return EZ(function(){return e(),t()},n)}:cje,dje=G({},Q_),fje=dje.useInsertionEffect,hje=function(t){var n=[],r=!1;function i(o){r||n.push(o)}return f.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(o){return o()})}},t),i},pje=function(){return function(t){t()}},mje=typeof fje<"u"?hje:pje;function EU(e,t,n,r,i){var o=f.useContext(Vb),a=o.cache,s=[e].concat(pt(t)),l=sF(s),c=mje([l]),u=function(m){a.opUpdate(l,function(v){var y=v||[void 0,void 0],S=Le(y,2),b=S[0],C=b===void 0?0:b,_=S[1],T=_,x=T||n(),E=[C,x];return m?m(E):E})};f.useMemo(function(){u()},[l]);var d=a.opGet(l),h=d[1];return uje(function(){i==null||i(h)},function(p){return u(function(m){var v=Le(m,2),y=v[0],S=v[1];return p&&y===0&&(i==null||i(h)),[y+1,S]}),function(){a.opUpdate(l,function(m){var v=m||[],y=Le(v,2),S=y[0],b=S===void 0?0:S,C=y[1],_=b-1;return _===0?(c(function(){(p||!a.opGet(l))&&(r==null||r(C,!1))}),null):[b-1,C]})}},[l]),h}var gje={},vje="css",f1=new Map;function yje(e){f1.set(e,(f1.get(e)||0)+1)}function bje(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Wb,'="').concat(e,'"]'));n.forEach(function(r){if(r[Rm]===t){var i;(i=r.parentNode)===null||i===void 0||i.removeChild(r)}})}}var Sje=0;function Cje(e,t){f1.set(e,(f1.get(e)||0)-1);var n=Array.from(f1.keys()),r=n.filter(function(i){var o=f1.get(i)||0;return o<=0});n.length-r.length>Sje&&r.forEach(function(i){bje(i,t),f1.delete(i)})}var TU=function(t,n,r,i){var o=r.getDerivativeToken(t),a=G(G({},o),n);return i&&(a=i(a)),a},Wge="token";function kU(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=f.useContext(Vb),i=r.cache.instanceId,o=r.container,a=n.salt,s=a===void 0?"":a,l=n.override,c=l===void 0?gje:l,u=n.formatToken,d=n.getComputedToken,h=n.cssVar,p=rje(function(){return Object.assign.apply(Object,[{}].concat(pt(t)))},t),m=X2(p),v=X2(c),y=h?X2(h):"",S=EU(Wge,[s,e.id,m,v,y],function(){var b,C=d?d(p,c,e):TU(p,c,e,u),_=G({},C),T="";if(h){var x=Uge(C,h.key,{prefix:h.prefix,ignore:h.ignore,unitless:h.unitless,preserve:h.preserve}),E=Le(x,2);C=E[0],T=E[1]}var k=wZ(C,s);C._tokenKey=k,_._tokenKey=wZ(_,s);var M=(b=h==null?void 0:h.key)!==null&&b!==void 0?b:k;C._themeKey=M,yje(M);var P="".concat(vje,"-").concat(a_(k));return C._hashId=P,[C,P,_,T,(h==null?void 0:h.key)||""]},function(b){Cje(b[0]._themeKey,i)},function(b){var C=Le(b,4),_=C[0],T=C[3];if(h&&T){var x=q1(T,a_("css-variables-".concat(_._themeKey)),{mark:Ed,prepend:"queue",attachTo:o,priority:-999});x[Rm]=i,x.setAttribute(Wb,_._themeKey)}});return S}var xje=function(t,n,r){var i=Le(t,5),o=i[2],a=i[3],s=i[4],l=r||{},c=l.plain;if(!a)return null;var u=o._tokenKey,d=-999,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},p=s_(a,s,u,h,c);return[d,u,p]},Vge={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},Kge="comm",qge="rule",Gge="decl",wje="@import",_je="@keyframes",Eje="@layer",Yge=Math.abs,OU=String.fromCharCode;function Xge(e){return e.trim()}function O3(e,t,n){return e.replace(t,n)}function Tje(e,t,n){return e.indexOf(t,n)}function l_(e,t){return e.charCodeAt(t)|0}function qb(e,t,n){return e.slice(t,n)}function Sf(e){return e.length}function kje(e){return e.length}function DT(e,t){return t.push(e),e}var CO=1,Gb=1,Qge=0,Tu=0,Ea=0,VS="";function PU(e,t,n,r,i,o,a,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:CO,column:Gb,length:a,return:"",siblings:s}}function Oje(){return Ea}function Pje(){return Ea=Tu>0?l_(VS,--Tu):0,Gb--,Ea===10&&(Gb=1,CO--),Ea}function Td(){return Ea=Tu<Qge?l_(VS,Tu++):0,Gb++,Ea===10&&(Gb=1,CO++),Ea}function Am(){return l_(VS,Tu)}function P3(){return Tu}function xO(e,t){return qb(VS,e,t)}function c_(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 Mje(e){return CO=Gb=1,Qge=Sf(VS=e),Tu=0,[]}function Ije(e){return VS="",e}function sR(e){return Xge(xO(Tu-1,cF(e===91?e+2:e===40?e+1:e)))}function $je(e){for(;(Ea=Am())&&Ea<33;)Td();return c_(e)>2||c_(Ea)>3?"":" "}function Rje(e,t){for(;--t&&Td()&&!(Ea<48||Ea>102||Ea>57&&Ea<65||Ea>70&&Ea<97););return xO(e,P3()+(t<6&&Am()==32&&Td()==32))}function cF(e){for(;Td();)switch(Ea){case e:return Tu;case 34:case 39:e!==34&&e!==39&&cF(Ea);break;case 40:e===41&&cF(e);break;case 92:Td();break}return Tu}function Aje(e,t){for(;Td()&&e+Ea!==57;)if(e+Ea===84&&Am()===47)break;return"/*"+xO(t,Tu-1)+"*"+OU(e===47?e:Td())}function Nje(e){for(;!c_(Am());)Td();return xO(e,Tu)}function Dje(e){return Ije(M3("",null,null,null,[""],e=Mje(e),0,[0],e))}function M3(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,h=0,p=0,m=0,v=1,y=1,S=1,b=0,C="",_=i,T=o,x=r,E=C;y;)switch(m=b,b=Td()){case 40:if(m!=108&&l_(E,d-1)==58){Tje(E+=O3(sR(b),"&","&\f"),"&\f",Yge(c?s[c-1]:0))!=-1&&(S=-1);break}case 34:case 39:case 91:E+=sR(b);break;case 9:case 10:case 13:case 32:E+=$je(m);break;case 92:E+=Rje(P3()-1,7);continue;case 47:switch(Am()){case 42:case 47:DT(Lje(Aje(Td(),P3()),t,n,l),l),(c_(m||1)==5||c_(Am()||1)==5)&&Sf(E)&&qb(E,-1,void 0)!==" "&&(E+=" ");break;default:E+="/"}break;case 123*v:s[c++]=Sf(E)*S;case 125*v:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+u:S==-1&&(E=O3(E,/\f/g,"")),p>0&&(Sf(E)-d||v===0&&m===47)&&DT(p>32?kZ(E+";",r,n,d-1,l):kZ(O3(E," ","")+";",r,n,d-2,l),l);break;case 59:E+=";";default:if(DT(x=TZ(E,t,n,c,u,i,s,C,_=[],T=[],d,o),o),b===123)if(u===0)M3(E,t,x,x,_,o,d,s,T);else switch(h===99&&l_(E,3)===110?100:h){case 100:case 108:case 109:case 115:M3(e,x,x,r&&DT(TZ(e,x,x,0,0,i,s,C,i,_=[],d,T),T),i,T,d,s,r?_:T);break;default:M3(E,x,x,x,[""],T,0,s,T)}}c=u=p=0,v=S=1,C=E="",d=a;break;case 58:d=1+Sf(E),p=m;default:if(v<1){if(b==123)--v;else if(b==125&&v++==0&&Pje()==125)continue}switch(E+=OU(b),b*v){case 38:S=u>0?1:(E+="\f",-1);break;case 44:s[c++]=(Sf(E)-1)*S,S=1;break;case 64:Am()===45&&(E+=sR(Td())),h=Am(),u=d=Sf(C=E+=Nje(P3())),b++;break;case 45:m===45&&Sf(E)==2&&(v=0)}}return o}function TZ(e,t,n,r,i,o,a,s,l,c,u,d){for(var h=i-1,p=i===0?o:[""],m=kje(p),v=0,y=0,S=0;v<r;++v)for(var b=0,C=qb(e,h+1,h=Yge(y=a[v])),_=e;b<m;++b)(_=Xge(y>0?p[b]+" "+C:O3(C,/&\f/g,p[b])))&&(l[S++]=_);return PU(e,t,n,i===0?qge:s,l,c,u,d)}function Lje(e,t,n,r){return PU(e,t,n,Kge,OU(Oje()),qb(e,2,-2),0,r)}function kZ(e,t,n,r,i){return PU(e,t,n,Gge,qb(e,0,r),qb(e,r+1,-1),r,i)}function uF(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Fje(e,t,n,r){switch(e.type){case Eje:if(e.children.length)break;case wje:case Gge:return e.return=e.return||e.value;case Kge:return"";case _je:return e.return=e.value+"{"+uF(e.children,r)+"}";case qge:if(!Sf(e.value=e.props.join(",")))return""}return Sf(n=uF(e.children,r))?e.return=e.value+"{"+n+"}":""}function E1(e,t){var n=t.path,r=t.parentSelectors;WS(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(e).concat(r.length?" Selector: ".concat(r.join(" | ")):""))}function jje(e){var t,n=((t=e.match(/:not\(([^)]*)\)/))===null||t===void 0?void 0:t[1])||"",r=n.split(/(\[[^[]*])|(?=[.#])/).filter(function(i){return i});return r.length>1}function Bje(e){return e.parentSelectors.reduce(function(t,n){return t?n.includes("&")?n.replace(/&/g,t):"".concat(t," ").concat(n):n},"")}var Hje=function(t,n,r){var i=Bje(r),o=i.match(/:not\([^)]*\)/g)||[];o.length>0&&o.some(jje)&&E1("Concat ':not' selector not support in legacy browsers.",r)},zje=function(t,n,r){switch(t){case"marginLeft":case"marginRight":case"paddingLeft":case"paddingRight":case"left":case"right":case"borderLeft":case"borderLeftWidth":case"borderLeftStyle":case"borderLeftColor":case"borderRight":case"borderRightWidth":case"borderRightStyle":case"borderRightColor":case"borderTopLeftRadius":case"borderTopRightRadius":case"borderBottomLeftRadius":case"borderBottomRightRadius":E1("You seem to be using non-logical property '".concat(t,"' which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),r);return;case"margin":case"padding":case"borderWidth":case"borderStyle":if(typeof n=="string"){var i=n.split(" ").map(function(s){return s.trim()});i.length===4&&i[1]!==i[3]&&E1("You seem to be using '".concat(t,"' property with different left ").concat(t," and right ").concat(t,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),r)}return;case"clear":case"textAlign":(n==="left"||n==="right")&&E1("You seem to be using non-logical value '".concat(n,"' of ").concat(t,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),r);return;case"borderRadius":if(typeof n=="string"){var o=n.split("/").map(function(s){return s.trim()}),a=o.reduce(function(s,l){if(s)return s;var c=l.split(" ").map(function(u){return u.trim()});return c.length>=2&&c[0]!==c[1]||c.length===3&&c[1]!==c[2]||c.length===4&&c[2]!==c[3]?!0:s},!1);a&&E1("You seem to be using non-logical value '".concat(n,"' of ").concat(t,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),r)}return}},Uje=function(t,n,r){(typeof n=="string"&&/NaN/g.test(n)||Number.isNaN(n))&&E1("Unexpected 'NaN' in property '".concat(t,": ").concat(n,"'."),r)},Wje=function(t,n,r){r.parentSelectors.some(function(i){var o=i.split(",");return o.some(function(a){return a.split("&").length>2})})&&E1("Should not use more than one `&` in a selector.",r)},Z2="data-ant-cssinjs-cache-path",Zge="_FILE_STYLE__";function Vje(e){return Object.keys(e).map(function(t){var n=e[t];return"".concat(t,":").concat(n)}).join(";")}var G1,Jge=!0;function Kje(){if(!G1&&(G1={},US())){var e=document.createElement("div");e.className=Z2,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=Le(o,2),s=a[0],l=a[1];G1[s]=l});var n=document.querySelector("style[".concat(Z2,"]"));if(n){var r;Jge=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function qje(e){return Kje(),!!G1[e]}function Gje(e){var t=G1[e],n=null;if(t&&US())if(Jge)n=Zge;else{var r=document.querySelector("style[".concat(Ed,'="').concat(G1[e],'"]'));r?n=r.innerHTML:delete G1[e]}return[n,t]}var Yje="_skip_check_",e1e="_multi_value_";function I3(e){var t=uF(Dje(e),Fje);return t.replace(/\{%%%\:[^;];}/g,";")}function Xje(e){return ln(e)==="object"&&e&&(Yje in e||e1e in e)}function OZ(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 s,l=a.trim().split(/\s+/),c=l[0]||"",u=((s=c.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return c="".concat(u).concat(i).concat(c.slice(u.length)),[c].concat(pt(l.slice(1))).join(" ")});return o.join(",")}var Qje=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,s=n.hashId,l=n.layer;n.path;var c=n.hashPriority,u=n.transformers,d=u===void 0?[]:u;n.linters;var h="",p={};function m(S){var b=S.getName(s);if(!p[b]){var C=e(S.style,n,{root:!1,parentSelectors:a}),_=Le(C,1),T=_[0];p[b]="@keyframes ".concat(S.getName(s)).concat(T)}}function v(S){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return S.forEach(function(C){Array.isArray(C)?v(C,b):C&&b.push(C)}),b}var y=v(Array.isArray(t)?t:[t]);return y.forEach(function(S){var b=typeof S=="string"&&!i?{}:S;if(typeof b=="string")h+="".concat(b,`
|
||
`);else if(b._keyframe)m(b);else{var C=d.reduce(function(_,T){var x;return(T==null||(x=T.visit)===null||x===void 0?void 0:x.call(T,_))||_},b);Object.keys(C).forEach(function(_){var T=C[_];if(ln(T)==="object"&&T&&(_!=="animationName"||!T._keyframe)&&!Xje(T)){var x=!1,E=_.trim(),k=!1;(i||o)&&s?E.startsWith("@")?x=!0:E==="&"?E=OZ("",s,c):E=OZ(_,s,c):i&&!s&&(E==="&"||E==="")&&(E="",k=!0);var M=e(T,n,{root:k,injectHash:x,parentSelectors:[].concat(pt(a),[E])}),P=Le(M,2),D=P[0],R=P[1];p=G(G({},p),R),h+="".concat(E).concat(D)}else{let F=function(z,W){var q=z.replace(/[A-Z]/g,function(N){return"-".concat(N.toLowerCase())}),Z=W;!Vge[z]&&typeof Z=="number"&&Z!==0&&(Z="".concat(Z,"px")),z==="animationName"&&W!==null&&W!==void 0&&W._keyframe&&(m(W),Z=W.getName(s)),h+="".concat(q,":").concat(Z,";")};var A,H=(A=T==null?void 0:T.value)!==null&&A!==void 0?A:T;ln(T)==="object"&&T!==null&&T!==void 0&&T[e1e]&&Array.isArray(H)?H.forEach(function(z){F(_,z)}):F(_,H)}})}}),i?l&&(h="@layer ".concat(l.name," {").concat(h,"}"),l.dependencies&&(p["@layer ".concat(l.name)]=l.dependencies.map(function(S){return"@layer ".concat(S,", ").concat(l.name,";")}).join(`
|
||
`))):h="{".concat(h,"}"),[h,p]};function t1e(e,t){return a_("".concat(e.join("%")).concat(t))}function Zje(){return null}var n1e="style";function u_(e,t){var n=e.token,r=e.path,i=e.hashId,o=e.layer,a=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=f.useContext(Vb),d=u.autoClear;u.mock;var h=u.defaultCache,p=u.hashPriority,m=u.container,v=u.ssrInline,y=u.transformers,S=u.linters,b=u.cache,C=u.layer,_=n._tokenKey,T=[_];C&&T.push("layer"),T.push.apply(T,pt(r));var x=lF,E=EU(n1e,T,function(){var R=T.join("|");if(qje(R)){var A=Gje(R),H=Le(A,2),F=H[0],z=H[1];if(F)return[F,_,z,{},s,c]}var W=t(),q=Qje(W,{hashId:i,hashPriority:p,layer:C?o:void 0,path:r.join("-"),transformers:y,linters:S}),Z=Le(q,2),N=Z[0],B=Z[1],V=I3(N),Y=t1e(T,V);return[V,_,Y,B,s,c]},function(R,A){var H=Le(R,3),F=H[2];(A||d)&&lF&&CU(F,{mark:Ed})},function(R){var A=Le(R,4),H=A[0];A[1];var F=A[2],z=A[3];if(x&&H!==Zge){var W={mark:Ed,prepend:C?!1:"queue",attachTo:m,priority:c},q=typeof a=="function"?a():a;q&&(W.csp={nonce:q});var Z=[],N=[];Object.keys(z).forEach(function(V){V.startsWith("@layer")?Z.push(V):N.push(V)}),Z.forEach(function(V){q1(I3(z[V]),"_layer-".concat(V),G(G({},W),{},{prepend:!0}))});var B=q1(H,F,W);B[Rm]=b.instanceId,B.setAttribute(Wb,_),N.forEach(function(V){q1(I3(z[V]),"_effect-".concat(V),W)})}}),k=Le(E,3),M=k[0],P=k[1],D=k[2];return function(R){var A;if(!v||x||!h)A=f.createElement(Zje,null);else{var H;A=f.createElement("style",ut({},(H={},ae(H,Wb,P),ae(H,Ed,D),H),{dangerouslySetInnerHTML:{__html:M}}))}return f.createElement(f.Fragment,null,A,R)}}var Jje=function(t,n,r){var i=Le(t,6),o=i[0],a=i[1],s=i[2],l=i[3],c=i[4],u=i[5],d=r||{},h=d.plain;if(c)return null;var p=o,m={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return p=s_(o,a,s,m,h),l&&Object.keys(l).forEach(function(v){if(!n[v]){n[v]=!0;var y=I3(l[v]),S=s_(y,a,"_effect-".concat(v),m,h);v.startsWith("@layer")?p=S+p:p+=S}}),[u,s,p]},r1e="cssVar",i1e=function(t,n){var r=t.key,i=t.prefix,o=t.unitless,a=t.ignore,s=t.token,l=t.scope,c=l===void 0?"":l,u=f.useContext(Vb),d=u.cache.instanceId,h=u.container,p=s._tokenKey,m=[].concat(pt(t.path),[r,c,p]),v=EU(r1e,m,function(){var y=n(),S=Uge(y,r,{prefix:i,unitless:o,ignore:a,scope:c}),b=Le(S,2),C=b[0],_=b[1],T=t1e(m,_);return[C,_,T,r]},function(y){var S=Le(y,3),b=S[2];lF&&CU(b,{mark:Ed})},function(y){var S=Le(y,3),b=S[1],C=S[2];if(b){var _=q1(b,C,{mark:Ed,prepend:"queue",attachTo:h,priority:-999});_[Rm]=d,_.setAttribute(Wb,r)}});return v},eBe=function(t,n,r){var i=Le(t,4),o=i[1],a=i[2],s=i[3],l=r||{},c=l.plain;if(!o)return null;var u=-999,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},h=s_(o,s,a,d,c);return[u,a,h]},Rx,tBe=(Rx={},ae(Rx,n1e,Jje),ae(Rx,Wge,xje),ae(Rx,r1e,eBe),Rx);function nBe(e){return e!==null}function rBe(e,t){var n=typeof t=="boolean"?{plain:t}:t||{},r=n.plain,i=r===void 0?!1:r,o=n.types,a=o===void 0?["style","token","cssVar"]:o,s=new RegExp("^(".concat((typeof a=="string"?[a]:a).join("|"),")%")),l=Array.from(e.cache.keys()).filter(function(h){return s.test(h)}),c={},u={},d="";return l.map(function(h){var p=h.replace(s,"").replace(/%/g,"|"),m=h.split("%"),v=Le(m,1),y=v[0],S=tBe[y],b=S(e.cache.get(h)[1],c,{plain:i});if(!b)return null;var C=Le(b,3),_=C[0],T=C[1],x=C[2];return h.startsWith("style")&&(u[p]=T),[_,x]}).filter(nBe).sort(function(h,p){var m=Le(h,1),v=m[0],y=Le(p,1),S=y[0];return v-S}).forEach(function(h){var p=Le(h,2),m=p[1];d+=m}),d+=s_(".".concat(Z2,'{content:"').concat(Vje(u),'";}'),void 0,void 0,ae({},Z2,Z2),i),d}var Mr=function(){function e(t,n){pi(this,e),ae(this,"name",void 0),ae(this,"style",void 0),ae(this,"_keyframe",!0),this.name=t,this.style=n}return mi(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 iBe(e){if(typeof e=="number")return[[e],!1];var t=String(e).trim(),n=t.match(/(.*)(!important)/),r=(n?n[1]:t).trim().split(/\s+/),i=[],o=0;return[r.reduce(function(a,s){if(s.includes("(")||s.includes(")")){var l=s.split("(").length-1,c=s.split(")").length-1;o+=l-c}return o>=0&&i.push(s),o===0&&(a.push(i.join(" ")),i=[]),a},[]),!!n]}function G0(e){return e.notSplit=!0,e}var oBe={inset:["top","right","bottom","left"],insetBlock:["top","bottom"],insetBlockStart:["top"],insetBlockEnd:["bottom"],insetInline:["left","right"],insetInlineStart:["left"],insetInlineEnd:["right"],marginBlock:["marginTop","marginBottom"],marginBlockStart:["marginTop"],marginBlockEnd:["marginBottom"],marginInline:["marginLeft","marginRight"],marginInlineStart:["marginLeft"],marginInlineEnd:["marginRight"],paddingBlock:["paddingTop","paddingBottom"],paddingBlockStart:["paddingTop"],paddingBlockEnd:["paddingBottom"],paddingInline:["paddingLeft","paddingRight"],paddingInlineStart:["paddingLeft"],paddingInlineEnd:["paddingRight"],borderBlock:G0(["borderTop","borderBottom"]),borderBlockStart:G0(["borderTop"]),borderBlockEnd:G0(["borderBottom"]),borderInline:G0(["borderLeft","borderRight"]),borderInlineStart:G0(["borderLeft"]),borderInlineEnd:G0(["borderRight"]),borderBlockWidth:["borderTopWidth","borderBottomWidth"],borderBlockStartWidth:["borderTopWidth"],borderBlockEndWidth:["borderBottomWidth"],borderInlineWidth:["borderLeftWidth","borderRightWidth"],borderInlineStartWidth:["borderLeftWidth"],borderInlineEndWidth:["borderRightWidth"],borderBlockStyle:["borderTopStyle","borderBottomStyle"],borderBlockStartStyle:["borderTopStyle"],borderBlockEndStyle:["borderBottomStyle"],borderInlineStyle:["borderLeftStyle","borderRightStyle"],borderInlineStartStyle:["borderLeftStyle"],borderInlineEndStyle:["borderRightStyle"],borderBlockColor:["borderTopColor","borderBottomColor"],borderBlockStartColor:["borderTopColor"],borderBlockEndColor:["borderBottomColor"],borderInlineColor:["borderLeftColor","borderRightColor"],borderInlineStartColor:["borderLeftColor"],borderInlineEndColor:["borderRightColor"],borderStartStartRadius:["borderTopLeftRadius"],borderStartEndRadius:["borderTopRightRadius"],borderEndStartRadius:["borderBottomLeftRadius"],borderEndEndRadius:["borderBottomRightRadius"]};function LT(e,t){var n=e;return t&&(n="".concat(n," !important")),{_skip_check_:!0,value:n}}var aBe={visit:function(t){var n={};return Object.keys(t).forEach(function(r){var i=t[r],o=oBe[r];if(o&&(typeof i=="number"||typeof i=="string")){var a=iBe(i),s=Le(a,2),l=s[0],c=s[1];o.length&&o.notSplit?o.forEach(function(u){n[u]=LT(i,c)}):o.length===1?n[o[0]]=LT(l[0],c):o.length===2?o.forEach(function(u,d){var h;n[u]=LT((h=l[d])!==null&&h!==void 0?h:l[0],c)}):o.length===4?o.forEach(function(u,d){var h,p;n[u]=LT((h=(p=l[d])!==null&&p!==void 0?p:l[d-2])!==null&&h!==void 0?h:l[0],c)}):n[r]=i}else n[r]=i}),n}},lR=/url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g;function sBe(e,t){var n=Math.pow(10,t+1),r=Math.floor(e*n);return Math.round(r/10)*10/n}var lBe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.rootValue,r=n===void 0?16:n,i=t.precision,o=i===void 0?5:i,a=t.mediaQuery,s=a===void 0?!1:a,l=function(d,h){if(!h)return d;var p=parseFloat(h);if(p<=1)return d;var m=sBe(p/r,o);return"".concat(m,"rem")},c=function(d){var h=G({},d);return Object.entries(d).forEach(function(p){var m=Le(p,2),v=m[0],y=m[1];if(typeof y=="string"&&y.includes("px")){var S=y.replace(lR,l);h[v]=S}!Vge[v]&&typeof y=="number"&&y!==0&&(h[v]="".concat(y,"px").replace(lR,l));var b=v.trim();if(b.startsWith("@")&&b.includes("px")&&s){var C=v.replace(lR,l);h[C]=h[v],delete h[v]}}),h};return{visit:c}},cBe={supportModernCSS:function(){return ije()&&oje()}};const uBe=Object.freeze(Object.defineProperty({__proto__:null,Keyframes:Mr,NaNLinter:Uje,StyleProvider:XFe,Theme:_U,_experimental:cBe,createCache:xU,createTheme:yv,extractStyle:rBe,genCalc:eje,getComputedToken:TU,legacyLogicalPropertiesTransformer:aBe,legacyNotSelectorLinter:Hje,logicalPropertiesLinter:zje,parentSelectorLinter:Wje,px2remTransformer:lBe,token2CSSVar:Q2,unit:je,useCSSVarRegister:i1e,useCacheToken:kU,useStyleRegister:u_},Symbol.toStringTag,{value:"Module"}));var wO=f.createContext({});function o1e(e){return Rge(e)||Pge(e)||bO(e)||Age()}function Bo(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function a1e(e,t,n,r){if(!t.length)return n;var i=o1e(t),o=i[0],a=i.slice(1),s;return!e&&typeof o=="number"?s=[]:Array.isArray(e)?s=pt(e):s=G({},e),r&&n===void 0&&a.length===1?delete s[o][a[0]]:s[o]=a1e(s[o],a,n,r),s}function ua(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Bo(e,t.slice(0,-1))?e:a1e(e,t,n,r)}function dBe(e){return ln(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function PZ(e){return Array.isArray(e)?[]:{}}var fBe=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Uy(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=PZ(t[0]);return t.forEach(function(i){function o(a,s){var l=new Set(s),c=Bo(i,a),u=Array.isArray(c);if(u||dBe(c)){if(!l.has(c)){l.add(c);var d=Bo(r,a);u?r=ua(r,a,[]):(!d||ln(d)!=="object")&&(r=ua(r,a,PZ(c))),fBe(c).forEach(function(h){o([].concat(pt(a),[h]),l)})}}else r=ua(r,a,c)}o([])}),r}function hBe(){}const pBe=f.createContext({}),eh=()=>{const e=()=>{};return e.deprecated=hBe,e},s1e=f.createContext(void 0);var l1e={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"},c1e={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},mBe=G(G({},c1e),{},{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 u1e={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},m9={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"]},mBe),timePickerLocale:Object.assign({},u1e)},ac="${label} is not a valid ${type}",Fc={locale:"en",Pagination:l1e,DatePicker:m9,TimePicker:u1e,Calendar:m9,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:ac,method:ac,array:ac,object:ac,number:ac,date:ac,boolean:ac,integer:ac,float:ac,regexp:ac,email:ac,url:ac,hex:ac},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 $3=Object.assign({},Fc.Modal),R3=[];const MZ=()=>R3.reduce((e,t)=>Object.assign(Object.assign({},e),t),Fc.Modal);function gBe(e){if(e){const t=Object.assign({},e);return R3.push(t),$3=MZ(),()=>{R3=R3.filter(n=>n!==t),$3=MZ()}}$3=Object.assign({},Fc.Modal)}function d1e(){return $3}const MU=f.createContext(void 0),Os=(e,t)=>{const n=f.useContext(MU),r=f.useMemo(()=>{var o;const a=t||Fc[e],s=(o=n==null?void 0:n[e])!==null&&o!==void 0?o:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),s||{})},[e,t,n]),i=f.useMemo(()=>{const o=n==null?void 0:n.locale;return n!=null&&n.exist&&!o?Fc.locale:o},[n]);return[r,i]},vBe="internalMark",yBe=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;f.useEffect(()=>gBe(t==null?void 0:t.Modal),[t]);const i=f.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return f.createElement(MU.Provider,{value:i},n)},Ja=Math.round;function cR(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 IZ=(e,t,n)=>n===0?e:e/100;function Ax(e,t){const n=t||255;return e>n?n:e<0?0:e}class Cr{constructor(t){ae(this,"isValid",!0),ae(this,"r",0),ae(this,"g",0),ae(this,"b",0),ae(this,"a",1),ae(this,"_h",void 0),ae(this,"_s",void 0),ae(this,"_l",void 0),ae(this,"_v",void 0),ae(this,"_max",void 0),ae(this,"_min",void 0),ae(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 Cr)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=Ax(t.r),this.g=Ax(t.g),this.b=Ax(t.b),this.a=typeof t.a=="number"?Ax(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=Ja(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=s=>(r[s]-this[s])*i+this[s],a={r:Ja(o("r")),g:Ja(o("g")),b:Ja(o("b")),a:Ja(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=>Ja((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=Ja(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=Ja(this.getSaturation()*100),r=Ja(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]=Ax(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 h=Ja(r*255);this.r=h,this.g=h,this.b=h}let o=0,a=0,s=0;const l=t/60,c=(1-Math.abs(2*r-1))*n,u=c*(1-Math.abs(l%2-1));l>=0&&l<1?(o=c,a=u):l>=1&&l<2?(o=u,a=c):l>=2&&l<3?(a=c,s=u):l>=3&&l<4?(a=u,s=c):l>=4&&l<5?(o=u,s=c):l>=5&&l<6&&(o=c,s=u);const d=r-c/2;this.r=Ja((o+d)*255),this.g=Ja((a+d)*255),this.b=Ja((s+d)*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=Ja(r*255);if(this.r=o,this.g=o,this.b=o,n<=0)return;const a=t/60,s=Math.floor(a),l=a-s,c=Ja(r*(1-n)*255),u=Ja(r*(1-n*l)*255),d=Ja(r*(1-n*(1-l))*255);switch(s){case 0:this.g=d,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=d;break;case 3:this.r=c,this.g=u;break;case 4:this.r=d,this.g=c;break;case 5:default:this.g=c,this.b=u;break}}fromHsvString(t){const n=cR(t,IZ);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=cR(t,IZ);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=cR(t,(r,i)=>i.includes("%")?Ja(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}const bBe=Object.freeze(Object.defineProperty({__proto__:null,FastColor:Cr},Symbol.toStringTag,{value:"Module"}));var FT=2,$Z=.16,SBe=.05,CBe=.05,xBe=.15,f1e=5,h1e=4,wBe=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function RZ(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-FT*t:Math.round(e.h)+FT*t:r=n?Math.round(e.h)+FT*t:Math.round(e.h)-FT*t,r<0?r+=360:r>=360&&(r-=360),r}function AZ(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-$Z*t:t===h1e?r=e.s+$Z:r=e.s+SBe*t,r>1&&(r=1),n&&t===f1e&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function NZ(e,t,n){var r;return n?r=e.v+CBe*t:r=e.v-xBe*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function tg(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new Cr(e),i=r.toHsv(),o=f1e;o>0;o-=1){var a=new Cr({h:RZ(i,o,!0),s:AZ(i,o,!0),v:NZ(i,o,!0)});n.push(a)}n.push(r);for(var s=1;s<=h1e;s+=1){var l=new Cr({h:RZ(i,s),s:AZ(i,s),v:NZ(i,s)});n.push(l)}return t.theme==="dark"?wBe.map(function(c){var u=c.index,d=c.amount;return new Cr(t.backgroundColor||"#141414").mix(n[u],d).toHexString()}):n.map(function(c){return c.toHexString()})}var Y1={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"},g9=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];g9.primary=g9[5];var v9=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];v9.primary=v9[5];var y9=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];y9.primary=y9[5];var d_=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];d_.primary=d_[5];var b9=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];b9.primary=b9[5];var S9=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];S9.primary=S9[5];var C9=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];C9.primary=C9[5];var x9=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];x9.primary=x9[5];var bv=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];bv.primary=bv[5];var w9=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];w9.primary=w9[5];var _9=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];_9.primary=_9[5];var E9=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];E9.primary=E9[5];var f_=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];f_.primary=f_[5];var _Be=f_,A3={red:g9,volcano:v9,orange:y9,gold:d_,yellow:b9,lime:S9,green:C9,cyan:x9,blue:bv,geekblue:w9,purple:_9,magenta:E9,grey:f_},T9=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];T9.primary=T9[5];var k9=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];k9.primary=k9[5];var O9=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];O9.primary=O9[5];var P9=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];P9.primary=P9[5];var M9=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];M9.primary=M9[5];var I9=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];I9.primary=I9[5];var $9=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];$9.primary=$9[5];var R9=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];R9.primary=R9[5];var A9=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];A9.primary=A9[5];var N9=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];N9.primary=N9[5];var D9=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];D9.primary=D9[5];var L9=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];L9.primary=L9[5];var F9=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];F9.primary=F9[5];var EBe={red:T9,volcano:k9,orange:O9,gold:P9,yellow:M9,lime:I9,green:$9,cyan:R9,blue:A9,geekblue:N9,purple:D9,magenta:L9,grey:F9};const TBe=Object.freeze(Object.defineProperty({__proto__:null,blue:bv,blueDark:A9,cyan:x9,cyanDark:R9,geekblue:w9,geekblueDark:N9,generate:tg,gold:d_,goldDark:P9,gray:_Be,green:C9,greenDark:$9,grey:f_,greyDark:F9,lime:S9,limeDark:I9,magenta:E9,magentaDark:L9,orange:y9,orangeDark:O9,presetDarkPalettes:EBe,presetPalettes:A3,presetPrimaryColors:Y1,purple:_9,purpleDark:D9,red:g9,redDark:T9,volcano:v9,volcanoDark:k9,yellow:b9,yellowDark:M9},Symbol.toStringTag,{value:"Module"})),IU={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"},Yb=Object.assign(Object.assign({},IU),{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 p1e(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:i,colorWarning:o,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,d=n(l),h=n(i),p=n(o),m=n(a),v=n(s),y=r(c,u),S=e.colorLink||e.colorInfo,b=n(S),C=new Cr(m[1]).mix(new Cr(m[3]),50).toHexString();return Object.assign(Object.assign({},y),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:h[1],colorSuccessBgHover:h[2],colorSuccessBorder:h[3],colorSuccessBorderHover:h[4],colorSuccessHover:h[4],colorSuccess:h[6],colorSuccessActive:h[7],colorSuccessTextHover:h[8],colorSuccessText:h[9],colorSuccessTextActive:h[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBgFilledHover:C,colorErrorBgActive:m[3],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:v[1],colorInfoBgHover:v[2],colorInfoBorder:v[3],colorInfoBorderHover:v[4],colorInfoHover:v[4],colorInfo:v[6],colorInfoActive:v[7],colorInfoTextHover:v[8],colorInfoText:v[9],colorInfoTextActive:v[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new Cr("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const kBe=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 OBe(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},kBe(r))}const m1e=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function N3(e){return(e+8)/e}function PBe(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:N3(n)}))}const g1e=e=>{const t=PBe(e),n=t.map(u=>u.size),r=t.map(u=>u.lineHeight),i=n[1],o=n[0],a=n[2],s=r[1],l=r[0],c=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:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*i),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(l*o),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function MBe(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 Zc=(e,t)=>new Cr(e).setA(t).toRgbString(),Nx=(e,t)=>new Cr(e).darken(t).toHexString(),IBe=e=>{const t=tg(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]}},$Be=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Zc(r,.88),colorTextSecondary:Zc(r,.65),colorTextTertiary:Zc(r,.45),colorTextQuaternary:Zc(r,.25),colorFill:Zc(r,.15),colorFillSecondary:Zc(r,.06),colorFillTertiary:Zc(r,.04),colorFillQuaternary:Zc(r,.02),colorBgSolid:Zc(r,1),colorBgSolidHover:Zc(r,.75),colorBgSolidActive:Zc(r,.95),colorBgLayout:Nx(n,4),colorBgContainer:Nx(n,0),colorBgElevated:Nx(n,0),colorBgSpotlight:Zc(r,.85),colorBgBlur:"transparent",colorBorder:Nx(n,15),colorBorderSecondary:Nx(n,6)}};function mE(e){Y1.pink=Y1.magenta,A3.pink=A3.magenta;const t=Object.keys(IU).map(n=>{const r=e[n]===Y1[n]?A3[n]:tg(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),p1e(e,{generateColorPalettes:IBe,generateNeutralColorPalettes:$Be})),g1e(e.fontSize)),MBe(e)),m1e(e)),OBe(e))}const v1e=yv(mE),h_={token:Yb,override:{override:Yb},hashed:!0},$U=ge.createContext(h_),p_="ant",_O="anticon",RBe=["outlined","borderless","filled"],ABe=(e,t)=>t||(e?`${p_}-${e}`:p_),hn=f.createContext({getPrefixCls:ABe,iconPrefixCls:_O});function ml(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function dF(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 DZ="data-rc-order",LZ="data-rc-priority",NBe="rc-util-key",fF=new Map;function y1e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):NBe}function EO(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function DBe(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function RU(e){return Array.from((fF.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function b1e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ml())return null;var n=t.csp,r=t.prepend,i=t.priority,o=i===void 0?0:i,a=DBe(r),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(DZ,a),s&&o&&l.setAttribute(LZ,"".concat(o)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=EO(t),u=c.firstChild;if(r){if(s){var d=(t.styles||RU(c)).filter(function(h){if(!["prepend","prependQueue"].includes(h.getAttribute(DZ)))return!1;var p=Number(h.getAttribute(LZ)||0);return o>=p});if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function S1e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=EO(t);return(t.styles||RU(n)).find(function(r){return r.getAttribute(y1e(t))===e})}function hF(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=S1e(e,t);if(n){var r=EO(t);r.removeChild(n)}}function LBe(e,t){var n=fF.get(e);if(!n||!dF(document,n)){var r=b1e("",t),i=r.parentNode;fF.set(e,i),e.removeChild(r)}}function TO(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=EO(n),i=RU(r),o=G(G({},n),{},{styles:i});LBe(r,o);var a=S1e(t,o);if(a){var s,l;if((s=o.csp)!==null&&s!==void 0&&s.nonce&&a.nonce!==((l=o.csp)===null||l===void 0?void 0:l.nonce)){var c;a.nonce=(c=o.csp)===null||c===void 0?void 0:c.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var u=b1e(e,o);return u.setAttribute(y1e(o),t),u}const FBe=`-ant-${Date.now()}-${Math.random()}`;function jBe(e,t){const n={},r=(a,s)=>{let l=a.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},i=(a,s)=>{const l=new Cr(a),c=tg(l.toRgbString());n[`${s}-color`]=r(l),n[`${s}-color-disabled`]=c[1],n[`${s}-color-hover`]=c[4],n[`${s}-color-active`]=c[6],n[`${s}-color-outline`]=l.clone().setA(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=c[0],n[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){i(t.primaryColor,"primary");const a=new Cr(t.primaryColor),s=tg(a.toRgbString());s.forEach((c,u)=>{n[`primary-${u+1}`]=c}),n["primary-color-deprecated-l-35"]=r(a,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(a,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(a,c=>c.setA(c.a*.12));const l=new Cr(s[0]);n["primary-color-active-deprecated-f-30"]=r(l,c=>c.setA(c.a*.3)),n["primary-color-active-deprecated-d-02"]=r(l,c=>c.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 BBe(e,t){const n=jBe(e,t);ml()&&TO(n,`${FBe}-dynamic-theme`)}const ea=f.createContext(!1),AU=e=>{let{children:t,disabled:n}=e;const r=f.useContext(ea);return f.createElement(ea.Provider,{value:n??r},t)},Sv=f.createContext(void 0),HBe=e=>{let{children:t,size:n}=e;const r=f.useContext(Sv);return f.createElement(Sv.Provider,{value:n||r},t)};function zBe(){const e=f.useContext(ea),t=f.useContext(Sv);return{componentDisabled:e,componentSize:t}}function ku(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(o,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(o);if(fi(!l,"Warning: There may be circular references"),l)return!1;if(o===a)return!0;if(n&&s>1)return!1;r.add(o);var c=s+1;if(Array.isArray(o)){if(!Array.isArray(a)||o.length!==a.length)return!1;for(var u=0;u<o.length;u++)if(!i(o[u],a[u],c))return!1;return!0}if(o&&a&&ln(o)==="object"&&ln(a)==="object"){var d=Object.keys(o);return d.length!==Object.keys(a).length?!1:d.every(function(h){return i(o[h],a[h],c)})}return!1}return i(e,t)}var C1e=mi(function e(){pi(this,e)}),x1e="CALC_UNIT",UBe=new RegExp(x1e,"g");function uR(e){return typeof e=="number"?"".concat(e).concat(x1e):e}var WBe=function(e){Xs(n,e);var t=Sl(n);function n(r,i){var o;pi(this,n),o=t.call(this),ae(On(o),"result",""),ae(On(o),"unitlessCssVar",void 0),ae(On(o),"lowPriority",void 0);var a=ln(r);return o.unitlessCssVar=i,r instanceof n?o.result="(".concat(r.result,")"):a==="number"?o.result=uR(r):a==="string"&&(o.result=r),o}return mi(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(uR(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(uR(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||{},s=a.unit,l=!0;return typeof s=="boolean"?l=s:Array.from(this.unitlessCssVar).some(function(c){return o.result.includes(c)})&&(l=!1),this.result=this.result.replace(UBe,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(C1e),VBe=function(e){Xs(n,e);var t=Sl(n);function n(r){var i;return pi(this,n),i=t.call(this),ae(On(i),"result",0),r instanceof n?i.result=r.result:typeof r=="number"&&(i.result=r),i}return mi(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}(C1e),w1e=function(t,n){var r=t==="css"?WBe:VBe;return function(i){return new r(i,n)}},FZ=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 cr(e){var t=f.useRef();t.current=e;var n=f.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}var jZ=ml()?f.useLayoutEffect:f.useEffect,Er=function(t,n){var r=f.useRef(!0);jZ(function(){return t(r.current)},n),jZ(function(){return r.current=!1,function(){r.current=!0}},[])},X1=function(t,n){Er(function(r){if(!r)return t()},n)};function Cv(e){var t=f.useRef(!1),n=f.useState(e),r=Le(n,2),i=r[0],o=r[1];f.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function a(s,l){l&&t.current||o(s)}return[i,a]}function dR(e){return e!==void 0}function Jn(e,t){var n=t||{},r=n.defaultValue,i=n.value,o=n.onChange,a=n.postState,s=Cv(function(){return dR(i)?i:dR(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),l=Le(s,2),c=l[0],u=l[1],d=i!==void 0?i:c,h=a?a(d):d,p=cr(o),m=Cv([d]),v=Le(m,2),y=v[0],S=v[1];X1(function(){var C=y[0];c!==C&&p(c,C)},[y]),X1(function(){dR(i)||u(i)},[i]);var b=cr(function(C,_){u(C,_),S([d],_)});return[h,b]}function BZ(e,t,n,r){var i=G({},t[e]);if(r!=null&&r.deprecatedTokens){var o=r.deprecatedTokens;o.forEach(function(s){var l=Le(s,2),c=l[0],u=l[1];if(i!=null&&i[c]||i!=null&&i[u]){var d;(d=i[u])!==null&&d!==void 0||(i[u]=i==null?void 0:i[c])}})}var a=G(G({},n),i);return Object.keys(a).forEach(function(s){a[s]===t[s]&&delete a[s]}),a}var _1e=typeof CSSINJS_STATISTIC<"u",pF=!0;function ur(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!_1e)return Object.assign.apply(Object,[{}].concat(t));pF=!1;var r={};return t.forEach(function(i){if(ln(i)==="object"){var o=Object.keys(i);o.forEach(function(a){Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:function(){return i[a]}})})}}),pF=!0,r}var mF={};function KBe(){}var E1e=function(t){var n,r=t,i=KBe;return _1e&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(a,s){if(pF){var l;(l=n)===null||l===void 0||l.add(s)}return a[s]}}),i=function(a,s){var l;mF[a]={global:Array.from(n),component:G(G({},(l=mF[a])===null||l===void 0?void 0:l.component),s)}}),{token:r,keys:n,flush:i}};function HZ(e,t,n){if(typeof n=="function"){var r;return n(ur(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function qBe(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 je(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 je(o)}).join(","),")")}}}var GBe=1e3*60*10,YBe=function(){function e(){pi(this,e),ae(this,"map",new Map),ae(this,"objectIDMap",new WeakMap),ae(this,"nextID",0),ae(this,"lastAccessBeat",new Map),ae(this,"accessBeat",0)}return mi(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&&ln(o)==="object"?"obj_".concat(r.getObjectID(o)):"".concat(ln(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>GBe&&(n.map.delete(o),n.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e}(),zZ=new YBe;function XBe(e,t){return ge.useMemo(function(){var n=zZ.get(t);if(n)return n;var r=e();return zZ.set(t,r),r},t)}var QBe=function(){return{}};function T1e(e){var t=e.useCSP,n=t===void 0?QBe:t,r=e.useToken,i=e.usePrefix,o=e.getResetStyles,a=e.getCommonStyle,s=e.getCompUnitless;function l(h,p,m,v){var y=Array.isArray(h)?h[0]:h;function S(k){return"".concat(String(y)).concat(k.slice(0,1).toUpperCase()).concat(k.slice(1))}var b=(v==null?void 0:v.unitless)||{},C=typeof s=="function"?s(h):{},_=G(G({},C),{},ae({},S("zIndexPopup"),!0));Object.keys(b).forEach(function(k){_[S(k)]=b[k]});var T=G(G({},v),{},{unitless:_,prefixToken:S}),x=u(h,p,m,T),E=c(y,m,T);return function(k){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k,P=x(k,M),D=Le(P,2),R=D[1],A=E(M),H=Le(A,2),F=H[0],z=H[1];return[F,R,z]}}function c(h,p,m){var v=m.unitless,y=m.injectStyle,S=y===void 0?!0:y,b=m.prefixToken,C=m.ignore,_=function(E){var k=E.rootCls,M=E.cssVar,P=M===void 0?{}:M,D=r(),R=D.realToken;return i1e({path:[h],prefix:P.prefix,key:P.key,unitless:v,ignore:C,token:R,scope:k},function(){var A=HZ(h,R,p),H=BZ(h,R,A,{deprecatedTokens:m==null?void 0:m.deprecatedTokens});return Object.keys(A).forEach(function(F){H[b(F)]=H[F],delete H[F]}),H}),null},T=function(E){var k=r(),M=k.cssVar;return[function(P){return S&&M?ge.createElement(ge.Fragment,null,ge.createElement(_,{rootCls:E,cssVar:M,component:h}),P):P},M==null?void 0:M.key]};return T}function u(h,p,m){var v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},y=Array.isArray(h)?h:[h,h],S=Le(y,1),b=S[0],C=y.join("-"),_=e.layer||{name:"antd"};return function(T){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:T,E=r(),k=E.theme,M=E.realToken,P=E.hashId,D=E.token,R=E.cssVar,A=i(),H=A.rootPrefixCls,F=A.iconPrefixCls,z=n(),W=R?"css":"js",q=XBe(function(){var ie=new Set;return R&&Object.keys(v.unitless||{}).forEach(function(ce){ie.add(Q2(ce,R.prefix)),ie.add(Q2(ce,FZ(b,R.prefix)))}),w1e(W,ie)},[W,b,R==null?void 0:R.prefix]),Z=qBe(W),N=Z.max,B=Z.min,V={theme:k,token:D,hashId:P,nonce:function(){return z.nonce},clientOnly:v.clientOnly,layer:_,order:v.order||-999};typeof o=="function"&&u_(G(G({},V),{},{clientOnly:!1,path:["Shared",H]}),function(){return o(D,{prefix:{rootPrefixCls:H,iconPrefixCls:F},csp:z})});var Y=u_(G(G({},V),{},{path:[C,T,F]}),function(){if(v.injectStyle===!1)return[];var ie=E1e(D),ce=ie.token,fe=ie.flush,ee=HZ(b,M,m),ne=".".concat(T),ue=BZ(b,M,ee,{deprecatedTokens:v.deprecatedTokens});R&&ee&&ln(ee)==="object"&&Object.keys(ee).forEach(function(he){ee[he]="var(".concat(Q2(he,FZ(b,R.prefix)),")")});var ye=ur(ce,{componentCls:ne,prefixCls:T,iconCls:".".concat(F),antCls:".".concat(H),calc:q,max:N,min:B},R?ee:ue),me=p(ye,{hashId:P,prefixCls:T,rootPrefixCls:H,iconPrefixCls:F});fe(b,ue);var pe=typeof a=="function"?a(ye,T,x,v.resetFont):null;return[v.resetStyle===!1?null:pe,me]});return[Y,P]}}function d(h,p,m){var v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},y=u(h,p,m,G({resetStyle:!1,order:-998},v)),S=function(C){var _=C.prefixCls,T=C.rootCls,x=T===void 0?_:T;return y(_,x),null};return S}return{genStyleHooks:l,genSubStyleComponent:d,genComponentStyleHook:u}}const ZBe=Object.freeze(Object.defineProperty({__proto__:null,genCalc:w1e,genStyleUtils:T1e,mergeToken:ur,statistic:mF,statisticToken:E1e},Symbol.toStringTag,{value:"Module"})),xv=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],fp="5.23.2";function fR(e){return e>=0&&e<=255}function jT(e,t){const{r:n,g:r,b:i,a:o}=new Cr(e).toRgb();if(o<1)return e;const{r:a,g:s,b:l}=new Cr(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-a*(1-c))/c),d=Math.round((r-s*(1-c))/c),h=Math.round((i-l*(1-c))/c);if(fR(u)&&fR(d)&&fR(h))return new Cr({r:u,g:d,b:h,a:Math.round(c*100)/100}).toRgbString()}return new Cr({r:n,g:r,b:i,a:1}).toRgbString()}var JBe=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 NU(e){const{override:t}=e,n=JBe(e,["override"]),r=Object.assign({},t);Object.keys(Yb).forEach(h=>{delete r[h]});const i=Object.assign(Object.assign({},n),r),o=480,a=576,s=768,l=992,c=1200,u=1600;if(i.motion===!1){const h="0s";i.motionDurationFast=h,i.motionDurationMid=h,i.motionDurationSlow=h}return Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:jT(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:jT(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:jT(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:jT(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:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
||
0 1px 2px -2px ${new Cr("rgba(0, 0, 0, 0.16)").toRgbString()},
|
||
0 3px 6px 0 ${new Cr("rgba(0, 0, 0, 0.12)").toRgbString()},
|
||
0 5px 12px 4px ${new Cr("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 UZ=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 k1e={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},eHe={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},tHe={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},O1e=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:i}=t,o=UZ(t,["override"]);let a=Object.assign(Object.assign({},r),{override:i});return a=NU(a),o&&Object.entries(o).forEach(s=>{let[l,c]=s;const{theme:u}=c,d=UZ(c,["theme"]);let h=d;u&&(h=O1e(Object.assign(Object.assign({},a),d),{override:d},u)),a[l]=h}),a};function na(){const{token:e,hashed:t,theme:n,override:r,cssVar:i}=ge.useContext($U),o=`${fp}-${t||""}`,a=n||v1e,[s,l,c]=kU(a,[Yb,e],{salt:o,override:r,getComputedToken:O1e,formatToken:NU,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:k1e,ignore:eHe,preserve:tHe}});return[a,c,t?l:"",s,i]}const Yl={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},$r=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}},qv=()=>({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"}}),Fd=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),nHe=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"}}}),rHe=(e,t,n,r)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,o=n?`.${n}`:i,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},s),a),{[i]:a})}},jd=(e,t)=>({outline:`${je(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),gl=(e,t)=>({"&:focus-visible":Object.assign({},jd(e,t))}),P1e=e=>({[`.${e}`]:Object.assign(Object.assign({},qv()),{[`.${e} .${e}-icon`]:{display:"block"}})}),DU=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"},gl(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),{genStyleHooks:Tr,genComponentStyleHook:M1e,genSubStyleComponent:KS}=T1e({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=f.useContext(hn);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,i]=na();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i}},useCSP:()=>{const{csp:e}=f.useContext(hn);return e??{}},getResetStyles:(e,t)=>{var n;return[{"&":nHe(e)},P1e((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:_O)]},getCommonStyle:rHe,getCompUnitless:()=>k1e});function kO(e,t){return xv.reduce((n,r)=>{const i=e[`${r}1`],o=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:i,lightBorderColor:o,darkColor:a,textColor:s}))},{})}const iHe=(e,t)=>{const[n,r]=na();return u_({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[P1e(e)])},oHe=Object.assign({},Q_),{useId:WZ}=oHe,aHe=()=>"",sHe=typeof WZ>"u"?aHe:WZ;function lHe(e,t,n){var r;eh();const i=e||{},o=i.inherit===!1||!t?Object.assign(Object.assign({},h_),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:h_.hashed,cssVar:t==null?void 0:t.cssVar}):t,a=sHe();return dp(()=>{var s,l;if(!e)return t;const c=Object.assign({},o.components);Object.keys(e.components||{}).forEach(h=>{c[h]=Object.assign(Object.assign({},c[h]),e.components[h])});const u=`css-var-${a.replace(/:/g,"")}`,d=((s=i.cssVar)!==null&&s!==void 0?s: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"&&((l=i.cssVar)===null||l===void 0?void 0:l.key)||u});return Object.assign(Object.assign(Object.assign({},o),i),{token:Object.assign(Object.assign({},o.token),i.token),components:c,cssVar:d})},[i,o],(s,l)=>s.some((c,u)=>{const d=l[u];return!ku(c,d,!0)}))}var cHe=["children"],I1e=f.createContext({});function $1e(e){var t=e.children,n=tn(e,cHe);return f.createElement(I1e.Provider,{value:n},t)}var uHe=function(e){Xs(n,e);var t=Sl(n);function n(){return pi(this,n),t.apply(this,arguments)}return mi(n,[{key:"render",value:function(){return this.props.children}}]),n}(f.Component);function dHe(e){var t=f.useReducer(function(s){return s+1},0),n=Le(t,2),r=n[1],i=f.useRef(e),o=cr(function(){return i.current}),a=cr(function(s){i.current=typeof s=="function"?s(i.current):s,r()});return[o,a]}var sm="none",BT="appear",HT="enter",zT="leave",VZ="none",hd="prepare",Wy="start",Vy="active",LU="end",R1e="prepared";function KZ(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 fHe(e,t){var n={animationend:KZ("Animation","AnimationEnd"),transitionend:KZ("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var hHe=fHe(ml(),typeof window<"u"?window:{}),A1e={};if(ml()){var pHe=document.createElement("div");A1e=pHe.style}var UT={};function N1e(e){if(UT[e])return UT[e];var t=hHe[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 A1e)return UT[e]=t[o],UT[e]}return""}var D1e=N1e("animationend"),L1e=N1e("transitionend"),F1e=!!(D1e&&L1e),qZ=D1e||"animationend",GZ=L1e||"transitionend";function YZ(e,t){if(!e)return null;if(ln(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const mHe=function(e){var t=f.useRef();function n(i){i&&(i.removeEventListener(GZ,e),i.removeEventListener(qZ,e))}function r(i){t.current&&t.current!==i&&n(t.current),i&&i!==t.current&&(i.addEventListener(GZ,e),i.addEventListener(qZ,e),t.current=i)}return f.useEffect(function(){return function(){n(t.current)}},[]),[r,n]};var j1e=ml()?f.useLayoutEffect:f.useEffect;const gHe=function(){var e=f.useRef(null);function t(){Sr.cancel(e.current)}function n(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var o=Sr(function(){i<=1?r({isCanceled:function(){return o!==e.current}}):n(r,i-1)});e.current=o}return f.useEffect(function(){return function(){t()}},[]),[n,t]};var vHe=[hd,Wy,Vy,LU],yHe=[hd,R1e],B1e=!1,bHe=!0;function H1e(e){return e===Vy||e===LU}const SHe=function(e,t,n){var r=Cv(VZ),i=Le(r,2),o=i[0],a=i[1],s=gHe(),l=Le(s,2),c=l[0],u=l[1];function d(){a(hd,!0)}var h=t?yHe:vHe;return j1e(function(){if(o!==VZ&&o!==LU){var p=h.indexOf(o),m=h[p+1],v=n(o);v===B1e?a(m,!0):m&&c(function(y){function S(){y.isCanceled()||a(m,!0)}v===!0?S():Promise.resolve(v).then(S)})}},[e,o]),f.useEffect(function(){return function(){u()}},[]),[d,o]};function CHe(e,t,n,r){var i=r.motionEnter,o=i===void 0?!0:i,a=r.motionAppear,s=a===void 0?!0:a,l=r.motionLeave,c=l===void 0?!0:l,u=r.motionDeadline,d=r.motionLeaveImmediately,h=r.onAppearPrepare,p=r.onEnterPrepare,m=r.onLeavePrepare,v=r.onAppearStart,y=r.onEnterStart,S=r.onLeaveStart,b=r.onAppearActive,C=r.onEnterActive,_=r.onLeaveActive,T=r.onAppearEnd,x=r.onEnterEnd,E=r.onLeaveEnd,k=r.onVisibleChanged,M=Cv(),P=Le(M,2),D=P[0],R=P[1],A=dHe(sm),H=Le(A,2),F=H[0],z=H[1],W=Cv(null),q=Le(W,2),Z=q[0],N=q[1],B=F(),V=f.useRef(!1),Y=f.useRef(null);function ie(){return n()}var ce=f.useRef(!1);function fe(){z(sm),N(null,!0)}var ee=cr(function(Te){var ke=F();if(ke!==sm){var Pe=ie();if(!(Te&&!Te.deadline&&Te.target!==Pe)){var Ne=ce.current,We;ke===BT&&Ne?We=T==null?void 0:T(Pe,Te):ke===HT&&Ne?We=x==null?void 0:x(Pe,Te):ke===zT&&Ne&&(We=E==null?void 0:E(Pe,Te)),Ne&&We!==!1&&fe()}}}),ne=mHe(ee),ue=Le(ne,1),ye=ue[0],me=function(ke){switch(ke){case BT:return ae(ae(ae({},hd,h),Wy,v),Vy,b);case HT:return ae(ae(ae({},hd,p),Wy,y),Vy,C);case zT:return ae(ae(ae({},hd,m),Wy,S),Vy,_);default:return{}}},pe=f.useMemo(function(){return me(B)},[B]),he=SHe(B,!e,function(Te){if(Te===hd){var ke=pe[hd];return ke?ke(ie()):B1e}if(xe in pe){var Pe;N(((Pe=pe[xe])===null||Pe===void 0?void 0:Pe.call(pe,ie(),null))||null)}return xe===Vy&&B!==sm&&(ye(ie()),u>0&&(clearTimeout(Y.current),Y.current=setTimeout(function(){ee({deadline:!0})},u))),xe===R1e&&fe(),bHe}),_e=Le(he,2),le=_e[0],xe=_e[1],we=H1e(xe);ce.current=we;var De=f.useRef(null);j1e(function(){if(!(V.current&&De.current===t)){R(t);var Te=V.current;V.current=!0;var ke;!Te&&t&&s&&(ke=BT),Te&&t&&o&&(ke=HT),(Te&&!t&&c||!Te&&d&&!t&&c)&&(ke=zT);var Pe=me(ke);ke&&(e||Pe[hd])?(z(ke),le()):z(sm),De.current=t}},[t]),f.useEffect(function(){(B===BT&&!s||B===HT&&!o||B===zT&&!c)&&z(sm)},[s,o,c]),f.useEffect(function(){return function(){V.current=!1,clearTimeout(Y.current)}},[]);var Fe=f.useRef(!1);f.useEffect(function(){D&&(Fe.current=!0),D!==void 0&&B===sm&&((Fe.current||D)&&(k==null||k(D)),Fe.current=!0)},[D,B]);var Ce=Z;return pe[hd]&&xe===Wy&&(Ce=G({transition:"none"},Ce)),[B,xe,Ce,D??t]}function xHe(e){var t=e;ln(e)==="object"&&(t=e.transitionSupport);function n(i,o){return!!(i.motionName&&t&&o!==!1)}var r=f.forwardRef(function(i,o){var a=i.visible,s=a===void 0?!0:a,l=i.removeOnLeave,c=l===void 0?!0:l,u=i.forceRender,d=i.children,h=i.motionName,p=i.leavedClassName,m=i.eventProps,v=f.useContext(I1e),y=v.motion,S=n(i,y),b=f.useRef(),C=f.useRef();function _(){try{return b.current instanceof HTMLElement?b.current:Y2(C.current)}catch{return null}}var T=CHe(S,s,_,i),x=Le(T,4),E=x[0],k=x[1],M=x[2],P=x[3],D=f.useRef(P);P&&(D.current=!0);var R=f.useCallback(function(q){b.current=q,i_(o,q)},[o]),A,H=G(G({},m),{},{visible:s});if(!d)A=null;else if(E===sm)P?A=d(G({},H),R):!c&&D.current&&p?A=d(G(G({},H),{},{className:p}),R):u||!c&&!p?A=d(G(G({},H),{},{style:{display:"none"}}),R):A=null;else{var F;k===hd?F="prepare":H1e(k)?F="active":k===Wy&&(F="start");var z=YZ(h,"".concat(E,"-").concat(F));A=d(G(G({},H),{},{className:Re(YZ(h,E),ae(ae({},z,z&&F),h,typeof h=="string")),style:M}),R)}if(f.isValidElement(A)&&Ld(A)){var W=mg(A);W||(A=f.cloneElement(A,{ref:R}))}return f.createElement(uHe,{ref:C},A)});return r.displayName="CSSMotion",r}const ha=xHe(F1e);var gF="add",vF="keep",yF="remove",hR="removed";function wHe(e){var t;return e&&ln(e)==="object"&&"key"in e?t=e:t={key:e},G(G({},t),{},{key:String(t.key)})}function bF(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(wHe)}function _He(){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=bF(e),a=bF(t);o.forEach(function(c){for(var u=!1,d=r;d<i;d+=1){var h=a[d];if(h.key===c.key){r<d&&(n=n.concat(a.slice(r,d).map(function(p){return G(G({},p),{},{status:gF})})),r=d),n.push(G(G({},h),{},{status:vF})),r+=1,u=!0;break}}u||n.push(G(G({},c),{},{status:yF}))}),r<i&&(n=n.concat(a.slice(r).map(function(c){return G(G({},c),{},{status:gF})})));var s={};n.forEach(function(c){var u=c.key;s[u]=(s[u]||0)+1});var l=Object.keys(s).filter(function(c){return s[c]>1});return l.forEach(function(c){n=n.filter(function(u){var d=u.key,h=u.status;return d!==c||h!==yF}),n.forEach(function(u){u.key===c&&(u.status=vF)})}),n}var EHe=["component","children","onVisibleChanged","onAllRemoved"],THe=["status"],kHe=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function OHe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ha,n=function(r){Xs(o,r);var i=Sl(o);function o(){var a;pi(this,o);for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return a=i.call.apply(i,[this].concat(l)),ae(On(a),"state",{keyEntities:[]}),ae(On(a),"removeKey",function(u){a.setState(function(d){var h=d.keyEntities.map(function(p){return p.key!==u?p:G(G({},p),{},{status:hR})});return{keyEntities:h}},function(){var d=a.state.keyEntities,h=d.filter(function(p){var m=p.status;return m!==hR}).length;h===0&&a.props.onAllRemoved&&a.props.onAllRemoved()})}),a}return mi(o,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,c=this.props,u=c.component,d=c.children,h=c.onVisibleChanged;c.onAllRemoved;var p=tn(c,EHe),m=u||f.Fragment,v={};return kHe.forEach(function(y){v[y]=p[y],delete p[y]}),delete p.keys,f.createElement(m,p,l.map(function(y,S){var b=y.status,C=tn(y,THe),_=b===gF||b===vF;return f.createElement(t,ut({},v,{key:C.key,visible:_,eventProps:C,onVisibleChanged:function(x){h==null||h(x,{key:C.key}),x||s.removeKey(C.key)}}),function(T,x){return d(G(G({},T),{},{index:S}),x)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var c=s.keys,u=l.keyEntities,d=bF(c),h=_He(u,d);return{keyEntities:h.filter(function(p){var m=u.find(function(v){var y=v.key;return p.key===y});return!(m&&m.status===hR&&p.status===yF)})}}}]),o}(f.Component);return ae(n,"defaultProps",{component:"div"}),n}const OO=OHe(F1e),PHe=Object.freeze(Object.defineProperty({__proto__:null,CSSMotionList:OO,Provider:$1e,default:ha},Symbol.toStringTag,{value:"Module"}));function MHe(e){const{children:t}=e,[,n]=na(),{motion:r}=n,i=f.useRef(!1);return i.current=i.current||r===!1,i.current?f.createElement($1e,{motion:r},t):t}const IHe=()=>null;var $He=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 RHe=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let j9,z1e,U1e,W1e;function D3(){return j9||p_}function AHe(){return z1e||_O}function NHe(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const DHe=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:i}=e;t!==void 0&&(j9=t),n!==void 0&&(z1e=n),"holderRender"in e&&(W1e=i),r&&(NHe(r)?BBe(D3(),r):U1e=r)},V1e=()=>({getPrefixCls:(e,t)=>t||(e?`${D3()}-${e}`:D3()),getIconPrefixCls:AHe,getRootPrefixCls:()=>j9||D3(),getTheme:()=>U1e,holderRender:W1e}),LHe=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:i,anchor:o,form:a,locale:s,componentSize:l,direction:c,space:u,splitter:d,virtual:h,dropdownMatchSelectWidth:p,popupMatchSelectWidth:m,popupOverflow:v,legacyLocale:y,parentContext:S,iconPrefixCls:b,theme:C,componentDisabled:_,segmented:T,statistic:x,spin:E,calendar:k,carousel:M,cascader:P,collapse:D,typography:R,checkbox:A,descriptions:H,divider:F,drawer:z,skeleton:W,steps:q,image:Z,layout:N,list:B,mentions:V,modal:Y,progress:ie,result:ce,slider:fe,breadcrumb:ee,menu:ne,pagination:ue,input:ye,textArea:me,empty:pe,badge:he,radio:_e,rate:le,switch:xe,transfer:we,avatar:De,message:Fe,tag:Ce,table:Te,card:ke,tabs:Pe,timeline:Ne,timePicker:We,upload:Q,notification:K,tree:J,colorPicker:be,datePicker:Oe,rangePicker:Se,flex:Ke,wave:tt,dropdown:se,warning:ze,tour:Ye,tooltip:Ue,popover:Je,popconfirm:Ze,floatButtonGroup:rt,variant:qt,inputNumber:St,treeSelect:Ot}=e,Bt=f.useCallback((Lt,Zt)=>{const{prefixCls:Wt}=e;if(Zt)return Zt;const At=Wt||S.getPrefixCls("");return Lt?`${At}-${Lt}`:At},[S.getPrefixCls,e.prefixCls]),Dt=b||S.iconPrefixCls||_O,an=n||S.csp;iHe(Dt,an);const Vt=lHe(C,S.theme,{prefixCls:Bt("")}),Kt={csp:an,autoInsertSpaceInButton:r,alert:i,anchor:o,locale:s||y,direction:c,space:u,splitter:d,virtual:h,popupMatchSelectWidth:m??p,popupOverflow:v,getPrefixCls:Bt,iconPrefixCls:Dt,theme:Vt,segmented:T,statistic:x,spin:E,calendar:k,carousel:M,cascader:P,collapse:D,typography:R,checkbox:A,descriptions:H,divider:F,drawer:z,skeleton:W,steps:q,image:Z,input:ye,textArea:me,layout:N,list:B,mentions:V,modal:Y,progress:ie,result:ce,slider:fe,breadcrumb:ee,menu:ne,pagination:ue,empty:pe,badge:he,radio:_e,rate:le,switch:xe,transfer:we,avatar:De,message:Fe,tag:Ce,table:Te,card:ke,tabs:Pe,timeline:Ne,timePicker:We,upload:Q,notification:K,tree:J,colorPicker:be,datePicker:Oe,rangePicker:Se,flex:Ke,wave:tt,dropdown:se,warning:ze,tour:Ye,tooltip:Ue,popover:Je,popconfirm:Ze,floatButtonGroup:rt,variant:qt,inputNumber:St,treeSelect:Ot},Qt=Object.assign({},S);Object.keys(Kt).forEach(Lt=>{Kt[Lt]!==void 0&&(Qt[Lt]=Kt[Lt])}),RHe.forEach(Lt=>{const Zt=e[Lt];Zt&&(Qt[Lt]=Zt)}),typeof r<"u"&&(Qt.button=Object.assign({autoInsertSpace:r},Qt.button));const et=dp(()=>Qt,Qt,(Lt,Zt)=>{const Wt=Object.keys(Lt),At=Object.keys(Zt);return Wt.length!==At.length||Wt.some($t=>Lt[$t]!==Zt[$t])}),ot=f.useMemo(()=>({prefixCls:Dt,csp:an}),[Dt,an]);let Qe=f.createElement(f.Fragment,null,f.createElement(IHe,{dropdownMatchSelectWidth:p}),t);const ct=f.useMemo(()=>{var Lt,Zt,Wt,At;return Uy(((Lt=Fc.Form)===null||Lt===void 0?void 0:Lt.defaultValidateMessages)||{},((Wt=(Zt=et.locale)===null||Zt===void 0?void 0:Zt.Form)===null||Wt===void 0?void 0:Wt.defaultValidateMessages)||{},((At=et.form)===null||At===void 0?void 0:At.validateMessages)||{},(a==null?void 0:a.validateMessages)||{})},[et,a==null?void 0:a.validateMessages]);Object.keys(ct).length>0&&(Qe=f.createElement(s1e.Provider,{value:ct},Qe)),s&&(Qe=f.createElement(yBe,{locale:s,_ANT_MARK__:vBe},Qe)),(Dt||an)&&(Qe=f.createElement(wO.Provider,{value:ot},Qe)),l&&(Qe=f.createElement(HBe,{size:l},Qe)),Qe=f.createElement(MHe,null,Qe);const Nt=f.useMemo(()=>{const Lt=Vt||{},{algorithm:Zt,token:Wt,components:At,cssVar:$t}=Lt,Gt=$He(Lt,["algorithm","token","components","cssVar"]),Ft=Zt&&(!Array.isArray(Zt)||Zt.length>0)?yv(Zt):v1e,cn={};Object.entries(At||{}).forEach(jt=>{let[nn,Ht]=jt;const Tt=Object.assign({},Ht);"algorithm"in Tt&&(Tt.algorithm===!0?Tt.theme=Ft:(Array.isArray(Tt.algorithm)||typeof Tt.algorithm=="function")&&(Tt.theme=yv(Tt.algorithm)),delete Tt.algorithm),cn[nn]=Tt});const _t=Object.assign(Object.assign({},Yb),Wt);return Object.assign(Object.assign({},Gt),{theme:Ft,token:_t,components:cn,override:Object.assign({override:_t},cn),cssVar:$t})},[Vt]);return C&&(Qe=f.createElement($U.Provider,{value:Nt},Qe)),et.warning&&(Qe=f.createElement(pBe.Provider,{value:et.warning},Qe)),_!==void 0&&(Qe=f.createElement(AU,{disabled:_},Qe)),f.createElement(hn.Provider,{value:et},Qe)},or=e=>{const t=f.useContext(hn),n=f.useContext(MU);return f.createElement(LHe,Object.assign({parentContext:t,legacyLocale:n},e))};or.ConfigContext=hn;or.SizeContext=Sv;or.config=DHe;or.useConfig=zBe;Object.defineProperty(or,"SizeContext",{get:()=>Sv});var FHe={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 K1e(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function jHe(e){return K1e(e)instanceof ShadowRoot}function B9(e){return jHe(e)?K1e(e):null}function BHe(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function SF(e,t){fi(e,"[@ant-design/icons] ".concat(t))}function XZ(e){return ln(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(ln(e.icon)==="object"||typeof e.icon=="function")}function QZ(){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[BHe(n)]=r}return t},{})}function CF(e,t,n){return n?ge.createElement(e.tag,G(G({key:t},QZ(e.attrs)),n),(e.children||[]).map(function(r,i){return CF(r,"".concat(t,"-").concat(e.tag,"-").concat(i))})):ge.createElement(e.tag,G({key:t},QZ(e.attrs)),(e.children||[]).map(function(r,i){return CF(r,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function q1e(e){return tg(e)[0]}function G1e(e){return e?Array.isArray(e)?e:[e]:[]}var HHe={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},zHe=`
|
||
.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);
|
||
}
|
||
}
|
||
`,Y1e=function(t){var n=f.useContext(wO),r=n.csp,i=n.prefixCls,o=n.layer,a=zHe;i&&(a=a.replace(/anticon/g,i)),o&&(a="@layer ".concat(o,` {
|
||
`).concat(a,`
|
||
}`)),f.useEffect(function(){var s=t.current,l=B9(s);TO(a,"@ant-design-icons",{prepend:!0,csp:r,attachTo:l})},[])},UHe=["icon","className","onClick","style","primaryColor","secondaryColor"],J2={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function WHe(e){var t=e.primaryColor,n=e.secondaryColor;J2.primaryColor=t,J2.secondaryColor=n||q1e(t),J2.calculated=!!n}function VHe(){return G({},J2)}var qS=function(t){var n=t.icon,r=t.className,i=t.onClick,o=t.style,a=t.primaryColor,s=t.secondaryColor,l=tn(t,UHe),c=f.useRef(),u=J2;if(a&&(u={primaryColor:a,secondaryColor:s||q1e(a)}),Y1e(c),SF(XZ(n),"icon should be icon definiton, but got ".concat(n)),!XZ(n))return null;var d=n;return d&&typeof d.icon=="function"&&(d=G(G({},d),{},{icon:d.icon(u.primaryColor,u.secondaryColor)})),CF(d.icon,"svg-".concat(d.name),G(G({className:r,onClick:i,style:o,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};qS.displayName="IconReact";qS.getTwoToneColors=VHe;qS.setTwoToneColors=WHe;function X1e(e){var t=G1e(e),n=Le(t,2),r=n[0],i=n[1];return qS.setTwoToneColors({primaryColor:r,secondaryColor:i})}function KHe(){var e=qS.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var qHe=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];X1e(bv.primary);var wr=f.forwardRef(function(e,t){var n=e.className,r=e.icon,i=e.spin,o=e.rotate,a=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=tn(e,qHe),u=f.useContext(wO),d=u.prefixCls,h=d===void 0?"anticon":d,p=u.rootClassName,m=Re(p,h,ae(ae({},"".concat(h,"-").concat(r.name),!!r.name),"".concat(h,"-spin"),!!i||r.name==="loading"),n),v=a;v===void 0&&s&&(v=-1);var y=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,S=G1e(l),b=Le(S,2),C=b[0],_=b[1];return f.createElement("span",ut({role:"img","aria-label":r.name},c,{ref:t,tabIndex:v,onClick:s,className:m}),f.createElement(qS,{icon:r,primaryColor:C,secondaryColor:_,style:y}))});wr.displayName="AntdIcon";wr.getTwoToneColor=KHe;wr.setTwoToneColor=X1e;var GHe=function(t,n){return f.createElement(wr,ut({},t,{ref:n,icon:FHe}))},Gv=f.forwardRef(GHe),YHe={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"},XHe=function(t,n){return f.createElement(wr,ut({},t,{ref:n,icon:YHe}))},th=f.forwardRef(XHe),QHe={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"},ZHe=function(t,n){return f.createElement(wr,ut({},t,{ref:n,icon:QHe}))},nh=f.forwardRef(ZHe),JHe={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"},eze=function(t,n){return f.createElement(wr,ut({},t,{ref:n,icon:JHe}))},gg=f.forwardRef(eze),tze={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"},nze=function(t,n){return f.createElement(wr,ut({},t,{ref:n,icon:tze}))},PO=f.forwardRef(nze),rze=`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`,ize=`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`,oze="".concat(rze," ").concat(ize).split(/[\s\n]+/),aze="aria-",sze="data-";function ZZ(e,t){return e.indexOf(t)===0}function Hi(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=G({},t);var r={};return Object.keys(e).forEach(function(i){(n.aria&&(i==="role"||ZZ(i,aze))||n.data&&ZZ(i,sze)||n.attr&&oze.includes(i))&&(r[i]=e[i])}),r}function Q1e(e){return e&&ge.isValidElement(e)&&e.type===ge.Fragment}const FU=(e,t,n)=>ge.isValidElement(e)?ge.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function $o(e,t){return FU(e,e,t)}const WT=(e,t,n,r,i)=>({background:e,border:`${je(r.lineWidth)} ${r.lineType} ${t}`,[`${i}-icon`]:{color:n}}),lze=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:i,fontSize:o,fontSizeLG:a,lineHeight:s,borderRadiusLG:l,motionEaseInOutCirc:c,withDescriptionIconSize:u,colorText:d,colorTextHeading:h,withDescriptionPadding:p,defaultPadding:m}=e;return{[t]:Object.assign(Object.assign({},$r(e)),{position:"relative",display:"flex",alignItems:"center",padding:m,wordWrap:"break-word",borderRadius:l,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:o,lineHeight:s},"&-message":{color:h},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${c}, opacity ${n} ${c},
|
||
padding-top ${n} ${c}, padding-bottom ${n} ${c},
|
||
margin-bottom ${n} ${c}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:p,[`${t}-icon`]:{marginInlineEnd:i,fontSize:u,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:h,fontSize:a},[`${t}-description`]:{display:"block",color:d}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},cze=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:i,colorWarning:o,colorWarningBorder:a,colorWarningBg:s,colorError:l,colorErrorBorder:c,colorErrorBg:u,colorInfo:d,colorInfoBorder:h,colorInfoBg:p}=e;return{[t]:{"&-success":WT(i,r,n,e,t),"&-info":WT(p,h,d,e,t),"&-warning":WT(s,a,o,e,t),"&-error":Object.assign(Object.assign({},WT(u,c,l,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},uze=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:i,fontSizeIcon:o,colorIcon:a,colorIconHover:s}=e;return{[t]:{"&-action":{marginInlineStart:i},[`${t}-close-icon`]:{marginInlineStart:i,padding:0,overflow:"hidden",fontSize:o,lineHeight:je(o),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:a,transition:`color ${r}`,"&:hover":{color:s}}},"&-close-text":{color:a,transition:`color ${r}`,"&:hover":{color:s}}}}},dze=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),fze=Tr("Alert",e=>[lze(e),cze(e),uze(e)],dze);var JZ=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 hze={success:Gv,info:PO,error:th,warning:gg},pze=e=>{const{icon:t,prefixCls:n,type:r}=e,i=hze[r]||null;return t?FU(t,f.createElement("span",{className:`${n}-icon`},t),()=>({className:Re(`${n}-icon`,t.props.className)})):f.createElement(i,{className:`${n}-icon`})},mze=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:i,ariaProps:o}=e,a=r===!0||r===void 0?f.createElement(nh,null):r;return t?f.createElement("button",Object.assign({type:"button",onClick:i,className:`${n}-close-icon`,tabIndex:0},o),a):null},Z1e=f.forwardRef((e,t)=>{const{description:n,prefixCls:r,message:i,banner:o,className:a,rootClassName:s,style:l,onMouseEnter:c,onMouseLeave:u,onClick:d,afterClose:h,showIcon:p,closable:m,closeText:v,closeIcon:y,action:S,id:b}=e,C=JZ(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[_,T]=f.useState(!1),x=f.useRef(null);f.useImperativeHandle(t,()=>({nativeElement:x.current}));const{getPrefixCls:E,direction:k,alert:M}=f.useContext(hn),P=E("alert",r),[D,R,A]=fze(P),H=V=>{var Y;T(!0),(Y=e.onClose)===null||Y===void 0||Y.call(e,V)},F=f.useMemo(()=>e.type!==void 0?e.type:o?"warning":"info",[e.type,o]),z=f.useMemo(()=>typeof m=="object"&&m.closeIcon||v?!0:typeof m=="boolean"?m:y!==!1&&y!==null&&y!==void 0?!0:!!(M!=null&&M.closable),[v,y,m,M==null?void 0:M.closable]),W=o&&p===void 0?!0:p,q=Re(P,`${P}-${F}`,{[`${P}-with-description`]:!!n,[`${P}-no-icon`]:!W,[`${P}-banner`]:!!o,[`${P}-rtl`]:k==="rtl"},M==null?void 0:M.className,a,s,A,R),Z=Hi(C,{aria:!0,data:!0}),N=f.useMemo(()=>{var V,Y;return typeof m=="object"&&m.closeIcon?m.closeIcon:v||(y!==void 0?y:typeof(M==null?void 0:M.closable)=="object"&&(!((V=M==null?void 0:M.closable)===null||V===void 0)&&V.closeIcon)?(Y=M==null?void 0:M.closable)===null||Y===void 0?void 0:Y.closeIcon:M==null?void 0:M.closeIcon)},[y,m,v,M==null?void 0:M.closeIcon]),B=f.useMemo(()=>{const V=m??(M==null?void 0:M.closable);return typeof V=="object"?JZ(V,["closeIcon"]):{}},[m,M==null?void 0:M.closable]);return D(f.createElement(ha,{visible:!_,motionName:`${P}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:V=>({maxHeight:V.offsetHeight}),onLeaveEnd:h},(V,Y)=>{let{className:ie,style:ce}=V;return f.createElement("div",Object.assign({id:b,ref:va(x,Y),"data-show":!_,className:Re(q,ie),style:Object.assign(Object.assign(Object.assign({},M==null?void 0:M.style),l),ce),onMouseEnter:c,onMouseLeave:u,onClick:d,role:"alert"},Z),W?f.createElement(pze,{description:n,icon:e.icon,prefixCls:P,type:F}):null,f.createElement("div",{className:`${P}-content`},i?f.createElement("div",{className:`${P}-message`},i):null,n?f.createElement("div",{className:`${P}-description`},n):null),S?f.createElement("div",{className:`${P}-action`},S):null,f.createElement(mze,{isClosable:z,prefixCls:P,closeIcon:N,handleClose:H,ariaProps:B}))}))});function gze(e,t,n){return t=vv(t),Oge(e,yO()?Reflect.construct(t,n||[],vv(e).constructor):t.apply(e,n))}let vze=function(e){function t(){var n;return pi(this,t),n=gze(this,t,arguments),n.state={error:void 0,info:{componentStack:""}},n}return Xs(t,e),mi(t,[{key:"componentDidCatch",value:function(r,i){this.setState({error:r,info:i})}},{key:"render",value:function(){const{message:r,description:i,id:o,children:a}=this.props,{error:s,info:l}=this.state,c=(l==null?void 0:l.componentStack)||null,u=typeof r>"u"?(s||"").toString():r,d=typeof i>"u"?c:i;return s?f.createElement(Z1e,{id:o,type:"error",message:u,description:f.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},d)}):a}}])}(f.Component);const J1e=Z1e;J1e.ErrorBoundary=vze;const eJ=e=>typeof e=="object"&&e!=null&&e.nodeType===1,tJ=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",pR=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return tJ(n.overflowY,t)||tJ(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},VT=(e,t,n,r,i,o,a,s)=>o<e&&a>t||o>e&&a<t?0:o<=e&&s<=n||a>=t&&s>=n?o-e-r:a>t&&s<n||o<e&&s>n?a-t+i:0,yze=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},nJ=(e,t)=>{var n,r,i,o;if(typeof document>"u")return[];const{scrollMode:a,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,d=typeof c=="function"?c:z=>z!==c;if(!eJ(e))throw new TypeError("Invalid target");const h=document.scrollingElement||document.documentElement,p=[];let m=e;for(;eJ(m)&&d(m);){if(m=yze(m),m===h){p.push(m);break}m!=null&&m===document.body&&pR(m)&&!pR(document.documentElement)||m!=null&&pR(m,u)&&p.push(m)}const v=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,y=(o=(i=window.visualViewport)==null?void 0:i.height)!=null?o:innerHeight,{scrollX:S,scrollY:b}=window,{height:C,width:_,top:T,right:x,bottom:E,left:k}=e.getBoundingClientRect(),{top:M,right:P,bottom:D,left:R}=(z=>{const W=window.getComputedStyle(z);return{top:parseFloat(W.scrollMarginTop)||0,right:parseFloat(W.scrollMarginRight)||0,bottom:parseFloat(W.scrollMarginBottom)||0,left:parseFloat(W.scrollMarginLeft)||0}})(e);let A=s==="start"||s==="nearest"?T-M:s==="end"?E+D:T+C/2-M+D,H=l==="center"?k+_/2-R+P:l==="end"?x+P:k-R;const F=[];for(let z=0;z<p.length;z++){const W=p[z],{height:q,width:Z,top:N,right:B,bottom:V,left:Y}=W.getBoundingClientRect();if(a==="if-needed"&&T>=0&&k>=0&&E<=y&&x<=v&&T>=N&&E<=V&&k>=Y&&x<=B)return F;const ie=getComputedStyle(W),ce=parseInt(ie.borderLeftWidth,10),fe=parseInt(ie.borderTopWidth,10),ee=parseInt(ie.borderRightWidth,10),ne=parseInt(ie.borderBottomWidth,10);let ue=0,ye=0;const me="offsetWidth"in W?W.offsetWidth-W.clientWidth-ce-ee:0,pe="offsetHeight"in W?W.offsetHeight-W.clientHeight-fe-ne:0,he="offsetWidth"in W?W.offsetWidth===0?0:Z/W.offsetWidth:0,_e="offsetHeight"in W?W.offsetHeight===0?0:q/W.offsetHeight:0;if(h===W)ue=s==="start"?A:s==="end"?A-y:s==="nearest"?VT(b,b+y,y,fe,ne,b+A,b+A+C,C):A-y/2,ye=l==="start"?H:l==="center"?H-v/2:l==="end"?H-v:VT(S,S+v,v,ce,ee,S+H,S+H+_,_),ue=Math.max(0,ue+b),ye=Math.max(0,ye+S);else{ue=s==="start"?A-N-fe:s==="end"?A-V+ne+pe:s==="nearest"?VT(N,V,q,fe,ne+pe,A,A+C,C):A-(N+q/2)+pe/2,ye=l==="start"?H-Y-ce:l==="center"?H-(Y+Z/2)+me/2:l==="end"?H-B+ee+me:VT(Y,B,Z,ce,ee+me,H,H+_,_);const{scrollLeft:le,scrollTop:xe}=W;ue=_e===0?0:Math.max(0,Math.min(xe+ue/_e,W.scrollHeight-q/_e+pe)),ye=he===0?0:Math.max(0,Math.min(le+ye/he,W.scrollWidth-Z/he+me)),A+=xe-ue,H+=le-ye}F.push({el:W,top:ue,left:ye})}return F},bze=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function Sze(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(nJ(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:i,top:o,left:a}of nJ(e,bze(t))){const s=o-n.top+n.bottom,l=a-n.left+n.right;i.scroll({top:s,left:l,behavior:r})}}function xF(e){return e!=null&&e===e.window}const Cze=e=>{var t,n;if(typeof window>"u")return 0;let r=0;return xF(e)?r=e.pageYOffset:e instanceof Document?r=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(r=e.scrollTop),e&&!xF(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 xze(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 wze(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=Cze(o),s=Date.now(),l=()=>{const u=Date.now()-s,d=xze(u>i?i:u,a,e,i);xF(o)?o.scrollTo(window.pageXOffset,d):o instanceof Document||o.constructor.name==="HTMLDocument"?o.documentElement.scrollTop=d:o.scrollTop=d,u<i?Sr(l):typeof r=="function"&&r()};Sr(l)}const _i=e=>{const[,,,,t]=na();return t?`${e}-css-var`:""};var Pt={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>=Pt.F1&&n<=Pt.F12)return!1;switch(n){case Pt.ALT:case Pt.CAPS_LOCK:case Pt.CONTEXT_MENU:case Pt.CTRL:case Pt.DOWN:case Pt.END:case Pt.ESC:case Pt.HOME:case Pt.INSERT:case Pt.LEFT:case Pt.MAC_FF_META:case Pt.META:case Pt.NUMLOCK:case Pt.NUM_CENTER:case Pt.PAGE_DOWN:case Pt.PAGE_UP:case Pt.PAUSE:case Pt.PRINT_SCREEN:case Pt.RIGHT:case Pt.SHIFT:case Pt.UP:case Pt.WIN_KEY:case Pt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=Pt.ZERO&&t<=Pt.NINE||t>=Pt.NUM_ZERO&&t<=Pt.NUM_MULTIPLY||t>=Pt.A&&t<=Pt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case Pt.SPACE:case Pt.QUESTION_MARK:case Pt.NUM_PLUS:case Pt.NUM_MINUS:case Pt.NUM_PERIOD:case Pt.NUM_DIVISION:case Pt.SEMICOLON:case Pt.DASH:case Pt.EQUALS:case Pt.COMMA:case Pt.PERIOD:case Pt.SLASH:case Pt.APOSTROPHE:case Pt.SINGLE_QUOTE:case Pt.OPEN_SQUARE_BRACKET:case Pt.BACKSLASH:case Pt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},eve=f.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,i=e.className,o=e.duration,a=o===void 0?4.5:o,s=e.showProgress,l=e.pauseOnHover,c=l===void 0?!0:l,u=e.eventKey,d=e.content,h=e.closable,p=e.closeIcon,m=p===void 0?"x":p,v=e.props,y=e.onClick,S=e.onNoticeClose,b=e.times,C=e.hovering,_=f.useState(!1),T=Le(_,2),x=T[0],E=T[1],k=f.useState(0),M=Le(k,2),P=M[0],D=M[1],R=f.useState(0),A=Le(R,2),H=A[0],F=A[1],z=C||x,W=a>0&&s,q=function(){S(u)},Z=function(ce){(ce.key==="Enter"||ce.code==="Enter"||ce.keyCode===Pt.ENTER)&&q()};f.useEffect(function(){if(!z&&a>0){var ie=Date.now()-H,ce=setTimeout(function(){q()},a*1e3-H);return function(){c&&clearTimeout(ce),F(Date.now()-ie)}}},[a,z,b]),f.useEffect(function(){if(!z&&W&&(c||H===0)){var ie=performance.now(),ce,fe=function ee(){cancelAnimationFrame(ce),ce=requestAnimationFrame(function(ne){var ue=ne+H-ie,ye=Math.min(ue/(a*1e3),1);D(ye*100),ye<1&&ee()})};return fe(),function(){c&&cancelAnimationFrame(ce)}}},[a,H,z,W,b]);var N=f.useMemo(function(){return ln(h)==="object"&&h!==null?h:h?{closeIcon:m}:{}},[h,m]),B=Hi(N,!0),V=100-(!P||P<0?0:P>100?100:P),Y="".concat(n,"-notice");return f.createElement("div",ut({},v,{ref:t,className:Re(Y,i,ae({},"".concat(Y,"-closable"),h)),style:r,onMouseEnter:function(ce){var fe;E(!0),v==null||(fe=v.onMouseEnter)===null||fe===void 0||fe.call(v,ce)},onMouseLeave:function(ce){var fe;E(!1),v==null||(fe=v.onMouseLeave)===null||fe===void 0||fe.call(v,ce)},onClick:y}),f.createElement("div",{className:"".concat(Y,"-content")},d),h&&f.createElement("a",ut({tabIndex:0,className:"".concat(Y,"-close"),onKeyDown:Z,"aria-label":"Close"},B,{onClick:function(ce){ce.preventDefault(),ce.stopPropagation(),q()}}),N.closeIcon),W&&f.createElement("progress",{className:"".concat(Y,"-progress"),max:"100",value:V},V+"%"))}),tve=ge.createContext({}),nve=function(t){var n=t.children,r=t.classNames;return ge.createElement(tve.Provider,{value:{classNames:r}},n)},rJ=8,iJ=3,oJ=16,_ze=function(t){var n={offset:rJ,threshold:iJ,gap:oJ};if(t&&ln(t)==="object"){var r,i,o;n.offset=(r=t.offset)!==null&&r!==void 0?r:rJ,n.threshold=(i=t.threshold)!==null&&i!==void 0?i:iJ,n.gap=(o=t.gap)!==null&&o!==void 0?o:oJ}return[!!t,n]},Eze=["className","style","classNames","styles"],Tze=function(t){var n=t.configList,r=t.placement,i=t.prefixCls,o=t.className,a=t.style,s=t.motion,l=t.onAllNoticeRemoved,c=t.onNoticeClose,u=t.stack,d=f.useContext(tve),h=d.classNames,p=f.useRef({}),m=f.useState(null),v=Le(m,2),y=v[0],S=v[1],b=f.useState([]),C=Le(b,2),_=C[0],T=C[1],x=n.map(function(z){return{config:z,key:String(z.key)}}),E=_ze(u),k=Le(E,2),M=k[0],P=k[1],D=P.offset,R=P.threshold,A=P.gap,H=M&&(_.length>0||x.length<=R),F=typeof s=="function"?s(r):s;return f.useEffect(function(){M&&_.length>1&&T(function(z){return z.filter(function(W){return x.some(function(q){var Z=q.key;return W===Z})})})},[_,x,M]),f.useEffect(function(){var z;if(M&&p.current[(z=x[x.length-1])===null||z===void 0?void 0:z.key]){var W;S(p.current[(W=x[x.length-1])===null||W===void 0?void 0:W.key])}},[x,M]),ge.createElement(OO,ut({key:r,className:Re(i,"".concat(i,"-").concat(r),h==null?void 0:h.list,o,ae(ae({},"".concat(i,"-stack"),!!M),"".concat(i,"-stack-expanded"),H)),style:a,keys:x,motionAppear:!0},F,{onAllRemoved:function(){l(r)}}),function(z,W){var q=z.config,Z=z.className,N=z.style,B=z.index,V=q,Y=V.key,ie=V.times,ce=String(Y),fe=q,ee=fe.className,ne=fe.style,ue=fe.classNames,ye=fe.styles,me=tn(fe,Eze),pe=x.findIndex(function(Ne){return Ne.key===ce}),he={};if(M){var _e=x.length-1-(pe>-1?pe:B-1),le=r==="top"||r==="bottom"?"-50%":"0";if(_e>0){var xe,we,De;he.height=H?(xe=p.current[ce])===null||xe===void 0?void 0:xe.offsetHeight:y==null?void 0:y.offsetHeight;for(var Fe=0,Ce=0;Ce<_e;Ce++){var Te;Fe+=((Te=p.current[x[x.length-1-Ce].key])===null||Te===void 0?void 0:Te.offsetHeight)+A}var ke=(H?Fe:_e*D)*(r.startsWith("top")?1:-1),Pe=!H&&y!==null&&y!==void 0&&y.offsetWidth&&(we=p.current[ce])!==null&&we!==void 0&&we.offsetWidth?((y==null?void 0:y.offsetWidth)-D*2*(_e<3?_e:3))/((De=p.current[ce])===null||De===void 0?void 0:De.offsetWidth):1;he.transform="translate3d(".concat(le,", ").concat(ke,"px, 0) scaleX(").concat(Pe,")")}else he.transform="translate3d(".concat(le,", 0, 0)")}return ge.createElement("div",{ref:W,className:Re("".concat(i,"-notice-wrapper"),Z,ue==null?void 0:ue.wrapper),style:G(G(G({},N),he),ye==null?void 0:ye.wrapper),onMouseEnter:function(){return T(function(We){return We.includes(ce)?We:[].concat(pt(We),[ce])})},onMouseLeave:function(){return T(function(We){return We.filter(function(Q){return Q!==ce})})}},ge.createElement(eve,ut({},me,{ref:function(We){pe>-1?p.current[ce]=We:delete p.current[ce]},prefixCls:i,classNames:ue,styles:ye,className:Re(ee,h==null?void 0:h.notice),style:ne,times:ie,key:Y,eventKey:Y,onNoticeClose:c,hovering:M&&_.length>0})))})},kze=f.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,i=e.container,o=e.motion,a=e.maxCount,s=e.className,l=e.style,c=e.onAllRemoved,u=e.stack,d=e.renderNotifications,h=f.useState([]),p=Le(h,2),m=p[0],v=p[1],y=function(M){var P,D=m.find(function(R){return R.key===M});D==null||(P=D.onClose)===null||P===void 0||P.call(D),v(function(R){return R.filter(function(A){return A.key!==M})})};f.useImperativeHandle(t,function(){return{open:function(M){v(function(P){var D=pt(P),R=D.findIndex(function(F){return F.key===M.key}),A=G({},M);if(R>=0){var H;A.times=(((H=P[R])===null||H===void 0?void 0:H.times)||0)+1,D[R]=A}else A.times=0,D.push(A);return a>0&&D.length>a&&(D=D.slice(-a)),D})},close:function(M){y(M)},destroy:function(){v([])}}});var S=f.useState({}),b=Le(S,2),C=b[0],_=b[1];f.useEffect(function(){var k={};m.forEach(function(M){var P=M.placement,D=P===void 0?"topRight":P;D&&(k[D]=k[D]||[],k[D].push(M))}),Object.keys(C).forEach(function(M){k[M]=k[M]||[]}),_(k)},[m]);var T=function(M){_(function(P){var D=G({},P),R=D[M]||[];return R.length||delete D[M],D})},x=f.useRef(!1);if(f.useEffect(function(){Object.keys(C).length>0?x.current=!0:x.current&&(c==null||c(),x.current=!1)},[C]),!i)return null;var E=Object.keys(C);return Nc.createPortal(f.createElement(f.Fragment,null,E.map(function(k){var M=C[k],P=f.createElement(Tze,{key:k,configList:M,placement:k,prefixCls:r,className:s==null?void 0:s(k),style:l==null?void 0:l(k),motion:o,onNoticeClose:y,onAllNoticeRemoved:T,stack:u});return d?d(P,{prefixCls:r,key:k}):P})),i)}),Oze=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],Pze=function(){return document.body},aJ=0;function Mze(){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 rve(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?Pze:t,r=e.motion,i=e.prefixCls,o=e.maxCount,a=e.className,s=e.style,l=e.onAllRemoved,c=e.stack,u=e.renderNotifications,d=tn(e,Oze),h=f.useState(),p=Le(h,2),m=p[0],v=p[1],y=f.useRef(),S=f.createElement(kze,{container:m,ref:y,prefixCls:i,motion:r,maxCount:o,className:a,style:s,onAllRemoved:l,stack:c,renderNotifications:u}),b=f.useState([]),C=Le(b,2),_=C[0],T=C[1],x=f.useMemo(function(){return{open:function(k){var M=Mze(d,k);(M.key===null||M.key===void 0)&&(M.key="rc-notification-".concat(aJ),aJ+=1),T(function(P){return[].concat(pt(P),[{type:"open",config:M}])})},close:function(k){T(function(M){return[].concat(pt(M),[{type:"close",key:k}])})},destroy:function(){T(function(k){return[].concat(pt(k),[{type:"destroy"}])})}}},[]);return f.useEffect(function(){v(n())}),f.useEffect(function(){y.current&&_.length&&(_.forEach(function(E){switch(E.type){case"open":y.current.open(E.config);break;case"close":y.current.close(E.key);break;case"destroy":y.current.destroy();break}}),T(function(E){return E.filter(function(k){return!_.includes(k)})}))},[_]),[x,S]}var Ize={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"},$ze=function(t,n){return f.createElement(wr,ut({},t,{ref:n,icon:Ize}))},Bd=f.forwardRef($ze);const gE=ge.createContext(void 0),lm=100,Rze=10,jU=lm*Rze,ive={Modal:lm,Drawer:lm,Popover:lm,Popconfirm:lm,Tooltip:lm,Tour:lm,FloatButton:lm},Aze={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function Nze(e){return e in ive}const Du=(e,t)=>{const[,n]=na(),r=ge.useContext(gE),i=Nze(e);let o;if(t!==void 0)o=[t,t];else{let a=r??0;i?a+=(r?0:n.zIndexPopupBase)+ive[e]:a+=Aze[e],o=[r===void 0?t:a,a]}return o},Dze=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:i,colorSuccess:o,colorError:a,colorWarning:s,colorInfo:l,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:d,marginXS:h,paddingXS:p,borderRadiusLG:m,zIndexPopup:v,contentPadding:y,contentBg:S}=e,b=`${t}-notice`,C=new Mr("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:p,transform:"translateY(0)",opacity:1}}),_=new Mr("MessageMoveOut",{"0%":{maxHeight:e.height,padding:p,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),T={padding:p,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:h,fontSize:c},[`${b}-content`]:{display:"inline-block",padding:y,background:S,borderRadius:m,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:o},[`${t}-error > ${n}`]:{color:a},[`${t}-warning > ${n}`]:{color:s},[`${t}-info > ${n},
|
||
${t}-loading > ${n}`]:{color:l}};return[{[t]:Object.assign(Object.assign({},$r(e)),{color:i,position:"fixed",top:h,width:"100%",pointerEvents:"none",zIndex:v,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
|
||
${t}-move-up-appear,
|
||
${t}-move-up-enter
|
||
`]:{animationName:C,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`
|
||
${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:_,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${b}-wrapper`]:Object.assign({},T)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},T),{padding:0,textAlign:"start"})}]},Lze=e=>({zIndexPopup:e.zIndexPopupBase+jU+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),ove=Tr("Message",e=>{const t=ur(e,{height:150});return[Dze(t)]},Lze);var Fze=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 jze={info:f.createElement(PO,null),success:f.createElement(Gv,null),error:f.createElement(th,null),warning:f.createElement(gg,null),loading:f.createElement(Bd,null)},ave=e=>{let{prefixCls:t,type:n,icon:r,children:i}=e;return f.createElement("div",{className:Re(`${t}-custom-content`,`${t}-${n}`)},r||jze[n],f.createElement("span",null,i))},Bze=e=>{const{prefixCls:t,className:n,type:r,icon:i,content:o}=e,a=Fze(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=f.useContext(hn),l=t||s("message"),c=_i(l),[u,d,h]=ove(l,c);return u(f.createElement(eve,Object.assign({},a,{prefixCls:l,className:Re(n,d,`${l}-notice-pure-panel`,h,c),eventKey:"pure",duration:null,content:f.createElement(ave,{prefixCls:l,type:r,icon:i},o)})))};function Hze(e,t){return{motionName:t??`${e}-move-up`}}function BU(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 zze=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 Uze=8,Wze=3,Vze=e=>{let{children:t,prefixCls:n}=e;const r=_i(n),[i,o,a]=ove(n,r);return i(f.createElement(nve,{classNames:{list:Re(o,a,r)}},t))},Kze=(e,t)=>{let{prefixCls:n,key:r}=t;return f.createElement(Vze,{prefixCls:n,key:r},e)},qze=f.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:i,maxCount:o,duration:a=Wze,rtl:s,transitionName:l,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:d,message:h,direction:p}=f.useContext(hn),m=r||u("message"),v=()=>({left:"50%",transform:"translateX(-50%)",top:n??Uze}),y=()=>Re({[`${m}-rtl`]:s??p==="rtl"}),S=()=>Hze(m,l),b=f.createElement("span",{className:`${m}-close-x`},f.createElement(nh,{className:`${m}-close-icon`})),[C,_]=rve({prefixCls:m,style:v,className:y,motion:S,closable:!1,closeIcon:b,duration:a,getContainer:()=>(i==null?void 0:i())||(d==null?void 0:d())||document.body,maxCount:o,onAllRemoved:c,renderNotifications:Kze});return f.useImperativeHandle(t,()=>Object.assign(Object.assign({},C),{prefixCls:m,message:h})),_});let sJ=0;function sve(e){const t=f.useRef(null);return eh(),[f.useMemo(()=>{const r=l=>{var c;(c=t.current)===null||c===void 0||c.close(l)},i=l=>{if(!t.current){const x=()=>{};return x.then=()=>{},x}const{open:c,prefixCls:u,message:d}=t.current,h=`${u}-notice`,{content:p,icon:m,type:v,key:y,className:S,style:b,onClose:C}=l,_=zze(l,["content","icon","type","key","className","style","onClose"]);let T=y;return T==null&&(sJ+=1,T=`antd-message-${sJ}`),BU(x=>(c(Object.assign(Object.assign({},_),{key:T,content:f.createElement(ave,{prefixCls:u,type:v,icon:m},p),placement:"top",className:Re(v&&`${h}-${v}`,S,d==null?void 0:d.className),style:Object.assign(Object.assign({},d==null?void 0:d.style),b),onClose:()=>{C==null||C(),x()}})),()=>{r(T)}))},a={open:i,destroy:l=>{var c;l!==void 0?r(l):(c=t.current)===null||c===void 0||c.destroy()}};return["info","success","warning","error","loading"].forEach(l=>{const c=(u,d,h)=>{let p;u&&typeof u=="object"&&"content"in u?p=u:p={content:u};let m,v;typeof d=="function"?v=d:(m=d,v=h);const y=Object.assign(Object.assign({onClose:v,duration:m},p),{type:l});return i(y)};a[l]=c}),a},[]),f.createElement(qze,Object.assign({key:"message-holder"},e,{ref:t}))]}function lve(e){return sve(e)}function Gze(){const[e,t]=f.useState([]),n=f.useCallback(r=>(t(i=>[].concat(pt(i),[r])),()=>{t(i=>i.filter(o=>o!==r))}),[]);return[e,n]}function Hr(){Hr=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(z,W,q){z[W]=q.value},o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(z,W,q){return Object.defineProperty(z,W,{value:q,enumerable:!0,configurable:!0,writable:!0}),z[W]}try{c({},"")}catch{c=function(q,Z,N){return q[Z]=N}}function u(z,W,q,Z){var N=W&&W.prototype instanceof S?W:S,B=Object.create(N.prototype),V=new H(Z||[]);return i(B,"_invoke",{value:P(z,q,V)}),B}function d(z,W,q){try{return{type:"normal",arg:z.call(W,q)}}catch(Z){return{type:"throw",arg:Z}}}t.wrap=u;var h="suspendedStart",p="suspendedYield",m="executing",v="completed",y={};function S(){}function b(){}function C(){}var _={};c(_,a,function(){return this});var T=Object.getPrototypeOf,x=T&&T(T(F([])));x&&x!==n&&r.call(x,a)&&(_=x);var E=C.prototype=S.prototype=Object.create(_);function k(z){["next","throw","return"].forEach(function(W){c(z,W,function(q){return this._invoke(W,q)})})}function M(z,W){function q(N,B,V,Y){var ie=d(z[N],z,B);if(ie.type!=="throw"){var ce=ie.arg,fe=ce.value;return fe&&ln(fe)=="object"&&r.call(fe,"__await")?W.resolve(fe.__await).then(function(ee){q("next",ee,V,Y)},function(ee){q("throw",ee,V,Y)}):W.resolve(fe).then(function(ee){ce.value=ee,V(ce)},function(ee){return q("throw",ee,V,Y)})}Y(ie.arg)}var Z;i(this,"_invoke",{value:function(B,V){function Y(){return new W(function(ie,ce){q(B,V,ie,ce)})}return Z=Z?Z.then(Y,Y):Y()}})}function P(z,W,q){var Z=h;return function(N,B){if(Z===m)throw Error("Generator is already running");if(Z===v){if(N==="throw")throw B;return{value:e,done:!0}}for(q.method=N,q.arg=B;;){var V=q.delegate;if(V){var Y=D(V,q);if(Y){if(Y===y)continue;return Y}}if(q.method==="next")q.sent=q._sent=q.arg;else if(q.method==="throw"){if(Z===h)throw Z=v,q.arg;q.dispatchException(q.arg)}else q.method==="return"&&q.abrupt("return",q.arg);Z=m;var ie=d(z,W,q);if(ie.type==="normal"){if(Z=q.done?v:p,ie.arg===y)continue;return{value:ie.arg,done:q.done}}ie.type==="throw"&&(Z=v,q.method="throw",q.arg=ie.arg)}}}function D(z,W){var q=W.method,Z=z.iterator[q];if(Z===e)return W.delegate=null,q==="throw"&&z.iterator.return&&(W.method="return",W.arg=e,D(z,W),W.method==="throw")||q!=="return"&&(W.method="throw",W.arg=new TypeError("The iterator does not provide a '"+q+"' method")),y;var N=d(Z,z.iterator,W.arg);if(N.type==="throw")return W.method="throw",W.arg=N.arg,W.delegate=null,y;var B=N.arg;return B?B.done?(W[z.resultName]=B.value,W.next=z.nextLoc,W.method!=="return"&&(W.method="next",W.arg=e),W.delegate=null,y):B:(W.method="throw",W.arg=new TypeError("iterator result is not an object"),W.delegate=null,y)}function R(z){var W={tryLoc:z[0]};1 in z&&(W.catchLoc=z[1]),2 in z&&(W.finallyLoc=z[2],W.afterLoc=z[3]),this.tryEntries.push(W)}function A(z){var W=z.completion||{};W.type="normal",delete W.arg,z.completion=W}function H(z){this.tryEntries=[{tryLoc:"root"}],z.forEach(R,this),this.reset(!0)}function F(z){if(z||z===""){var W=z[a];if(W)return W.call(z);if(typeof z.next=="function")return z;if(!isNaN(z.length)){var q=-1,Z=function N(){for(;++q<z.length;)if(r.call(z,q))return N.value=z[q],N.done=!1,N;return N.value=e,N.done=!0,N};return Z.next=Z}}throw new TypeError(ln(z)+" is not iterable")}return b.prototype=C,i(E,"constructor",{value:C,configurable:!0}),i(C,"constructor",{value:b,configurable:!0}),b.displayName=c(C,l,"GeneratorFunction"),t.isGeneratorFunction=function(z){var W=typeof z=="function"&&z.constructor;return!!W&&(W===b||(W.displayName||W.name)==="GeneratorFunction")},t.mark=function(z){return Object.setPrototypeOf?Object.setPrototypeOf(z,C):(z.__proto__=C,c(z,l,"GeneratorFunction")),z.prototype=Object.create(E),z},t.awrap=function(z){return{__await:z}},k(M.prototype),c(M.prototype,s,function(){return this}),t.AsyncIterator=M,t.async=function(z,W,q,Z,N){N===void 0&&(N=Promise);var B=new M(u(z,W,q,Z),N);return t.isGeneratorFunction(W)?B:B.next().then(function(V){return V.done?V.value:B.next()})},k(E),c(E,l,"Generator"),c(E,a,function(){return this}),c(E,"toString",function(){return"[object Generator]"}),t.keys=function(z){var W=Object(z),q=[];for(var Z in W)q.push(Z);return q.reverse(),function N(){for(;q.length;){var B=q.pop();if(B in W)return N.value=B,N.done=!1,N}return N.done=!0,N}},t.values=F,H.prototype={constructor:H,reset:function(W){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(A),!W)for(var q in this)q.charAt(0)==="t"&&r.call(this,q)&&!isNaN(+q.slice(1))&&(this[q]=e)},stop:function(){this.done=!0;var W=this.tryEntries[0].completion;if(W.type==="throw")throw W.arg;return this.rval},dispatchException:function(W){if(this.done)throw W;var q=this;function Z(ce,fe){return V.type="throw",V.arg=W,q.next=ce,fe&&(q.method="next",q.arg=e),!!fe}for(var N=this.tryEntries.length-1;N>=0;--N){var B=this.tryEntries[N],V=B.completion;if(B.tryLoc==="root")return Z("end");if(B.tryLoc<=this.prev){var Y=r.call(B,"catchLoc"),ie=r.call(B,"finallyLoc");if(Y&&ie){if(this.prev<B.catchLoc)return Z(B.catchLoc,!0);if(this.prev<B.finallyLoc)return Z(B.finallyLoc)}else if(Y){if(this.prev<B.catchLoc)return Z(B.catchLoc,!0)}else{if(!ie)throw Error("try statement without catch or finally");if(this.prev<B.finallyLoc)return Z(B.finallyLoc)}}}},abrupt:function(W,q){for(var Z=this.tryEntries.length-1;Z>=0;--Z){var N=this.tryEntries[Z];if(N.tryLoc<=this.prev&&r.call(N,"finallyLoc")&&this.prev<N.finallyLoc){var B=N;break}}B&&(W==="break"||W==="continue")&&B.tryLoc<=q&&q<=B.finallyLoc&&(B=null);var V=B?B.completion:{};return V.type=W,V.arg=q,B?(this.method="next",this.next=B.finallyLoc,y):this.complete(V)},complete:function(W,q){if(W.type==="throw")throw W.arg;return W.type==="break"||W.type==="continue"?this.next=W.arg:W.type==="return"?(this.rval=this.arg=W.arg,this.method="return",this.next="end"):W.type==="normal"&&q&&(this.next=q),y},finish:function(W){for(var q=this.tryEntries.length-1;q>=0;--q){var Z=this.tryEntries[q];if(Z.finallyLoc===W)return this.complete(Z.completion,Z.afterLoc),A(Z),y}},catch:function(W){for(var q=this.tryEntries.length-1;q>=0;--q){var Z=this.tryEntries[q];if(Z.tryLoc===W){var N=Z.completion;if(N.type==="throw"){var B=N.arg;A(Z)}return B}}throw Error("illegal catch attempt")},delegateYield:function(W,q,Z){return this.delegate={iterator:F(W),resultName:q,nextLoc:Z},this.method==="next"&&(this.arg=e),y}},t}function lJ(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,i)}function Jo(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(l){lJ(o,r,i,a,s,"next",l)}function s(l){lJ(o,r,i,a,s,"throw",l)}a(void 0)})}}var vE=G({},$fe),Yze=vE.version,mR=vE.render,Xze=vE.unmountComponentAtNode,MO;try{var Qze=Number((Yze||"").split(".")[0]);Qze>=18&&(MO=vE.createRoot)}catch{}function cJ(e){var t=vE.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&ln(t)==="object"&&(t.usingClientEntryPoint=e)}var H9="__rc_react_root__";function Zze(e,t){cJ(!0);var n=t[H9]||MO(t);cJ(!1),n.render(e),t[H9]=n}function Jze(e,t){mR==null||mR(e,t)}function eUe(e,t){if(MO){Zze(e,t);return}Jze(e,t)}function tUe(e){return wF.apply(this,arguments)}function wF(){return wF=Jo(Hr().mark(function e(t){return Hr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var i;(i=t[H9])===null||i===void 0||i.unmount(),delete t[H9]}));case 1:case"end":return r.stop()}},e)})),wF.apply(this,arguments)}function nUe(e){Xze(e)}function rUe(e){return _F.apply(this,arguments)}function _F(){return _F=Jo(Hr().mark(function e(t){return Hr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(MO===void 0){r.next=2;break}return r.abrupt("return",tUe(t));case 2:nUe(t);case 3:case"end":return r.stop()}},e)})),_F.apply(this,arguments)}const iUe=(e,t)=>(eUe(e,t),()=>rUe(t));let oUe=iUe;function HU(){return oUe}const gR=()=>({height:0,opacity:0}),uJ=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},aUe=e=>({height:e?e.offsetHeight:0}),vR=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",Xb=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:p_}-motion-collapse`,onAppearStart:gR,onEnterStart:gR,onAppearActive:uJ,onEnterActive:uJ,onLeaveStart:aUe,onLeaveActive:gR,onAppearEnd:vR,onEnterEnd:vR,onLeaveEnd:vR,motionDeadline:500}},as=(e,t,n)=>n!==void 0?n:`${e}-${t}`,GS=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},sUe=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(",")}}}}},lUe=M1e("Wave",e=>[sUe(e)]),IO=`${p_}-wave-target`;function yR(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 cUe(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return yR(t)?t:yR(n)?n:yR(r)?r:null}function bR(e){return Number.isNaN(e)?0:e}const uUe=e=>{const{className:t,target:n,component:r,registerUnmount:i}=e,o=f.useRef(null),a=f.useRef(null);f.useEffect(()=>{a.current=i()},[]);const[s,l]=f.useState(null),[c,u]=f.useState([]),[d,h]=f.useState(0),[p,m]=f.useState(0),[v,y]=f.useState(0),[S,b]=f.useState(0),[C,_]=f.useState(!1),T={left:d,top:p,width:v,height:S,borderRadius:c.map(k=>`${k}px`).join(" ")};s&&(T["--wave-color"]=s);function x(){const k=getComputedStyle(n);l(cUe(n));const M=k.position==="static",{borderLeftWidth:P,borderTopWidth:D}=k;h(M?n.offsetLeft:bR(-parseFloat(P))),m(M?n.offsetTop:bR(-parseFloat(D))),y(n.offsetWidth),b(n.offsetHeight);const{borderTopLeftRadius:R,borderTopRightRadius:A,borderBottomLeftRadius:H,borderBottomRightRadius:F}=k;u([R,A,F,H].map(z=>bR(parseFloat(z))))}if(f.useEffect(()=>{if(n){const k=Sr(()=>{x(),_(!0)});let M;return typeof ResizeObserver<"u"&&(M=new ResizeObserver(x),M.observe(n)),()=>{Sr.cancel(k),M==null||M.disconnect()}}},[]),!C)return null;const E=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(IO));return f.createElement(ha,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(k,M)=>{var P,D;if(M.deadline||M.propertyName==="opacity"){const R=(P=o.current)===null||P===void 0?void 0:P.parentElement;(D=a.current)===null||D===void 0||D.call(a).then(()=>{R==null||R.remove()})}return!1}},(k,M)=>{let{className:P}=k;return f.createElement("div",{ref:va(o,M),className:Re(t,P,{"wave-quick":E}),style:T})})},dUe=(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);const o=HU();let a=null;function s(){return a}a=o(f.createElement(uUe,Object.assign({},t,{target:e,registerUnmount:s})),i)},fUe=(e,t,n)=>{const{wave:r}=f.useContext(hn),[,i,o]=na(),a=cr(c=>{const u=e.current;if(r!=null&&r.disabled||!u)return;const d=u.querySelector(`.${IO}`)||u,{showEffect:h}=r||{};(h||dUe)(d,{className:t,token:i,component:n,event:c,hashId:o})}),s=f.useRef(null);return c=>{Sr.cancel(s.current),s.current=Sr(()=>{a(c)})}},yE=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:i}=f.useContext(hn),o=f.useRef(null),a=i("wave"),[,s]=lUe(a),l=fUe(o,Re(a,s),r);if(ge.useEffect(()=>{const u=o.current;if(!u||u.nodeType!==1||n)return;const d=h=>{!GS(h.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||l(h)};return u.addEventListener("click",d,!0),()=>{u.removeEventListener("click",d,!0)}},[n]),!ge.isValidElement(t))return t??null;const c=Ld(t)?va(mg(t),o):o;return $o(t,{ref:c})},Ro=e=>{const t=ge.useContext(Sv);return ge.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},hUe=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},pUe=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"}}}},mUe=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}}}},cve=Tr("Space",e=>{const t=ur(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[pUe(t),mUe(t),hUe(t)]},()=>({}),{resetStyle:!1});var uve=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 $O=f.createContext(null),Zd=(e,t)=>{const n=f.useContext($O),r=f.useMemo(()=>{if(!n)return"";const{compactDirection:i,isFirstItem:o,isLastItem:a}=n,s=i==="vertical"?"-vertical-":"-";return Re(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:o,[`${e}-compact${s}last-item`]:a,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},gUe=e=>{let{children:t}=e;return f.createElement($O.Provider,{value:null},t)},vUe=e=>{var{children:t}=e,n=uve(e,["children"]);return f.createElement($O.Provider,{value:n},t)},yUe=e=>{const{getPrefixCls:t,direction:n}=f.useContext(hn),{size:r,direction:i,block:o,prefixCls:a,className:s,rootClassName:l,children:c}=e,u=uve(e,["size","direction","block","prefixCls","className","rootClassName","children"]),d=Ro(C=>r??C),h=t("space-compact",a),[p,m]=cve(h),v=Re(h,m,{[`${h}-rtl`]:n==="rtl",[`${h}-block`]:o,[`${h}-vertical`]:i==="vertical"},s,l),y=f.useContext($O),S=Uo(c),b=f.useMemo(()=>S.map((C,_)=>{const T=(C==null?void 0:C.key)||`${h}-item-${_}`;return f.createElement(vUe,{key:T,compactSize:d,compactDirection:i,isFirstItem:_===0&&(!y||(y==null?void 0:y.isFirstItem)),isLastItem:_===S.length-1&&(!y||(y==null?void 0:y.isLastItem))},C)}),[r,S,y]);return S.length===0?null:p(f.createElement("div",Object.assign({className:v},u),b))};var bUe=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 dve=f.createContext(void 0),SUe=e=>{const{getPrefixCls:t,direction:n}=f.useContext(hn),{prefixCls:r,size:i,className:o}=e,a=bUe(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=na();let c="";switch(i){case"large":c="lg";break;case"small":c="sm";break}const u=Re(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:n==="rtl"},o,l);return f.createElement(dve.Provider,{value:i},f.createElement("div",Object.assign({},a,{className:u})))},dJ=/^[\u4E00-\u9FA5]{2}$/,EF=dJ.test.bind(dJ);function zU(e){return e==="danger"?{danger:!0}:{type:e}}function fJ(e){return typeof e=="string"}function SR(e){return e==="text"||e==="link"}function CUe(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&fJ(e.type)&&EF(e.props.children)?$o(e,{children:e.props.children.split("").join(n)}):fJ(e)?EF(e)?ge.createElement("span",null,e.split("").join(n)):ge.createElement("span",null,e):Q1e(e)?ge.createElement("span",null,e):e}function xUe(e,t){let n=!1;const r=[];return ge.Children.forEach(e,i=>{const o=typeof i,a=o==="string"||o==="number";if(n&&a){const s=r.length-1,l=r[s];r[s]=`${l}${i}`}else r.push(i);n=a}),ge.Children.map(r,i=>CUe(i,t))}["default","primary","danger"].concat(pt(xv));const TF=f.forwardRef((e,t)=>{const{className:n,style:r,children:i,prefixCls:o}=e,a=Re(`${o}-icon`,n);return ge.createElement("span",{ref:t,className:a,style:r},i)}),hJ=f.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:i,iconClassName:o}=e,a=Re(`${n}-loading-icon`,r);return ge.createElement(TF,{prefixCls:n,className:a,style:i,ref:t},ge.createElement(Bd,{className:o}))}),CR=()=>({width:0,opacity:0,transform:"scale(0)"}),xR=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),wUe=e=>{const{prefixCls:t,loading:n,existIcon:r,className:i,style:o,mount:a}=e,s=!!n;return r?ge.createElement(hJ,{prefixCls:t,className:i,style:o}):ge.createElement(ha,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!a,motionEnter:!a,motionLeave:!a,removeOnLeave:!0,onAppearStart:CR,onAppearActive:xR,onEnterStart:CR,onEnterActive:xR,onLeaveStart:xR,onLeaveActive:CR},(l,c)=>{let{className:u,style:d}=l;const h=Object.assign(Object.assign({},o),d);return ge.createElement(hJ,{prefixCls:t,className:Re(i,u),style:h,ref:c})})},pJ=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),_Ue=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}},pJ(`${t}-primary`,i),pJ(`${t}-danger`,o)]}};var EUe=["b"],TUe=["v"],wR=function(t){return Math.round(Number(t||0))},kUe=function(t){if(t instanceof Cr)return t;if(t&&ln(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,i=tn(n,EUe);return G(G({},i),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},Hd=function(e){Xs(n,e);var t=Sl(n);function n(r){return pi(this,n),t.call(this,kUe(r))}return mi(n,[{key:"toHsbString",value:function(){var i=this.toHsb(),o=wR(i.s*100),a=wR(i.b*100),s=wR(i.h),l=i.a,c="hsb(".concat(s,", ").concat(o,"%, ").concat(a,"%)"),u="hsba(".concat(s,", ").concat(o,"%, ").concat(a,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?c:u}},{key:"toHsb",value:function(){var i=this.toHsv(),o=i.v,a=tn(i,TUe);return G(G({},a),{},{b:o,a:this.a})}}]),n}(Cr),OUe="rc-color-picker",ub=function(t){return t instanceof Hd?t:new Hd(t)},PUe=ub("#1677ff"),fve=function(t){var n=t.offset,r=t.targetRef,i=t.containerRef,o=t.color,a=t.type,s=i.current.getBoundingClientRect(),l=s.width,c=s.height,u=r.current.getBoundingClientRect(),d=u.width,h=u.height,p=d/2,m=h/2,v=(n.x+p)/l,y=1-(n.y+m)/c,S=o.toHsb(),b=v,C=(n.x+p)/l*360;if(a)switch(a){case"hue":return ub(G(G({},S),{},{h:C<=0?0:C}));case"alpha":return ub(G(G({},S),{},{a:b<=0?0:b}))}return ub({h:S.h,s:v<=0?0:v,b:y>=1?1:y,a:S.a})},hve=function(t,n){var r=t.toHsb();switch(n){case"hue":return{x:r.h/360*100,y:50};case"alpha":return{x:t.a*100,y:50};default:return{x:r.s*100,y:(1-r.b)*100}}},UU=function(t){var n=t.color,r=t.prefixCls,i=t.className,o=t.style,a=t.onClick,s="".concat(r,"-color-block");return ge.createElement("div",{className:Re(s,i),style:o,onClick:a},ge.createElement("div",{className:"".concat(s,"-inner"),style:{background:n}}))};function MUe(e){var t="touches"in e?e.touches[0]:e,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:t.pageX-n,pageY:t.pageY-r}}function pve(e){var t=e.targetRef,n=e.containerRef,r=e.direction,i=e.onDragChange,o=e.onDragChangeComplete,a=e.calculate,s=e.color,l=e.disabledDrag,c=f.useState({x:0,y:0}),u=Le(c,2),d=u[0],h=u[1],p=f.useRef(null),m=f.useRef(null);f.useEffect(function(){h(a())},[s]),f.useEffect(function(){return function(){document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",m.current),document.removeEventListener("touchmove",p.current),document.removeEventListener("touchend",m.current),p.current=null,m.current=null}},[]);var v=function(_){var T=MUe(_),x=T.pageX,E=T.pageY,k=n.current.getBoundingClientRect(),M=k.x,P=k.y,D=k.width,R=k.height,A=t.current.getBoundingClientRect(),H=A.width,F=A.height,z=H/2,W=F/2,q=Math.max(0,Math.min(x-M,D))-z,Z=Math.max(0,Math.min(E-P,R))-W,N={x:q,y:r==="x"?d.y:Z};if(H===0&&F===0||H!==F)return!1;i==null||i(N)},y=function(_){_.preventDefault(),v(_)},S=function(_){_.preventDefault(),document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",m.current),document.removeEventListener("touchmove",p.current),document.removeEventListener("touchend",m.current),p.current=null,m.current=null,o==null||o()},b=function(_){document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",m.current),!l&&(v(_),document.addEventListener("mousemove",y),document.addEventListener("mouseup",S),document.addEventListener("touchmove",y),document.addEventListener("touchend",S),p.current=y,m.current=S)};return[d,b]}var mve=function(t){var n=t.size,r=n===void 0?"default":n,i=t.color,o=t.prefixCls;return ge.createElement("div",{className:Re("".concat(o,"-handler"),ae({},"".concat(o,"-handler-sm"),r==="small")),style:{backgroundColor:i}})},gve=function(t){var n=t.children,r=t.style,i=t.prefixCls;return ge.createElement("div",{className:"".concat(i,"-palette"),style:G({position:"relative"},r)},n)},vve=f.forwardRef(function(e,t){var n=e.children,r=e.x,i=e.y;return ge.createElement("div",{ref:t,style:{position:"absolute",left:"".concat(r,"%"),top:"".concat(i,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},n)}),IUe=function(t){var n=t.color,r=t.onChange,i=t.prefixCls,o=t.onChangeComplete,a=t.disabled,s=f.useRef(),l=f.useRef(),c=f.useRef(n),u=cr(function(v){var y=fve({offset:v,targetRef:l,containerRef:s,color:n});c.current=y,r(y)}),d=pve({color:n,containerRef:s,targetRef:l,calculate:function(){return hve(n)},onDragChange:u,onDragChangeComplete:function(){return o==null?void 0:o(c.current)},disabledDrag:a}),h=Le(d,2),p=h[0],m=h[1];return ge.createElement("div",{ref:s,className:"".concat(i,"-select"),onMouseDown:m,onTouchStart:m},ge.createElement(gve,{prefixCls:i},ge.createElement(vve,{x:p.x,y:p.y,ref:l},ge.createElement(mve,{color:n.toRgbString(),prefixCls:i})),ge.createElement("div",{className:"".concat(i,"-saturation"),style:{backgroundColor:"hsl(".concat(n.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},$Ue=function(t,n){var r=Jn(t,{value:n}),i=Le(r,2),o=i[0],a=i[1],s=f.useMemo(function(){return ub(o)},[o]);return[s,a]},RUe=function(t){var n=t.colors,r=t.children,i=t.direction,o=i===void 0?"to right":i,a=t.type,s=t.prefixCls,l=f.useMemo(function(){return n.map(function(c,u){var d=ub(c);return a==="alpha"&&u===n.length-1&&(d=new Hd(d.setA(1))),d.toRgbString()}).join(",")},[n,a]);return ge.createElement("div",{className:"".concat(s,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(o,", ").concat(l,")")}},r)},AUe=function(t){var n=t.prefixCls,r=t.colors,i=t.disabled,o=t.onChange,a=t.onChangeComplete,s=t.color,l=t.type,c=f.useRef(),u=f.useRef(),d=f.useRef(s),h=function(T){return l==="hue"?T.getHue():T.a*100},p=cr(function(_){var T=fve({offset:_,targetRef:u,containerRef:c,color:s,type:l});d.current=T,o(h(T))}),m=pve({color:s,targetRef:u,containerRef:c,calculate:function(){return hve(s,l)},onDragChange:p,onDragChangeComplete:function(){a(h(d.current))},direction:"x",disabledDrag:i}),v=Le(m,2),y=v[0],S=v[1],b=ge.useMemo(function(){if(l==="hue"){var _=s.toHsb();_.s=1,_.b=1,_.a=1;var T=new Hd(_);return T}return s},[s,l]),C=ge.useMemo(function(){return r.map(function(_){return"".concat(_.color," ").concat(_.percent,"%")})},[r]);return ge.createElement("div",{ref:c,className:Re("".concat(n,"-slider"),"".concat(n,"-slider-").concat(l)),onMouseDown:S,onTouchStart:S},ge.createElement(gve,{prefixCls:n},ge.createElement(vve,{x:y.x,y:y.y,ref:u},ge.createElement(mve,{size:"small",color:b.toHexString(),prefixCls:n})),ge.createElement(RUe,{colors:C,type:l,prefixCls:n})))};function NUe(e){return f.useMemo(function(){var t=e||{},n=t.slider;return[n||AUe]},[e])}var DUe=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],LUe=f.forwardRef(function(e,t){var n=e.value,r=e.defaultValue,i=e.prefixCls,o=i===void 0?OUe:i,a=e.onChange,s=e.onChangeComplete,l=e.className,c=e.style,u=e.panelRender,d=e.disabledAlpha,h=d===void 0?!1:d,p=e.disabled,m=p===void 0?!1:p,v=e.components,y=NUe(v),S=Le(y,1),b=S[0],C=$Ue(r||PUe,n),_=Le(C,2),T=_[0],x=_[1],E=f.useMemo(function(){return T.setA(1).toRgbString()},[T]),k=function(Z,N){n||x(Z),a==null||a(Z,N)},M=function(Z){return new Hd(T.setHue(Z))},P=function(Z){return new Hd(T.setA(Z/100))},D=function(Z){k(M(Z),{type:"hue",value:Z})},R=function(Z){k(P(Z),{type:"alpha",value:Z})},A=function(Z){s&&s(M(Z))},H=function(Z){s&&s(P(Z))},F=Re("".concat(o,"-panel"),l,ae({},"".concat(o,"-panel-disabled"),m)),z={prefixCls:o,disabled:m,color:T},W=ge.createElement(ge.Fragment,null,ge.createElement(IUe,ut({onChange:k},z,{onChangeComplete:s})),ge.createElement("div",{className:"".concat(o,"-slider-container")},ge.createElement("div",{className:Re("".concat(o,"-slider-group"),ae({},"".concat(o,"-slider-group-disabled-alpha"),h))},ge.createElement(b,ut({},z,{type:"hue",colors:DUe,min:0,max:359,value:T.getHue(),onChange:D,onChangeComplete:A})),!h&&ge.createElement(b,ut({},z,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:E}],min:0,max:100,value:T.a*100,onChange:R,onChangeComplete:H}))),ge.createElement(UU,{color:T.toRgbString(),prefixCls:o})));return ge.createElement("div",{className:F,style:c,ref:t},typeof u=="function"?u(W):W)});const C2=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",FUe=(e,t)=>e?C2(e,t):"";let Ec=function(){function e(t){pi(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 Hd(this.colors[0].color.metaColor)):this.metaColor=new Hd(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return mi(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return FUe(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 jUe={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"},BUe=function(t,n){return f.createElement(wr,ut({},t,{ref:n,icon:jUe}))},hp=f.forwardRef(BUe),yve=ge.forwardRef(function(e,t){var n=e.prefixCls,r=e.forceRender,i=e.className,o=e.style,a=e.children,s=e.isActive,l=e.role,c=e.classNames,u=e.styles,d=ge.useState(s||r),h=Le(d,2),p=h[0],m=h[1];return ge.useEffect(function(){(r||s)&&m(!0)},[r,s]),p?ge.createElement("div",{ref:t,className:Re("".concat(n,"-content"),ae(ae({},"".concat(n,"-content-active"),s),"".concat(n,"-content-inactive"),!s),i),style:o,role:l},ge.createElement("div",{className:Re("".concat(n,"-content-box"),c==null?void 0:c.body),style:u==null?void 0:u.body},a)):null});yve.displayName="PanelContent";var HUe=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],bve=ge.forwardRef(function(e,t){var n=e.showArrow,r=n===void 0?!0:n,i=e.headerClass,o=e.isActive,a=e.onItemClick,s=e.forceRender,l=e.className,c=e.classNames,u=c===void 0?{}:c,d=e.styles,h=d===void 0?{}:d,p=e.prefixCls,m=e.collapsible,v=e.accordion,y=e.panelKey,S=e.extra,b=e.header,C=e.expandIcon,_=e.openMotion,T=e.destroyInactivePanel,x=e.children,E=tn(e,HUe),k=m==="disabled",M=S!=null&&typeof S!="boolean",P=ae(ae(ae({onClick:function(){a==null||a(y)},onKeyDown:function(W){(W.key==="Enter"||W.keyCode===Pt.ENTER||W.which===Pt.ENTER)&&(a==null||a(y))},role:v?"tab":"button"},"aria-expanded",o),"aria-disabled",k),"tabIndex",k?-1:0),D=typeof C=="function"?C(e):ge.createElement("i",{className:"arrow"}),R=D&&ge.createElement("div",ut({className:"".concat(p,"-expand-icon")},["header","icon"].includes(m)?P:{}),D),A=Re("".concat(p,"-item"),ae(ae({},"".concat(p,"-item-active"),o),"".concat(p,"-item-disabled"),k),l),H=Re(i,"".concat(p,"-header"),ae({},"".concat(p,"-collapsible-").concat(m),!!m),u.header),F=G({className:H,style:h.header},["header","icon"].includes(m)?{}:P);return ge.createElement("div",ut({},E,{ref:t,className:A}),ge.createElement("div",F,r&&R,ge.createElement("span",ut({className:"".concat(p,"-header-text")},m==="header"?P:{}),b),M&&ge.createElement("div",{className:"".concat(p,"-extra")},S)),ge.createElement(ha,ut({visible:o,leavedClassName:"".concat(p,"-content-hidden")},_,{forceRender:s,removeOnLeave:T}),function(z,W){var q=z.className,Z=z.style;return ge.createElement(yve,{ref:W,prefixCls:p,className:q,classNames:u,style:Z,styles:h,isActive:o,forceRender:s,role:v?"tabpanel":void 0},x)}))}),zUe=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],UUe=function(t,n){var r=n.prefixCls,i=n.accordion,o=n.collapsible,a=n.destroyInactivePanel,s=n.onItemClick,l=n.activeKey,c=n.openMotion,u=n.expandIcon;return t.map(function(d,h){var p=d.children,m=d.label,v=d.key,y=d.collapsible,S=d.onItemClick,b=d.destroyInactivePanel,C=tn(d,zUe),_=String(v??h),T=y??o,x=b??a,E=function(P){T!=="disabled"&&(s(P),S==null||S(P))},k=!1;return i?k=l[0]===_:k=l.indexOf(_)>-1,ge.createElement(bve,ut({},C,{prefixCls:r,key:_,panelKey:_,isActive:k,accordion:i,openMotion:c,expandIcon:u,header:m,collapsible:T,onItemClick:E,destroyInactivePanel:x}),p)})},WUe=function(t,n,r){if(!t)return null;var i=r.prefixCls,o=r.accordion,a=r.collapsible,s=r.destroyInactivePanel,l=r.onItemClick,c=r.activeKey,u=r.openMotion,d=r.expandIcon,h=t.key||String(n),p=t.props,m=p.header,v=p.headerClass,y=p.destroyInactivePanel,S=p.collapsible,b=p.onItemClick,C=!1;o?C=c[0]===h:C=c.indexOf(h)>-1;var _=S??a,T=function(k){_!=="disabled"&&(l(k),b==null||b(k))},x={key:h,panelKey:h,header:m,headerClass:v,isActive:C,prefixCls:i,destroyInactivePanel:y??s,openMotion:u,accordion:o,children:t.props.children,onItemClick:T,expandIcon:d,collapsible:_};return typeof t.type=="string"?t:(Object.keys(x).forEach(function(E){typeof x[E]>"u"&&delete x[E]}),ge.cloneElement(t,x))};function VUe(e,t,n){return Array.isArray(e)?UUe(e,n):Uo(t).map(function(r,i){return WUe(r,i,n)})}function KUe(e){var t=e;if(!Array.isArray(t)){var n=ln(t);t=n==="number"||n==="string"?[t]:[]}return t.map(function(r){return String(r)})}var qUe=ge.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,i=e.destroyInactivePanel,o=i===void 0?!1:i,a=e.style,s=e.accordion,l=e.className,c=e.children,u=e.collapsible,d=e.openMotion,h=e.expandIcon,p=e.activeKey,m=e.defaultActiveKey,v=e.onChange,y=e.items,S=Re(r,l),b=Jn([],{value:p,onChange:function(M){return v==null?void 0:v(M)},defaultValue:m,postState:KUe}),C=Le(b,2),_=C[0],T=C[1],x=function(M){return T(function(){if(s)return _[0]===M?[]:[M];var P=_.indexOf(M),D=P>-1;return D?_.filter(function(R){return R!==M}):[].concat(pt(_),[M])})};fi(!c,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var E=VUe(y,c,{prefixCls:r,accordion:s,openMotion:d,expandIcon:h,collapsible:u,destroyInactivePanel:o,onItemClick:x,activeKey:_});return ge.createElement("div",ut({ref:t,className:S,style:a,role:s?"tablist":void 0},Hi(e,{aria:!0,data:!0})),E)});const WU=Object.assign(qUe,{Panel:bve});WU.Panel;const GUe=f.forwardRef((e,t)=>{const{getPrefixCls:n}=f.useContext(hn),{prefixCls:r,className:i,showArrow:o=!0}=e,a=n("collapse",r),s=Re({[`${a}-no-arrow`]:!o},i);return f.createElement(WU.Panel,Object.assign({ref:t},e,{prefixCls:a,className:s}))}),bE=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`}}}),YUe=e=>({animationDuration:e,animationFillMode:"both"}),XUe=e=>({animationDuration:e,animationFillMode:"both"}),RO=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({},YUe(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},XUe(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"}}},QUe=new Mr("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),ZUe=new Mr("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),VU=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,i=t?"&":"";return[RO(r,QUe,ZUe,e.motionDurationMid,t),{[`
|
||
${i}${r}-enter,
|
||
${i}${r}-appear
|
||
`]:{opacity:0,animationTimingFunction:"linear"},[`${i}${r}-leave`]:{animationTimingFunction:"linear"}}]},JUe=new Mr("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),eWe=new Mr("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),tWe=new Mr("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),nWe=new Mr("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),rWe=new Mr("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),iWe=new Mr("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),oWe=new Mr("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),aWe=new Mr("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),sWe={"move-up":{inKeyframes:oWe,outKeyframes:aWe},"move-down":{inKeyframes:JUe,outKeyframes:eWe},"move-left":{inKeyframes:tWe,outKeyframes:nWe},"move-right":{inKeyframes:rWe,outKeyframes:iWe}},Qb=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=sWe[t];return[RO(r,i,o,e.motionDurationMid),{[`
|
||
${r}-enter,
|
||
${r}-appear
|
||
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},AO=new Mr("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),NO=new Mr("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),DO=new Mr("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),LO=new Mr("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),lWe=new Mr("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),cWe=new Mr("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),uWe=new Mr("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),dWe=new Mr("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),fWe={"slide-up":{inKeyframes:AO,outKeyframes:NO},"slide-down":{inKeyframes:DO,outKeyframes:LO},"slide-left":{inKeyframes:lWe,outKeyframes:cWe},"slide-right":{inKeyframes:uWe,outKeyframes:dWe}},qf=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=fWe[t];return[RO(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}}]},KU=new Mr("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),hWe=new Mr("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),mJ=new Mr("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),gJ=new Mr("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),pWe=new Mr("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),mWe=new Mr("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),gWe=new Mr("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),vWe=new Mr("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),yWe=new Mr("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),bWe=new Mr("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),SWe=new Mr("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),CWe=new Mr("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),xWe={zoom:{inKeyframes:KU,outKeyframes:hWe},"zoom-big":{inKeyframes:mJ,outKeyframes:gJ},"zoom-big-fast":{inKeyframes:mJ,outKeyframes:gJ},"zoom-left":{inKeyframes:gWe,outKeyframes:vWe},"zoom-right":{inKeyframes:yWe,outKeyframes:bWe},"zoom-up":{inKeyframes:pWe,outKeyframes:mWe},"zoom-down":{inKeyframes:SWe,outKeyframes:CWe}},YS=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=xWe[t];return[RO(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}}]},wWe=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:i,headerPadding:o,collapseHeaderPaddingSM:a,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:l,lineWidth:c,lineType:u,colorBorder:d,colorText:h,colorTextHeading:p,colorTextDisabled:m,fontSizeLG:v,lineHeight:y,lineHeightLG:S,marginSM:b,paddingSM:C,paddingLG:_,paddingXS:T,motionDurationSlow:x,fontSizeIcon:E,contentPadding:k,fontHeight:M,fontHeightLG:P}=e,D=`${je(c)} ${u} ${d}`;return{[t]:Object.assign(Object.assign({},$r(e)),{backgroundColor:i,border:D,borderRadius:l,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:D,"&:first-child":{[`
|
||
&,
|
||
& > ${t}-header`]:{borderRadius:`${je(l)} ${je(l)} 0 0`}},"&:last-child":{[`
|
||
&,
|
||
& > ${t}-header`]:{borderRadius:`0 0 ${je(l)} ${je(l)}`}},[`> ${t}-header`]:Object.assign(Object.assign({position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:o,color:p,lineHeight:y,cursor:"pointer",transition:`all ${x}, visibility 0s`},gl(e)),{[`> ${t}-header-text`]:{flex:"auto"},[`${t}-expand-icon`]:{height:M,display:"flex",alignItems:"center",paddingInlineEnd:b},[`${t}-arrow`]:Object.assign(Object.assign({},qv()),{fontSize:E,transition:`transform ${x}`,svg:{transition:`transform ${x}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}}),[`${t}-collapsible-header`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"}},[`${t}-collapsible-icon`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:h,backgroundColor:n,borderTop:D,[`& > ${t}-content-box`]:{padding:k},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:a,paddingInlineStart:T,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(C).sub(T).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:C}}},"&-large":{[`> ${t}-item`]:{fontSize:v,lineHeight:S,[`> ${t}-header`]:{padding:s,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:P,marginInlineStart:e.calc(_).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:_}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${je(l)} ${je(l)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:m,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:b}}}}})}},_We=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},EWe=e=>{const{componentCls:t,headerBg:n,paddingXXS:r,colorBorder:i}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${i}`},[`
|
||
> ${t}-item:last-child,
|
||
> ${t}-item:last-child ${t}-header
|
||
`]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},TWe=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},kWe=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}),OWe=Tr("Collapse",e=>{const t=ur(e,{collapseHeaderPaddingSM:`${je(e.paddingXS)} ${je(e.paddingSM)}`,collapseHeaderPaddingLG:`${je(e.padding)} ${je(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[wWe(t),EWe(t),TWe(t),_We(t),bE(t)]},kWe),PWe=f.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,collapse:i}=f.useContext(hn),{prefixCls:o,className:a,rootClassName:s,style:l,bordered:c=!0,ghost:u,size:d,expandIconPosition:h="start",children:p,expandIcon:m}=e,v=Ro(D=>{var R;return(R=d??D)!==null&&R!==void 0?R:"middle"}),y=n("collapse",o),S=n(),[b,C,_]=OWe(y),T=f.useMemo(()=>h==="left"?"start":h==="right"?"end":h,[h]),x=m??(i==null?void 0:i.expandIcon),E=f.useCallback(function(){let D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const R=typeof x=="function"?x(D):f.createElement(hp,{rotate:D.isActive?r==="rtl"?-90:90:void 0,"aria-label":D.isActive?"expanded":"collapsed"});return $o(R,()=>{var A;return{className:Re((A=R==null?void 0:R.props)===null||A===void 0?void 0:A.className,`${y}-arrow`)}})},[x,y]),k=Re(`${y}-icon-position-${T}`,{[`${y}-borderless`]:!c,[`${y}-rtl`]:r==="rtl",[`${y}-ghost`]:!!u,[`${y}-${v}`]:v!=="middle"},i==null?void 0:i.className,a,s,C,_),M=Object.assign(Object.assign({},Xb(S)),{motionAppear:!1,leavedClassName:`${y}-content-hidden`}),P=f.useMemo(()=>p?Uo(p).map((D,R)=>{var A,H;const F=D.props;if(F!=null&&F.disabled){const z=(A=D.key)!==null&&A!==void 0?A:String(R),W=Object.assign(Object.assign({},Pr(D.props,["disabled"])),{key:z,collapsible:(H=F.collapsible)!==null&&H!==void 0?H:"disabled"});return $o(D,W)}return D}):null,[p]);return b(f.createElement(WU,Object.assign({ref:t,openMotion:M},Pr(e,["rootClassName"]),{expandIcon:E,prefixCls:y,className:k,style:Object.assign(Object.assign({},i==null?void 0:i.style),l)}),P))}),MWe=Object.assign(PWe,{Panel:GUe}),Ks=e=>e instanceof Ec?e:new Ec(e),L3=e=>Math.round(Number(e||0)),qU=e=>L3(e.toHsb().a*100),F3=(e,t)=>{const n=e.toRgb();if(!n.r&&!n.g&&!n.b){const r=e.toHsb();return r.a=1,Ks(r)}return n.a=1,Ks(n)},Sve=(e,t)=>{const n=[{percent:0,color:e[0].color}].concat(pt(e),[{percent:100,color:e[e.length-1].color}]);for(let r=0;r<n.length-1;r+=1){const i=n[r].percent,o=n[r+1].percent,a=n[r].color,s=n[r+1].color;if(i<=t&&t<=o){const l=o-i;if(l===0)return a;const c=(t-i)/l*100,u=new Hd(a),d=new Hd(s);return u.mix(d,c).toRgbString()}}return""},_R=e=>e.map(t=>(t.colors=t.colors.map(Ks),t)),Cve=(e,t)=>{const{r:n,g:r,b:i,a:o}=e.toRgb(),a=new Hd(e.toRgbString()).onBackground(t).toHsv();return o<=.5?a.v>.5:n*.299+r*.587+i*.114>192},vJ=(e,t)=>{var n;return`panel-${(n=e.key)!==null&&n!==void 0?n:t}`},IWe=e=>{let{prefixCls:t,presets:n,value:r,onChange:i}=e;const[o]=Os("ColorPicker"),[,a]=na(),[s]=Jn(_R(n),{value:_R(n),postState:_R}),l=`${t}-presets`,c=f.useMemo(()=>s.reduce((h,p,m)=>{const{defaultOpen:v=!0}=p;return v&&h.push(vJ(p,m)),h},[]),[s]),u=h=>{i==null||i(h)},d=s.map((h,p)=>{var m;return{key:vJ(h,p),label:ge.createElement("div",{className:`${l}-label`},h==null?void 0:h.label),children:ge.createElement("div",{className:`${l}-items`},Array.isArray(h==null?void 0:h.colors)&&((m=h.colors)===null||m===void 0?void 0:m.length)>0?h.colors.map((v,y)=>ge.createElement(UU,{key:`preset-${y}-${v.toHexString()}`,color:Ks(v).toRgbString(),prefixCls:t,className:Re(`${l}-color`,{[`${l}-color-checked`]:v.toHexString()===(r==null?void 0:r.toHexString()),[`${l}-color-bright`]:Cve(v,a.colorBgElevated)}),onClick:()=>u(v)})):ge.createElement("span",{className:`${l}-empty`},o.presetEmpty))}});return ge.createElement("div",{className:l},ge.createElement(MWe,{defaultActiveKey:c,ghost:!0,items:d}))},xve=e=>{const{paddingInline:t,onlyIconSize:n}=e;return ur(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},wve=e=>{var t,n,r,i,o,a;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,l=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,c=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,u=(i=e.contentLineHeight)!==null&&i!==void 0?i:N3(s),d=(o=e.contentLineHeightSM)!==null&&o!==void 0?o:N3(l),h=(a=e.contentLineHeightLG)!==null&&a!==void 0?a:N3(c),p=Cve(new Ec(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:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",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:p,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:h,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*h)/2-e.lineWidth,0)}},$We=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:i,motionDurationSlow:o,motionEaseInOut:a,marginXS:s,calc:l}=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:`${je(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:qv(),"> a":{color:"currentColor"},"&:not(:disabled)":gl(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"},[`&${t}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:i,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(c=>`${c} ${o} ${a}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:l(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:l(s).mul(-1).equal()}}}}}},_ve=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),RWe=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),AWe=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),NWe=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),GU=(e,t,n,r,i,o,a,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},_ve(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:i||void 0,borderColor:o||void 0}})}),DWe=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},NWe(e))}),LWe=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),FO=(e,t,n,r)=>{const o=r&&["link","text"].includes(r)?LWe:DWe;return Object.assign(Object.assign({},o(e)),_ve(e.componentCls,t,n))},jO=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},FO(e,r,i))}),BO=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},FO(e,r,i))}),HO=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),zO=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},FO(e,n,r))}),ng=(e,t,n,r,i)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},FO(e,r,i,n))}),FWe=e=>{const{componentCls:t}=e;return xv.reduce((n,r)=>{const i=e[`${r}6`],o=e[`${r}1`],a=e[`${r}5`],s=e[`${r}2`],l=e[`${r}3`],c=e[`${r}7`],u=`0 ${je(e.controlOutlineWidth)} 0 ${e[`${r}1`]}`;return Object.assign(Object.assign({},n),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:i,boxShadow:u},jO(e,e.colorTextLightSolid,i,{background:a},{background:c})),BO(e,i,e.colorBgContainer,{color:a,borderColor:a,background:e.colorBgContainer},{color:c,borderColor:c,background:e.colorBgContainer})),HO(e)),zO(e,o,{background:s},{background:l})),ng(e,i,"link",{color:a},{color:c})),ng(e,i,"text",{color:a,background:o},{color:c,background:l}))})},{})},jWe=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},jO(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),HO(e)),zO(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),ng(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),GU(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),BWe=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},BO(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),HO(e)),zO(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),ng(e,e.colorLink,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),GU(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),HWe=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},jO(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),BO(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),HO(e)),zO(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),ng(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),ng(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),GU(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),zWe=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:jWe(e),[`${t}-color-primary`]:BWe(e),[`${t}-color-dangerous`]:HWe(e)},FWe(e))},UWe=e=>Object.assign(Object.assign(Object.assign(Object.assign({},BO(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),ng(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),jO(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),ng(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),YU=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:i,borderRadius:o,buttonPaddingHorizontal:a,iconCls:s,buttonPaddingVertical:l,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:i,height:r,padding:`${je(l)} ${je(a)}`,borderRadius:o,[`&${n}-icon-only`]:{width:r,[s]:{fontSize:c}}}},{[`${n}${n}-circle${t}`]:RWe(e)},{[`${n}${n}-round${t}`]:AWe(e)}]},WWe=e=>{const t=ur(e,{fontSize:e.contentFontSize});return YU(t,e.componentCls)},VWe=e=>{const t=ur(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return YU(t,`${e.componentCls}-sm`)},KWe=e=>{const t=ur(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return YU(t,`${e.componentCls}-lg`)},qWe=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},GWe=Tr("Button",e=>{const t=xve(e);return[$We(t),WWe(t),VWe(t),KWe(t),qWe(t),zWe(t),UWe(t),_Ue(t)]},wve,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function YWe(e,t,n){const{focusElCls:r,focus:i,borderElCls:o}=n,a=o?"> *":"",s=["hover",i?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${a}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function XWe(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 Yv(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({},YWe(e,r,t)),XWe(n,r,t))}}function QWe(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 ZWe(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 JWe(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},QWe(e,t)),ZWe(e.componentCls,t))}}const eVe=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:i}=e,o=i(r).mul(-1).equal(),a=s=>{const l=`${t}-compact${s?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${l} + ${l}::before`]:{position:"absolute",top:s?o:0,insetInlineStart:s?0:o,backgroundColor:n,content:'""',width:s?"100%":r,height:s?r:"100%"}}};return Object.assign(Object.assign({},a()),a(!0))},tVe=KS(["Button","compact"],e=>{const t=xve(e);return[Yv(t),JWe(t),eVe(t)]},wve);var nVe=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 rVe(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 iVe={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["primary","link"],text:["default","text"]},oVe=ge.forwardRef((e,t)=>{var n,r,i,o;const{loading:a=!1,prefixCls:s,color:l,variant:c,type:u,danger:d=!1,shape:h="default",size:p,styles:m,disabled:v,className:y,rootClassName:S,children:b,icon:C,iconPosition:_="start",ghost:T=!1,block:x=!1,htmlType:E="button",classNames:k,style:M={},autoInsertSpace:P,autoFocus:D}=e,R=nVe(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),A=u||"default",[H,F]=f.useMemo(()=>{if(l&&c)return[l,c];const tt=iVe[A]||[];return d?["danger",tt[1]]:tt},[u,l,c,d]),W=H==="danger"?"dangerous":H,{getPrefixCls:q,direction:Z,button:N}=f.useContext(hn),B=(n=P??(N==null?void 0:N.autoInsertSpace))!==null&&n!==void 0?n:!0,V=q("btn",s),[Y,ie,ce]=GWe(V),fe=f.useContext(ea),ee=v??fe,ne=f.useContext(dve),ue=f.useMemo(()=>rVe(a),[a]),[ye,me]=f.useState(ue.loading),[pe,he]=f.useState(!1),_e=f.useRef(null),le=Qd(t,_e),xe=f.Children.count(b)===1&&!C&&!SR(F),we=f.useRef(!0);ge.useEffect(()=>(we.current=!1,()=>{we.current=!0}),[]),f.useEffect(()=>{let tt=null;ue.delay>0?tt=setTimeout(()=>{tt=null,me(!0)},ue.delay):me(ue.loading);function se(){tt&&(clearTimeout(tt),tt=null)}return se},[ue]),f.useEffect(()=>{if(!_e.current||!B)return;const tt=_e.current.textContent||"";xe&&EF(tt)?pe||he(!0):pe&&he(!1)}),f.useEffect(()=>{D&&_e.current&&_e.current.focus()},[]);const De=ge.useCallback(tt=>{var se;if(ye||ee){tt.preventDefault();return}(se=e.onClick)===null||se===void 0||se.call(e,tt)},[e.onClick,ye,ee]),{compactSize:Fe,compactItemClassnames:Ce}=Zd(V,Z),Te={large:"lg",small:"sm",middle:void 0},ke=Ro(tt=>{var se,ze;return(ze=(se=p??Fe)!==null&&se!==void 0?se:ne)!==null&&ze!==void 0?ze:tt}),Pe=ke&&(r=Te[ke])!==null&&r!==void 0?r:"",Ne=ye?"loading":C,We=Pr(R,["navigate"]),Q=Re(V,ie,ce,{[`${V}-${h}`]:h!=="default"&&h,[`${V}-${A}`]:A,[`${V}-dangerous`]:d,[`${V}-color-${W}`]:W,[`${V}-variant-${F}`]:F,[`${V}-${Pe}`]:Pe,[`${V}-icon-only`]:!b&&b!==0&&!!Ne,[`${V}-background-ghost`]:T&&!SR(F),[`${V}-loading`]:ye,[`${V}-two-chinese-chars`]:pe&&B&&!ye,[`${V}-block`]:x,[`${V}-rtl`]:Z==="rtl",[`${V}-icon-end`]:_==="end"},Ce,y,S,N==null?void 0:N.className),K=Object.assign(Object.assign({},N==null?void 0:N.style),M),J=Re(k==null?void 0:k.icon,(i=N==null?void 0:N.classNames)===null||i===void 0?void 0:i.icon),be=Object.assign(Object.assign({},(m==null?void 0:m.icon)||{}),((o=N==null?void 0:N.styles)===null||o===void 0?void 0:o.icon)||{}),Oe=C&&!ye?ge.createElement(TF,{prefixCls:V,className:J,style:be},C):typeof a=="object"&&a.icon?ge.createElement(TF,{prefixCls:V,className:J,style:be},a.icon):ge.createElement(wUe,{existIcon:!!C,prefixCls:V,loading:ye,mount:we.current}),Se=b||b===0?xUe(b,xe&&B):null;if(We.href!==void 0)return Y(ge.createElement("a",Object.assign({},We,{className:Re(Q,{[`${V}-disabled`]:ee}),href:ee?void 0:We.href,style:K,onClick:De,ref:le,tabIndex:ee?-1:0}),Oe,Se));let Ke=ge.createElement("button",Object.assign({},R,{type:E,className:Q,style:K,onClick:De,disabled:ee,ref:le}),Oe,Se,Ce&&ge.createElement(tVe,{prefixCls:V}));return SR(F)||(Ke=ge.createElement(yE,{component:"Button",disabled:ye},Ke)),Y(Ke)}),hr=oVe;hr.Group=SUe;hr.__ANT_BUTTON=!0;function ER(e){return!!(e!=null&&e.then)}const XU=e=>{const{type:t,children:n,prefixCls:r,buttonProps:i,close:o,autoFocus:a,emitEvent:s,isSilent:l,quitOnNullishReturnValue:c,actionFn:u}=e,d=f.useRef(!1),h=f.useRef(null),[p,m]=Cv(!1),v=function(){o==null||o.apply(void 0,arguments)};f.useEffect(()=>{let b=null;return a&&(b=setTimeout(()=>{var C;(C=h.current)===null||C===void 0||C.focus({preventScroll:!0})})),()=>{b&&clearTimeout(b)}},[]);const y=b=>{ER(b)&&(m(!0),b.then(function(){m(!1,!0),v.apply(void 0,arguments),d.current=!1},C=>{if(m(!1,!0),d.current=!1,!(l!=null&&l()))return Promise.reject(C)}))},S=b=>{if(d.current)return;if(d.current=!0,!u){v();return}let C;if(s){if(C=u(b),c&&!ER(C)){d.current=!1,v(b);return}}else if(u.length)C=u(o),d.current=!1;else if(C=u(),!ER(C)){v();return}y(C)};return f.createElement(hr,Object.assign({},zU(t),{onClick:S,loading:p,prefixCls:r},i,{ref:h}),n)},SE=ge.createContext({}),{Provider:Eve}=SE,yJ=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:i,rootPrefixCls:o,close:a,onCancel:s,onConfirm:l}=f.useContext(SE);return i?ge.createElement(XU,{isSilent:r,actionFn:s,close:function(){a==null||a.apply(void 0,arguments),l==null||l(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${o}-btn`},n):null},bJ=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:i,okTextLocale:o,okType:a,onConfirm:s,onOk:l}=f.useContext(SE);return ge.createElement(XU,{isSilent:n,type:a||"primary",actionFn:l,close:function(){t==null||t.apply(void 0,arguments),s==null||s(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${i}-btn`},o)};var Tve=f.createContext(null),SJ=[];function aVe(e,t){var n=f.useState(function(){if(!ml())return null;var m=document.createElement("div");return m}),r=Le(n,1),i=r[0],o=f.useRef(!1),a=f.useContext(Tve),s=f.useState(SJ),l=Le(s,2),c=l[0],u=l[1],d=a||(o.current?void 0:function(m){u(function(v){var y=[m].concat(pt(v));return y})});function h(){i.parentElement||document.body.appendChild(i),o.current=!0}function p(){var m;(m=i.parentElement)===null||m===void 0||m.removeChild(i),o.current=!1}return Er(function(){return e?a?a(h):h():p(),p},[e]),Er(function(){c.length&&(c.forEach(function(m){return m()}),u(SJ))},[c]),[i,d]}var TR;function kve(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 s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var u=l?"width: ".concat(s.width,";"):"",d=c?"height: ".concat(s.height,";"):"";TO(`
|
||
#`.concat(t,`::-webkit-scrollbar {
|
||
`).concat(u,`
|
||
`).concat(d,`
|
||
}`),t)}catch(m){console.error(m),i=l,o=c}}document.body.appendChild(n);var h=e&&i&&!isNaN(i)?i:n.offsetWidth-n.clientWidth,p=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),hF(t),{width:h,height:p}}function CJ(e){return typeof document>"u"?0:(TR===void 0&&(TR=kve()),TR.width)}function kF(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:kve(e)}function sVe(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var lVe="rc-util-locker-".concat(Date.now()),xJ=0;function cVe(e){var t=!!e,n=f.useState(function(){return xJ+=1,"".concat(lVe,"_").concat(xJ)}),r=Le(n,1),i=r[0];Er(function(){if(t){var o=kF(document.body).width,a=sVe();TO(`
|
||
html body {
|
||
overflow-y: hidden;
|
||
`.concat(a?"width: calc(100% - ".concat(o,"px);"):"",`
|
||
}`),i)}else hF(i);return function(){hF(i)}},[t,i])}var uVe=!1;function dVe(e){return uVe}var wJ=function(t){return t===!1?!1:!ml()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},CE=f.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,s=e.children,l=f.useState(n),c=Le(l,2),u=c[0],d=c[1],h=u||n;f.useEffect(function(){(a||n)&&d(n)},[n,a]);var p=f.useState(function(){return wJ(i)}),m=Le(p,2),v=m[0],y=m[1];f.useEffect(function(){var D=wJ(i);y(D??null)});var S=aVe(h&&!v),b=Le(S,2),C=b[0],_=b[1],T=v??C;cVe(r&&n&&ml()&&(T===C||T===document.body));var x=null;if(s&&Ld(s)&&t){var E=s;x=E.ref}var k=Qd(x,t);if(!h||!ml()||v===void 0)return null;var M=T===!1||dVe(),P=s;return t&&(P=f.cloneElement(s,{ref:k})),f.createElement(Tve.Provider,{value:_},M?P:Nc.createPortal(P,T))}),Ove=f.createContext({});function fVe(){var e=G({},Q_);return e.useId}var _J=0,EJ=fVe();const UO=EJ?function(t){var n=EJ();return t||n}:function(t){var n=f.useState("ssr-id"),r=Le(n,2),i=r[0],o=r[1];return f.useEffect(function(){var a=_J;_J+=1,o("rc_unique_".concat(a))},[]),t||i};function TJ(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function kJ(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 hVe(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,i=r.defaultView||r.parentWindow;return n.left+=kJ(i),n.top+=kJ(i,!0),n}const pVe=f.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var mVe={width:0,height:0,overflow:"hidden",outline:"none"},gVe={outline:"none"},Pve=ge.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,o=e.title,a=e.ariaId,s=e.footer,l=e.closable,c=e.closeIcon,u=e.onClose,d=e.children,h=e.bodyStyle,p=e.bodyProps,m=e.modalRender,v=e.onMouseDown,y=e.onMouseUp,S=e.holderRef,b=e.visible,C=e.forceRender,_=e.width,T=e.height,x=e.classNames,E=e.styles,k=ge.useContext(Ove),M=k.panel,P=Qd(S,M),D=f.useRef(),R=f.useRef();ge.useImperativeHandle(t,function(){return{focus:function(){var V;(V=D.current)===null||V===void 0||V.focus({preventScroll:!0})},changeActive:function(V){var Y=document,ie=Y.activeElement;V&&ie===R.current?D.current.focus({preventScroll:!0}):!V&&ie===D.current&&R.current.focus({preventScroll:!0})}}});var A={};_!==void 0&&(A.width=_),T!==void 0&&(A.height=T);var H=s?ge.createElement("div",{className:Re("".concat(n,"-footer"),x==null?void 0:x.footer),style:G({},E==null?void 0:E.footer)},s):null,F=o?ge.createElement("div",{className:Re("".concat(n,"-header"),x==null?void 0:x.header),style:G({},E==null?void 0:E.header)},ge.createElement("div",{className:"".concat(n,"-title"),id:a},o)):null,z=f.useMemo(function(){return ln(l)==="object"&&l!==null?l:l?{closeIcon:c??ge.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[l,c,n]),W=Hi(z,!0),q=ln(l)==="object"&&l.disabled,Z=l?ge.createElement("button",ut({type:"button",onClick:u,"aria-label":"Close"},W,{className:"".concat(n,"-close"),disabled:q}),z.closeIcon):null,N=ge.createElement("div",{className:Re("".concat(n,"-content"),x==null?void 0:x.content),style:E==null?void 0:E.content},Z,F,ge.createElement("div",ut({className:Re("".concat(n,"-body"),x==null?void 0:x.body),style:G(G({},h),E==null?void 0:E.body)},p),d),H);return ge.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":o?a:null,"aria-modal":"true",ref:P,style:G(G({},i),A),className:Re(n,r),onMouseDown:v,onMouseUp:y},ge.createElement("div",{ref:D,tabIndex:0,style:gVe},ge.createElement(pVe,{shouldUpdate:b||C},m?m(N):N)),ge.createElement("div",{tabIndex:0,ref:R,style:mVe}))}),Mve=f.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,i=e.style,o=e.className,a=e.visible,s=e.forceRender,l=e.destroyOnClose,c=e.motionName,u=e.ariaId,d=e.onVisibleChanged,h=e.mousePosition,p=f.useRef(),m=f.useState(),v=Le(m,2),y=v[0],S=v[1],b={};y&&(b.transformOrigin=y);function C(){var _=hVe(p.current);S(h&&(h.x||h.y)?"".concat(h.x-_.left,"px ").concat(h.y-_.top,"px"):"")}return f.createElement(ha,{visible:a,onVisibleChanged:d,onAppearPrepare:C,onEnterPrepare:C,forceRender:s,motionName:c,removeOnLeave:l,ref:p},function(_,T){var x=_.className,E=_.style;return f.createElement(Pve,ut({},e,{ref:t,title:r,ariaId:u,prefixCls:n,holderRef:T,style:G(G(G({},E),i),b),className:Re(o,x)}))})});Mve.displayName="Content";var vVe=function(t){var n=t.prefixCls,r=t.style,i=t.visible,o=t.maskProps,a=t.motionName,s=t.className;return f.createElement(ha,{key:"mask",visible:i,motionName:a,leavedClassName:"".concat(n,"-mask-hidden")},function(l,c){var u=l.className,d=l.style;return f.createElement("div",ut({ref:c,style:G(G({},d),r),className:Re("".concat(n,"-mask"),u,s)},o))})},yVe=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,s=t.keyboard,l=s===void 0?!0:s,c=t.focusTriggerAfterClose,u=c===void 0?!0:c,d=t.wrapStyle,h=t.wrapClassName,p=t.wrapProps,m=t.onClose,v=t.afterOpenChange,y=t.afterClose,S=t.transitionName,b=t.animation,C=t.closable,_=C===void 0?!0:C,T=t.mask,x=T===void 0?!0:T,E=t.maskTransitionName,k=t.maskAnimation,M=t.maskClosable,P=M===void 0?!0:M,D=t.maskStyle,R=t.maskProps,A=t.rootClassName,H=t.classNames,F=t.styles,z=f.useRef(),W=f.useRef(),q=f.useRef(),Z=f.useState(a),N=Le(Z,2),B=N[0],V=N[1],Y=UO();function ie(){dF(W.current,document.activeElement)||(z.current=document.activeElement)}function ce(){if(!dF(W.current,document.activeElement)){var le;(le=q.current)===null||le===void 0||le.focus()}}function fe(le){if(le)ce();else{if(V(!1),x&&z.current&&u){try{z.current.focus({preventScroll:!0})}catch{}z.current=null}B&&(y==null||y())}v==null||v(le)}function ee(le){m==null||m(le)}var ne=f.useRef(!1),ue=f.useRef(),ye=function(){clearTimeout(ue.current),ne.current=!0},me=function(){ue.current=setTimeout(function(){ne.current=!1})},pe=null;P&&(pe=function(xe){ne.current?ne.current=!1:W.current===xe.target&&ee(xe)});function he(le){if(l&&le.keyCode===Pt.ESC){le.stopPropagation(),ee(le);return}a&&le.keyCode===Pt.TAB&&q.current.changeActive(!le.shiftKey)}f.useEffect(function(){a&&(V(!0),ie())},[a]),f.useEffect(function(){return function(){clearTimeout(ue.current)}},[]);var _e=G(G(G({zIndex:i},d),F==null?void 0:F.wrapper),{},{display:B?null:"none"});return f.createElement("div",ut({className:Re("".concat(r,"-root"),A)},Hi(t,{data:!0})),f.createElement(vVe,{prefixCls:r,visible:x&&a,motionName:TJ(r,E,k),style:G(G({zIndex:i},D),F==null?void 0:F.mask),maskProps:R,className:H==null?void 0:H.mask}),f.createElement("div",ut({tabIndex:-1,onKeyDown:he,className:Re("".concat(r,"-wrap"),h,H==null?void 0:H.wrapper),ref:W,onClick:pe,style:_e},p),f.createElement(Mve,ut({},t,{onMouseDown:ye,onMouseUp:me,ref:q,closable:_,ariaId:Y,prefixCls:r,visible:a&&B,onClose:ee,onVisibleChanged:fe,motionName:TJ(r,S,b)}))))},QU=function(t){var n=t.visible,r=t.getContainer,i=t.forceRender,o=t.destroyOnClose,a=o===void 0?!1:o,s=t.afterClose,l=t.panelRef,c=f.useState(n),u=Le(c,2),d=u[0],h=u[1],p=f.useMemo(function(){return{panel:l}},[l]);return f.useEffect(function(){n&&h(!0)},[n]),!i&&a&&!d?null:f.createElement(Ove.Provider,{value:p},f.createElement(CE,{open:n||i||d,autoDestroy:!1,getContainer:r,autoLock:n||d},f.createElement(yVe,ut({},t,{destroyOnClose:a,afterClose:function(){s==null||s(),h(!1)}}))))};QU.displayName="Dialog";var T1="RC_FORM_INTERNAL_HOOKS",qi=function(){fi(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},rg=f.createContext({getFieldValue:qi,getFieldsValue:qi,getFieldError:qi,getFieldWarning:qi,getFieldsError:qi,isFieldsTouched:qi,isFieldTouched:qi,isFieldValidating:qi,isFieldsValidating:qi,resetFields:qi,setFields:qi,setFieldValue:qi,setFieldsValue:qi,validateFields:qi,submit:qi,getInternalHooks:function(){return qi(),{dispatch:qi,initEntityValue:qi,registerField:qi,useSubscribe:qi,setInitialValues:qi,destroyForm:qi,setCallbacks:qi,registerWatch:qi,getFields:qi,setValidateMessages:qi,setPreserve:qi,getInitialValue:qi}}}),m_=f.createContext(null);function OF(e){return e==null?[]:Array.isArray(e)?e:[e]}function bVe(e){return e&&!!e._init}function PF(){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 MF=PF();function SVe(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function CVe(e,t,n){if(yO())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&o_(i,n.prototype),i}function IF(e){var t=typeof Map=="function"?new Map:void 0;return IF=function(r){if(r===null||!SVe(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 CVe(r,arguments,vv(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),o_(i,r)},IF(e)}var xVe=/%[sdj%]/g,wVe=function(){};function $F(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 Tc(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(xVe,function(s){if(s==="%%")return"%";if(i>=o)return s;switch(s){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 s}});return a}return e}function _Ve(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Ga(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||_Ve(t)&&typeof e=="string"&&!e)}function EVe(e,t,n){var r=[],i=0,o=e.length;function a(s){r.push.apply(r,pt(s||[])),i++,i===o&&n(r)}e.forEach(function(s){t(s,a)})}function OJ(e,t,n){var r=0,i=e.length;function o(a){if(a&&a.length){n(a);return}var s=r;r=r+1,s<i?t(e[s],o):n([])}o([])}function TVe(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,pt(e[n]||[]))}),t}var PJ=function(e){Xs(n,e);var t=Sl(n);function n(r,i){var o;return pi(this,n),o=t.call(this,"Async Validation Error"),ae(On(o),"errors",void 0),ae(On(o),"fields",void 0),o.errors=r,o.fields=i,o}return mi(n)}(IF(Error));function kVe(e,t,n,r,i){if(t.first){var o=new Promise(function(h,p){var m=function(S){return r(S),S.length?p(new PJ(S,$F(S))):h(i)},v=TVe(e);OJ(v,n,m)});return o.catch(function(h){return h}),o}var a=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],d=new Promise(function(h,p){var m=function(y){if(u.push.apply(u,y),c++,c===l)return r(u),u.length?p(new PJ(u,$F(u))):h(i)};s.length||(r(u),h(i)),s.forEach(function(v){var y=e[v];a.indexOf(v)!==-1?OJ(y,n,m):EVe(y,n,m)})});return d.catch(function(h){return h}),d}function OVe(e){return!!(e&&e.message!==void 0)}function PVe(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function MJ(e,t){return function(n){var r;return e.fullFields?r=PVe(t,e.fullFields):r=t[n.field||e.fullField],OVe(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 IJ(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];ln(r)==="object"&&ln(e[n])==="object"?e[n]=G(G({},e[n]),r):e[n]=r}}return e}var Y0="enum",MVe=function(t,n,r,i,o){t[Y0]=Array.isArray(t[Y0])?t[Y0]:[],t[Y0].indexOf(n)===-1&&i.push(Tc(o.messages[Y0],t.fullField,t[Y0].join(", ")))},IVe=function(t,n,r,i,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||i.push(Tc(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(Tc(o.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},$Ve=function(t,n,r,i,o){var a=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=n,d=null,h=typeof n=="number",p=typeof n=="string",m=Array.isArray(n);if(h?d="number":p?d="string":m&&(d="array"),!d)return!1;m&&(u=n.length),p&&(u=n.replace(c,"_").length),a?u!==t.len&&i.push(Tc(o.messages[d].len,t.fullField,t.len)):s&&!l&&u<t.min?i.push(Tc(o.messages[d].min,t.fullField,t.min)):l&&!s&&u>t.max?i.push(Tc(o.messages[d].max,t.fullField,t.max)):s&&l&&(u<t.min||u>t.max)&&i.push(Tc(o.messages[d].range,t.fullField,t.min,t.max))},Ive=function(t,n,r,i,o,a){t.required&&(!r.hasOwnProperty(t.field)||Ga(n,a||t.type))&&i.push(Tc(o.messages.required,t.fullField))},KT;const RVe=function(){if(KT)return KT;var e="[a-fA-F\\d:]",t=function(x){return x&&x.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),s=new RegExp("(?:^".concat(n,"$)|(?:^").concat(a,"$)")),l=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(a,"$")),u=function(x){return x&&x.exact?s:new RegExp("(?:".concat(t(x)).concat(n).concat(t(x),")|(?:").concat(t(x)).concat(a).concat(t(x),")"),"g")};u.v4=function(T){return T&&T.exact?l:new RegExp("".concat(t(T)).concat(n).concat(t(T)),"g")},u.v6=function(T){return T&&T.exact?c:new RegExp("".concat(t(T)).concat(a).concat(t(T)),"g")};var d="(?:(?:[a-z]+:)?//)",h="(?:\\S+(?::\\S*)?@)?",p=u.v4().source,m=u.v6().source,v="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",y="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",S="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",b="(?::\\d{2,5})?",C='(?:[/?#][^\\s"]*)?',_="(?:".concat(d,"|www\\.)").concat(h,"(?:localhost|").concat(p,"|").concat(m,"|").concat(v).concat(y).concat(S,")").concat(b).concat(C);return KT=new RegExp("(?:^".concat(_,"$)"),"i"),KT};var $J={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},x2={integer:function(t){return x2.number(t)&&parseInt(t,10)===t},float:function(t){return x2.number(t)&&!x2.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 ln(t)==="object"&&!x2.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match($J.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(RVe())},hex:function(t){return typeof t=="string"&&!!t.match($J.hex)}},AVe=function(t,n,r,i,o){if(t.required&&n===void 0){Ive(t,n,r,i,o);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;a.indexOf(s)>-1?x2[s](n)||i.push(Tc(o.messages.types[s],t.fullField,t.type)):s&&ln(n)!==t.type&&i.push(Tc(o.messages.types[s],t.fullField,t.type))},NVe=function(t,n,r,i,o){(/^\s+$/.test(n)||n==="")&&i.push(Tc(o.messages.whitespace,t.fullField))};const di={required:Ive,whitespace:NVe,type:AVe,range:$Ve,enum:MVe,pattern:IVe};var DVe=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ga(n)&&!t.required)return r();di.required(t,n,i,a,o)}r(a)},LVe=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();di.required(t,n,i,a,o,"array"),n!=null&&(di.type(t,n,i,a,o),di.range(t,n,i,a,o))}r(a)},FVe=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ga(n)&&!t.required)return r();di.required(t,n,i,a,o),n!==void 0&&di.type(t,n,i,a,o)}r(a)},jVe=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ga(n,"date")&&!t.required)return r();if(di.required(t,n,i,a,o),!Ga(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),di.type(t,l,i,a,o),l&&di.range(t,l.getTime(),i,a,o)}}r(a)},BVe="enum",HVe=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ga(n)&&!t.required)return r();di.required(t,n,i,a,o),n!==void 0&&di[BVe](t,n,i,a,o)}r(a)},zVe=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ga(n)&&!t.required)return r();di.required(t,n,i,a,o),n!==void 0&&(di.type(t,n,i,a,o),di.range(t,n,i,a,o))}r(a)},UVe=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ga(n)&&!t.required)return r();di.required(t,n,i,a,o),n!==void 0&&(di.type(t,n,i,a,o),di.range(t,n,i,a,o))}r(a)},WVe=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ga(n)&&!t.required)return r();di.required(t,n,i,a,o),n!==void 0&&di.type(t,n,i,a,o)}r(a)},VVe=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),Ga(n)&&!t.required)return r();di.required(t,n,i,a,o),n!==void 0&&(di.type(t,n,i,a,o),di.range(t,n,i,a,o))}r(a)},KVe=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ga(n)&&!t.required)return r();di.required(t,n,i,a,o),n!==void 0&&di.type(t,n,i,a,o)}r(a)},qVe=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ga(n,"string")&&!t.required)return r();di.required(t,n,i,a,o),Ga(n,"string")||di.pattern(t,n,i,a,o)}r(a)},GVe=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ga(n)&&!t.required)return r();di.required(t,n,i,a,o),Ga(n)||di.type(t,n,i,a,o)}r(a)},YVe=function(t,n,r,i,o){var a=[],s=Array.isArray(n)?"array":ln(n);di.required(t,n,i,a,o,s),r(a)},XVe=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ga(n,"string")&&!t.required)return r();di.required(t,n,i,a,o,"string"),Ga(n,"string")||(di.type(t,n,i,a,o),di.range(t,n,i,a,o),di.pattern(t,n,i,a,o),t.whitespace===!0&&di.whitespace(t,n,i,a,o))}r(a)},kR=function(t,n,r,i,o){var a=t.type,s=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(Ga(n,a)&&!t.required)return r();di.required(t,n,i,s,o,a),Ga(n,a)||di.type(t,n,i,s,o)}r(s)};const ew={string:XVe,method:WVe,number:VVe,boolean:FVe,regexp:GVe,integer:UVe,float:zVe,array:LVe,object:KVe,enum:HVe,pattern:qVe,date:jVe,url:kR,hex:kR,email:kR,required:YVe,any:DVe};var xE=function(){function e(t){pi(this,e),ae(this,"rules",null),ae(this,"_messages",MF),this.define(t)}return mi(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(ln(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=IJ(PF(),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,s=i,l=o;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,a),Promise.resolve(a);function c(m){var v=[],y={};function S(C){if(Array.isArray(C)){var _;v=(_=v).concat.apply(_,pt(C))}else v.push(C)}for(var b=0;b<m.length;b++)S(m[b]);v.length?(y=$F(v),l(v,y)):l(null,a)}if(s.messages){var u=this.messages();u===MF&&(u=PF()),IJ(u,s.messages),s.messages=u}else s.messages=this.messages();var d={},h=s.keys||Object.keys(this.rules);h.forEach(function(m){var v=r.rules[m],y=a[m];v.forEach(function(S){var b=S;typeof b.transform=="function"&&(a===n&&(a=G({},a)),y=a[m]=b.transform(y),y!=null&&(b.type=b.type||(Array.isArray(y)?"array":ln(y)))),typeof b=="function"?b={validator:b}:b=G({},b),b.validator=r.getValidationMethod(b),b.validator&&(b.field=m,b.fullField=b.fullField||m,b.type=r.getType(b),d[m]=d[m]||[],d[m].push({rule:b,value:y,source:a,field:m}))})});var p={};return kVe(d,s,function(m,v){var y=m.rule,S=(y.type==="object"||y.type==="array")&&(ln(y.fields)==="object"||ln(y.defaultField)==="object");S=S&&(y.required||!y.required&&m.value),y.field=m.field;function b(E,k){return G(G({},k),{},{fullField:"".concat(y.fullField,".").concat(E),fullFields:y.fullFields?[].concat(pt(y.fullFields),[E]):[E]})}function C(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],k=Array.isArray(E)?E:[E];!s.suppressWarning&&k.length&&e.warning("async-validator:",k),k.length&&y.message!==void 0&&(k=[].concat(y.message));var M=k.map(MJ(y,a));if(s.first&&M.length)return p[y.field]=1,v(M);if(!S)v(M);else{if(y.required&&!m.value)return y.message!==void 0?M=[].concat(y.message).map(MJ(y,a)):s.error&&(M=[s.error(y,Tc(s.messages.required,y.field))]),v(M);var P={};y.defaultField&&Object.keys(m.value).map(function(A){P[A]=y.defaultField}),P=G(G({},P),m.rule.fields);var D={};Object.keys(P).forEach(function(A){var H=P[A],F=Array.isArray(H)?H:[H];D[A]=F.map(b.bind(null,A))});var R=new e(D);R.messages(s.messages),m.rule.options&&(m.rule.options.messages=s.messages,m.rule.options.error=s.error),R.validate(m.value,m.rule.options||s,function(A){var H=[];M&&M.length&&H.push.apply(H,pt(M)),A&&A.length&&H.push.apply(H,pt(A)),v(H.length?H:null)})}}var _;if(y.asyncValidator)_=y.asyncValidator(y,m.value,C,m.source,s);else if(y.validator){try{_=y.validator(y,m.value,C,m.source,s)}catch(E){var T,x;(T=(x=console).error)===null||T===void 0||T.call(x,E),s.suppressValidatorError||setTimeout(function(){throw E},0),C(E.message)}_===!0?C():_===!1?C(typeof y.message=="function"?y.message(y.fullField||y.field):y.message||"".concat(y.fullField||y.field," fails")):_ instanceof Array?C(_):_ instanceof Error&&C(_.message)}_&&_.then&&_.then(function(){return C()},function(E){return C(E)})},function(m){c(m)},a)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!ew.hasOwnProperty(n.type))throw new Error(Tc("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"?ew.required:ew[this.getType(n)]||void 0}}]),e}();ae(xE,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");ew[t]=n});ae(xE,"warning",wVe);ae(xE,"messages",MF);ae(xE,"validators",ew);var sc="'${name}' is not a valid ${type}",$ve={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:sc,method:sc,array:sc,object:sc,number:sc,date:sc,boolean:sc,integer:sc,float:sc,regexp:sc,email:sc,url:sc,hex:sc},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}"}},RJ=xE;function QVe(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 AJ="CODE_LOGIC_ERROR";function RF(e,t,n,r,i){return AF.apply(this,arguments)}function AF(){return AF=Jo(Hr().mark(function e(t,n,r,i,o){var a,s,l,c,u,d,h,p,m;return Hr().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return a=G({},r),delete a.ruleIndex,RJ.warning=function(){},a.validator&&(s=a.validator,a.validator=function(){try{return s.apply(void 0,arguments)}catch(S){return console.error(S),Promise.reject(AJ)}}),l=null,a&&a.type==="array"&&a.defaultField&&(l=a.defaultField,delete a.defaultField),c=new RJ(ae({},t,[a])),u=Uy($ve,i.validateMessages),c.messages(u),d=[],y.prev=10,y.next=13,Promise.resolve(c.validate(ae({},t,n),G({},i)));case 13:y.next=18;break;case 15:y.prev=15,y.t0=y.catch(10),y.t0.errors&&(d=y.t0.errors.map(function(S,b){var C=S.message,_=C===AJ?u.default:C;return f.isValidElement(_)?f.cloneElement(_,{key:"error_".concat(b)}):_}));case 18:if(!(!d.length&&l)){y.next=23;break}return y.next=21,Promise.all(n.map(function(S,b){return RF("".concat(t,".").concat(b),S,l,i,o)}));case 21:return h=y.sent,y.abrupt("return",h.reduce(function(S,b){return[].concat(pt(S),pt(b))},[]));case 23:return p=G(G({},r),{},{name:t,enum:(r.enum||[]).join(", ")},o),m=d.map(function(S){return typeof S=="string"?QVe(S,p):S}),y.abrupt("return",m);case 26:case"end":return y.stop()}},e,null,[[10,15]])})),AF.apply(this,arguments)}function ZVe(e,t,n,r,i,o){var a=e.join("."),s=n.map(function(u,d){var h=u.validator,p=G(G({},u),{},{ruleIndex:d});return h&&(p.validator=function(m,v,y){var S=!1,b=function(){for(var T=arguments.length,x=new Array(T),E=0;E<T;E++)x[E]=arguments[E];Promise.resolve().then(function(){fi(!S,"Your validator function has already return a promise. `callback` will be ignored."),S||y.apply(void 0,x)})},C=h(m,v,b);S=C&&typeof C.then=="function"&&typeof C.catch=="function",fi(S,"`callback` is deprecated. Please return a promise instead."),S&&C.then(function(){y()}).catch(function(_){y(_||" ")})}),p}).sort(function(u,d){var h=u.warningOnly,p=u.ruleIndex,m=d.warningOnly,v=d.ruleIndex;return!!h==!!m?p-v:h?1:-1}),l;if(i===!0)l=new Promise(function(){var u=Jo(Hr().mark(function d(h,p){var m,v,y;return Hr().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:m=0;case 1:if(!(m<s.length)){b.next=12;break}return v=s[m],b.next=5,RF(a,t,v,r,o);case 5:if(y=b.sent,!y.length){b.next=9;break}return p([{errors:y,rule:v}]),b.abrupt("return");case 9:m+=1,b.next=1;break;case 12:h([]);case 13:case"end":return b.stop()}},d)}));return function(d,h){return u.apply(this,arguments)}}());else{var c=s.map(function(u){return RF(a,t,u,r,o).then(function(d){return{errors:d,rule:u}})});l=(i?eKe(c):JVe(c)).then(function(u){return Promise.reject(u)})}return l.catch(function(u){return u}),l}function JVe(e){return NF.apply(this,arguments)}function NF(){return NF=Jo(Hr().mark(function e(t){return Hr().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,pt(i));return a}));case 1:case"end":return r.stop()}},e)})),NF.apply(this,arguments)}function eKe(e){return DF.apply(this,arguments)}function DF(){return DF=Jo(Hr().mark(function e(t){var n;return Hr().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(s){s.errors.length&&o([s]),n+=1,n===t.length&&o([])})})}));case 2:case"end":return i.stop()}},e)})),DF.apply(this,arguments)}function la(e){return OF(e)}function NJ(e,t){var n={};return t.forEach(function(r){var i=Bo(e,r);n=ua(n,r,i)}),n}function db(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return Rve(t,r,n)})}function Rve(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 tKe(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||ln(e)!=="object"||ln(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),i=new Set([].concat(n,r));return pt(i).every(function(o){var a=e[o],s=t[o];return typeof a=="function"&&typeof s=="function"?!0:a===s})}function nKe(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&ln(t.target)==="object"&&e in t.target?t.target[e]:t}function DJ(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(pt(e.slice(0,n)),[i],pt(e.slice(n,t)),pt(e.slice(t+1,r))):o<0?[].concat(pt(e.slice(0,t)),pt(e.slice(t+1,n+1)),[i],pt(e.slice(n+1,r))):e}var rKe=["name"],Jc=[];function OR(e,t,n,r,i,o){return typeof e=="function"?e(t,n,"source"in o?{source:o.source}:{}):r!==i}var ZU=function(e){Xs(n,e);var t=Sl(n);function n(r){var i;if(pi(this,n),i=t.call(this,r),ae(On(i),"state",{resetCount:0}),ae(On(i),"cancelRegisterFunc",null),ae(On(i),"mounted",!1),ae(On(i),"touched",!1),ae(On(i),"dirty",!1),ae(On(i),"validatePromise",void 0),ae(On(i),"prevValidating",void 0),ae(On(i),"errors",Jc),ae(On(i),"warnings",Jc),ae(On(i),"cancelRegister",function(){var l=i.props,c=l.preserve,u=l.isListField,d=l.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(u,c,la(d)),i.cancelRegisterFunc=null}),ae(On(i),"getNamePath",function(){var l=i.props,c=l.name,u=l.fieldContext,d=u.prefixName,h=d===void 0?[]:d;return c!==void 0?[].concat(pt(h),pt(c)):[]}),ae(On(i),"getRules",function(){var l=i.props,c=l.rules,u=c===void 0?[]:c,d=l.fieldContext;return u.map(function(h){return typeof h=="function"?h(d):h})}),ae(On(i),"refresh",function(){i.mounted&&i.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),ae(On(i),"metaCache",null),ae(On(i),"triggerMetaEvent",function(l){var c=i.props.onMetaChange;if(c){var u=G(G({},i.getMeta()),{},{destroy:l});ku(i.metaCache,u)||c(u),i.metaCache=u}else i.metaCache=null}),ae(On(i),"onStoreChange",function(l,c,u){var d=i.props,h=d.shouldUpdate,p=d.dependencies,m=p===void 0?[]:p,v=d.onReset,y=u.store,S=i.getNamePath(),b=i.getValue(l),C=i.getValue(y),_=c&&db(c,S);switch(u.type==="valueUpdate"&&u.source==="external"&&!ku(b,C)&&(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=Jc,i.warnings=Jc,i.triggerMetaEvent()),u.type){case"reset":if(!c||_){i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.errors=Jc,i.warnings=Jc,i.triggerMetaEvent(),v==null||v(),i.refresh();return}break;case"remove":{if(h&&OR(h,l,y,b,C,u)){i.reRender();return}break}case"setField":{var T=u.data;if(_){"touched"in T&&(i.touched=T.touched),"validating"in T&&!("originRCField"in T)&&(i.validatePromise=T.validating?Promise.resolve([]):null),"errors"in T&&(i.errors=T.errors||Jc),"warnings"in T&&(i.warnings=T.warnings||Jc),i.dirty=!0,i.triggerMetaEvent(),i.reRender();return}else if("value"in T&&db(c,S,!0)){i.reRender();return}if(h&&!S.length&&OR(h,l,y,b,C,u)){i.reRender();return}break}case"dependenciesUpdate":{var x=m.map(la);if(x.some(function(E){return db(u.relatedFields,E)})){i.reRender();return}break}default:if(_||(!m.length||S.length||h)&&OR(h,l,y,b,C,u)){i.reRender();return}break}h===!0&&i.reRender()}),ae(On(i),"validateRules",function(l){var c=i.getNamePath(),u=i.getValue(),d=l||{},h=d.triggerName,p=d.validateOnly,m=p===void 0?!1:p,v=Promise.resolve().then(Jo(Hr().mark(function y(){var S,b,C,_,T,x,E;return Hr().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:if(i.mounted){M.next=2;break}return M.abrupt("return",[]);case 2:if(S=i.props,b=S.validateFirst,C=b===void 0?!1:b,_=S.messageVariables,T=S.validateDebounce,x=i.getRules(),h&&(x=x.filter(function(P){return P}).filter(function(P){var D=P.validateTrigger;if(!D)return!0;var R=OF(D);return R.includes(h)})),!(T&&h)){M.next=10;break}return M.next=8,new Promise(function(P){setTimeout(P,T)});case 8:if(i.validatePromise===v){M.next=10;break}return M.abrupt("return",[]);case 10:return E=ZVe(c,u,x,l,C,_),E.catch(function(P){return P}).then(function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Jc;if(i.validatePromise===v){var D;i.validatePromise=null;var R=[],A=[];(D=P.forEach)===null||D===void 0||D.call(P,function(H){var F=H.rule.warningOnly,z=H.errors,W=z===void 0?Jc:z;F?A.push.apply(A,pt(W)):R.push.apply(R,pt(W))}),i.errors=R,i.warnings=A,i.triggerMetaEvent(),i.reRender()}}),M.abrupt("return",E);case 13:case"end":return M.stop()}},y)})));return m||(i.validatePromise=v,i.dirty=!0,i.errors=Jc,i.warnings=Jc,i.triggerMetaEvent(),i.reRender()),v}),ae(On(i),"isFieldValidating",function(){return!!i.validatePromise}),ae(On(i),"isFieldTouched",function(){return i.touched}),ae(On(i),"isFieldDirty",function(){if(i.dirty||i.props.initialValue!==void 0)return!0;var l=i.props.fieldContext,c=l.getInternalHooks(T1),u=c.getInitialValue;return u(i.getNamePath())!==void 0}),ae(On(i),"getErrors",function(){return i.errors}),ae(On(i),"getWarnings",function(){return i.warnings}),ae(On(i),"isListField",function(){return i.props.isListField}),ae(On(i),"isList",function(){return i.props.isList}),ae(On(i),"isPreserve",function(){return i.props.preserve}),ae(On(i),"getMeta",function(){i.prevValidating=i.isFieldValidating();var l={touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:i.validatePromise===null};return l}),ae(On(i),"getOnlyChild",function(l){if(typeof l=="function"){var c=i.getMeta();return G(G({},i.getOnlyChild(l(i.getControlled(),c,i.props.fieldContext))),{},{isFunction:!0})}var u=Uo(l);return u.length!==1||!f.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),ae(On(i),"getValue",function(l){var c=i.props.fieldContext.getFieldsValue,u=i.getNamePath();return Bo(l||c(!0),u)}),ae(On(i),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=i.props,u=c.name,d=c.trigger,h=c.validateTrigger,p=c.getValueFromEvent,m=c.normalize,v=c.valuePropName,y=c.getValueProps,S=c.fieldContext,b=h!==void 0?h:S.validateTrigger,C=i.getNamePath(),_=S.getInternalHooks,T=S.getFieldsValue,x=_(T1),E=x.dispatch,k=i.getValue(),M=y||function(H){return ae({},v,H)},P=l[d],D=u!==void 0?M(k):{},R=G(G({},l),D);R[d]=function(){i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var H,F=arguments.length,z=new Array(F),W=0;W<F;W++)z[W]=arguments[W];p?H=p.apply(void 0,z):H=nKe.apply(void 0,[v].concat(z)),m&&(H=m(H,k,T(!0))),H!==k&&E({type:"updateValue",namePath:C,value:H}),P&&P.apply(void 0,z)};var A=OF(b||[]);return A.forEach(function(H){var F=R[H];R[H]=function(){F&&F.apply(void 0,arguments);var z=i.props.rules;z&&z.length&&E({type:"validateField",namePath:C,triggerName:H})}}),R}),r.fieldContext){var o=r.fieldContext.getInternalHooks,a=o(T1),s=a.initEntityValue;s(On(i))}return i}return mi(n,[{key:"componentDidMount",value:function(){var i=this.props,o=i.shouldUpdate,a=i.fieldContext;if(this.mounted=!0,a){var s=a.getInternalHooks,l=s(T1),c=l.registerField;this.cancelRegisterFunc=c(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),s=a.child,l=a.isFunction,c;return l?c=s:f.isValidElement(s)?c=f.cloneElement(s,this.getControlled(s.props)):(fi(!s,"`children` of Field is not validate ReactElement."),c=s),f.createElement(f.Fragment,{key:i},c)}}]),n}(f.Component);ae(ZU,"contextType",rg);ae(ZU,"defaultProps",{trigger:"onChange",valuePropName:"value"});function JU(e){var t,n=e.name,r=tn(e,rKe),i=f.useContext(rg),o=f.useContext(m_),a=n!==void 0?la(n):void 0,s=(t=r.isListField)!==null&&t!==void 0?t:!!o,l="keep";return s||(l="_".concat((a||[]).join("_"))),f.createElement(ZU,ut({key:l,name:a,isListField:s},r,{fieldContext:i}))}function Ave(e){var t=e.name,n=e.initialValue,r=e.children,i=e.rules,o=e.validateTrigger,a=e.isListField,s=f.useContext(rg),l=f.useContext(m_),c=f.useRef({keys:[],id:0}),u=c.current,d=f.useMemo(function(){var v=la(s.prefixName)||[];return[].concat(pt(v),pt(la(t)))},[s.prefixName,t]),h=f.useMemo(function(){return G(G({},s),{},{prefixName:d})},[s,d]),p=f.useMemo(function(){return{getKey:function(y){var S=d.length,b=y[S];return[u.keys[b],y.slice(S+1)]}}},[d]);if(typeof r!="function")return fi(!1,"Form.List only accepts function as children."),null;var m=function(y,S,b){var C=b.source;return C==="internal"?!1:y!==S};return f.createElement(m_.Provider,{value:p},f.createElement(rg.Provider,{value:h},f.createElement(JU,{name:[],shouldUpdate:m,rules:i,validateTrigger:o,initialValue:n,isList:!0,isListField:a??!!l},function(v,y){var S=v.value,b=S===void 0?[]:S,C=v.onChange,_=s.getFieldValue,T=function(){var M=_(d||[]);return M||[]},x={add:function(M,P){var D=T();P>=0&&P<=D.length?(u.keys=[].concat(pt(u.keys.slice(0,P)),[u.id],pt(u.keys.slice(P))),C([].concat(pt(D.slice(0,P)),[M],pt(D.slice(P))))):(u.keys=[].concat(pt(u.keys),[u.id]),C([].concat(pt(D),[M]))),u.id+=1},remove:function(M){var P=T(),D=new Set(Array.isArray(M)?M:[M]);D.size<=0||(u.keys=u.keys.filter(function(R,A){return!D.has(A)}),C(P.filter(function(R,A){return!D.has(A)})))},move:function(M,P){if(M!==P){var D=T();M<0||M>=D.length||P<0||P>=D.length||(u.keys=DJ(u.keys,M,P),C(DJ(D,M,P)))}}},E=b||[];return Array.isArray(E)||(E=[]),r(E.map(function(k,M){var P=u.keys[M];return P===void 0&&(u.keys[M]=u.id,P=u.keys[M],u.id+=1),{name:M,key:P,isListField:!0}}),x,y)})))}function iKe(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(i,o){e.forEach(function(a,s){a.catch(function(l){return t=!0,l}).then(function(l){n-=1,r[s]=l,!(n>0)&&(t&&o(r),i(r))})})}):Promise.resolve([])}var Nve="__@field_split__";function PR(e){return e.map(function(t){return"".concat(ln(t),":").concat(t)}).join(Nve)}var X0=function(){function e(){pi(this,e),ae(this,"kvs",new Map)}return mi(e,[{key:"set",value:function(n,r){this.kvs.set(PR(n),r)}},{key:"get",value:function(n){return this.kvs.get(PR(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(PR(n))}},{key:"map",value:function(n){return pt(this.kvs.entries()).map(function(r){var i=Le(r,2),o=i[0],a=i[1],s=o.split(Nve);return n({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=Le(c,3),d=u[1],h=u[2];return d==="number"?Number(h):h}),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}(),oKe=["name"],aKe=mi(function e(t){var n=this;pi(this,e),ae(this,"formHooked",!1),ae(this,"forceRootUpdate",void 0),ae(this,"subscribable",!0),ae(this,"store",{}),ae(this,"fieldEntities",[]),ae(this,"initialValues",{}),ae(this,"callbacks",{}),ae(this,"validateMessages",null),ae(this,"preserve",null),ae(this,"lastValidatePromise",null),ae(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}}),ae(this,"getInternalHooks",function(r){return r===T1?(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}):(fi(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),ae(this,"useSubscribe",function(r){n.subscribable=r}),ae(this,"prevWithoutPreserves",null),ae(this,"setInitialValues",function(r,i){if(n.initialValues=r||{},i){var o,a=Uy(r,n.store);(o=n.prevWithoutPreserves)===null||o===void 0||o.map(function(s){var l=s.key;a=ua(a,l,Bo(r,l))}),n.prevWithoutPreserves=null,n.updateStore(a)}}),ae(this,"destroyForm",function(r){if(r)n.updateStore({});else{var i=new X0;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||i.set(o.getNamePath(),!0)}),n.prevWithoutPreserves=i}}),ae(this,"getInitialValue",function(r){var i=Bo(n.initialValues,r);return r.length?Uy(i):i}),ae(this,"setCallbacks",function(r){n.callbacks=r}),ae(this,"setValidateMessages",function(r){n.validateMessages=r}),ae(this,"setPreserve",function(r){n.preserve=r}),ae(this,"watchList",[]),ae(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(i){return i!==r})}}),ae(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)})}}),ae(this,"timeoutId",null),ae(this,"warningUnhooked",function(){}),ae(this,"updateStore",function(r){n.store=r}),ae(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}),ae(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=new X0;return n.getFieldEntities(r).forEach(function(o){var a=o.getNamePath();i.set(a,o)}),i}),ae(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var i=n.getFieldsMap(!0);return r.map(function(o){var a=la(o);return i.get(a)||{INVALIDATE_NAME_PATH:la(o)}})}),ae(this,"getFieldsValue",function(r,i){n.warningUnhooked();var o,a,s;if(r===!0||Array.isArray(r)?(o=r,a=i):r&&ln(r)==="object"&&(s=r.strict,a=r.filter),o===!0&&!a)return n.store;var l=n.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),c=[];return l.forEach(function(u){var d,h,p="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var m,v;if((m=(v=u).isList)!==null&&m!==void 0&&m.call(v))return}else if(!o&&(d=(h=u).isListField)!==null&&d!==void 0&&d.call(h))return;if(!a)c.push(p);else{var y="getMeta"in u?u.getMeta():null;a(y)&&c.push(p)}}),NJ(n.store,c.map(la))}),ae(this,"getFieldValue",function(r){n.warningUnhooked();var i=la(r);return Bo(n.store,i)}),ae(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:la(r[a]),errors:[],warnings:[]}})}),ae(this,"getFieldError",function(r){n.warningUnhooked();var i=la(r),o=n.getFieldsError([i])[0];return o.errors}),ae(this,"getFieldWarning",function(r){n.warningUnhooked();var i=la(r),o=n.getFieldsError([i])[0];return o.warnings}),ae(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],s=i[1],l,c=!1;i.length===0?l=null:i.length===1?Array.isArray(a)?(l=a.map(la),c=!1):(l=null,c=a):(l=a.map(la),c=s);var u=n.getFieldEntities(!0),d=function(y){return y.isFieldTouched()};if(!l)return c?u.every(function(v){return d(v)||v.isList()}):u.some(d);var h=new X0;l.forEach(function(v){h.set(v,[])}),u.forEach(function(v){var y=v.getNamePath();l.forEach(function(S){S.every(function(b,C){return y[C]===b})&&h.update(S,function(b){return[].concat(pt(b),[v])})})});var p=function(y){return y.some(d)},m=h.map(function(v){var y=v.value;return y});return c?m.every(p):m.some(p)}),ae(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),ae(this,"isFieldsValidating",function(r){n.warningUnhooked();var i=n.getFieldEntities();if(!r)return i.some(function(a){return a.isFieldValidating()});var o=r.map(la);return i.some(function(a){var s=a.getNamePath();return db(o,s)&&a.isFieldValidating()})}),ae(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),ae(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=new X0,o=n.getFieldEntities(!0);o.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var d=i.get(u)||new Set;d.add({entity:l,value:c}),i.set(u,d)}});var a=function(c){c.forEach(function(u){var d=u.props.initialValue;if(d!==void 0){var h=u.getNamePath(),p=n.getInitialValue(h);if(p!==void 0)fi(!1,"Form already set 'initialValues' with path '".concat(h.join("."),"'. Field can not overwrite it."));else{var m=i.get(h);if(m&&m.size>1)fi(!1,"Multiple Field with path '".concat(h.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(m){var v=n.getFieldValue(h),y=u.isListField();!y&&(!r.skipExist||v===void 0)&&n.updateStore(ua(n.store,h,pt(m)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(l){var c=i.get(l);if(c){var u;(u=s).push.apply(u,pt(pt(c).map(function(d){return d.entity})))}})):s=o,a(s)}),ae(this,"resetFields",function(r){n.warningUnhooked();var i=n.store;if(!r){n.updateStore(Uy(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(i,null,{type:"reset"}),n.notifyWatch();return}var o=r.map(la);o.forEach(function(a){var s=n.getInitialValue(a);n.updateStore(ua(n.store,a,s))}),n.resetWithFieldInitialValue({namePathList:o}),n.notifyObservers(i,o,{type:"reset"}),n.notifyWatch(o)}),ae(this,"setFields",function(r){n.warningUnhooked();var i=n.store,o=[];r.forEach(function(a){var s=a.name,l=tn(a,oKe),c=la(s);o.push(c),"value"in l&&n.updateStore(ua(n.store,c,l.value)),n.notifyObservers(i,[c],{type:"setField",data:a})}),n.notifyWatch(o)}),ae(this,"getFields",function(){var r=n.getFieldEntities(!0),i=r.map(function(o){var a=o.getNamePath(),s=o.getMeta(),l=G(G({},s),{},{name:a,value:n.getFieldValue(a)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return i}),ae(this,"initEntityValue",function(r){var i=r.props.initialValue;if(i!==void 0){var o=r.getNamePath(),a=Bo(n.store,o);a===void 0&&n.updateStore(ua(n.store,o,i))}}),ae(this,"isMergedPreserve",function(r){var i=r!==void 0?r:n.preserve;return i??!0}),ae(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,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(d){return d!==r}),!n.isMergedPreserve(s)&&(!a||l.length>1)){var c=a?void 0:n.getInitialValue(i);if(i.length&&n.getFieldValue(i)!==c&&n.fieldEntities.every(function(d){return!Rve(d.getNamePath(),i)})){var u=n.store;n.updateStore(ua(u,i,c,!0)),n.notifyObservers(u,[i],{type:"remove"}),n.triggerDependenciesUpdate(u,i)}}n.notifyWatch([i])}}),ae(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,s=r.triggerName;n.validateFields([a],{triggerName:s});break}}}),ae(this,"notifyObservers",function(r,i,o){if(n.subscribable){var a=G(G({},o),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(r,i,a)})}else n.forceRootUpdate()}),ae(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(pt(o))}),o}),ae(this,"updateValue",function(r,i){var o=la(r),a=n.store;n.updateStore(ua(n.store,o,i)),n.notifyObservers(a,[o],{type:"valueUpdate",source:"internal"}),n.notifyWatch([o]);var s=n.triggerDependenciesUpdate(a,o),l=n.callbacks.onValuesChange;if(l){var c=NJ(n.store,[o]);l(c,n.getFieldsValue())}n.triggerOnFieldsChange([o].concat(pt(s)))}),ae(this,"setFieldsValue",function(r){n.warningUnhooked();var i=n.store;if(r){var o=Uy(n.store,r);n.updateStore(o)}n.notifyObservers(i,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),ae(this,"setFieldValue",function(r,i){n.setFields([{name:r,value:i,errors:[],warnings:[]}])}),ae(this,"getDependencyChildrenFields",function(r){var i=new Set,o=[],a=new X0;n.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var d=la(u);a.update(d,function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return h.add(l),h})})});var s=function l(c){var u=a.get(c)||new Set;u.forEach(function(d){if(!i.has(d)){i.add(d);var h=d.getNamePath();d.isFieldDirty()&&h.length&&(o.push(h),l(h))}})};return s(r),o}),ae(this,"triggerOnFieldsChange",function(r,i){var o=n.callbacks.onFieldsChange;if(o){var a=n.getFields();if(i){var s=new X0;i.forEach(function(c){var u=c.name,d=c.errors;s.set(u,d)}),a.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=a.filter(function(c){var u=c.name;return db(r,u)});l.length&&o(l,a)}}),ae(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 s=!!o,l=s?o.map(la):[],c=[],u=String(Date.now()),d=new Set,h=a||{},p=h.recursive,m=h.dirty;n.getFieldEntities(!0).forEach(function(b){if(s||l.push(b.getNamePath()),!(!b.props.rules||!b.props.rules.length)&&!(m&&!b.isFieldDirty())){var C=b.getNamePath();if(d.add(C.join(u)),!s||db(l,C,p)){var _=b.validateRules(G({validateMessages:G(G({},$ve),n.validateMessages)},a));c.push(_.then(function(){return{name:C,errors:[],warnings:[]}}).catch(function(T){var x,E=[],k=[];return(x=T.forEach)===null||x===void 0||x.call(T,function(M){var P=M.rule.warningOnly,D=M.errors;P?k.push.apply(k,pt(D)):E.push.apply(E,pt(D))}),E.length?Promise.reject({name:C,errors:E,warnings:k}):{name:C,errors:E,warnings:k}}))}}});var v=iKe(c);n.lastValidatePromise=v,v.catch(function(b){return b}).then(function(b){var C=b.map(function(_){var T=_.name;return T});n.notifyObservers(n.store,C,{type:"validateFinish"}),n.triggerOnFieldsChange(C,b)});var y=v.then(function(){return n.lastValidatePromise===v?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(b){var C=b.filter(function(_){return _&&_.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:C,outOfDate:n.lastValidatePromise!==v})});y.catch(function(b){return b});var S=l.filter(function(b){return d.has(b.join(u))});return n.triggerOnFieldsChange(S),y}),ae(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 eW(e){var t=f.useRef(),n=f.useState({}),r=Le(n,2),i=r[1];if(!t.current)if(e)t.current=e;else{var o=function(){i({})},a=new aKe(o);t.current=a.getForm()}return[t.current]}var LF=f.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Dve=function(t){var n=t.validateMessages,r=t.onFormChange,i=t.onFormFinish,o=t.children,a=f.useContext(LF),s=f.useRef({});return f.createElement(LF.Provider,{value:G(G({},a),{},{validateMessages:G(G({},a.validateMessages),n),triggerFormChange:function(c,u){r&&r(c,{changedFields:u,forms:s.current}),a.triggerFormChange(c,u)},triggerFormFinish:function(c,u){i&&i(c,{values:u,forms:s.current}),a.triggerFormFinish(c,u)},registerForm:function(c,u){c&&(s.current=G(G({},s.current),{},ae({},c,u))),a.registerForm(c,u)},unregisterForm:function(c){var u=G({},s.current);delete u[c],s.current=u,a.unregisterForm(c)}})},o)},sKe=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],lKe=function(t,n){var r=t.name,i=t.initialValues,o=t.fields,a=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,d=t.validateMessages,h=t.validateTrigger,p=h===void 0?"onChange":h,m=t.onValuesChange,v=t.onFieldsChange,y=t.onFinish,S=t.onFinishFailed,b=t.clearOnDestroy,C=tn(t,sKe),_=f.useRef(null),T=f.useContext(LF),x=eW(a),E=Le(x,1),k=E[0],M=k.getInternalHooks(T1),P=M.useSubscribe,D=M.setInitialValues,R=M.setCallbacks,A=M.setValidateMessages,H=M.setPreserve,F=M.destroyForm;f.useImperativeHandle(n,function(){return G(G({},k),{},{nativeElement:_.current})}),f.useEffect(function(){return T.registerForm(r,k),function(){T.unregisterForm(r)}},[T,k,r]),A(G(G({},T.validateMessages),d)),R({onValuesChange:m,onFieldsChange:function(ie){if(T.triggerFormChange(r,ie),v){for(var ce=arguments.length,fe=new Array(ce>1?ce-1:0),ee=1;ee<ce;ee++)fe[ee-1]=arguments[ee];v.apply(void 0,[ie].concat(fe))}},onFinish:function(ie){T.triggerFormFinish(r,ie),y&&y(ie)},onFinishFailed:S}),H(s);var z=f.useRef(null);D(i,!z.current),z.current||(z.current=!0),f.useEffect(function(){return function(){return F(b)}},[]);var W,q=typeof l=="function";if(q){var Z=k.getFieldsValue(!0);W=l(Z,k)}else W=l;P(!q);var N=f.useRef();f.useEffect(function(){tKe(N.current||[],o||[])||k.setFields(o||[]),N.current=o},[o,k]);var B=f.useMemo(function(){return G(G({},k),{},{validateTrigger:p})},[k,p]),V=f.createElement(m_.Provider,{value:null},f.createElement(rg.Provider,{value:B},W));return u===!1?V:f.createElement(u,ut({},C,{ref:_,onSubmit:function(ie){ie.preventDefault(),ie.stopPropagation(),k.submit()},onReset:function(ie){var ce;ie.preventDefault(),k.resetFields(),(ce=C.onReset)===null||ce===void 0||ce.call(C,ie)}}),V)};function LJ(e){try{return JSON.stringify(e)}catch{return Math.random()}}function Lve(){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=bVe(o)?{form:o}:o,s=a.form,l=f.useState(),c=Le(l,2),u=c[0],d=c[1],h=f.useMemo(function(){return LJ(u)},[u]),p=f.useRef(h);p.current=h;var m=f.useContext(rg),v=s||m,y=v&&v._init,S=la(r),b=f.useRef(S);return b.current=S,f.useEffect(function(){if(y){var C=v.getFieldsValue,_=v.getInternalHooks,T=_(T1),x=T.registerWatch,E=function(D,R){var A=a.preserve?R:D;return typeof r=="function"?r(A):Bo(A,b.current)},k=x(function(P,D){var R=E(P,D),A=LJ(R);p.current!==A&&(p.current=A,d(R))}),M=E(C(),C(!0));return u!==M&&d(M),k}},[y]),u}var cKe=f.forwardRef(lKe),XS=cKe;XS.FormProvider=Dve;XS.Field=JU;XS.List=Ave;XS.useForm=eW;XS.useWatch=Lve;const pp=f.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),Fve=f.createContext(null),jve=e=>{const t=Pr(e,["prefixCls"]);return f.createElement(Dve,Object.assign({},t))},tW=f.createContext({prefixCls:""}),pa=f.createContext({}),uKe=e=>{let{children:t,status:n,override:r}=e;const i=f.useContext(pa),o=f.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 f.createElement(pa.Provider,{value:o},t)},Bve=f.createContext(void 0),zd=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let i=r;return n&&(i=ge.createElement(uKe,{override:!0,status:!0},i)),t&&(i=ge.createElement(gUe,null,i)),i};function Zb(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function FJ(e){const{closable:t,closeIcon:n}=e||{};return ge.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 jJ(){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 dKe={};function nW(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:dKe;const r=FJ(e),i=FJ(t),o=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,a=ge.useMemo(()=>Object.assign({closeIcon:ge.createElement(nh,null)},n),[n]),s=ge.useMemo(()=>r===!1?!1:r?jJ(a,i,r):i===!1?!1:i?jJ(a,i):a.closable?a:!1,[r,i,a]);return ge.useMemo(()=>{if(s===!1)return[!1,null,o];const{closeIconRender:l}=a,{closeIcon:c}=s;let u=c;if(u!=null){l&&(u=l(c));const d=Hi(s,!0);Object.keys(d).length&&(u=ge.isValidElement(u)?ge.cloneElement(u,d):ge.createElement("span",Object.assign({},d),u))}return[!0,u,o]},[s,a])}var Hve=function(t){if(ml()&&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},fKe=function(t,n){if(!Hve(t))return!1;var r=document.createElement("div"),i=r.style[t];return r.style[t]=n,r.style[t]!==i};function FF(e,t){return!Array.isArray(e)&&t!==void 0?fKe(e,t):Hve(e)}const hKe=()=>ml()&&window.document.documentElement,WO=e=>{const{prefixCls:t,className:n,style:r,size:i,shape:o}=e,a=Re({[`${t}-lg`]:i==="large",[`${t}-sm`]:i==="small"}),s=Re({[`${t}-circle`]:o==="circle",[`${t}-square`]:o==="square",[`${t}-round`]:o==="round"}),l=f.useMemo(()=>typeof i=="number"?{width:i,height:i,lineHeight:`${i}px`}:{},[i]);return f.createElement("span",{className:Re(t,a,s,n),style:Object.assign(Object.assign({},l),r)})},pKe=new Mr("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),VO=e=>({height:e,lineHeight:je(e)}),fb=e=>Object.assign({width:e},VO(e)),mKe=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:pKe,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),MR=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},VO(e)),gKe=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:i,controlHeightSM:o}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},fb(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},fb(i)),[`${t}${t}-sm`]:Object.assign({},fb(o))}},vKe=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:i,controlHeightSM:o,gradientFromColor:a,calc:s}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},MR(t,s)),[`${r}-lg`]:Object.assign({},MR(i,s)),[`${r}-sm`]:Object.assign({},MR(o,s))}},BJ=e=>Object.assign({width:e},VO(e)),yKe=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},BJ(o(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},BJ(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%"}}},IR=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},$R=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},VO(e)),bKe=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:i,controlHeightSM:o,gradientFromColor:a,calc:s}=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:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal()},$R(r,s))},IR(e,r,n)),{[`${n}-lg`]:Object.assign({},$R(i,s))}),IR(e,i,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},$R(o,s))}),IR(e,o,`${n}-sm`))},SKe=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:i,skeletonButtonCls:o,skeletonInputCls:a,skeletonImageCls:s,controlHeight:l,controlHeightLG:c,controlHeightSM:u,gradientFromColor:d,padding:h,marginSM:p,borderRadius:m,titleHeight:v,blockRadius:y,paragraphLiHeight:S,controlHeightXS:b,paragraphMarginTop:C}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:h,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:d},fb(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},fb(c)),[`${n}-sm`]:Object.assign({},fb(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:v,background:d,borderRadius:y,[`+ ${i}`]:{marginBlockStart:u}},[i]:{padding:0,"> li":{width:"100%",height:S,listStyle:"none",background:d,borderRadius:y,"+ li":{marginBlockStart:b}}},[`${i}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${i} > li`]:{borderRadius:m}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:p,[`+ ${i}`]:{marginBlockStart:C}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},bKe(e)),gKe(e)),vKe(e)),yKe(e)),[`${t}${t}-block`]:{width:"100%",[o]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[`
|
||
${r},
|
||
${i} > li,
|
||
${n},
|
||
${o},
|
||
${a},
|
||
${s}
|
||
`]:Object.assign({},mKe(e))}}},CKe=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}},QS=Tr("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=ur(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[SKe(r)]},CKe,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),xKe=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,shape:o="circle",size:a="default"}=e,{getPrefixCls:s}=f.useContext(hn),l=s("skeleton",t),[c,u,d]=QS(l),h=Pr(e,["prefixCls","className"]),p=Re(l,`${l}-element`,{[`${l}-active`]:i},n,r,u,d);return c(f.createElement("div",{className:p},f.createElement(WO,Object.assign({prefixCls:`${l}-avatar`,shape:o,size:a},h))))},wKe=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:o=!1,size:a="default"}=e,{getPrefixCls:s}=f.useContext(hn),l=s("skeleton",t),[c,u,d]=QS(l),h=Pr(e,["prefixCls"]),p=Re(l,`${l}-element`,{[`${l}-active`]:i,[`${l}-block`]:o},n,r,u,d);return c(f.createElement("div",{className:p},f.createElement(WO,Object.assign({prefixCls:`${l}-button`,size:a},h))))},_Ke="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",EKe=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:o}=e,{getPrefixCls:a}=f.useContext(hn),s=a("skeleton",t),[l,c,u]=QS(s),d=Re(s,`${s}-element`,{[`${s}-active`]:o},n,r,c,u);return l(f.createElement("div",{className:d},f.createElement("div",{className:Re(`${s}-image`,n),style:i},f.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},f.createElement("title",null,"Image placeholder"),f.createElement("path",{d:_Ke,className:`${s}-image-path`})))))},TKe=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:o,size:a="default"}=e,{getPrefixCls:s}=f.useContext(hn),l=s("skeleton",t),[c,u,d]=QS(l),h=Pr(e,["prefixCls"]),p=Re(l,`${l}-element`,{[`${l}-active`]:i,[`${l}-block`]:o},n,r,u,d);return c(f.createElement("div",{className:p},f.createElement(WO,Object.assign({prefixCls:`${l}-input`,size:a},h))))},kKe=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:o,children:a}=e,{getPrefixCls:s}=f.useContext(hn),l=s("skeleton",t),[c,u,d]=QS(l),h=Re(l,`${l}-element`,{[`${l}-active`]:o},u,n,r,d);return c(f.createElement("div",{className:h},f.createElement("div",{className:Re(`${l}-image`,n),style:i},a)))},OKe=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},PKe=e=>{const{prefixCls:t,className:n,style:r,rows:i}=e,o=pt(new Array(i)).map((a,s)=>f.createElement("li",{key:s,style:{width:OKe(s,e)}}));return f.createElement("ul",{className:Re(t,n),style:r},o)},MKe=e=>{let{prefixCls:t,className:n,width:r,style:i}=e;return f.createElement("h3",{className:Re(t,n),style:Object.assign({width:r},i)})};function RR(e){return e&&typeof e=="object"?e:{}}function IKe(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function $Ke(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function RKe(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const kp=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:i,style:o,children:a,avatar:s=!1,title:l=!0,paragraph:c=!0,active:u,round:d}=e,{getPrefixCls:h,direction:p,skeleton:m}=f.useContext(hn),v=h("skeleton",t),[y,S,b]=QS(v);if(n||!("loading"in e)){const C=!!s,_=!!l,T=!!c;let x;if(C){const M=Object.assign(Object.assign({prefixCls:`${v}-avatar`},IKe(_,T)),RR(s));x=f.createElement("div",{className:`${v}-header`},f.createElement(WO,Object.assign({},M)))}let E;if(_||T){let M;if(_){const D=Object.assign(Object.assign({prefixCls:`${v}-title`},$Ke(C,T)),RR(l));M=f.createElement(MKe,Object.assign({},D))}let P;if(T){const D=Object.assign(Object.assign({prefixCls:`${v}-paragraph`},RKe(C,_)),RR(c));P=f.createElement(PKe,Object.assign({},D))}E=f.createElement("div",{className:`${v}-content`},M,P)}const k=Re(v,{[`${v}-with-avatar`]:C,[`${v}-active`]:u,[`${v}-rtl`]:p==="rtl",[`${v}-round`]:d},m==null?void 0:m.className,r,i,S,b);return y(f.createElement("div",{className:k,style:Object.assign(Object.assign({},m==null?void 0:m.style),o)},x,E))}return a??null};kp.Button=wKe;kp.Avatar=xKe;kp.Input=TKe;kp.Image=EKe;kp.Node=kKe;function HJ(){}const AKe=f.createContext({add:HJ,remove:HJ});function zve(e){const t=f.useContext(AKe),n=f.useRef(null);return cr(i=>{if(i){const o=e?i.querySelector(e):i;t.add(o),n.current=o}else t.remove(n.current)})}const zJ=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=f.useContext(SE);return ge.createElement(hr,Object.assign({onClick:n},e),t)},UJ=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:i}=f.useContext(SE);return ge.createElement(hr,Object.assign({},zU(n),{loading:e,onClick:i},t),r)};function Uve(e,t){return ge.createElement("span",{className:`${e}-close-x`},t||ge.createElement(nh,{className:`${e}-close-icon`}))}const Wve=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:i,onOk:o,onCancel:a,okButtonProps:s,cancelButtonProps:l,footer:c}=e,[u]=Os("Modal",d1e()),d=t||(u==null?void 0:u.okText),h=r||(u==null?void 0:u.cancelText),p={confirmLoading:i,okButtonProps:s,cancelButtonProps:l,okTextLocale:d,cancelTextLocale:h,okType:n,onOk:o,onCancel:a},m=ge.useMemo(()=>p,pt(Object.values(p)));let v;return typeof c=="function"||typeof c>"u"?(v=ge.createElement(ge.Fragment,null,ge.createElement(zJ,null),ge.createElement(UJ,null)),typeof c=="function"&&(v=c(v,{OkBtn:UJ,CancelBtn:zJ})),v=ge.createElement(Eve,{value:m},v)):v=c,ge.createElement(AU,{disabled:!1},v)},NKe=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"}}}},DKe=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},LKe=(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},jF=(e,t)=>LKe(e,t),FKe=(e,t,n)=>({[`@media (min-width: ${je(t)})`]:Object.assign({},jF(e,n))}),jKe=()=>({}),BKe=()=>({}),HKe=Tr("Grid",NKe,jKe),Vve=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),zKe=Tr("Grid",e=>{const t=ur(e,{gridColumns:24}),n=Vve(t);return delete n.xs,[DKe(t),jF(t,""),jF(t,"-xs"),Object.keys(n).map(r=>FKe(t,n[r],`-${r}`)).reduce((r,i)=>Object.assign(Object.assign({},r),i),{})]},BKe);function WJ(e){return{position:e,inset:0}}const Kve=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({},WJ("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},WJ("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:VU(e)}]},UKe=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:`${je(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},$r(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${je(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:je(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},gl(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${je(e.borderRadiusLG)} ${je(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:`${je(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"}}}]},WKe=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},VKe=e=>{const{componentCls:t}=e,n=Vve(e);delete n.xs;const r=Object.keys(n).map(i=>({[`@media (min-width: ${je(n[i])})`]:{width:`var(--${t.replace(".","")}-${i}-width)`}}));return{[`${t}-root`]:{[t]:[{width:`var(--${t.replace(".","")}-xs-width)`}].concat(pt(r))}}},qve=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return ur(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()})},Gve=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${je(e.paddingMD)} ${je(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${je(e.padding)} ${je(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${je(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${je(e.paddingXS)} ${je(e.padding)}`:0,footerBorderTop:e.wireframe?`${je(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${je(e.borderRadiusLG)} ${je(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${je(e.padding*2)} ${je(e.padding*2)} ${je(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),Yve=Tr("Modal",e=>{const t=qve(e);return[UKe(t),WKe(t),Kve(t),YS(t,"zoom"),VKe(t)]},Gve,{unitless:{titleLineHeight:!0}});var KKe=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 BF;const qKe=e=>{BF={x:e.pageX,y:e.pageY},setTimeout(()=>{BF=null},100)};hKe()&&document.documentElement.addEventListener("click",qKe,!0);const Xve=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:i,modal:o}=f.useContext(hn),a=fe=>{const{onCancel:ee}=e;ee==null||ee(fe)},s=fe=>{const{onOk:ee}=e;ee==null||ee(fe)},{prefixCls:l,className:c,rootClassName:u,open:d,wrapClassName:h,centered:p,getContainer:m,focusTriggerAfterClose:v=!0,style:y,visible:S,width:b=520,footer:C,classNames:_,styles:T,children:x,loading:E}=e,k=KKe(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading"]),M=r("modal",l),P=r(),D=_i(M),[R,A,H]=Yve(M,D),F=Re(h,{[`${M}-centered`]:!!p,[`${M}-wrap-rtl`]:i==="rtl"}),z=C!==null&&!E?f.createElement(Wve,Object.assign({},e,{onOk:s,onCancel:a})):null,[W,q,Z]=nW(Zb(e),Zb(o),{closable:!0,closeIcon:f.createElement(nh,{className:`${M}-close-icon`}),closeIconRender:fe=>Uve(M,fe)}),N=zve(`.${M}-content`),[B,V]=Du("Modal",k.zIndex),[Y,ie]=f.useMemo(()=>b&&typeof b=="object"?[void 0,b]:[b,void 0],[b]),ce=f.useMemo(()=>{const fe={};return ie&&Object.keys(ie).forEach(ee=>{const ne=ie[ee];ne!==void 0&&(fe[`--${M}-${ee}-width`]=typeof ne=="number"?`${ne}px`:ne)}),fe},[ie]);return R(f.createElement(zd,{form:!0,space:!0},f.createElement(gE.Provider,{value:V},f.createElement(QU,Object.assign({width:Y},k,{zIndex:B,getContainer:m===void 0?n:m,prefixCls:M,rootClassName:Re(A,u,H,D),footer:z,visible:d??S,mousePosition:(t=k.mousePosition)!==null&&t!==void 0?t:BF,onClose:a,closable:W&&{disabled:Z,closeIcon:q},closeIcon:q,focusTriggerAfterClose:v,transitionName:as(P,"zoom",e.transitionName),maskTransitionName:as(P,"fade",e.maskTransitionName),className:Re(A,c,o==null?void 0:o.className),style:Object.assign(Object.assign(Object.assign({},o==null?void 0:o.style),y),ce),classNames:Object.assign(Object.assign(Object.assign({},o==null?void 0:o.classNames),_),{wrapper:Re(F,_==null?void 0:_.wrapper)}),styles:Object.assign(Object.assign({},o==null?void 0:o.styles),T),panelRef:N}),E?f.createElement(kp,{active:!0,title:!1,paragraph:{rows:4},className:`${M}-body-skeleton`}):x))))},GKe=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:i,fontSize:o,lineHeight:a,modalTitleHeight:s,fontHeight:l,confirmBodyPadding:c}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${u}-body-wrapper`]:Object.assign({},Fd()),[`&${t} ${t}-body`]:{padding:c},[`${u}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:i,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(l).sub(i).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(i).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${je(e.marginSM)})`},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${je(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${u}-content`]:{color:e.colorText,fontSize:o,lineHeight:a},[`${u}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${u}-error ${u}-body > ${e.iconCls}`]:{color:e.colorError},[`${u}-warning ${u}-body > ${e.iconCls},
|
||
${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},YKe=KS(["Modal","confirm"],e=>{const t=qve(e);return[GKe(t)]},Gve,{order:-1e3});var XKe=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 Qve(e){const{prefixCls:t,icon:n,okText:r,cancelText:i,confirmPrefixCls:o,type:a,okCancel:s,footer:l,locale:c}=e,u=XKe(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let d=n;if(!n&&n!==null)switch(a){case"info":d=f.createElement(PO,null);break;case"success":d=f.createElement(Gv,null);break;case"error":d=f.createElement(th,null);break;default:d=f.createElement(gg,null)}const h=s??a==="confirm",p=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[m]=Os("Modal"),v=c||m,y=r||(h?v==null?void 0:v.okText:v==null?void 0:v.justOkText),S=i||(v==null?void 0:v.cancelText),b=Object.assign({autoFocusButton:p,cancelTextLocale:S,okTextLocale:y,mergedOkCancel:h},u),C=f.useMemo(()=>b,pt(Object.values(b))),_=f.createElement(f.Fragment,null,f.createElement(yJ,null),f.createElement(bJ,null)),T=e.title!==void 0&&e.title!==null,x=`${o}-body`;return f.createElement("div",{className:`${o}-body-wrapper`},f.createElement("div",{className:Re(x,{[`${x}-has-title`]:T})},d,f.createElement("div",{className:`${o}-paragraph`},T&&f.createElement("span",{className:`${o}-title`},e.title),f.createElement("div",{className:`${o}-content`},e.content))),l===void 0||typeof l=="function"?f.createElement(Eve,{value:C},f.createElement("div",{className:`${o}-btns`},typeof l=="function"?l(_,{OkBtn:bJ,CancelBtn:yJ}):_)):l,f.createElement(YKe,{prefixCls:t}))}const QKe=e=>{const{close:t,zIndex:n,maskStyle:r,direction:i,prefixCls:o,wrapClassName:a,rootPrefixCls:s,bodyStyle:l,closable:c=!1,onConfirm:u,styles:d}=e,h=`${o}-confirm`,p=e.width||416,m=e.style||{},v=e.mask===void 0?!0:e.mask,y=e.maskClosable===void 0?!1:e.maskClosable,S=Re(h,`${h}-${e.type}`,{[`${h}-rtl`]:i==="rtl"},e.className),[,b]=na(),C=f.useMemo(()=>n!==void 0?n:b.zIndexPopupBase+jU,[n,b]);return f.createElement(Xve,Object.assign({},e,{className:S,wrapClassName:Re({[`${h}-centered`]:!!e.centered},a),onCancel:()=>{t==null||t({triggerCancel:!0}),u==null||u(!1)},title:"",footer:null,transitionName:as(s||"","zoom",e.transitionName),maskTransitionName:as(s||"","fade",e.maskTransitionName),mask:v,maskClosable:y,style:m,styles:Object.assign({body:l,mask:r},d),width:p,zIndex:C,closable:c}),f.createElement(Qve,Object.assign({},e,{confirmPrefixCls:h})))},Zve=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:i}=e;return f.createElement(or,{prefixCls:t,iconPrefixCls:n,direction:r,theme:i},f.createElement(QKe,Object.assign({},e)))},k1=[];let Jve="";function e0e(){return Jve}const ZKe=e=>{var t,n;const{prefixCls:r,getContainer:i,direction:o}=e,a=d1e(),s=f.useContext(hn),l=e0e()||s.getPrefixCls(),c=r||`${l}-modal`;let u=i;return u===!1&&(u=void 0),ge.createElement(Zve,Object.assign({},e,{rootPrefixCls:l,prefixCls:c,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:o??s.direction,locale:(n=(t=s.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:a,getContainer:u}))};function wE(e){const t=V1e(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:l,open:!0}),i,o;function a(){for(var u,d=arguments.length,h=new Array(d),p=0;p<d;p++)h[p]=arguments[p];if(h.some(y=>y==null?void 0:y.triggerCancel)){var v;(u=e.onCancel)===null||u===void 0||(v=u).call.apply(v,[e,()=>{}].concat(pt(h.slice(1))))}for(let y=0;y<k1.length;y++)if(k1[y]===l){k1.splice(y,1);break}o()}function s(u){clearTimeout(i),i=setTimeout(()=>{const d=t.getPrefixCls(void 0,e0e()),h=t.getIconPrefixCls(),p=t.getTheme(),m=ge.createElement(ZKe,Object.assign({},u));o=HU()(ge.createElement(or,{prefixCls:d,iconPrefixCls:h,theme:p},t.holderRender?t.holderRender(m):m),n)})}function l(){for(var u=arguments.length,d=new Array(u),h=0;h<u;h++)d[h]=arguments[h];r=Object.assign(Object.assign({},r),{open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),a.apply(this,d)}}),r.visible&&delete r.visible,s(r)}function c(u){typeof u=="function"?r=u(r):r=Object.assign(Object.assign({},r),u),s(r)}return s(r),k1.push(l),{destroy:l,update:c}}function t0e(e){return Object.assign(Object.assign({},e),{type:"warning"})}function n0e(e){return Object.assign(Object.assign({},e),{type:"info"})}function r0e(e){return Object.assign(Object.assign({},e),{type:"success"})}function i0e(e){return Object.assign(Object.assign({},e),{type:"error"})}function o0e(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function JKe(e){let{rootPrefixCls:t}=e;Jve=t}var eqe=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 tqe=(e,t)=>{var n,{afterClose:r,config:i}=e,o=eqe(e,["afterClose","config"]);const[a,s]=f.useState(!0),[l,c]=f.useState(i),{direction:u,getPrefixCls:d}=f.useContext(hn),h=d("modal"),p=d(),m=()=>{var b;r(),(b=l.afterClose)===null||b===void 0||b.call(l)},v=function(){var b;s(!1);for(var C=arguments.length,_=new Array(C),T=0;T<C;T++)_[T]=arguments[T];if(_.some(k=>k==null?void 0:k.triggerCancel)){var E;(b=l.onCancel)===null||b===void 0||(E=b).call.apply(E,[l,()=>{}].concat(pt(_.slice(1))))}};f.useImperativeHandle(t,()=>({destroy:v,update:b=>{c(C=>Object.assign(Object.assign({},C),b))}}));const y=(n=l.okCancel)!==null&&n!==void 0?n:l.type==="confirm",[S]=Os("Modal",Fc.Modal);return f.createElement(Zve,Object.assign({prefixCls:h,rootPrefixCls:p},l,{close:v,open:a,afterClose:m,okText:l.okText||(y?S==null?void 0:S.okText:S==null?void 0:S.justOkText),direction:l.direction||u,cancelText:l.cancelText||(S==null?void 0:S.cancelText)},o))},nqe=f.forwardRef(tqe);let VJ=0;const rqe=f.memo(f.forwardRef((e,t)=>{const[n,r]=Gze();return f.useImperativeHandle(t,()=>({patchElement:r}),[]),f.createElement(f.Fragment,null,n)}));function a0e(){const e=f.useRef(null),[t,n]=f.useState([]);f.useEffect(()=>{t.length&&(pt(t).forEach(a=>{a()}),n([]))},[t]);const r=f.useCallback(o=>function(s){var l;VJ+=1;const c=f.createRef();let u;const d=new Promise(y=>{u=y});let h=!1,p;const m=f.createElement(nqe,{key:`modal-${VJ}`,config:o(s),ref:c,afterClose:()=>{p==null||p()},isSilent:()=>h,onConfirm:y=>{u(y)}});return p=(l=e.current)===null||l===void 0?void 0:l.patchElement(m),p&&k1.push(p),{destroy:()=>{function y(){var S;(S=c.current)===null||S===void 0||S.destroy()}c.current?y():n(S=>[].concat(pt(S),[y]))},update:y=>{function S(){var b;(b=c.current)===null||b===void 0||b.update(y)}c.current?S():n(b=>[].concat(pt(b),[S]))},then:y=>(h=!0,d.then(y))}},[]);return[f.useMemo(()=>({info:r(n0e),success:r(r0e),error:r(i0e),warning:r(t0e),confirm:r(o0e)}),[]),f.createElement(rqe,{key:"modal-holder",ref:e})]}const iqe=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,i=`${t}-notice`,o=new Mr("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),a=new Mr("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),s=new Mr("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),l=new Mr("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[i]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:s}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:o}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[i]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}}}}},oqe=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],aqe={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},sqe=(e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[aqe[t]]:{value:0,_skip_check_:!0}}}}},lqe=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={overflow:"hidden",[`& > ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},cqe=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return Object.assign({},t)},uqe=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},lqe(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},cqe(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},oqe.map(n=>sqe(e,n)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{}))},dqe=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:i,notificationMarginBottom:o,borderRadiusLG:a,colorSuccess:s,colorInfo:l,colorWarning:c,colorError:u,colorTextHeading:d,notificationBg:h,notificationPadding:p,notificationMarginEdge:m,notificationProgressBg:v,notificationProgressHeight:y,fontSize:S,lineHeight:b,width:C,notificationIconSize:_,colorText:T}=e,x=`${n}-notice`;return{position:"relative",marginBottom:o,marginInlineStart:"auto",background:h,borderRadius:a,boxShadow:r,[x]:{padding:p,width:C,maxWidth:`calc(100vw - ${je(e.calc(m).mul(2).equal())})`,overflow:"hidden",lineHeight:b,wordWrap:"break-word"},[`${x}-message`]:{marginBottom:e.marginXS,color:d,fontSize:i,lineHeight:e.lineHeightLG},[`${x}-description`]:{fontSize:S,color:T},[`${x}-closable ${x}-message`]:{paddingInlineEnd:e.paddingLG},[`${x}-with-icon ${x}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(_).equal(),fontSize:i},[`${x}-with-icon ${x}-description`]:{marginInlineStart:e.calc(e.marginSM).add(_).equal(),fontSize:S},[`${x}-icon`]:{position:"absolute",fontSize:_,lineHeight:1,[`&-success${t}`]:{color:s},[`&-info${t}`]:{color:l},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${x}-close`]:Object.assign({position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},gl(e)),[`${x}-progress`]:{position:"absolute",display:"block",appearance:"none",WebkitAppearance:"none",inlineSize:`calc(100% - ${je(a)} * 2)`,left:{_skip_check_:!0,value:a},right:{_skip_check_:!0,value:a},bottom:0,blockSize:y,border:0,"&, &::-webkit-progress-bar":{borderRadius:a,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:v},"&::-webkit-progress-value":{borderRadius:a,background:v}},[`${x}-btn`]:{float:"right",marginTop:e.marginSM}}},fqe=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:i,motionEaseInOut:o}=e,a=`${t}-notice`,s=new Mr("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},$r(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:o,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:o,animationFillMode:"both",animationDuration:i,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:s,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${a}-btn`]:{float:"left"}}})},{[t]:{[`${a}-wrapper`]:Object.assign({},dqe(e))}}]},hqe=e=>({zIndexPopup:e.zIndexPopupBase+jU+50,width:384}),pqe=e=>{const t=e.paddingMD,n=e.paddingLG;return ur(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${je(e.paddingMD)} ${je(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},mqe=Tr("Notification",e=>{const t=pqe(e);return[fqe(t),iqe(t),uqe(t)]},hqe);function s0e(e,t){return t===null||t===!1?null:t||f.createElement(nh,{className:`${e}-close-icon`})}const gqe={success:Gv,info:PO,error:th,warning:gg},vqe=e=>{const{prefixCls:t,icon:n,type:r,message:i,description:o,btn:a,role:s="alert"}=e;let l=null;return n?l=f.createElement("span",{className:`${t}-icon`},n):r&&(l=f.createElement(gqe[r]||null,{className:Re(`${t}-icon`,`${t}-icon-${r}`)})),f.createElement("div",{className:Re({[`${t}-with-icon`]:l}),role:s},l,f.createElement("div",{className:`${t}-message`},i),f.createElement("div",{className:`${t}-description`},o),a&&f.createElement("div",{className:`${t}-btn`},a))};function yqe(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n};break}return r}function bqe(e){return{motionName:`${e}-fade`}}var Sqe=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 KJ=24,Cqe=4.5,xqe="topRight",wqe=e=>{let{children:t,prefixCls:n}=e;const r=_i(n),[i,o,a]=mqe(n,r);return i(ge.createElement(nve,{classNames:{list:Re(o,a,r)}},t))},_qe=(e,t)=>{let{prefixCls:n,key:r}=t;return ge.createElement(wqe,{prefixCls:n,key:r},e)},Eqe=ge.forwardRef((e,t)=>{const{top:n,bottom:r,prefixCls:i,getContainer:o,maxCount:a,rtl:s,onAllRemoved:l,stack:c,duration:u,pauseOnHover:d=!0,showProgress:h}=e,{getPrefixCls:p,getPopupContainer:m,notification:v,direction:y}=f.useContext(hn),[,S]=na(),b=i||p("notification"),C=k=>yqe(k,n??KJ,r??KJ),_=()=>Re({[`${b}-rtl`]:s??y==="rtl"}),T=()=>bqe(b),[x,E]=rve({prefixCls:b,style:C,className:_,motion:T,closable:!0,closeIcon:s0e(b),duration:u??Cqe,getContainer:()=>(o==null?void 0:o())||(m==null?void 0:m())||document.body,maxCount:a,pauseOnHover:d,showProgress:h,onAllRemoved:l,renderNotifications:_qe,stack:c===!1?!1:{threshold:typeof c=="object"?c==null?void 0:c.threshold:void 0,offset:8,gap:S.margin}});return ge.useImperativeHandle(t,()=>Object.assign(Object.assign({},x),{prefixCls:b,notification:v})),E});function Tqe(e){const t=ge.useRef(null);return eh(),[ge.useMemo(()=>{const r=s=>{var l;if(!t.current)return;const{open:c,prefixCls:u,notification:d}=t.current,h=`${u}-notice`,{message:p,description:m,icon:v,type:y,btn:S,className:b,style:C,role:_="alert",closeIcon:T,closable:x}=s,E=Sqe(s,["message","description","icon","type","btn","className","style","role","closeIcon","closable"]),k=s0e(h,typeof T<"u"?T:d==null?void 0:d.closeIcon);return c(Object.assign(Object.assign({placement:(l=e==null?void 0:e.placement)!==null&&l!==void 0?l:xqe},E),{content:ge.createElement(vqe,{prefixCls:h,icon:v,type:y,message:p,description:m,btn:S,role:_}),className:Re(y&&`${h}-${y}`,b,d==null?void 0:d.className),style:Object.assign(Object.assign({},d==null?void 0:d.style),C),closeIcon:k,closable:x??!!k}))},o={open:r,destroy:s=>{var l,c;s!==void 0?(l=t.current)===null||l===void 0||l.close(s):(c=t.current)===null||c===void 0||c.destroy()}};return["success","info","warning","error"].forEach(s=>{o[s]=l=>r(Object.assign(Object.assign({},l),{type:s}))}),o},[]),ge.createElement(Eqe,Object.assign({key:"notification-holder"},e,{ref:t}))]}function kqe(e){return Tqe(e)}const HF=ge.createContext({}),l0e=ge.createContext({message:{},notification:{},modal:{}}),Oqe=e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:i,fontFamily:o}=e;return{[t]:{color:n,fontSize:r,lineHeight:i,fontFamily:o,[`&${t}-rtl`]:{direction:"rtl"}}}},Pqe=()=>({}),Mqe=Tr("App",Oqe,Pqe),Iqe=()=>ge.useContext(l0e),KO=e=>{const{prefixCls:t,children:n,className:r,rootClassName:i,message:o,notification:a,style:s,component:l="div"}=e,{direction:c,getPrefixCls:u}=f.useContext(hn),d=u("app",t),[h,p,m]=Mqe(d),v=Re(p,d,r,i,m,{[`${d}-rtl`]:c==="rtl"}),y=f.useContext(HF),S=ge.useMemo(()=>({message:Object.assign(Object.assign({},y.message),o),notification:Object.assign(Object.assign({},y.notification),a)}),[o,a,y.message,y.notification]),[b,C]=lve(S.message),[_,T]=kqe(S.notification),[x,E]=a0e(),k=ge.useMemo(()=>({message:b,notification:_,modal:x}),[b,_,x]);eh()(!(m&&l===!1),"usage","When using cssVar, ensure `component` is assigned a valid React component string.");const M=l===!1?ge.Fragment:l,P={className:v,style:s};return h(ge.createElement(l0e.Provider,{value:k},ge.createElement(HF.Provider,{value:S},ge.createElement(M,Object.assign({},l===!1?void 0:P),E,C,T,n))))};KO.useApp=Iqe;function c0e(e){return t=>f.createElement(or,{theme:{token:{motion:!1,zIndexPopupBase:0}}},f.createElement(e,Object.assign({},t)))}const vg=(e,t,n,r,i)=>c0e(a=>{const{prefixCls:s,style:l}=a,c=f.useRef(null),[u,d]=f.useState(0),[h,p]=f.useState(0),[m,v]=Jn(!1,{value:a.open}),{getPrefixCls:y}=f.useContext(hn),S=y(r||"select",s);f.useEffect(()=>{if(v(!0),typeof ResizeObserver<"u"){const _=new ResizeObserver(x=>{const E=x[0].target;d(E.offsetHeight+8),p(E.offsetWidth)}),T=setInterval(()=>{var x;const E=i?`.${i(S)}`:`.${S}-dropdown`,k=(x=c.current)===null||x===void 0?void 0:x.querySelector(E);k&&(clearInterval(T),_.observe(k))},10);return()=>{clearInterval(T),_.disconnect()}}},[]);let b=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},l),{margin:0}),open:m,visible:m,getPopupContainer:()=>c.current});n&&(b=n(b)),t&&Object.assign(b,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const C={paddingBottom:u,position:"relative",minWidth:h};return f.createElement("div",{ref:c,style:C},f.createElement(e,Object.assign({},b)))}),qO=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 GO=function(t){var n=t.className,r=t.customizeIcon,i=t.customizeIconProps,o=t.children,a=t.onMouseDown,s=t.onClick,l=typeof r=="function"?r(i):r;return f.createElement("span",{className:n,onMouseDown:function(u){u.preventDefault(),a==null||a(u)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},l!==void 0?l:f.createElement("span",{className:Re(n.split(/\s+/).map(function(c){return"".concat(c,"-icon")}))},o))},$qe=function(t,n,r,i,o){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,s=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,c=ge.useMemo(function(){if(ln(i)==="object")return i.clearIcon;if(o)return o},[i,o]),u=ge.useMemo(function(){return!!(!a&&i&&(r.length||s)&&!(l==="combobox"&&s===""))},[i,a,r.length,s,l]);return{allowClear:u,clearIcon:ge.createElement(GO,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:c},"×")}},u0e=f.createContext(null);function rW(){return f.useContext(u0e)}function Rqe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=f.useState(!1),n=Le(t,2),r=n[0],i=n[1],o=f.useRef(null),a=function(){window.clearTimeout(o.current)};f.useEffect(function(){return a},[]);var s=function(c,u){a(),o.current=window.setTimeout(function(){i(c),u&&u()},e)};return[r,s,a]}function d0e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=f.useRef(null),n=f.useRef(null);f.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 Aqe(e,t,n,r){var i=f.useRef(null);i.current={open:t,triggerOpen:n,customizedTrigger:r},f.useEffect(function(){function o(a){var s;if(!((s=i.current)!==null&&s!==void 0&&s.customizedTrigger)){var l=a.target;l.shadowRoot&&a.composed&&(l=a.composedPath()[0]||l),i.current.open&&e().filter(function(c){return c}).every(function(c){return!c.contains(l)&&c!==l})&&i.current.triggerOpen(!1)}}return window.addEventListener("mousedown",o),function(){return window.removeEventListener("mousedown",o)}},[])}function Nqe(e){return e&&![Pt.ESC,Pt.SHIFT,Pt.BACKSPACE,Pt.TAB,Pt.WIN_KEY,Pt.ALT,Pt.META,Pt.WIN_KEY_RIGHT,Pt.CTRL,Pt.SEMICOLON,Pt.EQUALS,Pt.CAPS_LOCK,Pt.CONTEXT_MENU,Pt.F1,Pt.F2,Pt.F3,Pt.F4,Pt.F5,Pt.F6,Pt.F7,Pt.F8,Pt.F9,Pt.F10,Pt.F11,Pt.F12].includes(e)}var Dqe=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Q0=void 0;function Lqe(e,t){var n=e.prefixCls,r=e.invalidate,i=e.item,o=e.renderItem,a=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,u=e.className,d=e.style,h=e.children,p=e.display,m=e.order,v=e.component,y=v===void 0?"div":v,S=tn(e,Dqe),b=a&&!p;function C(k){l(c,k)}f.useEffect(function(){return function(){C(null)}},[]);var _=o&&i!==Q0?o(i):h,T;r||(T={opacity:b?0:1,height:b?0:Q0,overflowY:b?"hidden":Q0,order:a?m:Q0,pointerEvents:b?"none":Q0,position:b?"absolute":Q0});var x={};b&&(x["aria-hidden"]=!0);var E=f.createElement(y,ut({className:Re(!r&&n,u),style:G(G({},T),d)},x,S,{ref:t}),_);return a&&(E=f.createElement(Va,{onResize:function(M){var P=M.offsetWidth;C(P)},disabled:s},E)),E}var tw=f.forwardRef(Lqe);tw.displayName="Item";function Fqe(e){if(typeof MessageChannel>"u")Sr(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function jqe(){var e=f.useRef(null),t=function(r){e.current||(e.current=[],Fqe(function(){Nc.unstable_batchedUpdates(function(){e.current.forEach(function(i){i()}),e.current=null})})),e.current.push(r)};return t}function Dx(e,t){var n=f.useState(t),r=Le(n,2),i=r[0],o=r[1],a=cr(function(s){e(function(){o(s)})});return[i,a]}var z9=ge.createContext(null),Bqe=["component"],Hqe=["className"],zqe=["className"],Uqe=function(t,n){var r=f.useContext(z9);if(!r){var i=t.component,o=i===void 0?"div":i,a=tn(t,Bqe);return f.createElement(o,ut({},a,{ref:n}))}var s=r.className,l=tn(r,Hqe),c=t.className,u=tn(t,zqe);return f.createElement(z9.Provider,{value:null},f.createElement(tw,ut({ref:n,className:Re(s,c)},l,u)))},f0e=f.forwardRef(Uqe);f0e.displayName="RawItem";var Wqe=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],h0e="responsive",p0e="invalidate";function Vqe(e){return"+ ".concat(e.length," ...")}function Kqe(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,i=e.data,o=i===void 0?[]:i,a=e.renderItem,s=e.renderRawItem,l=e.itemKey,c=e.itemWidth,u=c===void 0?10:c,d=e.ssr,h=e.style,p=e.className,m=e.maxCount,v=e.renderRest,y=e.renderRawRest,S=e.suffix,b=e.component,C=b===void 0?"div":b,_=e.itemComponent,T=e.onVisibleChange,x=tn(e,Wqe),E=d==="full",k=jqe(),M=Dx(k,null),P=Le(M,2),D=P[0],R=P[1],A=D||0,H=Dx(k,new Map),F=Le(H,2),z=F[0],W=F[1],q=Dx(k,0),Z=Le(q,2),N=Z[0],B=Z[1],V=Dx(k,0),Y=Le(V,2),ie=Y[0],ce=Y[1],fe=Dx(k,0),ee=Le(fe,2),ne=ee[0],ue=ee[1],ye=f.useState(null),me=Le(ye,2),pe=me[0],he=me[1],_e=f.useState(null),le=Le(_e,2),xe=le[0],we=le[1],De=f.useMemo(function(){return xe===null&&E?Number.MAX_SAFE_INTEGER:xe||0},[xe,D]),Fe=f.useState(!1),Ce=Le(Fe,2),Te=Ce[0],ke=Ce[1],Pe="".concat(r,"-item"),Ne=Math.max(N,ie),We=m===h0e,Q=o.length&&We,K=m===p0e,J=Q||typeof m=="number"&&o.length>m,be=f.useMemo(function(){var Vt=o;return Q?D===null&&E?Vt=o:Vt=o.slice(0,Math.min(o.length,A/u)):typeof m=="number"&&(Vt=o.slice(0,m)),Vt},[o,u,D,m,Q]),Oe=f.useMemo(function(){return Q?o.slice(De+1):o.slice(be.length)},[o,be,Q,De]),Se=f.useCallback(function(Vt,Kt){var Qt;return typeof l=="function"?l(Vt):(Qt=l&&(Vt==null?void 0:Vt[l]))!==null&&Qt!==void 0?Qt:Kt},[l]),Ke=f.useCallback(a||function(Vt){return Vt},[a]);function tt(Vt,Kt,Qt){xe===Vt&&(Kt===void 0||Kt===pe)||(we(Vt),Qt||(ke(Vt<o.length-1),T==null||T(Vt)),Kt!==void 0&&he(Kt))}function se(Vt,Kt){R(Kt.clientWidth)}function ze(Vt,Kt){W(function(Qt){var et=new Map(Qt);return Kt===null?et.delete(Vt):et.set(Vt,Kt),et})}function Ye(Vt,Kt){ce(Kt),B(ie)}function Ue(Vt,Kt){ue(Kt)}function Je(Vt){return z.get(Se(be[Vt],Vt))}Er(function(){if(A&&typeof Ne=="number"&&be){var Vt=ne,Kt=be.length,Qt=Kt-1;if(!Kt){tt(0,null);return}for(var et=0;et<Kt;et+=1){var ot=Je(et);if(E&&(ot=ot||0),ot===void 0){tt(et-1,void 0,!0);break}if(Vt+=ot,Qt===0&&Vt<=A||et===Qt-1&&Vt+Je(Qt)<=A){tt(Qt,null);break}else if(Vt+Ne>A){tt(et-1,Vt-ot-ne+ie);break}}S&&Je(0)+ne>A&&he(null)}},[A,z,ie,ne,Se,be]);var Ze=Te&&!!Oe.length,rt={};pe!==null&&Q&&(rt={position:"absolute",left:pe,top:0});var qt={prefixCls:Pe,responsive:Q,component:_,invalidate:K},St=s?function(Vt,Kt){var Qt=Se(Vt,Kt);return f.createElement(z9.Provider,{key:Qt,value:G(G({},qt),{},{order:Kt,item:Vt,itemKey:Qt,registerSize:ze,display:Kt<=De})},s(Vt,Kt))}:function(Vt,Kt){var Qt=Se(Vt,Kt);return f.createElement(tw,ut({},qt,{order:Kt,key:Qt,item:Vt,renderItem:Ke,itemKey:Qt,registerSize:ze,display:Kt<=De}))},Ot,Bt={order:Ze?De:Number.MAX_SAFE_INTEGER,className:"".concat(Pe,"-rest"),registerSize:Ye,display:Ze};if(y)y&&(Ot=f.createElement(z9.Provider,{value:G(G({},qt),Bt)},y(Oe)));else{var Dt=v||Vqe;Ot=f.createElement(tw,ut({},qt,Bt),typeof Dt=="function"?Dt(Oe):Dt)}var an=f.createElement(C,ut({className:Re(!K&&r,p),style:h,ref:t},x),be.map(St),J?Ot:null,S&&f.createElement(tw,ut({},qt,{responsive:We,responsiveDisabled:!Q,order:De,className:"".concat(Pe,"-suffix"),registerSize:Ue,display:!0,style:rt}),S));return We&&(an=f.createElement(Va,{onResize:se,disabled:!Q},an)),an}var kd=f.forwardRef(Kqe);kd.displayName="Overflow";kd.Item=f0e;kd.RESPONSIVE=h0e;kd.INVALIDATE=p0e;var qqe=function(t,n){var r,i=t.prefixCls,o=t.id,a=t.inputElement,s=t.disabled,l=t.tabIndex,c=t.autoFocus,u=t.autoComplete,d=t.editable,h=t.activeDescendantId,p=t.value,m=t.maxLength,v=t.onKeyDown,y=t.onMouseDown,S=t.onChange,b=t.onPaste,C=t.onCompositionStart,_=t.onCompositionEnd,T=t.onBlur,x=t.open,E=t.attrs,k=a||f.createElement("input",null),M=k,P=M.ref,D=M.props,R=D.onKeyDown,A=D.onChange,H=D.onMouseDown,F=D.onCompositionStart,z=D.onCompositionEnd,W=D.onBlur,q=D.style;return"maxLength"in k.props,k=f.cloneElement(k,G(G(G({type:"search"},D),{},{id:o,ref:va(n,P),disabled:s,tabIndex:l,autoComplete:u||"off",autoFocus:c,className:Re("".concat(i,"-selection-search-input"),(r=k)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":x||!1,"aria-haspopup":"listbox","aria-owns":"".concat(o,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(o,"_list"),"aria-activedescendant":x?h:void 0},E),{},{value:d?p:"",maxLength:m,readOnly:!d,unselectable:d?null:"on",style:G(G({},q),{},{opacity:d?null:0}),onKeyDown:function(N){v(N),R&&R(N)},onMouseDown:function(N){y(N),H&&H(N)},onChange:function(N){S(N),A&&A(N)},onCompositionStart:function(N){C(N),F&&F(N)},onCompositionEnd:function(N){_(N),z&&z(N)},onPaste:b,onBlur:function(N){T(N),W&&W(N)}})),k},m0e=f.forwardRef(qqe);function g0e(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var Gqe=typeof window<"u"&&window.document&&window.document.documentElement,Yqe=Gqe;function Xqe(e){return e!=null}function Qqe(e){return!e&&e!==0}function qJ(e){return["string","number"].includes(ln(e))}function v0e(e){var t=void 0;return e&&(qJ(e.title)?t=e.title.toString():qJ(e.label)&&(t=e.label.toString())),t}function Zqe(e,t){Yqe?f.useLayoutEffect(e,t):f.useEffect(e,t)}function Jqe(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var GJ=function(t){t.preventDefault(),t.stopPropagation()},eGe=function(t){var n=t.id,r=t.prefixCls,i=t.values,o=t.open,a=t.searchValue,s=t.autoClearSearchValue,l=t.inputRef,c=t.placeholder,u=t.disabled,d=t.mode,h=t.showSearch,p=t.autoFocus,m=t.autoComplete,v=t.activeDescendantId,y=t.tabIndex,S=t.removeIcon,b=t.maxTagCount,C=t.maxTagTextLength,_=t.maxTagPlaceholder,T=_===void 0?function(_e){return"+ ".concat(_e.length," ...")}:_,x=t.tagRender,E=t.onToggleOpen,k=t.onRemove,M=t.onInputChange,P=t.onInputPaste,D=t.onInputKeyDown,R=t.onInputMouseDown,A=t.onInputCompositionStart,H=t.onInputCompositionEnd,F=t.onInputBlur,z=f.useRef(null),W=f.useState(0),q=Le(W,2),Z=q[0],N=q[1],B=f.useState(!1),V=Le(B,2),Y=V[0],ie=V[1],ce="".concat(r,"-selection"),fe=o||d==="multiple"&&s===!1||d==="tags"?a:"",ee=d==="tags"||d==="multiple"&&s===!1||h&&(o||Y);Zqe(function(){N(z.current.scrollWidth)},[fe]);var ne=function(le,xe,we,De,Fe){return f.createElement("span",{title:v0e(le),className:Re("".concat(ce,"-item"),ae({},"".concat(ce,"-item-disabled"),we))},f.createElement("span",{className:"".concat(ce,"-item-content")},xe),De&&f.createElement(GO,{className:"".concat(ce,"-item-remove"),onMouseDown:GJ,onClick:Fe,customizeIcon:S},"×"))},ue=function(le,xe,we,De,Fe,Ce){var Te=function(Pe){GJ(Pe),E(!o)};return f.createElement("span",{onMouseDown:Te},x({label:xe,value:le,disabled:we,closable:De,onClose:Fe,isMaxTag:!!Ce}))},ye=function(le){var xe=le.disabled,we=le.label,De=le.value,Fe=!u&&!xe,Ce=we;if(typeof C=="number"&&(typeof we=="string"||typeof we=="number")){var Te=String(Ce);Te.length>C&&(Ce="".concat(Te.slice(0,C),"..."))}var ke=function(Ne){Ne&&Ne.stopPropagation(),k(le)};return typeof x=="function"?ue(De,Ce,xe,Fe,ke):ne(le,Ce,xe,Fe,ke)},me=function(le){if(!i.length)return null;var xe=typeof T=="function"?T(le):T;return typeof x=="function"?ue(void 0,xe,!1,!1,void 0,!0):ne({title:xe},xe,!1)},pe=f.createElement("div",{className:"".concat(ce,"-search"),style:{width:Z},onFocus:function(){ie(!0)},onBlur:function(){ie(!1)}},f.createElement(m0e,{ref:l,open:o,prefixCls:r,id:n,inputElement:null,disabled:u,autoFocus:p,autoComplete:m,editable:ee,activeDescendantId:v,value:fe,onKeyDown:D,onMouseDown:R,onChange:M,onPaste:P,onCompositionStart:A,onCompositionEnd:H,onBlur:F,tabIndex:y,attrs:Hi(t,!0)}),f.createElement("span",{ref:z,className:"".concat(ce,"-search-mirror"),"aria-hidden":!0},fe," ")),he=f.createElement(kd,{prefixCls:"".concat(ce,"-overflow"),data:i,renderItem:ye,renderRest:me,suffix:pe,itemKey:Jqe,maxCount:b});return f.createElement("span",{className:"".concat(ce,"-wrap")},he,!i.length&&!fe&&f.createElement("span",{className:"".concat(ce,"-placeholder")},c))},tGe=function(t){var n=t.inputElement,r=t.prefixCls,i=t.id,o=t.inputRef,a=t.disabled,s=t.autoFocus,l=t.autoComplete,c=t.activeDescendantId,u=t.mode,d=t.open,h=t.values,p=t.placeholder,m=t.tabIndex,v=t.showSearch,y=t.searchValue,S=t.activeValue,b=t.maxLength,C=t.onInputKeyDown,_=t.onInputMouseDown,T=t.onInputChange,x=t.onInputPaste,E=t.onInputCompositionStart,k=t.onInputCompositionEnd,M=t.onInputBlur,P=t.title,D=f.useState(!1),R=Le(D,2),A=R[0],H=R[1],F=u==="combobox",z=F||v,W=h[0],q=y||"";F&&S&&!A&&(q=S),f.useEffect(function(){F&&H(!1)},[F,S]);var Z=u!=="combobox"&&!d&&!v?!1:!!q,N=P===void 0?v0e(W):P,B=f.useMemo(function(){return W?null:f.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:Z?{visibility:"hidden"}:void 0},p)},[W,Z,p,r]);return f.createElement("span",{className:"".concat(r,"-selection-wrap")},f.createElement("span",{className:"".concat(r,"-selection-search")},f.createElement(m0e,{ref:o,prefixCls:r,id:i,open:d,inputElement:n,disabled:a,autoFocus:s,autoComplete:l,editable:z,activeDescendantId:c,value:q,onKeyDown:C,onMouseDown:_,onChange:function(Y){H(!0),T(Y)},onPaste:x,onCompositionStart:E,onCompositionEnd:k,onBlur:M,tabIndex:m,attrs:Hi(t,!0),maxLength:F?b:void 0})),!F&&W?f.createElement("span",{className:"".concat(r,"-selection-item"),title:N,style:Z?{visibility:"hidden"}:void 0},W.label):null,B)},nGe=function(t,n){var r=f.useRef(null),i=f.useRef(!1),o=t.prefixCls,a=t.open,s=t.mode,l=t.showSearch,c=t.tokenWithEnter,u=t.disabled,d=t.prefix,h=t.autoClearSearchValue,p=t.onSearch,m=t.onSearchSubmit,v=t.onToggleOpen,y=t.onInputKeyDown,S=t.onInputBlur,b=t.domRef;f.useImperativeHandle(n,function(){return{focus:function(N){r.current.focus(N)},blur:function(){r.current.blur()}}});var C=d0e(0),_=Le(C,2),T=_[0],x=_[1],E=function(N){var B=N.which,V=r.current instanceof HTMLTextAreaElement;!V&&a&&(B===Pt.UP||B===Pt.DOWN)&&N.preventDefault(),y&&y(N),B===Pt.ENTER&&s==="tags"&&!i.current&&!a&&(m==null||m(N.target.value)),!(V&&!a&&~[Pt.UP,Pt.DOWN,Pt.LEFT,Pt.RIGHT].indexOf(B))&&Nqe(B)&&v(!0)},k=function(){x(!0)},M=f.useRef(null),P=function(N){p(N,!0,i.current)!==!1&&v(!0)},D=function(){i.current=!0},R=function(N){i.current=!1,s!=="combobox"&&P(N.target.value)},A=function(N){var B=N.target.value;if(c&&M.current&&/[\r\n]/.test(M.current)){var V=M.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");B=B.replace(V,M.current)}M.current=null,P(B)},H=function(N){var B=N.clipboardData,V=B==null?void 0:B.getData("text");M.current=V||""},F=function(N){var B=N.target;if(B!==r.current){var V=document.body.style.msTouchAction!==void 0;V?setTimeout(function(){r.current.focus()}):r.current.focus()}},z=function(N){var B=T();N.target!==r.current&&!B&&!(s==="combobox"&&u)&&N.preventDefault(),(s!=="combobox"&&(!l||!B)||!a)&&(a&&h!==!1&&p("",!0,!1),v())},W={inputRef:r,onInputKeyDown:E,onInputMouseDown:k,onInputChange:A,onInputPaste:H,onInputCompositionStart:D,onInputCompositionEnd:R,onInputBlur:S},q=s==="multiple"||s==="tags"?f.createElement(eGe,ut({},t,W)):f.createElement(tGe,ut({},t,W));return f.createElement("div",{ref:b,className:"".concat(o,"-selector"),onClick:F,onMouseDown:z},d&&f.createElement("div",{className:"".concat(o,"-prefix")},d),q)},rGe=f.forwardRef(nGe);function iGe(e){var t=e.prefixCls,n=e.align,r=e.arrow,i=e.arrowPos,o=r||{},a=o.className,s=o.content,l=i.x,c=l===void 0?0:l,u=i.y,d=u===void 0?0:u,h=f.useRef();if(!n||!n.points)return null;var p={position:"absolute"};if(n.autoArrow!==!1){var m=n.points[0],v=n.points[1],y=m[0],S=m[1],b=v[0],C=v[1];y===b||!["t","b"].includes(y)?p.top=d:y==="t"?p.top=0:p.bottom=0,S===C||!["l","r"].includes(S)?p.left=c:S==="l"?p.left=0:p.right=0}return f.createElement("div",{ref:h,className:Re("".concat(t,"-arrow"),a),style:p},s)}function oGe(e){var t=e.prefixCls,n=e.open,r=e.zIndex,i=e.mask,o=e.motion;return i?f.createElement(ha,ut({},o,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var s=a.className;return f.createElement("div",{style:{zIndex:r},className:Re("".concat(t,"-mask"),s)})}):null}var aGe=f.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),sGe=f.forwardRef(function(e,t){var n=e.popup,r=e.className,i=e.prefixCls,o=e.style,a=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.fresh,d=e.onClick,h=e.mask,p=e.arrow,m=e.arrowPos,v=e.align,y=e.motion,S=e.maskMotion,b=e.forceRender,C=e.getPopupContainer,_=e.autoDestroy,T=e.portal,x=e.zIndex,E=e.onMouseEnter,k=e.onMouseLeave,M=e.onPointerEnter,P=e.onPointerDownCapture,D=e.ready,R=e.offsetX,A=e.offsetY,H=e.offsetR,F=e.offsetB,z=e.onAlign,W=e.onPrepare,q=e.stretch,Z=e.targetWidth,N=e.targetHeight,B=typeof n=="function"?n():n,V=l||c,Y=(C==null?void 0:C.length)>0,ie=f.useState(!C||!Y),ce=Le(ie,2),fe=ce[0],ee=ce[1];if(Er(function(){!fe&&Y&&a&&ee(!0)},[fe,Y,a]),!fe)return null;var ne="auto",ue={left:"-1000vw",top:"-1000vh",right:ne,bottom:ne};if(D||!l){var ye,me=v.points,pe=v.dynamicInset||((ye=v._experimental)===null||ye===void 0?void 0:ye.dynamicInset),he=pe&&me[0][1]==="r",_e=pe&&me[0][0]==="b";he?(ue.right=H,ue.left=ne):(ue.left=R,ue.right=ne),_e?(ue.bottom=F,ue.top=ne):(ue.top=A,ue.bottom=ne)}var le={};return q&&(q.includes("height")&&N?le.height=N:q.includes("minHeight")&&N&&(le.minHeight=N),q.includes("width")&&Z?le.width=Z:q.includes("minWidth")&&Z&&(le.minWidth=Z)),l||(le.pointerEvents="none"),f.createElement(T,{open:b||V,getContainer:C&&function(){return C(a)},autoDestroy:_},f.createElement(oGe,{prefixCls:i,open:l,zIndex:x,mask:h,motion:S}),f.createElement(Va,{onResize:z,disabled:!l},function(xe){return f.createElement(ha,ut({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:b,leavedClassName:"".concat(i,"-hidden")},y,{onAppearPrepare:W,onEnterPrepare:W,visible:l,onVisibleChanged:function(De){var Fe;y==null||(Fe=y.onVisibleChanged)===null||Fe===void 0||Fe.call(y,De),s(De)}}),function(we,De){var Fe=we.className,Ce=we.style,Te=Re(i,Fe,r);return f.createElement("div",{ref:va(xe,t,De),className:Te,style:G(G(G(G({"--arrow-x":"".concat(m.x||0,"px"),"--arrow-y":"".concat(m.y||0,"px")},ue),le),Ce),{},{boxSizing:"border-box",zIndex:x},o),onMouseEnter:E,onMouseLeave:k,onPointerEnter:M,onClick:d,onPointerDownCapture:P},p&&f.createElement(iGe,{prefixCls:i,arrow:p,arrowPos:m,align:v}),f.createElement(aGe,{cache:!l&&!u},B))})}))}),lGe=f.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,i=Ld(n),o=f.useCallback(function(s){i_(t,r?r(s):s)},[r]),a=Qd(o,mg(n));return i?f.cloneElement(n,{ref:a}):n}),YJ=f.createContext(null);function XJ(e){return e?Array.isArray(e)?e:[e]:[]}function cGe(e,t,n,r){return f.useMemo(function(){var i=XJ(n??t),o=XJ(r??t),a=new Set(i),s=new Set(o);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[e,t,n,r])}function uGe(){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 dGe(e,t,n,r){for(var i=n.points,o=Object.keys(e),a=0;a<o.length;a+=1){var s,l=o[a];if(uGe((s=e[l])===null||s===void 0?void 0:s.points,i,r))return"".concat(t,"-placement-").concat(l)}return""}function QJ(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function _E(e){return e.ownerDocument.defaultView}function zF(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var i=_E(n).getComputedStyle(n),o=i.overflowX,a=i.overflowY,s=i.overflow;[o,a,s].some(function(l){return r.includes(l)})&&t.push(n),n=n.parentElement}return t}function g_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Lx(e){return g_(parseFloat(e),0)}function ZJ(e,t){var n=G({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var i=_E(r).getComputedStyle(r),o=i.overflow,a=i.overflowClipMargin,s=i.borderTopWidth,l=i.borderBottomWidth,c=i.borderLeftWidth,u=i.borderRightWidth,d=r.getBoundingClientRect(),h=r.offsetHeight,p=r.clientHeight,m=r.offsetWidth,v=r.clientWidth,y=Lx(s),S=Lx(l),b=Lx(c),C=Lx(u),_=g_(Math.round(d.width/m*1e3)/1e3),T=g_(Math.round(d.height/h*1e3)/1e3),x=(m-v-b-C)*_,E=(h-p-y-S)*T,k=y*T,M=S*T,P=b*_,D=C*_,R=0,A=0;if(o==="clip"){var H=Lx(a);R=H*_,A=H*T}var F=d.x+P-R,z=d.y+k-A,W=F+d.width+2*R-P-D-x,q=z+d.height+2*A-k-M-E;n.left=Math.max(n.left,F),n.top=Math.max(n.top,z),n.right=Math.min(n.right,W),n.bottom=Math.min(n.bottom,q)}}),n}function JJ(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 eee(e,t){var n=t||[],r=Le(n,2),i=r[0],o=r[1];return[JJ(e.width,i),JJ(e.height,o)]}function tee(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Z0(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 Gp(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 fGe(e,t,n,r,i,o,a){var s=f.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),l=Le(s,2),c=l[0],u=l[1],d=f.useRef(0),h=f.useMemo(function(){return t?zF(t):[]},[t]),p=f.useRef({}),m=function(){p.current={}};e||m();var v=cr(function(){if(t&&n&&e){let Gn=function(jr,Ao){var ra=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ne,Ei=ie.x+jr,ia=ie.y+Ao,Jl=Ei+he,Gc=ia+pe,ch=Math.max(Ei,ra.left),qn=Math.max(ia,ra.top),kr=Math.min(Jl,ra.right),Jr=Math.min(Gc,ra.bottom);return Math.max(0,(kr-ch)*(Jr-qn))},rr=function(){cn=ie.y+Qt,_t=cn+pe,jt=ie.x+Kt,nn=jt+he};var b,C,_,T,x=t,E=x.ownerDocument,k=_E(x),M=k.getComputedStyle(x),P=M.width,D=M.height,R=M.position,A=x.style.left,H=x.style.top,F=x.style.right,z=x.style.bottom,W=x.style.overflow,q=G(G({},i[r]),o),Z=E.createElement("div");(b=x.parentElement)===null||b===void 0||b.appendChild(Z),Z.style.left="".concat(x.offsetLeft,"px"),Z.style.top="".concat(x.offsetTop,"px"),Z.style.position=R,Z.style.height="".concat(x.offsetHeight,"px"),Z.style.width="".concat(x.offsetWidth,"px"),x.style.left="0",x.style.top="0",x.style.right="auto",x.style.bottom="auto",x.style.overflow="hidden";var N;if(Array.isArray(n))N={x:n[0],y:n[1],width:0,height:0};else{var B,V,Y=n.getBoundingClientRect();Y.x=(B=Y.x)!==null&&B!==void 0?B:Y.left,Y.y=(V=Y.y)!==null&&V!==void 0?V:Y.top,N={x:Y.x,y:Y.y,width:Y.width,height:Y.height}}var ie=x.getBoundingClientRect();ie.x=(C=ie.x)!==null&&C!==void 0?C:ie.left,ie.y=(_=ie.y)!==null&&_!==void 0?_:ie.top;var ce=E.documentElement,fe=ce.clientWidth,ee=ce.clientHeight,ne=ce.scrollWidth,ue=ce.scrollHeight,ye=ce.scrollTop,me=ce.scrollLeft,pe=ie.height,he=ie.width,_e=N.height,le=N.width,xe={left:0,top:0,right:fe,bottom:ee},we={left:-me,top:-ye,right:ne-me,bottom:ue-ye},De=q.htmlRegion,Fe="visible",Ce="visibleFirst";De!=="scroll"&&De!==Ce&&(De=Fe);var Te=De===Ce,ke=ZJ(we,h),Pe=ZJ(xe,h),Ne=De===Fe?Pe:ke,We=Te?Pe:Ne;x.style.left="auto",x.style.top="auto",x.style.right="0",x.style.bottom="0";var Q=x.getBoundingClientRect();x.style.left=A,x.style.top=H,x.style.right=F,x.style.bottom=z,x.style.overflow=W,(T=x.parentElement)===null||T===void 0||T.removeChild(Z);var K=g_(Math.round(he/parseFloat(P)*1e3)/1e3),J=g_(Math.round(pe/parseFloat(D)*1e3)/1e3);if(K===0||J===0||r_(n)&&!GS(n))return;var be=q.offset,Oe=q.targetOffset,Se=eee(ie,be),Ke=Le(Se,2),tt=Ke[0],se=Ke[1],ze=eee(N,Oe),Ye=Le(ze,2),Ue=Ye[0],Je=Ye[1];N.x-=Ue,N.y-=Je;var Ze=q.points||[],rt=Le(Ze,2),qt=rt[0],St=rt[1],Ot=tee(St),Bt=tee(qt),Dt=Z0(N,Ot),an=Z0(ie,Bt),Vt=G({},q),Kt=Dt.x-an.x+tt,Qt=Dt.y-an.y+se,et=Gn(Kt,Qt),ot=Gn(Kt,Qt,Pe),Qe=Z0(N,["t","l"]),ct=Z0(ie,["t","l"]),Nt=Z0(N,["b","r"]),Lt=Z0(ie,["b","r"]),Zt=q.overflow||{},Wt=Zt.adjustX,At=Zt.adjustY,$t=Zt.shiftX,Gt=Zt.shiftY,Ft=function(Ao){return typeof Ao=="boolean"?Ao:Ao>=0},cn,_t,jt,nn;rr();var Ht=Ft(At),Tt=Bt[0]===Ot[0];if(Ht&&Bt[0]==="t"&&(_t>We.bottom||p.current.bt)){var gt=Qt;Tt?gt-=pe-_e:gt=Qe.y-Lt.y-se;var Ve=Gn(Kt,gt),Yt=Gn(Kt,gt,Pe);Ve>et||Ve===et&&(!Te||Yt>=ot)?(p.current.bt=!0,Qt=gt,se=-se,Vt.points=[Gp(Bt,0),Gp(Ot,0)]):p.current.bt=!1}if(Ht&&Bt[0]==="b"&&(cn<We.top||p.current.tb)){var mt=Qt;Tt?mt+=pe-_e:mt=Nt.y-ct.y-se;var Mt=Gn(Kt,mt),zt=Gn(Kt,mt,Pe);Mt>et||Mt===et&&(!Te||zt>=ot)?(p.current.tb=!0,Qt=mt,se=-se,Vt.points=[Gp(Bt,0),Gp(Ot,0)]):p.current.tb=!1}var Dn=Ft(Wt),Xn=Bt[1]===Ot[1];if(Dn&&Bt[1]==="l"&&(nn>We.right||p.current.rl)){var O=Kt;Xn?O-=he-le:O=Qe.x-Lt.x-tt;var j=Gn(O,Qt),oe=Gn(O,Qt,Pe);j>et||j===et&&(!Te||oe>=ot)?(p.current.rl=!0,Kt=O,tt=-tt,Vt.points=[Gp(Bt,1),Gp(Ot,1)]):p.current.rl=!1}if(Dn&&Bt[1]==="r"&&(jt<We.left||p.current.lr)){var Ae=Kt;Xn?Ae+=he-le:Ae=Nt.x-ct.x-tt;var Ge=Gn(Ae,Qt),ft=Gn(Ae,Qt,Pe);Ge>et||Ge===et&&(!Te||ft>=ot)?(p.current.lr=!0,Kt=Ae,tt=-tt,Vt.points=[Gp(Bt,1),Gp(Ot,1)]):p.current.lr=!1}rr();var Jt=$t===!0?0:$t;typeof Jt=="number"&&(jt<Pe.left&&(Kt-=jt-Pe.left-tt,N.x+le<Pe.left+Jt&&(Kt+=N.x-Pe.left+le-Jt)),nn>Pe.right&&(Kt-=nn-Pe.right-tt,N.x>Pe.right-Jt&&(Kt+=N.x-Pe.right+Jt)));var on=Gt===!0?0:Gt;typeof on=="number"&&(cn<Pe.top&&(Qt-=cn-Pe.top-se,N.y+_e<Pe.top+on&&(Qt+=N.y-Pe.top+_e-on)),_t>Pe.bottom&&(Qt-=_t-Pe.bottom-se,N.y>Pe.bottom-on&&(Qt+=N.y-Pe.bottom+on)));var Qn=ie.x+Kt,ni=Qn+he,zr=ie.y+Qt,Yr=zr+pe,Rr=N.x,wn=Rr+le,Pn=N.y,Ar=Pn+_e,bn=Math.max(Qn,Rr),Cn=Math.min(ni,wn),tr=(bn+Cn)/2,Ir=tr-Qn,li=Math.max(zr,Pn),Wi=Math.min(Yr,Ar),mr=(li+Wi)/2,Li=mr-zr;a==null||a(t,Vt);var dr=Q.right-ie.x-(Kt+ie.width),xn=Q.bottom-ie.y-(Qt+ie.height);K===1&&(Kt=Math.round(Kt),dr=Math.round(dr)),J===1&&(Qt=Math.round(Qt),xn=Math.round(xn));var zn={ready:!0,offsetX:Kt/K,offsetY:Qt/J,offsetR:dr/K,offsetB:xn/J,arrowX:Ir/K,arrowY:Li/J,scaleX:K,scaleY:J,align:Vt};u(zn)}}),y=function(){d.current+=1;var C=d.current;Promise.resolve().then(function(){d.current===C&&v()})},S=function(){u(function(C){return G(G({},C),{},{ready:!1})})};return Er(S,[r]),Er(function(){e||S()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,y]}function hGe(e,t,n,r,i){Er(function(){if(e&&t&&n){let d=function(){r(),i()};var o=t,a=n,s=zF(o),l=zF(a),c=_E(a),u=new Set([c].concat(pt(s),pt(l)));return u.forEach(function(h){h.addEventListener("scroll",d,{passive:!0})}),c.addEventListener("resize",d,{passive:!0}),r(),function(){u.forEach(function(h){h.removeEventListener("scroll",d),c.removeEventListener("resize",d)})}}},[e,t,n])}function pGe(e,t,n,r,i,o,a,s){var l=f.useRef(e);l.current=e;var c=f.useRef(!1);f.useEffect(function(){if(t&&r&&(!i||o)){var d=function(){c.current=!1},h=function(y){var S;l.current&&!a(((S=y.composedPath)===null||S===void 0||(S=S.call(y))===null||S===void 0?void 0:S[0])||y.target)&&!c.current&&s(!1)},p=_E(r);p.addEventListener("pointerdown",d,!0),p.addEventListener("mousedown",h,!0),p.addEventListener("contextmenu",h,!0);var m=B9(n);return m&&(m.addEventListener("mousedown",h,!0),m.addEventListener("contextmenu",h,!0)),function(){p.removeEventListener("pointerdown",d,!0),p.removeEventListener("mousedown",h,!0),p.removeEventListener("contextmenu",h,!0),m&&(m.removeEventListener("mousedown",h,!0),m.removeEventListener("contextmenu",h,!0))}}},[t,n,r,i,o]);function u(){c.current=!0}return u}var mGe=["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 gGe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:CE,t=f.forwardRef(function(n,r){var i=n.prefixCls,o=i===void 0?"rc-trigger-popup":i,a=n.children,s=n.action,l=s===void 0?"hover":s,c=n.showAction,u=n.hideAction,d=n.popupVisible,h=n.defaultPopupVisible,p=n.onPopupVisibleChange,m=n.afterPopupVisibleChange,v=n.mouseEnterDelay,y=n.mouseLeaveDelay,S=y===void 0?.1:y,b=n.focusDelay,C=n.blurDelay,_=n.mask,T=n.maskClosable,x=T===void 0?!0:T,E=n.getPopupContainer,k=n.forceRender,M=n.autoDestroy,P=n.destroyPopupOnHide,D=n.popup,R=n.popupClassName,A=n.popupStyle,H=n.popupPlacement,F=n.builtinPlacements,z=F===void 0?{}:F,W=n.popupAlign,q=n.zIndex,Z=n.stretch,N=n.getPopupClassNameFromAlign,B=n.fresh,V=n.alignPoint,Y=n.onPopupClick,ie=n.onPopupAlign,ce=n.arrow,fe=n.popupMotion,ee=n.maskMotion,ne=n.popupTransitionName,ue=n.popupAnimation,ye=n.maskTransitionName,me=n.maskAnimation,pe=n.className,he=n.getTriggerDOMNode,_e=tn(n,mGe),le=M||P||!1,xe=f.useState(!1),we=Le(xe,2),De=we[0],Fe=we[1];Er(function(){Fe(qO())},[]);var Ce=f.useRef({}),Te=f.useContext(YJ),ke=f.useMemo(function(){return{registerSubPopup:function(kr,Jr){Ce.current[kr]=Jr,Te==null||Te.registerSubPopup(kr,Jr)}}},[Te]),Pe=UO(),Ne=f.useState(null),We=Le(Ne,2),Q=We[0],K=We[1],J=f.useRef(null),be=cr(function(qn){J.current=qn,r_(qn)&&Q!==qn&&K(qn),Te==null||Te.registerSubPopup(Pe,qn)}),Oe=f.useState(null),Se=Le(Oe,2),Ke=Se[0],tt=Se[1],se=f.useRef(null),ze=cr(function(qn){r_(qn)&&Ke!==qn&&(tt(qn),se.current=qn)}),Ye=f.Children.only(a),Ue=(Ye==null?void 0:Ye.props)||{},Je={},Ze=cr(function(qn){var kr,Jr,Vi=Ke;return(Vi==null?void 0:Vi.contains(qn))||((kr=B9(Vi))===null||kr===void 0?void 0:kr.host)===qn||qn===Vi||(Q==null?void 0:Q.contains(qn))||((Jr=B9(Q))===null||Jr===void 0?void 0:Jr.host)===qn||qn===Q||Object.values(Ce.current).some(function(Fi){return(Fi==null?void 0:Fi.contains(qn))||qn===Fi})}),rt=QJ(o,fe,ue,ne),qt=QJ(o,ee,me,ye),St=f.useState(h||!1),Ot=Le(St,2),Bt=Ot[0],Dt=Ot[1],an=d??Bt,Vt=cr(function(qn){d===void 0&&Dt(qn)});Er(function(){Dt(d||!1)},[d]);var Kt=f.useRef(an);Kt.current=an;var Qt=f.useRef([]);Qt.current=[];var et=cr(function(qn){var kr;Vt(qn),((kr=Qt.current[Qt.current.length-1])!==null&&kr!==void 0?kr:an)!==qn&&(Qt.current.push(qn),p==null||p(qn))}),ot=f.useRef(),Qe=function(){clearTimeout(ot.current)},ct=function(kr){var Jr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Qe(),Jr===0?et(kr):ot.current=setTimeout(function(){et(kr)},Jr*1e3)};f.useEffect(function(){return Qe},[]);var Nt=f.useState(!1),Lt=Le(Nt,2),Zt=Lt[0],Wt=Lt[1];Er(function(qn){(!qn||an)&&Wt(!0)},[an]);var At=f.useState(null),$t=Le(At,2),Gt=$t[0],Ft=$t[1],cn=f.useState(null),_t=Le(cn,2),jt=_t[0],nn=_t[1],Ht=function(kr){nn([kr.clientX,kr.clientY])},Tt=fGe(an,Q,V&&jt!==null?jt:Ke,H,z,W,ie),gt=Le(Tt,11),Ve=gt[0],Yt=gt[1],mt=gt[2],Mt=gt[3],zt=gt[4],Dn=gt[5],Xn=gt[6],O=gt[7],j=gt[8],oe=gt[9],Ae=gt[10],Ge=cGe(De,l,c,u),ft=Le(Ge,2),Jt=ft[0],on=ft[1],Qn=Jt.has("click"),ni=on.has("click")||on.has("contextMenu"),zr=cr(function(){Zt||Ae()}),Yr=function(){Kt.current&&V&&ni&&ct(!1)};hGe(an,Ke,Q,zr,Yr),Er(function(){zr()},[jt,H]),Er(function(){an&&!(z!=null&&z[H])&&zr()},[JSON.stringify(W)]);var Rr=f.useMemo(function(){var qn=dGe(z,o,oe,V);return Re(qn,N==null?void 0:N(oe))},[oe,N,z,o,V]);f.useImperativeHandle(r,function(){return{nativeElement:se.current,popupElement:J.current,forceAlign:zr}});var wn=f.useState(0),Pn=Le(wn,2),Ar=Pn[0],bn=Pn[1],Cn=f.useState(0),tr=Le(Cn,2),Ir=tr[0],li=tr[1],Wi=function(){if(Z&&Ke){var kr=Ke.getBoundingClientRect();bn(kr.width),li(kr.height)}},mr=function(){Wi(),zr()},Li=function(kr){Wt(!1),Ae(),m==null||m(kr)},dr=function(){return new Promise(function(kr){Wi(),Ft(function(){return kr})})};Er(function(){Gt&&(Ae(),Gt(),Ft(null))},[Gt]);function xn(qn,kr,Jr,Vi){Je[qn]=function(Fi){var Uu;Vi==null||Vi(Fi),ct(kr,Jr);for(var Yc=arguments.length,Wu=new Array(Yc>1?Yc-1:0),uh=1;uh<Yc;uh++)Wu[uh-1]=arguments[uh];(Uu=Ue[qn])===null||Uu===void 0||Uu.call.apply(Uu,[Ue,Fi].concat(Wu))}}(Qn||ni)&&(Je.onClick=function(qn){var kr;Kt.current&&ni?ct(!1):!Kt.current&&Qn&&(Ht(qn),ct(!0));for(var Jr=arguments.length,Vi=new Array(Jr>1?Jr-1:0),Fi=1;Fi<Jr;Fi++)Vi[Fi-1]=arguments[Fi];(kr=Ue.onClick)===null||kr===void 0||kr.call.apply(kr,[Ue,qn].concat(Vi))});var zn=pGe(an,ni,Ke,Q,_,x,Ze,ct),Gn=Jt.has("hover"),rr=on.has("hover"),jr,Ao;Gn&&(xn("onMouseEnter",!0,v,function(qn){Ht(qn)}),xn("onPointerEnter",!0,v,function(qn){Ht(qn)}),jr=function(kr){(an||Zt)&&Q!==null&&Q!==void 0&&Q.contains(kr.target)&&ct(!0,v)},V&&(Je.onMouseMove=function(qn){var kr;(kr=Ue.onMouseMove)===null||kr===void 0||kr.call(Ue,qn)})),rr&&(xn("onMouseLeave",!1,S),xn("onPointerLeave",!1,S),Ao=function(){ct(!1,S)}),Jt.has("focus")&&xn("onFocus",!0,b),on.has("focus")&&xn("onBlur",!1,C),Jt.has("contextMenu")&&(Je.onContextMenu=function(qn){var kr;Kt.current&&on.has("contextMenu")?ct(!1):(Ht(qn),ct(!0)),qn.preventDefault();for(var Jr=arguments.length,Vi=new Array(Jr>1?Jr-1:0),Fi=1;Fi<Jr;Fi++)Vi[Fi-1]=arguments[Fi];(kr=Ue.onContextMenu)===null||kr===void 0||kr.call.apply(kr,[Ue,qn].concat(Vi))}),pe&&(Je.className=Re(Ue.className,pe));var ra=G(G({},Ue),Je),Ei={},ia=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];ia.forEach(function(qn){_e[qn]&&(Ei[qn]=function(){for(var kr,Jr=arguments.length,Vi=new Array(Jr),Fi=0;Fi<Jr;Fi++)Vi[Fi]=arguments[Fi];(kr=ra[qn])===null||kr===void 0||kr.call.apply(kr,[ra].concat(Vi)),_e[qn].apply(_e,Vi)})});var Jl=f.cloneElement(Ye,G(G({},ra),Ei)),Gc={x:Dn,y:Xn},ch=ce?G({},ce!==!0?ce:{}):null;return f.createElement(f.Fragment,null,f.createElement(Va,{disabled:!an,ref:ze,onResize:mr},f.createElement(lGe,{getTriggerDOMNode:he},Jl)),f.createElement(YJ.Provider,{value:ke},f.createElement(sGe,{portal:e,ref:be,prefixCls:o,popup:D,className:Re(R,Rr),style:A,target:Ke,onMouseEnter:jr,onMouseLeave:Ao,onPointerEnter:jr,zIndex:q,open:an,keepDom:Zt,fresh:B,onClick:Y,onPointerDownCapture:zn,mask:_,motion:rt,maskMotion:qt,onVisibleChanged:Li,onPrepare:dr,forceRender:k,autoDestroy:le,getPopupContainer:E,align:oe,arrow:ch,arrowPos:Gc,ready:Ve,offsetX:Yt,offsetY:mt,offsetR:Mt,offsetB:zt,onAlign:zr,stretch:Z,targetWidth:Ar/O,targetHeight:Ir/j})))});return t}const EE=gGe(CE);var vGe=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],yGe=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"}}},bGe=function(t,n){var r=t.prefixCls;t.disabled;var i=t.visible,o=t.children,a=t.popupElement,s=t.animation,l=t.transitionName,c=t.dropdownStyle,u=t.dropdownClassName,d=t.direction,h=d===void 0?"ltr":d,p=t.placement,m=t.builtinPlacements,v=t.dropdownMatchSelectWidth,y=t.dropdownRender,S=t.dropdownAlign,b=t.getPopupContainer,C=t.empty,_=t.getTriggerDOMNode,T=t.onPopupVisibleChange,x=t.onPopupMouseEnter,E=tn(t,vGe),k="".concat(r,"-dropdown"),M=a;y&&(M=y(a));var P=f.useMemo(function(){return m||yGe(v)},[m,v]),D=s?"".concat(k,"-").concat(s):l,R=typeof v=="number",A=f.useMemo(function(){return R?null:v===!1?"minWidth":"width"},[v,R]),H=c;R&&(H=G(G({},H),{},{width:v}));var F=f.useRef(null);return f.useImperativeHandle(n,function(){return{getPopupElement:function(){var W;return(W=F.current)===null||W===void 0?void 0:W.popupElement}}}),f.createElement(EE,ut({},E,{showAction:T?["click"]:[],hideAction:T?["click"]:[],popupPlacement:p||(h==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:P,prefixCls:k,popupTransitionName:D,popup:f.createElement("div",{onMouseEnter:x},M),ref:F,stretch:A,popupAlign:S,popupVisible:i,getPopupContainer:b,popupClassName:Re(u,ae({},"".concat(k,"-empty"),C)),popupStyle:H,getTriggerDOMNode:_,onPopupVisibleChange:T}),o)},SGe=f.forwardRef(bGe);function nee(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 UF(e){return typeof e<"u"&&!Number.isNaN(e)}function y0e(e,t){var n=e||{},r=n.label,i=n.value,o=n.options,a=n.groupLabel,s=r||(t?"children":"label");return{label:s,value:i||"value",options:o||"options",groupLabel:a||s}}function CGe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,i=[],o=y0e(n,!1),a=o.label,s=o.value,l=o.options,c=o.groupLabel;function u(d,h){Array.isArray(d)&&d.forEach(function(p){if(h||!(l in p)){var m=p[s];i.push({key:nee(p,i.length),groupOption:h,data:p,label:p[a],value:m})}else{var v=p[c];v===void 0&&r&&(v=p.label),i.push({key:nee(p,i.length),group:!0,data:p,label:v}),u(p[l],!0)}})}return u(e,!1),i}function WF(e){var t=G({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return fi(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var xGe=function(t,n,r){if(!n||!n.length)return null;var i=!1,o=function s(l,c){var u=o1e(c),d=u[0],h=u.slice(1);if(!d)return[l];var p=l.split(d);return i=i||p.length>1,p.reduce(function(m,v){return[].concat(pt(m),pt(s(v,h)))},[]).filter(Boolean)},a=o(t,n);return i?typeof r<"u"?a.slice(0,r):a:null},iW=f.createContext(null);function wGe(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return f.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(ln(o))?o:a}).join(", ")),n.length>r?", ...":null)}var _Ge=["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"],EGe=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],VF=function(t){return t==="tags"||t==="multiple"},oW=f.forwardRef(function(e,t){var n,r=e.id,i=e.prefixCls,o=e.className,a=e.showSearch,s=e.tagRender,l=e.direction,c=e.omitDomProps,u=e.displayValues,d=e.onDisplayValuesChange,h=e.emptyOptions,p=e.notFoundContent,m=p===void 0?"Not Found":p,v=e.onClear,y=e.mode,S=e.disabled,b=e.loading,C=e.getInputElement,_=e.getRawInputElement,T=e.open,x=e.defaultOpen,E=e.onDropdownVisibleChange,k=e.activeValue,M=e.onActiveValueChange,P=e.activeDescendantId,D=e.searchValue,R=e.autoClearSearchValue,A=e.onSearch,H=e.onSearchSplit,F=e.tokenSeparators,z=e.allowClear,W=e.prefix,q=e.suffixIcon,Z=e.clearIcon,N=e.OptionList,B=e.animation,V=e.transitionName,Y=e.dropdownStyle,ie=e.dropdownClassName,ce=e.dropdownMatchSelectWidth,fe=e.dropdownRender,ee=e.dropdownAlign,ne=e.placement,ue=e.builtinPlacements,ye=e.getPopupContainer,me=e.showAction,pe=me===void 0?[]:me,he=e.onFocus,_e=e.onBlur,le=e.onKeyUp,xe=e.onKeyDown,we=e.onMouseDown,De=tn(e,_Ge),Fe=VF(y),Ce=(a!==void 0?a:Fe)||y==="combobox",Te=G({},De);EGe.forEach(function(wn){delete Te[wn]}),c==null||c.forEach(function(wn){delete Te[wn]});var ke=f.useState(!1),Pe=Le(ke,2),Ne=Pe[0],We=Pe[1];f.useEffect(function(){We(qO())},[]);var Q=f.useRef(null),K=f.useRef(null),J=f.useRef(null),be=f.useRef(null),Oe=f.useRef(null),Se=f.useRef(!1),Ke=Rqe(),tt=Le(Ke,3),se=tt[0],ze=tt[1],Ye=tt[2];f.useImperativeHandle(t,function(){var wn,Pn;return{focus:(wn=be.current)===null||wn===void 0?void 0:wn.focus,blur:(Pn=be.current)===null||Pn===void 0?void 0:Pn.blur,scrollTo:function(bn){var Cn;return(Cn=Oe.current)===null||Cn===void 0?void 0:Cn.scrollTo(bn)},nativeElement:Q.current||K.current}});var Ue=f.useMemo(function(){var wn;if(y!=="combobox")return D;var Pn=(wn=u[0])===null||wn===void 0?void 0:wn.value;return typeof Pn=="string"||typeof Pn=="number"?String(Pn):""},[D,y,u]),Je=y==="combobox"&&typeof C=="function"&&C()||null,Ze=typeof _=="function"&&_(),rt=Qd(K,Ze==null||(n=Ze.props)===null||n===void 0?void 0:n.ref),qt=f.useState(!1),St=Le(qt,2),Ot=St[0],Bt=St[1];Er(function(){Bt(!0)},[]);var Dt=Jn(!1,{defaultValue:x,value:T}),an=Le(Dt,2),Vt=an[0],Kt=an[1],Qt=Ot?Vt:!1,et=!m&&h;(S||et&&Qt&&y==="combobox")&&(Qt=!1);var ot=et?!1:Qt,Qe=f.useCallback(function(wn){var Pn=wn!==void 0?wn:!Qt;S||(Kt(Pn),Qt!==Pn&&(E==null||E(Pn)))},[S,Qt,Kt,E]),ct=f.useMemo(function(){return(F||[]).some(function(wn){return[`
|
||
`,`\r
|
||
`].includes(wn)})},[F]),Nt=f.useContext(iW)||{},Lt=Nt.maxCount,Zt=Nt.rawValues,Wt=function(Pn,Ar,bn){if(!(Fe&&UF(Lt)&&(Zt==null?void 0:Zt.size)>=Lt)){var Cn=!0,tr=Pn;M==null||M(null);var Ir=xGe(Pn,F,UF(Lt)?Lt-Zt.size:void 0),li=bn?null:Ir;return y!=="combobox"&&li&&(tr="",H==null||H(li),Qe(!1),Cn=!1),A&&Ue!==tr&&A(tr,{source:Ar?"typing":"effect"}),Cn}},At=function(Pn){!Pn||!Pn.trim()||A(Pn,{source:"submit"})};f.useEffect(function(){!Qt&&!Fe&&y!=="combobox"&&Wt("",!1,!1)},[Qt]),f.useEffect(function(){Vt&&S&&Kt(!1),S&&!Se.current&&ze(!1)},[S]);var $t=d0e(),Gt=Le($t,2),Ft=Gt[0],cn=Gt[1],_t=f.useRef(!1),jt=function(Pn){var Ar=Ft(),bn=Pn.key,Cn=bn==="Enter";if(Cn&&(y!=="combobox"&&Pn.preventDefault(),Qt||Qe(!0)),cn(!!Ue),bn==="Backspace"&&!Ar&&Fe&&!Ue&&u.length){for(var tr=pt(u),Ir=null,li=tr.length-1;li>=0;li-=1){var Wi=tr[li];if(!Wi.disabled){tr.splice(li,1),Ir=Wi;break}}Ir&&d(tr,{type:"remove",values:[Ir]})}for(var mr=arguments.length,Li=new Array(mr>1?mr-1:0),dr=1;dr<mr;dr++)Li[dr-1]=arguments[dr];if(Qt&&(!Cn||!_t.current)){var xn;Cn&&(_t.current=!0),(xn=Oe.current)===null||xn===void 0||xn.onKeyDown.apply(xn,[Pn].concat(Li))}xe==null||xe.apply(void 0,[Pn].concat(Li))},nn=function(Pn){for(var Ar=arguments.length,bn=new Array(Ar>1?Ar-1:0),Cn=1;Cn<Ar;Cn++)bn[Cn-1]=arguments[Cn];if(Qt){var tr;(tr=Oe.current)===null||tr===void 0||tr.onKeyUp.apply(tr,[Pn].concat(bn))}Pn.key==="Enter"&&(_t.current=!1),le==null||le.apply(void 0,[Pn].concat(bn))},Ht=function(Pn){var Ar=u.filter(function(bn){return bn!==Pn});d(Ar,{type:"remove",values:[Pn]})},Tt=function(){_t.current=!1},gt=f.useRef(!1),Ve=function(){ze(!0),S||(he&&!gt.current&&he.apply(void 0,arguments),pe.includes("focus")&&Qe(!0)),gt.current=!0},Yt=function(){Se.current=!0,ze(!1,function(){gt.current=!1,Se.current=!1,Qe(!1)}),!S&&(Ue&&(y==="tags"?A(Ue,{source:"submit"}):y==="multiple"&&A("",{source:"blur"})),_e&&_e.apply(void 0,arguments))},mt=[];f.useEffect(function(){return function(){mt.forEach(function(wn){return clearTimeout(wn)}),mt.splice(0,mt.length)}},[]);var Mt=function(Pn){var Ar,bn=Pn.target,Cn=(Ar=J.current)===null||Ar===void 0?void 0:Ar.getPopupElement();if(Cn&&Cn.contains(bn)){var tr=setTimeout(function(){var mr=mt.indexOf(tr);if(mr!==-1&&mt.splice(mr,1),Ye(),!Ne&&!Cn.contains(document.activeElement)){var Li;(Li=be.current)===null||Li===void 0||Li.focus()}});mt.push(tr)}for(var Ir=arguments.length,li=new Array(Ir>1?Ir-1:0),Wi=1;Wi<Ir;Wi++)li[Wi-1]=arguments[Wi];we==null||we.apply(void 0,[Pn].concat(li))},zt=f.useState({}),Dn=Le(zt,2),Xn=Dn[1];function O(){Xn({})}var j;Ze&&(j=function(Pn){Qe(Pn)}),Aqe(function(){var wn;return[Q.current,(wn=J.current)===null||wn===void 0?void 0:wn.getPopupElement()]},ot,Qe,!!Ze);var oe=f.useMemo(function(){return G(G({},e),{},{notFoundContent:m,open:Qt,triggerOpen:ot,id:r,showSearch:Ce,multiple:Fe,toggleOpen:Qe})},[e,m,ot,Qt,r,Ce,Fe,Qe]),Ae=!!q||b,Ge;Ae&&(Ge=f.createElement(GO,{className:Re("".concat(i,"-arrow"),ae({},"".concat(i,"-arrow-loading"),b)),customizeIcon:q,customizeIconProps:{loading:b,searchValue:Ue,open:Qt,focused:se,showSearch:Ce}}));var ft=function(){var Pn;v==null||v(),(Pn=be.current)===null||Pn===void 0||Pn.focus(),d([],{type:"clear",values:u}),Wt("",!1,!1)},Jt=$qe(i,ft,u,z,Z,S,Ue,y),on=Jt.allowClear,Qn=Jt.clearIcon,ni=f.createElement(N,{ref:Oe}),zr=Re(i,o,ae(ae(ae(ae(ae(ae(ae(ae(ae(ae({},"".concat(i,"-focused"),se),"".concat(i,"-multiple"),Fe),"".concat(i,"-single"),!Fe),"".concat(i,"-allow-clear"),z),"".concat(i,"-show-arrow"),Ae),"".concat(i,"-disabled"),S),"".concat(i,"-loading"),b),"".concat(i,"-open"),Qt),"".concat(i,"-customize-input"),Je),"".concat(i,"-show-search"),Ce)),Yr=f.createElement(SGe,{ref:J,disabled:S,prefixCls:i,visible:ot,popupElement:ni,animation:B,transitionName:V,dropdownStyle:Y,dropdownClassName:ie,direction:l,dropdownMatchSelectWidth:ce,dropdownRender:fe,dropdownAlign:ee,placement:ne,builtinPlacements:ue,getPopupContainer:ye,empty:h,getTriggerDOMNode:function(Pn){return K.current||Pn},onPopupVisibleChange:j,onPopupMouseEnter:O},Ze?f.cloneElement(Ze,{ref:rt}):f.createElement(rGe,ut({},e,{domRef:K,prefixCls:i,inputElement:Je,ref:be,id:r,prefix:W,showSearch:Ce,autoClearSearchValue:R,mode:y,activeDescendantId:P,tagRender:s,values:u,open:Qt,onToggleOpen:Qe,activeValue:k,searchValue:Ue,onSearch:Wt,onSearchSubmit:At,onRemove:Ht,tokenWithEnter:ct,onInputBlur:Tt}))),Rr;return Ze?Rr=Yr:Rr=f.createElement("div",ut({className:zr},Te,{ref:Q,onMouseDown:Mt,onKeyDown:jt,onKeyUp:nn,onFocus:Ve,onBlur:Yt}),f.createElement(wGe,{visible:se&&!Qt,values:u}),Yr,Ge,on&&Qn),f.createElement(u0e.Provider,{value:oe},Rr)}),aW=function(){return null};aW.isSelectOptGroup=!0;var sW=function(){return null};sW.isSelectOption=!0;var b0e=f.forwardRef(function(e,t){var n=e.height,r=e.offsetY,i=e.offsetX,o=e.children,a=e.prefixCls,s=e.onInnerResize,l=e.innerProps,c=e.rtl,u=e.extra,d={},h={display:"flex",flexDirection:"column"};return r!==void 0&&(d={height:n,position:"relative",overflow:"hidden"},h=G(G({},h),{},ae(ae(ae(ae(ae({transform:"translateY(".concat(r,"px)")},c?"marginRight":"marginLeft",-i),"position","absolute"),"left",0),"right",0),"top",0))),f.createElement("div",{style:d},f.createElement(Va,{onResize:function(m){var v=m.offsetHeight;v&&s&&s()}},f.createElement("div",ut({style:h,className:Re(ae({},"".concat(a,"-holder-inner"),a)),ref:t},l),o,u)))});b0e.displayName="Filler";function TGe(e){var t=e.children,n=e.setRef,r=f.useCallback(function(i){n(i)},[]);return f.cloneElement(t,{ref:r})}function kGe(e,t,n,r,i,o,a,s){var l=s.getKey;return e.slice(t,n+1).map(function(c,u){var d=t+u,h=a(c,d,{style:{width:r},offsetX:i}),p=l(c);return f.createElement(TGe,{key:p,setRef:function(v){return o(c,v)}},h)})}function OGe(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 s={__EMPTY_ITEM__:!0};function l(m){return m!==void 0?n(m):s}for(var c=null,u=Math.abs(r-i)!==1,d=0;d<a.length;d+=1){var h=l(o[d]),p=l(a[d]);if(h!==p){c=d,u=u||h!==l(a[d+1]);break}}return c===null?null:{index:c,multiple:u}}function PGe(e,t,n){var r=f.useState(e),i=Le(r,2),o=i[0],a=i[1],s=f.useState(null),l=Le(s,2),c=l[0],u=l[1];return f.useEffect(function(){var d=OGe(o||[],e||[],t);(d==null?void 0:d.index)!==void 0&&u(e[d.index]),a(e)},[e]),[c]}var ree=(typeof navigator>"u"?"undefined":ln(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const S0e=function(e,t,n,r){var i=f.useRef(!1),o=f.useRef(null);function a(){clearTimeout(o.current),i.current=!0,o.current=setTimeout(function(){i.current=!1},50)}var s=f.useRef({top:e,bottom:t,left:n,right:r});return s.current.top=e,s.current.bottom=t,s.current.left=n,s.current.right=r,function(l,c){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,d=l?c<0&&s.current.left||c>0&&s.current.right:c<0&&s.current.top||c>0&&s.current.bottom;return u&&d?(clearTimeout(o.current),i.current=!1):(!d||i.current)&&a(),!i.current&&d}};function MGe(e,t,n,r,i,o,a){var s=f.useRef(0),l=f.useRef(null),c=f.useRef(null),u=f.useRef(!1),d=S0e(t,n,r,i);function h(b,C){if(Sr.cancel(l.current),!d(!1,C)){var _=b;if(!_._virtualHandled)_._virtualHandled=!0;else return;s.current+=C,c.current=C,ree||_.preventDefault(),l.current=Sr(function(){var T=u.current?10:1;a(s.current*T,!1),s.current=0})}}function p(b,C){a(C,!0),ree||b.preventDefault()}var m=f.useRef(null),v=f.useRef(null);function y(b){if(e){Sr.cancel(v.current),v.current=Sr(function(){m.current=null},2);var C=b.deltaX,_=b.deltaY,T=b.shiftKey,x=C,E=_;(m.current==="sx"||!m.current&&T&&_&&!C)&&(x=_,E=0,m.current="sx");var k=Math.abs(x),M=Math.abs(E);m.current===null&&(m.current=o&&k>M?"x":"y"),m.current==="y"?h(b,E):p(b,x)}}function S(b){e&&(u.current=b.detail===c.current)}return[y,S]}function IGe(e,t,n,r){var i=f.useMemo(function(){return[new Map,[]]},[e,n.id,r]),o=Le(i,2),a=o[0],s=o[1],l=function(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u,h=a.get(u),p=a.get(d);if(h===void 0||p===void 0)for(var m=e.length,v=s.length;v<m;v+=1){var y,S=e[v],b=t(S);a.set(b,v);var C=(y=n.get(b))!==null&&y!==void 0?y:r;if(s[v]=(s[v-1]||0)+C,b===u&&(h=v),b===d&&(p=v),h!==void 0&&p!==void 0)break}return{top:s[h-1]||0,bottom:s[p]}};return l}var $Ge=function(){function e(){pi(this,e),ae(this,"maps",void 0),ae(this,"id",0),this.maps=Object.create(null)}return mi(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 iee(e){var t=parseFloat(e);return isNaN(t)?0:t}function RGe(e,t,n){var r=f.useState(0),i=Le(r,2),o=i[0],a=i[1],s=f.useRef(new Map),l=f.useRef(new $Ge),c=f.useRef();function u(){Sr.cancel(c.current)}function d(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;u();var m=function(){s.current.forEach(function(y,S){if(y&&y.offsetParent){var b=Y2(y),C=b.offsetHeight,_=getComputedStyle(b),T=_.marginTop,x=_.marginBottom,E=iee(T),k=iee(x),M=C+E+k;l.current.get(S)!==M&&l.current.set(S,M)}}),a(function(y){return y+1})};p?m():c.current=Sr(m)}function h(p,m){var v=e(p);s.current.get(v),m?(s.current.set(v,m),d()):s.current.delete(v)}return f.useEffect(function(){return u},[]),[h,d,l.current,o]}var oee=14/15;function AGe(e,t,n){var r=f.useRef(!1),i=f.useRef(0),o=f.useRef(0),a=f.useRef(null),s=f.useRef(null),l,c=function(p){if(r.current){var m=Math.ceil(p.touches[0].pageX),v=Math.ceil(p.touches[0].pageY),y=i.current-m,S=o.current-v,b=Math.abs(y)>Math.abs(S);b?i.current=m:o.current=v;var C=n(b,b?y:S,!1,p);C&&p.preventDefault(),clearInterval(s.current),C&&(s.current=setInterval(function(){b?y*=oee:S*=oee;var _=Math.floor(b?y:S);(!n(b,_,!0)||Math.abs(_)<=.1)&&clearInterval(s.current)},16))}},u=function(){r.current=!1,l()},d=function(p){l(),p.touches.length===1&&!r.current&&(r.current=!0,i.current=Math.ceil(p.touches[0].pageX),o.current=Math.ceil(p.touches[0].pageY),a.current=p.target,a.current.addEventListener("touchmove",c,{passive:!1}),a.current.addEventListener("touchend",u,{passive:!0}))};l=function(){a.current&&(a.current.removeEventListener("touchmove",c),a.current.removeEventListener("touchend",u))},Er(function(){return e&&t.current.addEventListener("touchstart",d,{passive:!0}),function(){var h;(h=t.current)===null||h===void 0||h.removeEventListener("touchstart",d),l(),clearInterval(s.current)}},[e])}var NGe=10;function DGe(e,t,n,r,i,o,a,s){var l=f.useRef(),c=f.useState(null),u=Le(c,2),d=u[0],h=u[1];return Er(function(){if(d&&d.times<NGe){if(!e.current){h(function(Z){return G({},Z)});return}o();var p=d.targetAlign,m=d.originAlign,v=d.index,y=d.offset,S=e.current.clientHeight,b=!1,C=p,_=null;if(S){for(var T=p||m,x=0,E=0,k=0,M=Math.min(t.length-1,v),P=0;P<=M;P+=1){var D=i(t[P]);E=x;var R=n.get(D);k=E+(R===void 0?r:R),x=k}for(var A=T==="top"?y:S-y,H=M;H>=0;H-=1){var F=i(t[H]),z=n.get(F);if(z===void 0){b=!0;break}if(A-=z,A<=0)break}switch(T){case"top":_=E-y;break;case"bottom":_=k-S+y;break;default:{var W=e.current.scrollTop,q=W+S;E<W?C="top":k>q&&(C="bottom")}}_!==null&&a(_),_!==d.lastTop&&(b=!0)}b&&h(G(G({},d),{},{times:d.times+1,targetAlign:C,lastTop:_}))}},[d,e.current]),function(p){if(p==null){s();return}if(Sr.cancel(l.current),typeof p=="number")a(p);else if(p&&ln(p)==="object"){var m,v=p.align;"index"in p?m=p.index:m=t.findIndex(function(b){return i(b)===p.key});var y=p.offset,S=y===void 0?0:y;h({times:0,index:m,offset:S,originAlign:v})}}}function aee(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]}var see=f.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,i=e.scrollOffset,o=e.scrollRange,a=e.onStartMove,s=e.onStopMove,l=e.onScroll,c=e.horizontal,u=e.spinSize,d=e.containerSize,h=e.style,p=e.thumbStyle,m=f.useState(!1),v=Le(m,2),y=v[0],S=v[1],b=f.useState(null),C=Le(b,2),_=C[0],T=C[1],x=f.useState(null),E=Le(x,2),k=E[0],M=E[1],P=!r,D=f.useRef(),R=f.useRef(),A=f.useState(!1),H=Le(A,2),F=H[0],z=H[1],W=f.useRef(),q=function(){clearTimeout(W.current),z(!0),W.current=setTimeout(function(){z(!1)},3e3)},Z=o-d||0,N=d-u||0,B=f.useMemo(function(){if(i===0||Z===0)return 0;var ye=i/Z;return ye*N},[i,Z,N]),V=function(me){me.stopPropagation(),me.preventDefault()},Y=f.useRef({top:B,dragging:y,pageY:_,startTop:k});Y.current={top:B,dragging:y,pageY:_,startTop:k};var ie=function(me){S(!0),T(aee(me,c)),M(Y.current.top),a(),me.stopPropagation(),me.preventDefault()};f.useEffect(function(){var ye=function(_e){_e.preventDefault()},me=D.current,pe=R.current;return me.addEventListener("touchstart",ye,{passive:!1}),pe.addEventListener("touchstart",ie,{passive:!1}),function(){me.removeEventListener("touchstart",ye),pe.removeEventListener("touchstart",ie)}},[]);var ce=f.useRef();ce.current=Z;var fe=f.useRef();fe.current=N,f.useEffect(function(){if(y){var ye,me=function(_e){var le=Y.current,xe=le.dragging,we=le.pageY,De=le.startTop;Sr.cancel(ye);var Fe=D.current.getBoundingClientRect(),Ce=d/(c?Fe.width:Fe.height);if(xe){var Te=(aee(_e,c)-we)*Ce,ke=De;!P&&c?ke-=Te:ke+=Te;var Pe=ce.current,Ne=fe.current,We=Ne?ke/Ne:0,Q=Math.ceil(We*Pe);Q=Math.max(Q,0),Q=Math.min(Q,Pe),ye=Sr(function(){l(Q,c)})}},pe=function(){S(!1),s()};return window.addEventListener("mousemove",me,{passive:!0}),window.addEventListener("touchmove",me,{passive:!0}),window.addEventListener("mouseup",pe,{passive:!0}),window.addEventListener("touchend",pe,{passive:!0}),function(){window.removeEventListener("mousemove",me),window.removeEventListener("touchmove",me),window.removeEventListener("mouseup",pe),window.removeEventListener("touchend",pe),Sr.cancel(ye)}}},[y]),f.useEffect(function(){return q(),function(){clearTimeout(W.current)}},[i]),f.useImperativeHandle(t,function(){return{delayHidden:q}});var ee="".concat(n,"-scrollbar"),ne={position:"absolute",visibility:F?null:"hidden"},ue={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return c?(ne.height=8,ne.left=0,ne.right=0,ne.bottom=0,ue.height="100%",ue.width=u,P?ue.left=B:ue.right=B):(ne.width=8,ne.top=0,ne.bottom=0,P?ne.right=0:ne.left=0,ue.width="100%",ue.height=u,ue.top=B),f.createElement("div",{ref:D,className:Re(ee,ae(ae(ae({},"".concat(ee,"-horizontal"),c),"".concat(ee,"-vertical"),!c),"".concat(ee,"-visible"),F)),style:G(G({},ne),h),onMouseDown:V,onMouseMove:q},f.createElement("div",{ref:R,className:Re("".concat(ee,"-thumb"),ae({},"".concat(ee,"-thumb-moving"),y)),style:G(G({},ue),p),onMouseDown:ie}))}),LGe=20;function lee(){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,LGe),Math.floor(n)}var FGe=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],jGe=[],BGe={overflowY:"auto",overflowAnchor:"none"};function HGe(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,i=e.className,o=e.height,a=e.itemHeight,s=e.fullHeight,l=s===void 0?!0:s,c=e.style,u=e.data,d=e.children,h=e.itemKey,p=e.virtual,m=e.direction,v=e.scrollWidth,y=e.component,S=y===void 0?"div":y,b=e.onScroll,C=e.onVirtualScroll,_=e.onVisibleChange,T=e.innerProps,x=e.extraRender,E=e.styles,k=tn(e,FGe),M=f.useCallback(function(Ht){return typeof h=="function"?h(Ht):Ht==null?void 0:Ht[h]},[h]),P=RGe(M),D=Le(P,4),R=D[0],A=D[1],H=D[2],F=D[3],z=!!(p!==!1&&o&&a),W=f.useMemo(function(){return Object.values(H.maps).reduce(function(Ht,Tt){return Ht+Tt},0)},[H.id,H.maps]),q=z&&u&&(Math.max(a*u.length,W)>o||!!v),Z=m==="rtl",N=Re(r,ae({},"".concat(r,"-rtl"),Z),i),B=u||jGe,V=f.useRef(),Y=f.useRef(),ie=f.useRef(),ce=f.useState(0),fe=Le(ce,2),ee=fe[0],ne=fe[1],ue=f.useState(0),ye=Le(ue,2),me=ye[0],pe=ye[1],he=f.useState(!1),_e=Le(he,2),le=_e[0],xe=_e[1],we=function(){xe(!0)},De=function(){xe(!1)},Fe={getKey:M};function Ce(Ht){ne(function(Tt){var gt;typeof Ht=="function"?gt=Ht(Tt):gt=Ht;var Ve=St(gt);return V.current.scrollTop=Ve,Ve})}var Te=f.useRef({start:0,end:B.length}),ke=f.useRef(),Pe=PGe(B,M),Ne=Le(Pe,1),We=Ne[0];ke.current=We;var Q=f.useMemo(function(){if(!z)return{scrollHeight:void 0,start:0,end:B.length-1,offset:void 0};if(!q){var Ht;return{scrollHeight:((Ht=Y.current)===null||Ht===void 0?void 0:Ht.offsetHeight)||0,start:0,end:B.length-1,offset:void 0}}for(var Tt=0,gt,Ve,Yt,mt=B.length,Mt=0;Mt<mt;Mt+=1){var zt=B[Mt],Dn=M(zt),Xn=H.get(Dn),O=Tt+(Xn===void 0?a:Xn);O>=ee&>===void 0&&(gt=Mt,Ve=Tt),O>ee+o&&Yt===void 0&&(Yt=Mt),Tt=O}return gt===void 0&&(gt=0,Ve=0,Yt=Math.ceil(o/a)),Yt===void 0&&(Yt=B.length-1),Yt=Math.min(Yt+1,B.length-1),{scrollHeight:Tt,start:gt,end:Yt,offset:Ve}},[q,z,ee,B,F,o]),K=Q.scrollHeight,J=Q.start,be=Q.end,Oe=Q.offset;Te.current.start=J,Te.current.end=be;var Se=f.useState({width:0,height:o}),Ke=Le(Se,2),tt=Ke[0],se=Ke[1],ze=function(Tt){se({width:Tt.offsetWidth,height:Tt.offsetHeight})},Ye=f.useRef(),Ue=f.useRef(),Je=f.useMemo(function(){return lee(tt.width,v)},[tt.width,v]),Ze=f.useMemo(function(){return lee(tt.height,K)},[tt.height,K]),rt=K-o,qt=f.useRef(rt);qt.current=rt;function St(Ht){var Tt=Ht;return Number.isNaN(qt.current)||(Tt=Math.min(Tt,qt.current)),Tt=Math.max(Tt,0),Tt}var Ot=ee<=0,Bt=ee>=rt,Dt=me<=0,an=me>=v,Vt=S0e(Ot,Bt,Dt,an),Kt=function(){return{x:Z?-me:me,y:ee}},Qt=f.useRef(Kt()),et=cr(function(Ht){if(C){var Tt=G(G({},Kt()),Ht);(Qt.current.x!==Tt.x||Qt.current.y!==Tt.y)&&(C(Tt),Qt.current=Tt)}});function ot(Ht,Tt){var gt=Ht;Tt?(Nc.flushSync(function(){pe(gt)}),et()):Ce(gt)}function Qe(Ht){var Tt=Ht.currentTarget.scrollTop;Tt!==ee&&Ce(Tt),b==null||b(Ht),et()}var ct=function(Tt){var gt=Tt,Ve=v?v-tt.width:0;return gt=Math.max(gt,0),gt=Math.min(gt,Ve),gt},Nt=cr(function(Ht,Tt){Tt?(Nc.flushSync(function(){pe(function(gt){var Ve=gt+(Z?-Ht:Ht);return ct(Ve)})}),et()):Ce(function(gt){var Ve=gt+Ht;return Ve})}),Lt=MGe(z,Ot,Bt,Dt,an,!!v,Nt),Zt=Le(Lt,2),Wt=Zt[0],At=Zt[1];AGe(z,V,function(Ht,Tt,gt,Ve){var Yt=Ve;return Vt(Ht,Tt,gt)?!1:!Yt||!Yt._virtualHandled?(Yt&&(Yt._virtualHandled=!0),Wt({preventDefault:function(){},deltaX:Ht?Tt:0,deltaY:Ht?0:Tt}),!0):!1}),Er(function(){function Ht(gt){var Ve=Ot&>.detail<0,Yt=Bt&>.detail>0;z&&!Ve&&!Yt&>.preventDefault()}var Tt=V.current;return Tt.addEventListener("wheel",Wt,{passive:!1}),Tt.addEventListener("DOMMouseScroll",At,{passive:!0}),Tt.addEventListener("MozMousePixelScroll",Ht,{passive:!1}),function(){Tt.removeEventListener("wheel",Wt),Tt.removeEventListener("DOMMouseScroll",At),Tt.removeEventListener("MozMousePixelScroll",Ht)}},[z,Ot,Bt]),Er(function(){if(v){var Ht=ct(me);pe(Ht),et({x:Ht})}},[tt.width,v]);var $t=function(){var Tt,gt;(Tt=Ye.current)===null||Tt===void 0||Tt.delayHidden(),(gt=Ue.current)===null||gt===void 0||gt.delayHidden()},Gt=DGe(V,B,H,a,M,function(){return A(!0)},Ce,$t);f.useImperativeHandle(t,function(){return{nativeElement:ie.current,getScrollInfo:Kt,scrollTo:function(Tt){function gt(Ve){return Ve&&ln(Ve)==="object"&&("left"in Ve||"top"in Ve)}gt(Tt)?(Tt.left!==void 0&&pe(ct(Tt.left)),Gt(Tt.top)):Gt(Tt)}}}),Er(function(){if(_){var Ht=B.slice(J,be+1);_(Ht,B)}},[J,be,B]);var Ft=IGe(B,M,H,a),cn=x==null?void 0:x({start:J,end:be,virtual:q,offsetX:me,offsetY:Oe,rtl:Z,getSize:Ft}),_t=kGe(B,J,be,v,me,R,d,Fe),jt=null;o&&(jt=G(ae({},l?"height":"maxHeight",o),BGe),z&&(jt.overflowY="hidden",v&&(jt.overflowX="hidden"),le&&(jt.pointerEvents="none")));var nn={};return Z&&(nn.dir="rtl"),f.createElement("div",ut({ref:ie,style:G(G({},c),{},{position:"relative"}),className:N},nn,k),f.createElement(Va,{onResize:ze},f.createElement(S,{className:"".concat(r,"-holder"),style:jt,ref:V,onScroll:Qe,onMouseEnter:$t},f.createElement(b0e,{prefixCls:r,height:K,offsetX:me,offsetY:Oe,scrollWidth:v,onInnerResize:A,ref:Y,innerProps:T,rtl:Z,extra:cn},_t))),q&&K>o&&f.createElement(see,{ref:Ye,prefixCls:r,scrollOffset:ee,scrollRange:K,rtl:Z,onScroll:ot,onStartMove:we,onStopMove:De,spinSize:Ze,containerSize:tt.height,style:E==null?void 0:E.verticalScrollBar,thumbStyle:E==null?void 0:E.verticalScrollBarThumb}),q&&v>tt.width&&f.createElement(see,{ref:Ue,prefixCls:r,scrollOffset:me,scrollRange:v,rtl:Z,onScroll:ot,onStartMove:we,onStopMove:De,spinSize:Je,containerSize:tt.width,horizontal:!0,style:E==null?void 0:E.horizontalScrollBar,thumbStyle:E==null?void 0:E.horizontalScrollBarThumb}))}var YO=f.forwardRef(HGe);YO.displayName="List";function zGe(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var UGe=["disabled","title","children","style","className"];function cee(e){return typeof e=="string"||typeof e=="number"}var WGe=function(t,n){var r=rW(),i=r.prefixCls,o=r.id,a=r.open,s=r.multiple,l=r.mode,c=r.searchValue,u=r.toggleOpen,d=r.notFoundContent,h=r.onPopupScroll,p=f.useContext(iW),m=p.maxCount,v=p.flattenOptions,y=p.onActiveValue,S=p.defaultActiveFirstOption,b=p.onSelect,C=p.menuItemSelectedIcon,_=p.rawValues,T=p.fieldNames,x=p.virtual,E=p.direction,k=p.listHeight,M=p.listItemHeight,P=p.optionRender,D="".concat(i,"-item"),R=dp(function(){return v},[a,v],function(me,pe){return pe[0]&&me[1]!==pe[1]}),A=f.useRef(null),H=f.useMemo(function(){return s&&UF(m)&&(_==null?void 0:_.size)>=m},[s,m,_==null?void 0:_.size]),F=function(pe){pe.preventDefault()},z=function(pe){var he;(he=A.current)===null||he===void 0||he.scrollTo(typeof pe=="number"?{index:pe}:pe)},W=f.useCallback(function(me){return l==="combobox"?!1:_.has(me)},[l,pt(_).toString(),_.size]),q=function(pe){for(var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,_e=R.length,le=0;le<_e;le+=1){var xe=(pe+le*he+_e)%_e,we=R[xe]||{},De=we.group,Fe=we.data;if(!De&&!(Fe!=null&&Fe.disabled)&&(W(Fe.value)||!H))return xe}return-1},Z=f.useState(function(){return q(0)}),N=Le(Z,2),B=N[0],V=N[1],Y=function(pe){var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;V(pe);var _e={source:he?"keyboard":"mouse"},le=R[pe];if(!le){y(null,-1,_e);return}y(le.value,pe,_e)};f.useEffect(function(){Y(S!==!1?q(0):-1)},[R.length,c]);var ie=f.useCallback(function(me){return l==="combobox"?String(me).toLowerCase()===c.toLowerCase():_.has(me)},[l,c,pt(_).toString(),_.size]);f.useEffect(function(){var me=setTimeout(function(){if(!s&&a&&_.size===1){var he=Array.from(_)[0],_e=R.findIndex(function(le){var xe=le.data;return xe.value===he});_e!==-1&&(Y(_e),z(_e))}});if(a){var pe;(pe=A.current)===null||pe===void 0||pe.scrollTo(void 0)}return function(){return clearTimeout(me)}},[a,c]);var ce=function(pe){pe!==void 0&&b(pe,{selected:!_.has(pe)}),s||u(!1)};if(f.useImperativeHandle(n,function(){return{onKeyDown:function(pe){var he=pe.which,_e=pe.ctrlKey;switch(he){case Pt.N:case Pt.P:case Pt.UP:case Pt.DOWN:{var le=0;if(he===Pt.UP?le=-1:he===Pt.DOWN?le=1:zGe()&&_e&&(he===Pt.N?le=1:he===Pt.P&&(le=-1)),le!==0){var xe=q(B+le,le);z(xe),Y(xe,!0)}break}case Pt.TAB:case Pt.ENTER:{var we,De=R[B];De&&!(De!=null&&(we=De.data)!==null&&we!==void 0&&we.disabled)&&!H?ce(De.value):ce(void 0),a&&pe.preventDefault();break}case Pt.ESC:u(!1),a&&pe.stopPropagation()}},onKeyUp:function(){},scrollTo:function(pe){z(pe)}}}),R.length===0)return f.createElement("div",{role:"listbox",id:"".concat(o,"_list"),className:"".concat(D,"-empty"),onMouseDown:F},d);var fe=Object.keys(T).map(function(me){return T[me]}),ee=function(pe){return pe.label};function ne(me,pe){var he=me.group;return{role:he?"presentation":"option",id:"".concat(o,"_list_").concat(pe)}}var ue=function(pe){var he=R[pe];if(!he)return null;var _e=he.data||{},le=_e.value,xe=he.group,we=Hi(_e,!0),De=ee(he);return he?f.createElement("div",ut({"aria-label":typeof De=="string"&&!xe?De:null},we,{key:pe},ne(he,pe),{"aria-selected":ie(le)}),le):null},ye={role:"listbox",id:"".concat(o,"_list")};return f.createElement(f.Fragment,null,x&&f.createElement("div",ut({},ye,{style:{height:0,width:0,overflow:"hidden"}}),ue(B-1),ue(B),ue(B+1)),f.createElement(YO,{itemKey:"key",ref:A,data:R,height:k,itemHeight:M,fullHeight:!1,onMouseDown:F,onScroll:h,virtual:x,direction:E,innerProps:x?null:ye},function(me,pe){var he=me.group,_e=me.groupOption,le=me.data,xe=me.label,we=me.value,De=le.key;if(he){var Fe,Ce=(Fe=le.title)!==null&&Fe!==void 0?Fe:cee(xe)?xe.toString():void 0;return f.createElement("div",{className:Re(D,"".concat(D,"-group"),le.className),title:Ce},xe!==void 0?xe:De)}var Te=le.disabled,ke=le.title;le.children;var Pe=le.style,Ne=le.className,We=tn(le,UGe),Q=Pr(We,fe),K=W(we),J=Te||!K&&H,be="".concat(D,"-option"),Oe=Re(D,be,Ne,ae(ae(ae(ae({},"".concat(be,"-grouped"),_e),"".concat(be,"-active"),B===pe&&!J),"".concat(be,"-disabled"),J),"".concat(be,"-selected"),K)),Se=ee(me),Ke=!C||typeof C=="function"||K,tt=typeof Se=="number"?Se:Se||we,se=cee(tt)?tt.toString():void 0;return ke!==void 0&&(se=ke),f.createElement("div",ut({},Hi(Q),x?{}:ne(me,pe),{"aria-selected":ie(we),className:Oe,title:se,onMouseMove:function(){B===pe||J||Y(pe)},onClick:function(){J||ce(we)},style:Pe}),f.createElement("div",{className:"".concat(be,"-content")},typeof P=="function"?P(me,{index:pe}):tt),f.isValidElement(C)||K,Ke&&f.createElement(GO,{className:"".concat(D,"-option-state"),customizeIcon:C,customizeIconProps:{value:we,disabled:J,isSelected:K}},K?"✓":null))}))},VGe=f.forwardRef(WGe);const KGe=function(e,t){var n=f.useRef({values:new Map,options:new Map}),r=f.useMemo(function(){var o=n.current,a=o.values,s=o.options,l=e.map(function(d){if(d.label===void 0){var h;return G(G({},d),{},{label:(h=a.get(d.value))===null||h===void 0?void 0:h.label})}return d}),c=new Map,u=new Map;return l.forEach(function(d){c.set(d.value,d),u.set(d.value,t.get(d.value)||s.get(d.value))}),n.current.values=c,n.current.options=u,l},[e,t]),i=f.useCallback(function(o){return t.get(o)||n.current.options.get(o)},[t]);return[r,i]};function AR(e,t){return g0e(e).join("").toUpperCase().includes(t)}const qGe=function(e,t,n,r,i){return f.useMemo(function(){if(!n||r===!1)return e;var o=t.options,a=t.label,s=t.value,l=[],c=typeof r=="function",u=n.toUpperCase(),d=c?r:function(p,m){return i?AR(m[i],u):m[o]?AR(m[a!=="children"?a:"label"],u):AR(m[s],u)},h=c?function(p){return WF(p)}:function(p){return p};return e.forEach(function(p){if(p[o]){var m=d(n,h(p));if(m)l.push(p);else{var v=p[o].filter(function(y){return d(n,h(y))});v.length&&l.push(G(G({},p),{},ae({},o,v)))}return}d(n,h(p))&&l.push(p)}),l},[e,r,i,n,t])};var uee=0,GGe=ml();function YGe(){var e;return GGe?(e=uee,uee+=1):e="TEST_OR_SSR",e}function lW(e){var t=f.useState(),n=Le(t,2),r=n[0],i=n[1];return f.useEffect(function(){i("rc_select_".concat(YGe()))},[]),e||r}var XGe=["children","value"],QGe=["children"];function ZGe(e){var t=e,n=t.key,r=t.props,i=r.children,o=r.value,a=tn(r,XGe);return G({key:n,value:o!==void 0?o:n,children:i},a)}function C0e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Uo(e).map(function(n,r){if(!f.isValidElement(n)||!n.type)return null;var i=n,o=i.type.isSelectOptGroup,a=i.key,s=i.props,l=s.children,c=tn(s,QGe);return t||!o?ZGe(n):G(G({key:"__RC_SELECT_GRP__".concat(a===null?r:a,"__"),label:a},c),{},{options:C0e(l)})}).filter(function(n){return n})}var JGe=function(t,n,r,i,o){return f.useMemo(function(){var a=t,s=!t;s&&(a=C0e(n));var l=new Map,c=new Map,u=function(p,m,v){v&&typeof v=="string"&&p.set(m[v],m)},d=function h(p){for(var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,v=0;v<p.length;v+=1){var y=p[v];!y[r.options]||m?(l.set(y[r.value],y),u(c,y,r.label),u(c,y,i),u(c,y,o)):h(y[r.options],!0)}};return d(a),{options:a,valueOptions:l,labelOptions:c}},[t,n,r,i,o])};function dee(e){var t=f.useRef();t.current=e;var n=f.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var eYe=["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"],tYe=["inputValue"];function nYe(e){return!e||ln(e)!=="object"}var rYe=f.forwardRef(function(e,t){var n=e.id,r=e.mode,i=e.prefixCls,o=i===void 0?"rc-select":i,a=e.backfill,s=e.fieldNames,l=e.inputValue,c=e.searchValue,u=e.onSearch,d=e.autoClearSearchValue,h=d===void 0?!0:d,p=e.onSelect,m=e.onDeselect,v=e.dropdownMatchSelectWidth,y=v===void 0?!0:v,S=e.filterOption,b=e.filterSort,C=e.optionFilterProp,_=e.optionLabelProp,T=e.options,x=e.optionRender,E=e.children,k=e.defaultActiveFirstOption,M=e.menuItemSelectedIcon,P=e.virtual,D=e.direction,R=e.listHeight,A=R===void 0?200:R,H=e.listItemHeight,F=H===void 0?20:H,z=e.labelRender,W=e.value,q=e.defaultValue,Z=e.labelInValue,N=e.onChange,B=e.maxCount,V=tn(e,eYe),Y=lW(n),ie=VF(r),ce=!!(!T&&E),fe=f.useMemo(function(){return S===void 0&&r==="combobox"?!1:S},[S,r]),ee=f.useMemo(function(){return y0e(s,ce)},[JSON.stringify(s),ce]),ne=Jn("",{value:c!==void 0?c:l,postState:function(ct){return ct||""}}),ue=Le(ne,2),ye=ue[0],me=ue[1],pe=JGe(T,E,ee,C,_),he=pe.valueOptions,_e=pe.labelOptions,le=pe.options,xe=f.useCallback(function(Qe){var ct=g0e(Qe);return ct.map(function(Nt){var Lt,Zt,Wt,At,$t;if(nYe(Nt))Lt=Nt;else{var Gt;Wt=Nt.key,Zt=Nt.label,Lt=(Gt=Nt.value)!==null&&Gt!==void 0?Gt:Wt}var Ft=he.get(Lt);if(Ft){var cn;Zt===void 0&&(Zt=Ft==null?void 0:Ft[_||ee.label]),Wt===void 0&&(Wt=(cn=Ft==null?void 0:Ft.key)!==null&&cn!==void 0?cn:Lt),At=Ft==null?void 0:Ft.disabled,$t=Ft==null?void 0:Ft.title}return{label:Zt,value:Lt,key:Wt,disabled:At,title:$t}})},[ee,_,he]),we=Jn(q,{value:W}),De=Le(we,2),Fe=De[0],Ce=De[1],Te=f.useMemo(function(){var Qe,ct=ie&&Fe===null?[]:Fe,Nt=xe(ct);return r==="combobox"&&Qqe((Qe=Nt[0])===null||Qe===void 0?void 0:Qe.value)?[]:Nt},[Fe,xe,r,ie]),ke=KGe(Te,he),Pe=Le(ke,2),Ne=Pe[0],We=Pe[1],Q=f.useMemo(function(){if(!r&&Ne.length===1){var Qe=Ne[0];if(Qe.value===null&&(Qe.label===null||Qe.label===void 0))return[]}return Ne.map(function(ct){var Nt;return G(G({},ct),{},{label:(Nt=typeof z=="function"?z(ct):ct.label)!==null&&Nt!==void 0?Nt:ct.value})})},[r,Ne,z]),K=f.useMemo(function(){return new Set(Ne.map(function(Qe){return Qe.value}))},[Ne]);f.useEffect(function(){if(r==="combobox"){var Qe,ct=(Qe=Ne[0])===null||Qe===void 0?void 0:Qe.value;me(Xqe(ct)?String(ct):"")}},[Ne]);var J=dee(function(Qe,ct){var Nt=ct??Qe;return ae(ae({},ee.value,Qe),ee.label,Nt)}),be=f.useMemo(function(){if(r!=="tags")return le;var Qe=pt(le),ct=function(Lt){return he.has(Lt)};return pt(Ne).sort(function(Nt,Lt){return Nt.value<Lt.value?-1:1}).forEach(function(Nt){var Lt=Nt.value;ct(Lt)||Qe.push(J(Lt,Nt.label))}),Qe},[J,le,he,Ne,r]),Oe=qGe(be,ee,ye,fe,C),Se=f.useMemo(function(){return r!=="tags"||!ye||Oe.some(function(Qe){return Qe[C||"value"]===ye})||Oe.some(function(Qe){return Qe[ee.value]===ye})?Oe:[J(ye)].concat(pt(Oe))},[J,C,r,Oe,ye,ee]),Ke=function Qe(ct){var Nt=pt(ct).sort(function(Lt,Zt){return b(Lt,Zt,{searchValue:ye})});return Nt.map(function(Lt){return Array.isArray(Lt.options)?G(G({},Lt),{},{options:Lt.options.length>0?Qe(Lt.options):Lt.options}):Lt})},tt=f.useMemo(function(){return b?Ke(Se):Se},[Se,b,ye]),se=f.useMemo(function(){return CGe(tt,{fieldNames:ee,childrenAsData:ce})},[tt,ee,ce]),ze=function(ct){var Nt=xe(ct);if(Ce(Nt),N&&(Nt.length!==Ne.length||Nt.some(function(Wt,At){var $t;return(($t=Ne[At])===null||$t===void 0?void 0:$t.value)!==(Wt==null?void 0:Wt.value)}))){var Lt=Z?Nt:Nt.map(function(Wt){return Wt.value}),Zt=Nt.map(function(Wt){return WF(We(Wt.value))});N(ie?Lt:Lt[0],ie?Zt:Zt[0])}},Ye=f.useState(null),Ue=Le(Ye,2),Je=Ue[0],Ze=Ue[1],rt=f.useState(0),qt=Le(rt,2),St=qt[0],Ot=qt[1],Bt=k!==void 0?k:r!=="combobox",Dt=f.useCallback(function(Qe,ct){var Nt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Lt=Nt.source,Zt=Lt===void 0?"keyboard":Lt;Ot(ct),a&&r==="combobox"&&Qe!==null&&Zt==="keyboard"&&Ze(String(Qe))},[a,r]),an=function(ct,Nt,Lt){var Zt=function(){var Ht,Tt=We(ct);return[Z?{label:Tt==null?void 0:Tt[ee.label],value:ct,key:(Ht=Tt==null?void 0:Tt.key)!==null&&Ht!==void 0?Ht:ct}:ct,WF(Tt)]};if(Nt&&p){var Wt=Zt(),At=Le(Wt,2),$t=At[0],Gt=At[1];p($t,Gt)}else if(!Nt&&m&&Lt!=="clear"){var Ft=Zt(),cn=Le(Ft,2),_t=cn[0],jt=cn[1];m(_t,jt)}},Vt=dee(function(Qe,ct){var Nt,Lt=ie?ct.selected:!0;Lt?Nt=ie?[].concat(pt(Ne),[Qe]):[Qe]:Nt=Ne.filter(function(Zt){return Zt.value!==Qe}),ze(Nt),an(Qe,Lt),r==="combobox"?Ze(""):(!VF||h)&&(me(""),Ze(""))}),Kt=function(ct,Nt){ze(ct);var Lt=Nt.type,Zt=Nt.values;(Lt==="remove"||Lt==="clear")&&Zt.forEach(function(Wt){an(Wt.value,!1,Lt)})},Qt=function(ct,Nt){if(me(ct),Ze(null),Nt.source==="submit"){var Lt=(ct||"").trim();if(Lt){var Zt=Array.from(new Set([].concat(pt(K),[Lt])));ze(Zt),an(Lt,!0),me("")}return}Nt.source!=="blur"&&(r==="combobox"&&ze(ct),u==null||u(ct))},et=function(ct){var Nt=ct;r!=="tags"&&(Nt=ct.map(function(Zt){var Wt=_e.get(Zt);return Wt==null?void 0:Wt.value}).filter(function(Zt){return Zt!==void 0}));var Lt=Array.from(new Set([].concat(pt(K),pt(Nt))));ze(Lt),Lt.forEach(function(Zt){an(Zt,!0)})},ot=f.useMemo(function(){var Qe=P!==!1&&y!==!1;return G(G({},pe),{},{flattenOptions:se,onActiveValue:Dt,defaultActiveFirstOption:Bt,onSelect:Vt,menuItemSelectedIcon:M,rawValues:K,fieldNames:ee,virtual:Qe,direction:D,listHeight:A,listItemHeight:F,childrenAsData:ce,maxCount:B,optionRender:x})},[B,pe,se,Dt,Bt,Vt,M,K,ee,P,y,D,A,F,ce,x]);return f.createElement(iW.Provider,{value:ot},f.createElement(oW,ut({},V,{id:Y,prefixCls:o,ref:t,omitDomProps:tYe,mode:r,displayValues:Q,onDisplayValuesChange:Kt,direction:D,searchValue:ye,onSearch:Qt,autoClearSearchValue:h,onSearchSplit:et,dropdownMatchSelectWidth:y,OptionList:VGe,emptyOptions:!se.length,activeValue:Je,activeDescendantId:"".concat(Y,"_list_").concat(St)})))}),cW=rYe;cW.Option=sW;cW.OptGroup=aW;function Ud(e,t,n){return Re({[`${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 Op=(e,t)=>t||e,iYe=()=>{const[,e]=na(),[t]=Os("Empty"),r=new Cr(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return f.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},f.createElement("title",null,(t==null?void 0:t.description)||"Empty"),f.createElement("g",{fill:"none",fillRule:"evenodd"},f.createElement("g",{transform:"translate(24 31.67)"},f.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),f.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"}),f.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)"}),f.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"}),f.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"})),f.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"}),f.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},f.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),f.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},oYe=()=>{const[,e]=na(),[t]=Os("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:i,colorBgContainer:o}=e,{borderColor:a,shadowColor:s,contentColor:l}=f.useMemo(()=>({borderColor:new Cr(n).onBackground(o).toHexString(),shadowColor:new Cr(r).onBackground(o).toHexString(),contentColor:new Cr(i).onBackground(o).toHexString()}),[n,r,i,o]);return f.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},f.createElement("title",null,(t==null?void 0:t.description)||"Empty"),f.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},f.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),f.createElement("g",{fillRule:"nonzero",stroke:a},f.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"}),f.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:l}))))},aYe=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}}}}},sYe=Tr("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,i=ur(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[aYe(i)]});var lYe=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 x0e=f.createElement(iYe,null),w0e=f.createElement(oYe,null),zh=e=>{var t,n,r,i,o,a,s,l;const{className:c,rootClassName:u,prefixCls:d,image:h=x0e,description:p,children:m,imageStyle:v,style:y,classNames:S,styles:b}=e,C=lYe(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:_,direction:T,empty:x}=f.useContext(hn),E=_("empty",d),[k,M,P]=sYe(E),[D]=Os("Empty"),R=typeof p<"u"?p:D==null?void 0:D.description,A=typeof R=="string"?R:"empty";let H=null;return typeof h=="string"?H=f.createElement("img",{alt:A,src:h}):H=h,k(f.createElement("div",Object.assign({className:Re(M,P,E,x==null?void 0:x.className,{[`${E}-normal`]:h===w0e,[`${E}-rtl`]:T==="rtl"},c,u,(t=x==null?void 0:x.classNames)===null||t===void 0?void 0:t.root,S==null?void 0:S.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},(n=x==null?void 0:x.styles)===null||n===void 0?void 0:n.root),x==null?void 0:x.style),b==null?void 0:b.root),y)},C),f.createElement("div",{className:Re(`${E}-image`,(r=x==null?void 0:x.classNames)===null||r===void 0?void 0:r.image,S==null?void 0:S.image),style:Object.assign(Object.assign(Object.assign({},v),(i=x==null?void 0:x.styles)===null||i===void 0?void 0:i.image),b==null?void 0:b.image)},H),R&&f.createElement("div",{className:Re(`${E}-description`,(o=x==null?void 0:x.classNames)===null||o===void 0?void 0:o.description,S==null?void 0:S.description),style:Object.assign(Object.assign({},(a=x==null?void 0:x.styles)===null||a===void 0?void 0:a.description),b==null?void 0:b.description)},R),m&&f.createElement("div",{className:Re(`${E}-footer`,(s=x==null?void 0:x.classNames)===null||s===void 0?void 0:s.footer,S==null?void 0:S.footer),style:Object.assign(Object.assign({},(l=x==null?void 0:x.styles)===null||l===void 0?void 0:l.footer),b==null?void 0:b.footer)},m)))};zh.PRESENTED_IMAGE_DEFAULT=x0e;zh.PRESENTED_IMAGE_SIMPLE=w0e;const ZS=e=>{const{componentName:t}=e,{getPrefixCls:n}=f.useContext(hn),r=n("empty");switch(t){case"Table":case"List":return ge.createElement(zh,{image:zh.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ge.createElement(zh,{image:zh.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return ge.createElement(zh,null)}},Pp=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,i;const{variant:o,[e]:a}=f.useContext(hn),s=f.useContext(Bve),l=a==null?void 0:a.variant;let c;typeof t<"u"?c=t:n===!1?c="borderless":c=(i=(r=s??l)!==null&&r!==void 0?r:o)!==null&&i!==void 0?i:"outlined";const u=RBe.includes(c);return[c,u]},cYe=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 uW(e,t){return e||cYe(t)}const fee=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"}},uYe=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`,s=`${n}-dropdown-placement-`,l=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},$r(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}${s}bottomLeft,
|
||
${o}${s}bottomLeft
|
||
`]:{animationName:AO},[`
|
||
${i}${s}topLeft,
|
||
${o}${s}topLeft,
|
||
${i}${s}topRight,
|
||
${o}${s}topRight
|
||
`]:{animationName:DO},[`${a}${s}bottomLeft`]:{animationName:NO},[`
|
||
${a}${s}topLeft,
|
||
${a}${s}topRight
|
||
`]:{animationName:LO},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},fee(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"},Yl),"&-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}},"&-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({},fee(e)),{color:e.colorTextDisabled})}),[`${l}:has(+ ${l})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${l}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},qf(e,"slide-up"),qf(e,"slide-down"),Qb(e,"move-up"),Qb(e,"move-down")]},_0e=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:je(t),itemLineHeight:je(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},dYe=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},E0e=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:i,paddingXS:o,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:s,colorIcon:l,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:u}=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:u,borderRadius:r,cursor:"default",transition:`font-size ${i}, line-height ${i}, height ${i}`,marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:o,paddingInlineEnd:e.calc(o).div(2).equal(),[`${t}-disabled&`]:{color:a,borderColor:s,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({},qv()),{display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},fYe=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,i=`${n}-selection-overflow`,o=e.multipleSelectItemHeight,a=dYe(e),s=t?`${n}-${t}`:"",l=_0e(e);return{[`${n}-multiple${s}`]:Object.assign(Object.assign({},E0e(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:l.basePadding,paddingBlock:l.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${je(r)} 0`,lineHeight:je(o),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:l.itemHeight,lineHeight:je(l.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:je(o),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.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:l.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:je(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(l.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function NR(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[fYe(e,t),i]}const hYe=e=>{const{componentCls:t}=e,n=ur(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=ur(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[NR(e),NR(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},NR(r,"lg")]};function DR(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({},$r(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:je(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 ${je(r)}`,[`${n}-selection-search-input`]:{height:o},"&:after":{lineHeight:je(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 ${je(r)}`,"&:after":{display:"none"}}}}}}}function pYe(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[DR(e),DR(ur(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${je(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()}}}},DR(ur(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const mYe=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:i,controlHeightSM:o,controlHeightLG:a,paddingXXS:s,controlPaddingHorizontal:l,zIndexPopupBase:c,colorText:u,fontWeightStrong:d,controlItemBgActive:h,controlItemBgHover:p,colorBgContainer:m,colorFillSecondary:v,colorBgContainerDisabled:y,colorTextDisabled:S,colorPrimaryHover:b,colorPrimary:C,controlOutline:_}=e,T=s*2,x=r*2,E=Math.min(i-T,i-x),k=Math.min(o-T,o-x),M=Math.min(a-T,a-x);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:c+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:h,optionActiveBg:p,optionPadding:`${(i-t*n)/2}px ${l}px`,optionFontSize:t,optionLineHeight:n,optionHeight:i,selectorBg:m,clearBg:m,singleItemHeightLG:a,multipleItemBg:v,multipleItemBorderColor:"transparent",multipleItemHeight:E,multipleItemHeightSM:k,multipleItemHeightLG:M,multipleSelectorBgDisabled:y,multipleItemColorDisabled:S,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:b,activeBorderColor:C,activeOutlineColor:_,selectAffixPadding:s}},T0e=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:i}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${je(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 ${je(i)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},hee=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},T0e(e,t))}),gYe=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},T0e(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),hee(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),hee(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:`${je(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),k0e=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${je(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}}}},pee=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},k0e(e,t))}),vYe=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},k0e(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),pee(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),pee(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:`${je(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),yYe=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${je(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:`${je(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}}}}),bYe=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},gYe(e)),vYe(e)),yYe(e))}),SYe=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"}}}},CYe=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"}}}},xYe=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:i}=e;return{[n]:Object.assign(Object.assign({},$r(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},SYe(e)),CYe(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Yl),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Yl),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},qv()),{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",minWidth:0,"&: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}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},wYe=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},xYe(e),pYe(e),hYe(e),uYe(e),{[`${t}-rtl`]:{direction:"rtl"}},Yv(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},dW=Tr("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=ur(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[wYe(r),bYe(r)]},mYe,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var O0e={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"},_Ye=function(t,n){return f.createElement(wr,ut({},t,{ref:n,icon:O0e}))},fW=f.forwardRef(_Ye),EYe={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"},TYe=function(t,n){return f.createElement(wr,ut({},t,{ref:n,icon:EYe}))},TE=f.forwardRef(TYe),kYe={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"},OYe=function(t,n){return f.createElement(wr,ut({},t,{ref:n,icon:kYe}))},XO=f.forwardRef(OYe);function QO(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:i,loading:o,multiple:a,hasFeedback:s,prefixCls:l,showSuffixIcon:c,feedbackIcon:u,showArrow:d,componentName:h}=e;const p=n??f.createElement(th,null),m=b=>t===null&&!s&&!d?null:f.createElement(f.Fragment,null,c!==!1&&b,s&&u);let v=null;if(t!==void 0)v=m(t);else if(o)v=m(f.createElement(Bd,{spin:!0}));else{const b=`${l}-suffix`;v=C=>{let{open:_,showSearch:T}=C;return m(_&&T?f.createElement(XO,{className:b}):f.createElement(TE,{className:b}))}}let y=null;r!==void 0?y=r:a?y=f.createElement(fW,null):y=null;let S=null;return i!==void 0?S=i:S=f.createElement(nh,null),{clearIcon:p,suffixIcon:v,itemIcon:y,removeIcon:S}}function hW(e,t){return t!==void 0?t:e!==null}var PYe=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="SECRET_COMBOBOX_MODE_DO_NOT_USE",MYe=(e,t)=>{var n;const{prefixCls:r,bordered:i,className:o,rootClassName:a,getPopupContainer:s,popupClassName:l,dropdownClassName:c,listHeight:u=256,placement:d,listItemHeight:h,size:p,disabled:m,notFoundContent:v,status:y,builtinPlacements:S,dropdownMatchSelectWidth:b,popupMatchSelectWidth:C,direction:_,style:T,allowClear:x,variant:E,dropdownStyle:k,transitionName:M,tagRender:P,maxCount:D,prefix:R}=e,A=PYe(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:H,getPrefixCls:F,renderEmpty:z,direction:W,virtual:q,popupMatchSelectWidth:Z,popupOverflow:N,select:B}=f.useContext(hn),[,V]=na(),Y=h??(V==null?void 0:V.controlHeight),ie=F("select",r),ce=F(),fe=_??W,{compactSize:ee,compactItemClassnames:ne}=Zd(ie,fe),[ue,ye]=Pp("select",E,i),me=_i(ie),[pe,he,_e]=dW(ie,me),le=f.useMemo(()=>{const{mode:Je}=e;if(Je!=="combobox")return Je===P0e?"combobox":Je},[e.mode]),xe=le==="multiple"||le==="tags",we=hW(e.suffixIcon,e.showArrow),De=(n=C??b)!==null&&n!==void 0?n:Z,{status:Fe,hasFeedback:Ce,isFormItemInput:Te,feedbackIcon:ke}=f.useContext(pa),Pe=Op(Fe,y);let Ne;v!==void 0?Ne=v:le==="combobox"?Ne=null:Ne=(z==null?void 0:z("Select"))||f.createElement(ZS,{componentName:"Select"});const{suffixIcon:We,itemIcon:Q,removeIcon:K,clearIcon:J}=QO(Object.assign(Object.assign({},A),{multiple:xe,hasFeedback:Ce,feedbackIcon:ke,showSuffixIcon:we,prefixCls:ie,componentName:"Select"})),be=x===!0?{clearIcon:J}:x,Oe=Pr(A,["suffixIcon","itemIcon"]),Se=Re(l||c,{[`${ie}-dropdown-${fe}`]:fe==="rtl"},a,_e,me,he),Ke=Ro(Je=>{var Ze;return(Ze=p??ee)!==null&&Ze!==void 0?Ze:Je}),tt=f.useContext(ea),se=m??tt,ze=Re({[`${ie}-lg`]:Ke==="large",[`${ie}-sm`]:Ke==="small",[`${ie}-rtl`]:fe==="rtl",[`${ie}-${ue}`]:ye,[`${ie}-in-form-item`]:Te},Ud(ie,Pe,Ce),ne,B==null?void 0:B.className,o,a,_e,me,he),Ye=f.useMemo(()=>d!==void 0?d:fe==="rtl"?"bottomRight":"bottomLeft",[d,fe]),[Ue]=Du("SelectLike",k==null?void 0:k.zIndex);return pe(f.createElement(cW,Object.assign({ref:t,virtual:q,showSearch:B==null?void 0:B.showSearch},Oe,{style:Object.assign(Object.assign({},B==null?void 0:B.style),T),dropdownMatchSelectWidth:De,transitionName:as(ce,"slide-up",M),builtinPlacements:uW(S,N),listHeight:u,listItemHeight:Y,mode:le,prefixCls:ie,placement:Ye,direction:fe,prefix:R,suffixIcon:We,menuItemSelectedIcon:Q,removeIcon:K,allowClear:be,notFoundContent:Ne,className:ze,getPopupContainer:s||H,dropdownClassName:Se,disabled:se,dropdownStyle:Object.assign(Object.assign({},k),{zIndex:Ue}),maxCount:xe?D:void 0,tagRender:xe?P:void 0})))},bs=f.forwardRef(MYe),IYe=vg(bs,"dropdownAlign");bs.SECRET_COMBOBOX_MODE_DO_NOT_USE=P0e;bs.Option=sW;bs.OptGroup=aW;bs._InternalPanelDoNotUseOrYouWillBeFired=IYe;const ig=["xxl","xl","lg","md","sm","xs"],$Ye=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)`}),RYe=e=>{const t=e,n=[].concat(ig).reverse();return n.forEach((r,i)=>{const o=r.toUpperCase(),a=`screen${o}Min`,s=`screen${o}`;if(!(t[a]<=t[s]))throw new Error(`${a}<=${s} fails : !(${t[a]}<=${t[s]})`);if(i<n.length-1){const l=`screen${o}Max`;if(!(t[s]<=t[l]))throw new Error(`${s}<=${l} fails : !(${t[s]}<=${t[l]})`);const u=`screen${n[i+1].toUpperCase()}Min`;if(!(t[l]<=t[u]))throw new Error(`${l}<=${u} fails : !(${t[l]}<=${t[u]})`)}}),e};function M0e(){const[,e]=na(),t=$Ye(RYe(e));return ge.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],s=this.matchHandlers[a];s==null||s.mql.removeListener(s==null?void 0:s.listener)}),n.clear()},register(){Object.keys(t).forEach(o=>{const a=t[o],s=c=>{let{matches:u}=c;this.dispatch(Object.assign(Object.assign({},i),{[o]:u}))},l=window.matchMedia(a);l.addListener(s),this.matchHandlers[a]={mql:l,listener:s},s(l)})},responsiveMap:t}},[e])}function pW(){const[,e]=f.useReducer(t=>t+1,0);return e}function ZO(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=f.useRef({}),n=pW(),r=M0e();return Er(()=>{const i=r.subscribe(o=>{t.current=o,e&&n()});return()=>r.unsubscribe(i)},[]),t.current}const KF=f.createContext({}),AYe=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:i,avatarColor:o,containerSize:a,containerSizeLG:s,containerSizeSM:l,textFontSize:c,textFontSizeLG:u,textFontSizeSM:d,borderRadius:h,borderRadiusLG:p,borderRadiusSM:m,lineWidth:v,lineType:y}=e,S=(b,C,_)=>({width:b,height:b,borderRadius:"50%",[`&${n}-square`]:{borderRadius:_},[`&${n}-icon`]:{fontSize:C,[`> ${r}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},$r(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:o,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:i,border:`${je(v)} ${y} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),S(a,c,h)),{"&-lg":Object.assign({},S(s,u,p)),"&-sm":Object.assign({},S(l,d,m)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},NYe=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}}}},DYe=e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:i,fontSizeLG:o,fontSizeXL:a,fontSizeHeading3:s,marginXS:l,marginXXS:c,colorBorderBg:u}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:Math.round((o+a)/2),textFontSizeLG:s,textFontSizeSM:i,groupSpace:c,groupOverlapping:-l,groupBorderColor:u}},I0e=Tr("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=ur(e,{avatarBg:n,avatarColor:t});return[AYe(r),NYe(r)]},DYe);var LYe=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 FYe=(e,t)=>{const[n,r]=f.useState(1),[i,o]=f.useState(!1),[a,s]=f.useState(!0),l=f.useRef(null),c=f.useRef(null),u=va(t,l),{getPrefixCls:d,avatar:h}=f.useContext(hn),p=f.useContext(KF),m=()=>{if(!c.current||!l.current)return;const ne=c.current.offsetWidth,ue=l.current.offsetWidth;if(ne!==0&&ue!==0){const{gap:ye=4}=e;ye*2<ue&&r(ue-ye*2<ne?(ue-ye*2)/ne:1)}};f.useEffect(()=>{o(!0)},[]),f.useEffect(()=>{s(!0),r(1)},[e.src]),f.useEffect(m,[e.gap]);const v=()=>{const{onError:ne}=e;(ne==null?void 0:ne())!==!1&&s(!1)},{prefixCls:y,shape:S,size:b,src:C,srcSet:_,icon:T,className:x,rootClassName:E,alt:k,draggable:M,children:P,crossOrigin:D}=e,R=LYe(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),A=Ro(ne=>{var ue,ye;return(ye=(ue=b??(p==null?void 0:p.size))!==null&&ue!==void 0?ue:ne)!==null&&ye!==void 0?ye:"default"}),H=Object.keys(typeof A=="object"?A||{}:{}).some(ne=>["xs","sm","md","lg","xl","xxl"].includes(ne)),F=ZO(H),z=f.useMemo(()=>{if(typeof A!="object")return{};const ne=ig.find(ye=>F[ye]),ue=A[ne];return ue?{width:ue,height:ue,fontSize:ue&&(T||P)?ue/2:18}:{}},[F,A]),W=d("avatar",y),q=_i(W),[Z,N,B]=I0e(W,q),V=Re({[`${W}-lg`]:A==="large",[`${W}-sm`]:A==="small"}),Y=f.isValidElement(C),ie=S||(p==null?void 0:p.shape)||"circle",ce=Re(W,V,h==null?void 0:h.className,`${W}-${ie}`,{[`${W}-image`]:Y||C&&a,[`${W}-icon`]:!!T},B,q,x,E,N),fe=typeof A=="number"?{width:A,height:A,fontSize:T?A/2:18}:{};let ee;if(typeof C=="string"&&a)ee=f.createElement("img",{src:C,draggable:M,srcSet:_,onError:v,alt:k,crossOrigin:D});else if(Y)ee=C;else if(T)ee=T;else if(i||n!==1){const ne=`scale(${n})`,ue={msTransform:ne,WebkitTransform:ne,transform:ne};ee=f.createElement(Va,{onResize:m},f.createElement("span",{className:`${W}-string`,ref:c,style:Object.assign({},ue)},P))}else ee=f.createElement("span",{className:`${W}-string`,style:{opacity:0},ref:c},P);return delete R.onError,delete R.gap,Z(f.createElement("span",Object.assign({},R,{style:Object.assign(Object.assign(Object.assign(Object.assign({},fe),z),h==null?void 0:h.style),R.style),className:ce,ref:u}),ee))},$0e=f.forwardRef(FYe),Jb=e=>e?typeof e=="function"?e():e:null;function mW(e){var t=e.children,n=e.prefixCls,r=e.id,i=e.overlayInnerStyle,o=e.bodyClassName,a=e.className,s=e.style;return f.createElement("div",{className:Re("".concat(n,"-content"),a),style:s},f.createElement("div",{className:Re("".concat(n,"-inner"),o),id:r,role:"tooltip",style:i},typeof t=="function"?t():t))}var J0={shiftX:64,adjustY:1},ey={adjustX:1,shiftY:!0},eu=[0,0],jYe={left:{points:["cr","cl"],overflow:ey,offset:[-4,0],targetOffset:eu},right:{points:["cl","cr"],overflow:ey,offset:[4,0],targetOffset:eu},top:{points:["bc","tc"],overflow:J0,offset:[0,-4],targetOffset:eu},bottom:{points:["tc","bc"],overflow:J0,offset:[0,4],targetOffset:eu},topLeft:{points:["bl","tl"],overflow:J0,offset:[0,-4],targetOffset:eu},leftTop:{points:["tr","tl"],overflow:ey,offset:[-4,0],targetOffset:eu},topRight:{points:["br","tr"],overflow:J0,offset:[0,-4],targetOffset:eu},rightTop:{points:["tl","tr"],overflow:ey,offset:[4,0],targetOffset:eu},bottomRight:{points:["tr","br"],overflow:J0,offset:[0,4],targetOffset:eu},rightBottom:{points:["bl","br"],overflow:ey,offset:[4,0],targetOffset:eu},bottomLeft:{points:["tl","bl"],overflow:J0,offset:[0,4],targetOffset:eu},leftBottom:{points:["br","bl"],overflow:ey,offset:[-4,0],targetOffset:eu}},BYe=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],HYe=function(t,n){var r=t.overlayClassName,i=t.trigger,o=i===void 0?["hover"]:i,a=t.mouseEnterDelay,s=a===void 0?0:a,l=t.mouseLeaveDelay,c=l===void 0?.1:l,u=t.overlayStyle,d=t.prefixCls,h=d===void 0?"rc-tooltip":d,p=t.children,m=t.onVisibleChange,v=t.afterVisibleChange,y=t.transitionName,S=t.animation,b=t.motion,C=t.placement,_=C===void 0?"right":C,T=t.align,x=T===void 0?{}:T,E=t.destroyTooltipOnHide,k=E===void 0?!1:E,M=t.defaultVisible,P=t.getTooltipContainer,D=t.overlayInnerStyle;t.arrowContent;var R=t.overlay,A=t.id,H=t.showArrow,F=H===void 0?!0:H,z=t.classNames,W=t.styles,q=tn(t,BYe),Z=f.useRef(null);f.useImperativeHandle(n,function(){return Z.current});var N=G({},q);"visible"in t&&(N.popupVisible=t.visible);var B=function(){return f.createElement(mW,{key:"content",prefixCls:h,id:A,bodyClassName:z==null?void 0:z.body,overlayInnerStyle:G(G({},D),W==null?void 0:W.body)},R)};return f.createElement(EE,ut({popupClassName:Re(r,z==null?void 0:z.root),prefixCls:h,popup:B,action:o,builtinPlacements:jYe,popupPlacement:_,ref:Z,popupAlign:x,getPopupContainer:P,onPopupVisibleChange:m,afterPopupVisibleChange:v,popupTransitionName:y,popupAnimation:S,popupMotion:b,defaultPopupVisible:M,autoDestroy:k,mouseLeaveDelay:c,popupStyle:G(G({},u),W==null?void 0:W.root),mouseEnterDelay:s,arrow:F},N),p)};const zYe=f.forwardRef(HYe);function JO(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,i=t/2,o=0,a=i,s=r*1/Math.sqrt(2),l=i-r*(1-1/Math.sqrt(2)),c=i-n*(1/Math.sqrt(2)),u=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),d=2*i-c,h=u,p=2*i-s,m=l,v=2*i-o,y=a,S=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),b=r*(Math.sqrt(2)-1),C=`polygon(${b}px 100%, 50% ${b}px, ${2*i-b}px 100%, ${b}px 100%)`,_=`path('M ${o} ${a} A ${r} ${r} 0 0 0 ${s} ${l} L ${c} ${u} A ${n} ${n} 0 0 1 ${d} ${h} L ${p} ${m} A ${r} ${r} 0 0 0 ${v} ${y} Z')`;return{arrowShadowWidth:S,arrowPath:_,arrowPolygon:C}}const R0e=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:i,arrowPath:o,arrowShadowWidth:a,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:l(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 ${je(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},A0e=8;function eP(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?A0e:r}}function qT(e,t){return e?t:{}}function gW(e,t,n){const{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:o,arrowOffsetHorizontal:a}=e,{arrowDistance:s=0,arrowPlacement:l={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"},R0e(e,t,i)),{"&:before":{background:t}})]},qT(!!l.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:s,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% - ${je(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),qT(!!l.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:s,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% - ${je(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),qT(!!l.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},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}})),qT(!!l.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},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 UYe(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 mee={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"]}},WYe={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"]}},VYe=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function N0e(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:o,visibleFirst:a}=e,s=t/2,l={};return Object.keys(mee).forEach(c=>{const u=r&&WYe[c]||mee[c],d=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(l[c]=d,VYe.has(c)&&(d.autoArrow=!1),c){case"top":case"topLeft":case"topRight":d.offset[1]=-s-i;break;case"bottom":case"bottomLeft":case"bottomRight":d.offset[1]=s+i;break;case"left":case"leftTop":case"leftBottom":d.offset[0]=-s-i;break;case"right":case"rightTop":case"rightBottom":d.offset[0]=s+i;break}const h=eP({contentRadius:o,limitVerticalRadius:!0});if(r)switch(c){case"topLeft":case"bottomLeft":d.offset[0]=-h.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":d.offset[0]=h.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":d.offset[1]=-h.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":d.offset[1]=h.arrowOffsetHorizontal*2-s;break}d.overflow=UYe(c,h,t,n),a&&(d.htmlRegion="visibleFirst")}),l}const KYe=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:i,tooltipBg:o,tooltipBorderRadius:a,zIndexPopup:s,controlHeight:l,boxShadowSecondary:c,paddingSM:u,paddingXS:d,arrowOffsetHorizontal:h,sizePopupArrow:p}=e,m=t(a).add(p).add(h).equal(),v=t(a).mul(2).add(p).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},$r(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:r,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":o,[`${n}-inner`]:{minWidth:v,minHeight:l,padding:`${je(e.calc(u).div(2).equal())} ${je(d)}`,color:i,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:a,boxShadow:c,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:m},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(a,A0e)}},[`${n}-content`]:{position:"relative"}}),kO(e,(y,S)=>{let{darkColor:b}=S;return{[`&${n}-${y}`]:{[`${n}-inner`]:{backgroundColor:b},[`${n}-arrow`]:{"--antd-arrow-background-color":b}}}})),{"&-rtl":{direction:"rtl"}})},gW(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},qYe=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},eP({contentRadius:e.borderRadius,limitVerticalRadius:!0})),JO(ur(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),D0e=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Tr("Tooltip",r=>{const{borderRadius:i,colorTextLightSolid:o,colorBgSpotlight:a}=r,s=ur(r,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:i,tooltipBg:a});return[KYe(s),YS(r,"zoom-big-fast")]},qYe,{resetStyle:!1,injectStyle:t})(e)},GYe=xv.map(e=>`${e}-inverse`),YYe=["success","processing","error","default","warning"];function tP(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(pt(GYe),pt(xv)).includes(e):xv.includes(e)}function XYe(e){return YYe.includes(e)}function L0e(e,t){const n=tP(t),r=Re({[`${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 QYe=e=>{const{prefixCls:t,className:n,placement:r="top",title:i,color:o,overlayInnerStyle:a}=e,{getPrefixCls:s}=f.useContext(hn),l=s("tooltip",t),[c,u,d]=D0e(l),h=L0e(l,o),p=h.arrowStyle,m=Object.assign(Object.assign({},a),h.overlayStyle),v=Re(u,d,l,`${l}-pure`,`${l}-placement-${r}`,n,h.className);return c(f.createElement("div",{className:v,style:p},f.createElement("div",{className:`${l}-arrow`}),f.createElement(mW,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:m}),i)))};var ZYe=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 JYe=f.forwardRef((e,t)=>{var n,r,i,o,a,s;const{prefixCls:l,openClassName:c,getTooltipContainer:u,color:d,overlayInnerStyle:h,children:p,afterOpenChange:m,afterVisibleChange:v,destroyTooltipOnHide:y,arrow:S=!0,title:b,overlay:C,builtinPlacements:_,arrowPointAtCenter:T=!1,autoAdjustOverflow:x=!0}=e,E=!!S,[,k]=na(),{getPopupContainer:M,getPrefixCls:P,direction:D,tooltip:R}=f.useContext(hn),A=eh(),H=f.useRef(null),F=()=>{var Oe;(Oe=H.current)===null||Oe===void 0||Oe.forceAlign()};f.useImperativeHandle(t,()=>{var Oe;return{forceAlign:F,forcePopupAlign:()=>{A.deprecated(!1,"forcePopupAlign","forceAlign"),F()},nativeElement:(Oe=H.current)===null||Oe===void 0?void 0:Oe.nativeElement}});const[z,W]=Jn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),q=!b&&!C&&b!==0,Z=Oe=>{var Se,Ke;W(q?!1:Oe),q||((Se=e.onOpenChange)===null||Se===void 0||Se.call(e,Oe),(Ke=e.onVisibleChange)===null||Ke===void 0||Ke.call(e,Oe))},N=f.useMemo(()=>{var Oe,Se;let Ke=T;return typeof S=="object"&&(Ke=(Se=(Oe=S.pointAtCenter)!==null&&Oe!==void 0?Oe:S.arrowPointAtCenter)!==null&&Se!==void 0?Se:T),_||N0e({arrowPointAtCenter:Ke,autoAdjustOverflow:x,arrowWidth:E?k.sizePopupArrow:0,borderRadius:k.borderRadius,offset:k.marginXXS,visibleFirst:!0})},[T,S,_,k]),B=f.useMemo(()=>b===0?b:C||b||"",[C,b]),V=f.createElement(zd,{space:!0},typeof B=="function"?B():B),{getPopupContainer:Y,placement:ie="top",mouseEnterDelay:ce=.1,mouseLeaveDelay:fe=.1,overlayStyle:ee,rootClassName:ne,overlayClassName:ue,styles:ye,classNames:me}=e,pe=ZYe(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),he=P("tooltip",l),_e=P(),le=e["data-popover-inject"];let xe=z;!("open"in e)&&!("visible"in e)&&q&&(xe=!1);const we=f.isValidElement(p)&&!Q1e(p)?p:f.createElement("span",null,p),De=we.props,Fe=!De.className||typeof De.className=="string"?Re(De.className,c||`${he}-open`):De.className,[Ce,Te,ke]=D0e(he,!le),Pe=L0e(he,d),Ne=Pe.arrowStyle,We=Re(ue,{[`${he}-rtl`]:D==="rtl"},Pe.className,ne,Te,ke,R==null?void 0:R.className,(i=R==null?void 0:R.classNames)===null||i===void 0?void 0:i.root,me==null?void 0:me.root),Q=Re((o=R==null?void 0:R.classNames)===null||o===void 0?void 0:o.body,me==null?void 0:me.body),[K,J]=Du("Tooltip",pe.zIndex),be=f.createElement(zYe,Object.assign({},pe,{zIndex:K,showArrow:E,placement:ie,mouseEnterDelay:ce,mouseLeaveDelay:fe,prefixCls:he,classNames:{root:We,body:Q},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ne),(a=R==null?void 0:R.styles)===null||a===void 0?void 0:a.root),R==null?void 0:R.style),ee),ye==null?void 0:ye.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},(s=R==null?void 0:R.styles)===null||s===void 0?void 0:s.body),h),ye==null?void 0:ye.body),Pe.overlayStyle)},getTooltipContainer:Y||u||M,ref:H,builtinPlacements:N,overlay:V,visible:xe,onVisibleChange:Z,afterVisibleChange:m??v,arrowContent:f.createElement("span",{className:`${he}-arrow-content`}),motion:{motionName:as(_e,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!y}),xe?$o(we,{className:Fe}):we);return Ce(f.createElement(gE.Provider,{value:J},be))}),ta=JYe;ta._InternalPanelDoNotUseOrYouWillBeFired=QYe;const eXe=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:i,innerPadding:o,boxShadowSecondary:a,colorTextHeading:s,borderRadiusLG:l,zIndexPopup:c,titleMarginBottom:u,colorBgElevated:d,popoverBg:h,titleBorderBottom:p,innerContentPadding:m,titlePadding:v}=e;return[{[t]:Object.assign(Object.assign({},$r(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,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":d,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:h,backgroundClip:"padding-box",borderRadius:l,boxShadow:a,padding:o},[`${t}-title`]:{minWidth:r,marginBottom:u,color:s,fontWeight:i,borderBottom:p,padding:v},[`${t}-inner-content`]:{color:n,padding:m}})},gW(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},tXe=e=>{const{componentCls:t}=e;return{[t]:xv.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},nXe=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:i,wireframe:o,zIndexPopupBase:a,borderRadiusLG:s,marginXS:l,lineType:c,colorSplit:u,paddingSM:d}=e,h=n-r,p=h/2,m=h/2-t,v=i;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:a+30},JO(e)),eP({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:o?0:12,titleMarginBottom:o?0:l,titlePadding:o?`${p}px ${v}px ${m}px`:0,titleBorderBottom:o?`${t}px ${c} ${u}`:"none",innerContentPadding:o?`${d}px ${v}px`:0})},F0e=Tr("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=ur(e,{popoverBg:t,popoverColor:n});return[eXe(r),tXe(r),YS(r,"zoom-big")]},nXe,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var rXe=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 j0e=e=>{let{title:t,content:n,prefixCls:r}=e;return!t&&!n?null:f.createElement(f.Fragment,null,t&&f.createElement("div",{className:`${r}-title`},t),n&&f.createElement("div",{className:`${r}-inner-content`},n))},iXe=e=>{const{hashId:t,prefixCls:n,className:r,style:i,placement:o="top",title:a,content:s,children:l}=e,c=Jb(a),u=Jb(s),d=Re(t,n,`${n}-pure`,`${n}-placement-${o}`,r);return f.createElement("div",{className:d,style:i},f.createElement("div",{className:`${n}-arrow`}),f.createElement(mW,Object.assign({},e,{className:t,prefixCls:n}),l||f.createElement(j0e,{prefixCls:n,title:c,content:u})))},B0e=e=>{const{prefixCls:t,className:n}=e,r=rXe(e,["prefixCls","className"]),{getPrefixCls:i}=f.useContext(hn),o=i("popover",t),[a,s,l]=F0e(o);return a(f.createElement(iXe,Object.assign({},r,{prefixCls:o,hashId:s,className:Re(n,l)})))};var oXe=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 aXe=f.forwardRef((e,t)=>{var n,r,i,o,a,s;const{prefixCls:l,title:c,content:u,overlayClassName:d,placement:h="top",trigger:p="hover",children:m,mouseEnterDelay:v=.1,mouseLeaveDelay:y=.1,onOpenChange:S,overlayStyle:b={},styles:C,classNames:_}=e,T=oXe(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{popover:x,getPrefixCls:E}=f.useContext(hn),k=E("popover",l),[M,P,D]=F0e(k),R=E(),A=Re(d,P,D,(n=x==null?void 0:x.classNames)===null||n===void 0?void 0:n.root,_==null?void 0:_.root),H=Re((r=x==null?void 0:x.classNames)===null||r===void 0?void 0:r.body,_==null?void 0:_.body),[F,z]=Jn(!1,{value:(i=e.open)!==null&&i!==void 0?i:e.visible,defaultValue:(o=e.defaultOpen)!==null&&o!==void 0?o:e.defaultVisible}),W=(V,Y)=>{z(V,!0),S==null||S(V,Y)},q=V=>{V.keyCode===Pt.ESC&&W(!1,V)},Z=V=>{W(V)},N=Jb(c),B=Jb(u);return M(f.createElement(ta,Object.assign({placement:h,trigger:p,mouseEnterDelay:v,mouseLeaveDelay:y},T,{prefixCls:k,classNames:{root:A,body:H},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},(a=x==null?void 0:x.styles)===null||a===void 0?void 0:a.root),x==null?void 0:x.style),b),C==null?void 0:C.root),body:Object.assign(Object.assign({},(s=x==null?void 0:x.styles)===null||s===void 0?void 0:s.body),C==null?void 0:C.body)},ref:t,open:F,onOpenChange:Z,overlay:N||B?f.createElement(j0e,{prefixCls:k,title:N,content:B}):null,transitionName:as(R,"zoom-big",T.transitionName),"data-popover-inject":!0}),$o(m,{onKeyDown:V=>{var Y,ie;f.isValidElement(m)&&((ie=m==null?void 0:(Y=m.props).onKeyDown)===null||ie===void 0||ie.call(Y,V)),q(V)}})))}),Ou=aXe;Ou._InternalPanelDoNotUseOrYouWillBeFired=B0e;const gee=e=>{const{size:t,shape:n}=f.useContext(KF),r=f.useMemo(()=>({size:e.size||t,shape:e.shape||n}),[e.size,e.shape,t,n]);return f.createElement(KF.Provider,{value:r},e.children)},sXe=e=>{var t,n,r,i;const{getPrefixCls:o,direction:a}=f.useContext(hn),{prefixCls:s,className:l,rootClassName:c,style:u,maxCount:d,maxStyle:h,size:p,shape:m,maxPopoverPlacement:v,maxPopoverTrigger:y,children:S,max:b}=e,C=o("avatar",s),_=`${C}-group`,T=_i(C),[x,E,k]=I0e(C,T),M=Re(_,{[`${_}-rtl`]:a==="rtl"},k,T,l,c,E),P=Uo(S).map((A,H)=>$o(A,{key:`avatar-key-${H}`})),D=(b==null?void 0:b.count)||d,R=P.length;if(D&&D<R){const A=P.slice(0,D),H=P.slice(D,R),F=(b==null?void 0:b.style)||h,z=((t=b==null?void 0:b.popover)===null||t===void 0?void 0:t.trigger)||y||"hover",W=((n=b==null?void 0:b.popover)===null||n===void 0?void 0:n.placement)||v||"top",q=Object.assign(Object.assign({content:H},b==null?void 0:b.popover),{classNames:{root:Re(`${_}-popover`,(i=(r=b==null?void 0:b.popover)===null||r===void 0?void 0:r.classNames)===null||i===void 0?void 0:i.root)},placement:W,trigger:z});return A.push(f.createElement(Ou,Object.assign({key:"avatar-popover-key",destroyTooltipOnHide:!0},q),f.createElement($0e,{style:F},`+${R-D}`))),x(f.createElement(gee,{shape:m,size:p},f.createElement("div",{className:M,style:u},A)))}return x(f.createElement(gee,{shape:m,size:p},f.createElement("div",{className:M,style:u},P)))},yg=$0e;yg.Group=sXe;const lXe=new Mr("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),cXe=new Mr("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),uXe=new Mr("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),dXe=new Mr("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),fXe=new Mr("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),hXe=new Mr("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),pXe=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:i,textFontSize:o,textFontSizeSM:a,statusSize:s,dotSize:l,textFontWeight:c,indicatorHeight:u,indicatorHeightSM:d,marginXS:h,calc:p}=e,m=`${r}-scroll-number`,v=kO(e,(y,S)=>{let{darkColor:b}=S;return{[`&${t} ${t}-color-${y}`]:{background:b,[`&:not(${t}-count)`]:{color:b},"a:hover &":{background:b}}}});return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},$r(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:u,height:u,color:e.badgeTextColor,fontWeight:c,fontSize:o,lineHeight:je(u),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:p(u).div(2).equal(),boxShadow:`0 0 0 ${je(i)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:d,height:d,fontSize:a,lineHeight:je(d),borderRadius:p(d).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${je(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:l,minWidth:l,height:l,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${je(i)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${m}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:hXe,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:s,height:s,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:i,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:lXe,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:h,color:e.colorText,fontSize:e.fontSize}}}),v),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:cXe,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:uXe,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:dXe,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:fXe,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${m}-custom-component, ${t}-count`]:{transform:"none"},[`${m}-custom-component, ${m}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[m]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${m}-only`]:{position:"relative",display:"inline-block",height:u,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${m}-only-unit`]:{height:u,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${m}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${m}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},H0e=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:i}=e,o=t,a=n,s=e.colorTextLightSolid,l=e.colorError,c=e.colorErrorHover;return ur(e,{badgeFontHeight:o,badgeShadowSize:a,badgeTextColor:s,badgeColor:l,badgeColorHover:c,badgeShadowColor:i,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},z0e=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:i}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*i,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},mXe=Tr("Badge",e=>{const t=H0e(e);return pXe(t)},z0e),gXe=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:i,calc:o}=e,a=`${t}-ribbon`,s=`${t}-ribbon-wrapper`,l=kO(e,(c,u)=>{let{darkColor:d}=u;return{[`&${a}-color-${c}`]:{background:d,color:d}}});return{[s]:{position:"relative"},[a]:Object.assign(Object.assign(Object.assign(Object.assign({},$r(e)),{position:"absolute",top:r,padding:`0 ${je(e.paddingXS)}`,color:e.colorPrimary,lineHeight:je(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${a}-text`]:{color:e.badgeTextColor},[`${a}-corner`]:{position:"absolute",top:"100%",width:i,height:i,color:"currentcolor",border:`${je(o(i).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),l),{[`&${a}-placement-end`]:{insetInlineEnd:o(i).mul(-1).equal(),borderEndEndRadius:0,[`${a}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${a}-placement-start`]:{insetInlineStart:o(i).mul(-1).equal(),borderEndStartRadius:0,[`${a}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},vXe=Tr(["Badge","Ribbon"],e=>{const t=H0e(e);return gXe(t)},z0e),yXe=e=>{const{className:t,prefixCls:n,style:r,color:i,children:o,text:a,placement:s="end",rootClassName:l}=e,{getPrefixCls:c,direction:u}=f.useContext(hn),d=c("ribbon",n),h=`${d}-wrapper`,[p,m,v]=vXe(d,h),y=tP(i,!1),S=Re(d,`${d}-placement-${s}`,{[`${d}-rtl`]:u==="rtl",[`${d}-color-${i}`]:y},t),b={},C={};return i&&!y&&(b.background=i,C.color=i),p(f.createElement("div",{className:Re(h,l,m,v)},o,f.createElement("div",{className:Re(S,m),style:Object.assign(Object.assign({},b),r)},f.createElement("span",{className:`${d}-text`},a),f.createElement("div",{className:`${d}-corner`,style:C}))))},vee=e=>{const{prefixCls:t,value:n,current:r,offset:i=0}=e;let o;return i&&(o={position:"absolute",top:`${i}00%`,left:0}),f.createElement("span",{style:o,className:Re(`${t}-only-unit`,{current:r})},n)};function bXe(e,t,n){let r=e,i=0;for(;(r+10)%10!==t;)r+=n,i+=n;return i}const SXe=e=>{const{prefixCls:t,count:n,value:r}=e,i=Number(r),o=Math.abs(n),[a,s]=f.useState(i),[l,c]=f.useState(o),u=()=>{s(i),c(o)};f.useEffect(()=>{const p=setTimeout(u,1e3);return()=>clearTimeout(p)},[i]);let d,h;if(a===i||Number.isNaN(i)||Number.isNaN(a))d=[f.createElement(vee,Object.assign({},e,{key:i,current:!0}))],h={transition:"none"};else{d=[];const p=i+10,m=[];for(let b=i;b<=p;b+=1)m.push(b);const v=l<o?1:-1,y=m.findIndex(b=>b%10===a);d=(v<0?m.slice(0,y+1):m.slice(y)).map((b,C)=>{const _=b%10;return f.createElement(vee,Object.assign({},e,{key:b,value:_,offset:v<0?C-y:C,current:C===y}))}),h={transform:`translateY(${-bXe(a,i,v)}00%)`}}return f.createElement("span",{className:`${t}-only`,style:h,onTransitionEnd:u},d)};var CXe=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 xXe=f.forwardRef((e,t)=>{const{prefixCls:n,count:r,className:i,motionClassName:o,style:a,title:s,show:l,component:c="sup",children:u}=e,d=CXe(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:h}=f.useContext(hn),p=h("scroll-number",n),m=Object.assign(Object.assign({},d),{"data-show":l,style:a,className:Re(p,i,o),title:s});let v=r;if(r&&Number(r)%1===0){const y=String(r).split("");v=f.createElement("bdi",null,y.map((S,b)=>f.createElement(SXe,{prefixCls:p,count:Number(r),value:S,key:y.length-b})))}return a!=null&&a.borderColor&&(m.style=Object.assign(Object.assign({},a),{boxShadow:`0 0 0 1px ${a.borderColor} inset`})),u?$o(u,y=>({className:Re(`${p}-custom-component`,y==null?void 0:y.className,o)})):f.createElement(c,Object.assign({},m,{ref:t}),v)});var wXe=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 _Xe=f.forwardRef((e,t)=>{var n,r,i,o,a;const{prefixCls:s,scrollNumberPrefixCls:l,children:c,status:u,text:d,color:h,count:p=null,overflowCount:m=99,dot:v=!1,size:y="default",title:S,offset:b,style:C,className:_,rootClassName:T,classNames:x,styles:E,showZero:k=!1}=e,M=wXe(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:P,direction:D,badge:R}=f.useContext(hn),A=P("badge",s),[H,F,z]=mXe(A),W=p>m?`${m}+`:p,q=W==="0"||W===0,Z=p===null||q&&!k,N=(u!=null||h!=null)&&Z,B=v&&!q,V=B?"":W,Y=f.useMemo(()=>(V==null||V===""||q&&!k)&&!B,[V,q,k,B]),ie=f.useRef(p);Y||(ie.current=p);const ce=ie.current,fe=f.useRef(V);Y||(fe.current=V);const ee=fe.current,ne=f.useRef(B);Y||(ne.current=B);const ue=f.useMemo(()=>{if(!b)return Object.assign(Object.assign({},R==null?void 0:R.style),C);const we={marginTop:b[1]};return D==="rtl"?we.left=parseInt(b[0],10):we.right=-parseInt(b[0],10),Object.assign(Object.assign(Object.assign({},we),R==null?void 0:R.style),C)},[D,b,C,R==null?void 0:R.style]),ye=S??(typeof ce=="string"||typeof ce=="number"?ce:void 0),me=Y||!d?null:f.createElement("span",{className:`${A}-status-text`},d),pe=!ce||typeof ce!="object"?void 0:$o(ce,we=>({style:Object.assign(Object.assign({},ue),we.style)})),he=tP(h,!1),_e=Re(x==null?void 0:x.indicator,(n=R==null?void 0:R.classNames)===null||n===void 0?void 0:n.indicator,{[`${A}-status-dot`]:N,[`${A}-status-${u}`]:!!u,[`${A}-color-${h}`]:he}),le={};h&&!he&&(le.color=h,le.background=h);const xe=Re(A,{[`${A}-status`]:N,[`${A}-not-a-wrapper`]:!c,[`${A}-rtl`]:D==="rtl"},_,T,R==null?void 0:R.className,(r=R==null?void 0:R.classNames)===null||r===void 0?void 0:r.root,x==null?void 0:x.root,F,z);if(!c&&N){const we=ue.color;return H(f.createElement("span",Object.assign({},M,{className:xe,style:Object.assign(Object.assign(Object.assign({},E==null?void 0:E.root),(i=R==null?void 0:R.styles)===null||i===void 0?void 0:i.root),ue)}),f.createElement("span",{className:_e,style:Object.assign(Object.assign(Object.assign({},E==null?void 0:E.indicator),(o=R==null?void 0:R.styles)===null||o===void 0?void 0:o.indicator),le)}),d&&f.createElement("span",{style:{color:we},className:`${A}-status-text`},d)))}return H(f.createElement("span",Object.assign({ref:t},M,{className:xe,style:Object.assign(Object.assign({},(a=R==null?void 0:R.styles)===null||a===void 0?void 0:a.root),E==null?void 0:E.root)}),c,f.createElement(ha,{visible:!Y,motionName:`${A}-zoom`,motionAppear:!1,motionDeadline:1e3},we=>{let{className:De}=we;var Fe,Ce;const Te=P("scroll-number",l),ke=ne.current,Pe=Re(x==null?void 0:x.indicator,(Fe=R==null?void 0:R.classNames)===null||Fe===void 0?void 0:Fe.indicator,{[`${A}-dot`]:ke,[`${A}-count`]:!ke,[`${A}-count-sm`]:y==="small",[`${A}-multiple-words`]:!ke&&ee&&ee.toString().length>1,[`${A}-status-${u}`]:!!u,[`${A}-color-${h}`]:he});let Ne=Object.assign(Object.assign(Object.assign({},E==null?void 0:E.indicator),(Ce=R==null?void 0:R.styles)===null||Ce===void 0?void 0:Ce.indicator),ue);return h&&!he&&(Ne=Ne||{},Ne.background=h),f.createElement(xXe,{prefixCls:Te,show:!Y,motionClassName:De,className:Pe,count:ee,title:ye,style:Ne,key:"scrollNumber"},pe)}),me))}),Al=_Xe;Al.Ribbon=yXe;var EXe=Pt.ESC,TXe=Pt.TAB;function kXe(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,i=e.autoFocus,o=e.overlayRef,a=f.useRef(!1),s=function(){if(t){var d,h;(d=n.current)===null||d===void 0||(h=d.focus)===null||h===void 0||h.call(d),r==null||r(!1)}},l=function(){var d;return(d=o.current)!==null&&d!==void 0&&d.focus?(o.current.focus(),a.current=!0,!0):!1},c=function(d){switch(d.keyCode){case EXe:s();break;case TXe:{var h=!1;a.current||(h=l()),h?d.preventDefault():s();break}}};f.useEffect(function(){return t?(window.addEventListener("keydown",c),i&&Sr(l,3),function(){window.removeEventListener("keydown",c),a.current=!1}):function(){a.current=!1}},[t])}var OXe=f.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,i=e.prefixCls,o=f.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),a=va(t,mg(o));return ge.createElement(ge.Fragment,null,r&&ge.createElement("div",{className:"".concat(i,"-arrow")}),ge.cloneElement(o,{ref:Ld(o)?a:void 0}))}),ty={adjustX:1,adjustY:1},ny=[0,0],PXe={topLeft:{points:["bl","tl"],overflow:ty,offset:[0,-4],targetOffset:ny},top:{points:["bc","tc"],overflow:ty,offset:[0,-4],targetOffset:ny},topRight:{points:["br","tr"],overflow:ty,offset:[0,-4],targetOffset:ny},bottomLeft:{points:["tl","bl"],overflow:ty,offset:[0,4],targetOffset:ny},bottom:{points:["tc","bc"],overflow:ty,offset:[0,4],targetOffset:ny},bottomRight:{points:["tr","br"],overflow:ty,offset:[0,4],targetOffset:ny}},MXe=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function IXe(e,t){var n,r=e.arrow,i=r===void 0?!1:r,o=e.prefixCls,a=o===void 0?"rc-dropdown":o,s=e.transitionName,l=e.animation,c=e.align,u=e.placement,d=u===void 0?"bottomLeft":u,h=e.placements,p=h===void 0?PXe:h,m=e.getPopupContainer,v=e.showAction,y=e.hideAction,S=e.overlayClassName,b=e.overlayStyle,C=e.visible,_=e.trigger,T=_===void 0?["hover"]:_,x=e.autoFocus,E=e.overlay,k=e.children,M=e.onVisibleChange,P=tn(e,MXe),D=ge.useState(),R=Le(D,2),A=R[0],H=R[1],F="visible"in e?C:A,z=ge.useRef(null),W=ge.useRef(null),q=ge.useRef(null);ge.useImperativeHandle(t,function(){return z.current});var Z=function(ne){H(ne),M==null||M(ne)};kXe({visible:F,triggerRef:q,onVisibleChange:Z,autoFocus:x,overlayRef:W});var N=function(ne){var ue=e.onOverlayClick;H(!1),ue&&ue(ne)},B=function(){return ge.createElement(OXe,{ref:W,overlay:E,prefixCls:a,arrow:i})},V=function(){return typeof E=="function"?B:B()},Y=function(){var ne=e.minOverlayWidthMatchTrigger,ue=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?ne:!ue},ie=function(){var ne=e.openClassName;return ne!==void 0?ne:"".concat(a,"-open")},ce=ge.cloneElement(k,{className:Re((n=k.props)===null||n===void 0?void 0:n.className,F&&ie()),ref:Ld(k)?va(q,mg(k)):void 0}),fe=y;return!fe&&T.indexOf("contextMenu")!==-1&&(fe=["click"]),ge.createElement(EE,ut({builtinPlacements:p},P,{prefixCls:a,ref:z,popupClassName:Re(S,ae({},"".concat(a,"-show-arrow"),i)),popupStyle:b,action:T,showAction:v,hideAction:fe,popupPlacement:d,popupAlign:c,popupTransitionName:s,popupAnimation:l,popupVisible:F,stretch:Y()?"minWidth":"",popup:V(),onPopupVisibleChange:Z,onPopupClick:N,getPopupContainer:m}),ce)}const U0e=ge.forwardRef(IXe),$Xe=e=>typeof e!="object"&&typeof e!="function"||e===null;var W0e=f.createContext(null);function V0e(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function K0e(e){var t=f.useContext(W0e);return V0e(t,e)}var RXe=["children","locked"],Wd=f.createContext(null);function AXe(e,t){var n=G({},e);return Object.keys(t).forEach(function(r){var i=t[r];i!==void 0&&(n[r]=i)}),n}function v_(e){var t=e.children,n=e.locked,r=tn(e,RXe),i=f.useContext(Wd),o=dp(function(){return AXe(i,r)},[i,r],function(a,s){return!n&&(a[0]!==s[0]||!ku(a[1],s[1],!0))});return f.createElement(Wd.Provider,{value:o},t)}var NXe=[],q0e=f.createContext(null);function nP(){return f.useContext(q0e)}var G0e=f.createContext(NXe);function JS(e){var t=f.useContext(G0e);return f.useMemo(function(){return e!==void 0?[].concat(pt(t),[e]):t},[t,e])}var Y0e=f.createContext(null),vW=f.createContext({});function yee(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(GS(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 DXe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=pt(e.querySelectorAll("*")).filter(function(r){return yee(r,t)});return yee(e,t)&&n.unshift(e),n}var qF=Pt.LEFT,GF=Pt.RIGHT,YF=Pt.UP,j3=Pt.DOWN,B3=Pt.ENTER,X0e=Pt.ESC,Fx=Pt.HOME,jx=Pt.END,bee=[YF,j3,qF,GF];function LXe(e,t,n,r){var i,o="prev",a="next",s="children",l="parent";if(e==="inline"&&r===B3)return{inlineTrigger:!0};var c=ae(ae({},YF,o),j3,a),u=ae(ae(ae(ae({},qF,n?a:o),GF,n?o:a),j3,s),B3,s),d=ae(ae(ae(ae(ae(ae({},YF,o),j3,a),B3,s),X0e,l),qF,n?s:l),GF,n?l:s),h={inline:c,horizontal:u,vertical:d,inlineSub:c,horizontalSub:d,verticalSub:d},p=(i=h["".concat(e).concat(t?"":"Sub")])===null||i===void 0?void 0:i[r];switch(p){case o:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case l:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}function FXe(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function jXe(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function yW(e,t){var n=DXe(e,!0);return n.filter(function(r){return t.has(r)})}function See(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var i=yW(e,t),o=i.length,a=i.findIndex(function(s){return n===s});return r<0?a===-1?a=o-1:a-=1:r>0&&(a+=1),a=(a+o)%o,i[a]}var XF=function(t,n){var r=new Set,i=new Map,o=new Map;return t.forEach(function(a){var s=document.querySelector("[data-menu-id='".concat(V0e(n,a),"']"));s&&(r.add(s),o.set(s,a),i.set(a,s))}),{elements:r,key2element:i,element2key:o}};function BXe(e,t,n,r,i,o,a,s,l,c){var u=f.useRef(),d=f.useRef();d.current=t;var h=function(){Sr.cancel(u.current)};return f.useEffect(function(){return function(){h()}},[]),function(p){var m=p.which;if([].concat(bee,[B3,X0e,Fx,jx]).includes(m)){var v=o(),y=XF(v,r),S=y,b=S.elements,C=S.key2element,_=S.element2key,T=C.get(t),x=jXe(T,b),E=_.get(x),k=LXe(e,a(E,!0).length===1,n,m);if(!k&&m!==Fx&&m!==jx)return;(bee.includes(m)||[Fx,jx].includes(m))&&p.preventDefault();var M=function(W){if(W){var q=W,Z=W.querySelector("a");Z!=null&&Z.getAttribute("href")&&(q=Z);var N=_.get(W);s(N),h(),u.current=Sr(function(){d.current===N&&q.focus()})}};if([Fx,jx].includes(m)||k.sibling||!x){var P;!x||e==="inline"?P=i.current:P=FXe(x);var D,R=yW(P,b);m===Fx?D=R[0]:m===jx?D=R[R.length-1]:D=See(P,b,x,k.offset),M(D)}else if(k.inlineTrigger)l(E);else if(k.offset>0)l(E,!0),h(),u.current=Sr(function(){y=XF(v,r);var z=x.getAttribute("aria-controls"),W=document.getElementById(z),q=See(W,y.elements);M(q)},5);else if(k.offset<0){var A=a(E,!0),H=A[A.length-2],F=C.get(H);l(H,!1),M(F)}}c==null||c(p)}}function HXe(e){Promise.resolve().then(e)}var bW="__RC_UTIL_PATH_SPLIT__",Cee=function(t){return t.join(bW)},zXe=function(t){return t.split(bW)},QF="rc-menu-more";function UXe(){var e=f.useState({}),t=Le(e,2),n=t[1],r=f.useRef(new Map),i=f.useRef(new Map),o=f.useState([]),a=Le(o,2),s=a[0],l=a[1],c=f.useRef(0),u=f.useRef(!1),d=function(){u.current||n({})},h=f.useCallback(function(C,_){var T=Cee(_);i.current.set(T,C),r.current.set(C,T),c.current+=1;var x=c.current;HXe(function(){x===c.current&&d()})},[]),p=f.useCallback(function(C,_){var T=Cee(_);i.current.delete(T),r.current.delete(C)},[]),m=f.useCallback(function(C){l(C)},[]),v=f.useCallback(function(C,_){var T=r.current.get(C)||"",x=zXe(T);return _&&s.includes(x[0])&&x.unshift(QF),x},[s]),y=f.useCallback(function(C,_){return C.filter(function(T){return T!==void 0}).some(function(T){var x=v(T,!0);return x.includes(_)})},[v]),S=function(){var _=pt(r.current.keys());return s.length&&_.push(QF),_},b=f.useCallback(function(C){var _="".concat(r.current.get(C)).concat(bW),T=new Set;return pt(i.current.keys()).forEach(function(x){x.startsWith(_)&&T.add(i.current.get(x))}),T},[]);return f.useEffect(function(){return function(){u.current=!0}},[]),{registerPath:h,unregisterPath:p,refreshOverflowKeys:m,isSubPathKey:y,getKeyPath:v,getKeys:S,getSubPathKeys:b}}function w2(e){var t=f.useRef(e);t.current=e;var n=f.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 WXe=Math.random().toFixed(5).toString().slice(2),xee=0;function VXe(e){var t=Jn(e,{value:e}),n=Le(t,2),r=n[0],i=n[1];return f.useEffect(function(){xee+=1;var o="".concat(WXe,"-").concat(xee);i("rc-menu-uuid-".concat(o))},[]),r}function Q0e(e,t,n,r){var i=f.useContext(Wd),o=i.activeKey,a=i.onActive,s=i.onInactive,l={active:o===e};return t||(l.onMouseEnter=function(c){n==null||n({key:e,domEvent:c}),a(e)},l.onMouseLeave=function(c){r==null||r({key:e,domEvent:c}),s(e)}),l}function Z0e(e){var t=f.useContext(Wd),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 J0e(e){var t=e.icon,n=e.props,r=e.children,i;return t===null||t===!1?null:(typeof t=="function"?i=f.createElement(t,G({},n)):typeof t!="boolean"&&(i=t),i||r||null)}var KXe=["item"];function U9(e){var t=e.item,n=tn(e,KXe);return Object.defineProperty(n,"item",{get:function(){return fi(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var qXe=["title","attribute","elementRef"],GXe=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],YXe=["active"],XXe=function(e){Xs(n,e);var t=Sl(n);function n(){return pi(this,n),t.apply(this,arguments)}return mi(n,[{key:"render",value:function(){var i=this.props,o=i.title,a=i.attribute,s=i.elementRef,l=tn(i,qXe),c=Pr(l,["eventKey","popupClassName","popupOffset","onTitleClick"]);return fi(!a,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),f.createElement(kd.Item,ut({},a,{title:typeof o=="string"?o:void 0},c,{ref:s}))}}]),n}(f.Component),QXe=f.forwardRef(function(e,t){var n=e.style,r=e.className,i=e.eventKey;e.warnKey;var o=e.disabled,a=e.itemIcon,s=e.children,l=e.role,c=e.onMouseEnter,u=e.onMouseLeave,d=e.onClick,h=e.onKeyDown,p=e.onFocus,m=tn(e,GXe),v=K0e(i),y=f.useContext(Wd),S=y.prefixCls,b=y.onItemClick,C=y.disabled,_=y.overflowDisabled,T=y.itemIcon,x=y.selectedKeys,E=y.onActive,k=f.useContext(vW),M=k._internalRenderMenuItem,P="".concat(S,"-item"),D=f.useRef(),R=f.useRef(),A=C||o,H=Qd(t,R),F=JS(i),z=function(ue){return{key:i,keyPath:pt(F).reverse(),item:D.current,domEvent:ue}},W=a||T,q=Q0e(i,A,c,u),Z=q.active,N=tn(q,YXe),B=x.includes(i),V=Z0e(F.length),Y=function(ue){if(!A){var ye=z(ue);d==null||d(U9(ye)),b(ye)}},ie=function(ue){if(h==null||h(ue),ue.which===Pt.ENTER){var ye=z(ue);d==null||d(U9(ye)),b(ye)}},ce=function(ue){E(i),p==null||p(ue)},fe={};e.role==="option"&&(fe["aria-selected"]=B);var ee=f.createElement(XXe,ut({ref:D,elementRef:H,role:l===null?"none":l||"menuitem",tabIndex:o?null:-1,"data-menu-id":_&&v?null:v},Pr(m,["extra"]),N,fe,{component:"li","aria-disabled":o,style:G(G({},V),n),className:Re(P,ae(ae(ae({},"".concat(P,"-active"),Z),"".concat(P,"-selected"),B),"".concat(P,"-disabled"),A),r),onClick:Y,onKeyDown:ie,onFocus:ce}),s,f.createElement(J0e,{props:G(G({},e),{},{isSelected:B}),icon:W}));return M&&(ee=M(ee,e,{selected:B})),ee});function ZXe(e,t){var n=e.eventKey,r=nP(),i=JS(n);return f.useEffect(function(){if(r)return r.registerPath(n,i),function(){r.unregisterPath(n,i)}},[i]),r?null:f.createElement(QXe,ut({},e,{ref:t}))}const kE=f.forwardRef(ZXe);var JXe=["className","children"],eQe=function(t,n){var r=t.className,i=t.children,o=tn(t,JXe),a=f.useContext(Wd),s=a.prefixCls,l=a.mode,c=a.rtl;return f.createElement("ul",ut({className:Re(s,c&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat(l==="inline"?"inline":"vertical"),r),role:"menu"},o,{"data-menu-list":!0,ref:n}),i)},SW=f.forwardRef(eQe);SW.displayName="SubMenuList";function CW(e,t){return Uo(e).map(function(n,r){if(f.isValidElement(n)){var i,o,a=n.key,s=(i=(o=n.props)===null||o===void 0?void 0:o.eventKey)!==null&&i!==void 0?i:a,l=s==null;l&&(s="tmp_key-".concat([].concat(pt(t),[r]).join("-")));var c={key:s,eventKey:s};return f.cloneElement(n,c)}return n})}var Ls={adjustX:1,adjustY:1},tQe={topLeft:{points:["bl","tl"],overflow:Ls},topRight:{points:["br","tr"],overflow:Ls},bottomLeft:{points:["tl","bl"],overflow:Ls},bottomRight:{points:["tr","br"],overflow:Ls},leftTop:{points:["tr","tl"],overflow:Ls},leftBottom:{points:["br","bl"],overflow:Ls},rightTop:{points:["tl","tr"],overflow:Ls},rightBottom:{points:["bl","br"],overflow:Ls}},nQe={topLeft:{points:["bl","tl"],overflow:Ls},topRight:{points:["br","tr"],overflow:Ls},bottomLeft:{points:["tl","bl"],overflow:Ls},bottomRight:{points:["tr","br"],overflow:Ls},rightTop:{points:["tr","tl"],overflow:Ls},rightBottom:{points:["br","bl"],overflow:Ls},leftTop:{points:["tl","tr"],overflow:Ls},leftBottom:{points:["bl","br"],overflow:Ls}};function eye(e,t,n){if(t)return t;if(n)return n[e]||n.other}var rQe={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function iQe(e){var t=e.prefixCls,n=e.visible,r=e.children,i=e.popup,o=e.popupStyle,a=e.popupClassName,s=e.popupOffset,l=e.disabled,c=e.mode,u=e.onVisibleChange,d=f.useContext(Wd),h=d.getPopupContainer,p=d.rtl,m=d.subMenuOpenDelay,v=d.subMenuCloseDelay,y=d.builtinPlacements,S=d.triggerSubMenuAction,b=d.forceSubMenuRender,C=d.rootClassName,_=d.motion,T=d.defaultMotions,x=f.useState(!1),E=Le(x,2),k=E[0],M=E[1],P=G(p?G({},nQe):G({},tQe),y),D=rQe[c],R=eye(c,_,T),A=f.useRef(R);c!=="inline"&&(A.current=R);var H=G(G({},A.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),F=f.useRef();return f.useEffect(function(){return F.current=Sr(function(){M(n)}),function(){Sr.cancel(F.current)}},[n]),f.createElement(EE,{prefixCls:t,popupClassName:Re("".concat(t,"-popup"),ae({},"".concat(t,"-rtl"),p),a,C),stretch:c==="horizontal"?"minWidth":null,getPopupContainer:h,builtinPlacements:P,popupPlacement:D,popupVisible:k,popup:i,popupStyle:o,popupAlign:s&&{offset:s},action:l?[]:[S],mouseEnterDelay:m,mouseLeaveDelay:v,onPopupVisibleChange:u,forceRender:b,popupMotion:H,fresh:!0},r)}function oQe(e){var t=e.id,n=e.open,r=e.keyPath,i=e.children,o="inline",a=f.useContext(Wd),s=a.prefixCls,l=a.forceSubMenuRender,c=a.motion,u=a.defaultMotions,d=a.mode,h=f.useRef(!1);h.current=d===o;var p=f.useState(!h.current),m=Le(p,2),v=m[0],y=m[1],S=h.current?n:!1;f.useEffect(function(){h.current&&y(!1)},[d]);var b=G({},eye(o,c,u));r.length>1&&(b.motionAppear=!1);var C=b.onVisibleChanged;return b.onVisibleChanged=function(_){return!h.current&&!_&&y(!0),C==null?void 0:C(_)},v?null:f.createElement(v_,{mode:o,locked:!h.current},f.createElement(ha,ut({visible:S},b,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(_){var T=_.className,x=_.style;return f.createElement(SW,{id:t,className:T,style:x},i)}))}var aQe=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],sQe=["active"],lQe=f.forwardRef(function(e,t){var n=e.style,r=e.className,i=e.title,o=e.eventKey;e.warnKey;var a=e.disabled,s=e.internalPopupClose,l=e.children,c=e.itemIcon,u=e.expandIcon,d=e.popupClassName,h=e.popupOffset,p=e.popupStyle,m=e.onClick,v=e.onMouseEnter,y=e.onMouseLeave,S=e.onTitleClick,b=e.onTitleMouseEnter,C=e.onTitleMouseLeave,_=tn(e,aQe),T=K0e(o),x=f.useContext(Wd),E=x.prefixCls,k=x.mode,M=x.openKeys,P=x.disabled,D=x.overflowDisabled,R=x.activeKey,A=x.selectedKeys,H=x.itemIcon,F=x.expandIcon,z=x.onItemClick,W=x.onOpenChange,q=x.onActive,Z=f.useContext(vW),N=Z._internalRenderSubMenuItem,B=f.useContext(Y0e),V=B.isSubPathKey,Y=JS(),ie="".concat(E,"-submenu"),ce=P||a,fe=f.useRef(),ee=f.useRef(),ne=c??H,ue=u??F,ye=M.includes(o),me=!D&&ye,pe=V(A,o),he=Q0e(o,ce,b,C),_e=he.active,le=tn(he,sQe),xe=f.useState(!1),we=Le(xe,2),De=we[0],Fe=we[1],Ce=function(ze){ce||Fe(ze)},Te=function(ze){Ce(!0),v==null||v({key:o,domEvent:ze})},ke=function(ze){Ce(!1),y==null||y({key:o,domEvent:ze})},Pe=f.useMemo(function(){return _e||(k!=="inline"?De||V([R],o):!1)},[k,_e,R,De,o,V]),Ne=Z0e(Y.length),We=function(ze){ce||(S==null||S({key:o,domEvent:ze}),k==="inline"&&W(o,!ye))},Q=w2(function(se){m==null||m(U9(se)),z(se)}),K=function(ze){k!=="inline"&&W(o,ze)},J=function(){q(o)},be=T&&"".concat(T,"-popup"),Oe=f.createElement("div",ut({role:"menuitem",style:Ne,className:"".concat(ie,"-title"),tabIndex:ce?null:-1,ref:fe,title:typeof i=="string"?i:null,"data-menu-id":D&&T?null:T,"aria-expanded":me,"aria-haspopup":!0,"aria-controls":be,"aria-disabled":ce,onClick:We,onFocus:J},le),i,f.createElement(J0e,{icon:k!=="horizontal"?ue:void 0,props:G(G({},e),{},{isOpen:me,isSubMenu:!0})},f.createElement("i",{className:"".concat(ie,"-arrow")}))),Se=f.useRef(k);if(k!=="inline"&&Y.length>1?Se.current="vertical":Se.current=k,!D){var Ke=Se.current;Oe=f.createElement(iQe,{mode:Ke,prefixCls:ie,visible:!s&&me&&k!=="inline",popupClassName:d,popupOffset:h,popupStyle:p,popup:f.createElement(v_,{mode:Ke==="horizontal"?"vertical":Ke},f.createElement(SW,{id:be,ref:ee},l)),disabled:ce,onVisibleChange:K},Oe)}var tt=f.createElement(kd.Item,ut({ref:t,role:"none"},_,{component:"li",style:n,className:Re(ie,"".concat(ie,"-").concat(k),r,ae(ae(ae(ae({},"".concat(ie,"-open"),me),"".concat(ie,"-active"),Pe),"".concat(ie,"-selected"),pe),"".concat(ie,"-disabled"),ce)),onMouseEnter:Te,onMouseLeave:ke}),Oe,!D&&f.createElement(oQe,{id:be,open:me,keyPath:Y},l));return N&&(tt=N(tt,e,{selected:pe,active:Pe,open:me,disabled:ce})),f.createElement(v_,{onItemClick:Q,mode:k==="horizontal"?"vertical":k,itemIcon:ne,expandIcon:ue},tt)}),rP=f.forwardRef(function(e,t){var n=e.eventKey,r=e.children,i=JS(n),o=CW(r,i),a=nP();f.useEffect(function(){if(a)return a.registerPath(n,i),function(){a.unregisterPath(n,i)}},[i]);var s;return a?s=o:s=f.createElement(lQe,ut({ref:t},e),o),f.createElement(G0e.Provider,{value:i},s)});function xW(e){var t=e.className,n=e.style,r=f.useContext(Wd),i=r.prefixCls,o=nP();return o?null:f.createElement("li",{role:"separator",className:Re("".concat(i,"-item-divider"),t),style:n})}var cQe=["className","title","eventKey","children"],uQe=f.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var i=e.children,o=tn(e,cQe),a=f.useContext(Wd),s=a.prefixCls,l="".concat(s,"-item-group");return f.createElement("li",ut({ref:t,role:"presentation"},o,{onClick:function(u){return u.stopPropagation()},className:Re(l,n)}),f.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof r=="string"?r:void 0},r),f.createElement("ul",{role:"group",className:"".concat(l,"-list")},i))}),wW=f.forwardRef(function(e,t){var n=e.eventKey,r=e.children,i=JS(n),o=CW(r,i),a=nP();return a?o:f.createElement(uQe,ut({ref:t},Pr(e,["warnKey"])),o)}),dQe=["label","children","key","type","extra"];function ZF(e,t,n){var r=t.item,i=t.group,o=t.submenu,a=t.divider;return(e||[]).map(function(s,l){if(s&&ln(s)==="object"){var c=s,u=c.label,d=c.children,h=c.key,p=c.type,m=c.extra,v=tn(c,dQe),y=h??"tmp-".concat(l);return d||p==="group"?p==="group"?f.createElement(i,ut({key:y},v,{title:u}),ZF(d,t,n)):f.createElement(o,ut({key:y},v,{title:u}),ZF(d,t,n)):p==="divider"?f.createElement(a,ut({key:y},v)):f.createElement(r,ut({key:y},v,{extra:m}),u,(!!m||m===0)&&f.createElement("span",{className:"".concat(n,"-item-extra")},m))}return null}).filter(function(s){return s})}function wee(e,t,n,r,i){var o=e,a=G({divider:xW,item:kE,group:wW,submenu:rP},r);return t&&(o=ZF(t,a,i)),CW(o,n)}var fQe=["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"],qg=[],hQe=f.forwardRef(function(e,t){var n,r=e,i=r.prefixCls,o=i===void 0?"rc-menu":i,a=r.rootClassName,s=r.style,l=r.className,c=r.tabIndex,u=c===void 0?0:c,d=r.items,h=r.children,p=r.direction,m=r.id,v=r.mode,y=v===void 0?"vertical":v,S=r.inlineCollapsed,b=r.disabled,C=r.disabledOverflow,_=r.subMenuOpenDelay,T=_===void 0?.1:_,x=r.subMenuCloseDelay,E=x===void 0?.1:x,k=r.forceSubMenuRender,M=r.defaultOpenKeys,P=r.openKeys,D=r.activeKey,R=r.defaultActiveFirst,A=r.selectable,H=A===void 0?!0:A,F=r.multiple,z=F===void 0?!1:F,W=r.defaultSelectedKeys,q=r.selectedKeys,Z=r.onSelect,N=r.onDeselect,B=r.inlineIndent,V=B===void 0?24:B,Y=r.motion,ie=r.defaultMotions,ce=r.triggerSubMenuAction,fe=ce===void 0?"hover":ce,ee=r.builtinPlacements,ne=r.itemIcon,ue=r.expandIcon,ye=r.overflowedIndicator,me=ye===void 0?"...":ye,pe=r.overflowedIndicatorPopupClassName,he=r.getPopupContainer,_e=r.onClick,le=r.onOpenChange,xe=r.onKeyDown;r.openAnimation,r.openTransitionName;var we=r._internalRenderMenuItem,De=r._internalRenderSubMenuItem,Fe=r._internalComponents,Ce=tn(r,fQe),Te=f.useMemo(function(){return[wee(h,d,qg,Fe,o),wee(h,d,qg,{},o)]},[h,d,Fe]),ke=Le(Te,2),Pe=ke[0],Ne=ke[1],We=f.useState(!1),Q=Le(We,2),K=Q[0],J=Q[1],be=f.useRef(),Oe=VXe(m),Se=p==="rtl",Ke=Jn(M,{value:P,postState:function(wn){return wn||qg}}),tt=Le(Ke,2),se=tt[0],ze=tt[1],Ye=function(wn){var Pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Ar(){ze(wn),le==null||le(wn)}Pn?Nc.flushSync(Ar):Ar()},Ue=f.useState(se),Je=Le(Ue,2),Ze=Je[0],rt=Je[1],qt=f.useRef(!1),St=f.useMemo(function(){return(y==="inline"||y==="vertical")&&S?["vertical",S]:[y,!1]},[y,S]),Ot=Le(St,2),Bt=Ot[0],Dt=Ot[1],an=Bt==="inline",Vt=f.useState(Bt),Kt=Le(Vt,2),Qt=Kt[0],et=Kt[1],ot=f.useState(Dt),Qe=Le(ot,2),ct=Qe[0],Nt=Qe[1];f.useEffect(function(){et(Bt),Nt(Dt),qt.current&&(an?ze(Ze):Ye(qg))},[Bt,Dt]);var Lt=f.useState(0),Zt=Le(Lt,2),Wt=Zt[0],At=Zt[1],$t=Wt>=Pe.length-1||Qt!=="horizontal"||C;f.useEffect(function(){an&&rt(se)},[se]),f.useEffect(function(){return qt.current=!0,function(){qt.current=!1}},[]);var Gt=UXe(),Ft=Gt.registerPath,cn=Gt.unregisterPath,_t=Gt.refreshOverflowKeys,jt=Gt.isSubPathKey,nn=Gt.getKeyPath,Ht=Gt.getKeys,Tt=Gt.getSubPathKeys,gt=f.useMemo(function(){return{registerPath:Ft,unregisterPath:cn}},[Ft,cn]),Ve=f.useMemo(function(){return{isSubPathKey:jt}},[jt]);f.useEffect(function(){_t($t?qg:Pe.slice(Wt+1).map(function(Rr){return Rr.key}))},[Wt,$t]);var Yt=Jn(D||R&&((n=Pe[0])===null||n===void 0?void 0:n.key),{value:D}),mt=Le(Yt,2),Mt=mt[0],zt=mt[1],Dn=w2(function(Rr){zt(Rr)}),Xn=w2(function(){zt(void 0)});f.useImperativeHandle(t,function(){return{list:be.current,focus:function(wn){var Pn,Ar=Ht(),bn=XF(Ar,Oe),Cn=bn.elements,tr=bn.key2element,Ir=bn.element2key,li=yW(be.current,Cn),Wi=Mt??(li[0]?Ir.get(li[0]):(Pn=Pe.find(function(dr){return!dr.props.disabled}))===null||Pn===void 0?void 0:Pn.key),mr=tr.get(Wi);if(Wi&&mr){var Li;mr==null||(Li=mr.focus)===null||Li===void 0||Li.call(mr,wn)}}}});var O=Jn(W||[],{value:q,postState:function(wn){return Array.isArray(wn)?wn:wn==null?qg:[wn]}}),j=Le(O,2),oe=j[0],Ae=j[1],Ge=function(wn){if(H){var Pn=wn.key,Ar=oe.includes(Pn),bn;z?Ar?bn=oe.filter(function(tr){return tr!==Pn}):bn=[].concat(pt(oe),[Pn]):bn=[Pn],Ae(bn);var Cn=G(G({},wn),{},{selectedKeys:bn});Ar?N==null||N(Cn):Z==null||Z(Cn)}!z&&se.length&&Qt!=="inline"&&Ye(qg)},ft=w2(function(Rr){_e==null||_e(U9(Rr)),Ge(Rr)}),Jt=w2(function(Rr,wn){var Pn=se.filter(function(bn){return bn!==Rr});if(wn)Pn.push(Rr);else if(Qt!=="inline"){var Ar=Tt(Rr);Pn=Pn.filter(function(bn){return!Ar.has(bn)})}ku(se,Pn,!0)||Ye(Pn,!0)}),on=function(wn,Pn){var Ar=Pn??!se.includes(wn);Jt(wn,Ar)},Qn=BXe(Qt,Mt,Se,Oe,be,Ht,nn,zt,on,xe);f.useEffect(function(){J(!0)},[]);var ni=f.useMemo(function(){return{_internalRenderMenuItem:we,_internalRenderSubMenuItem:De}},[we,De]),zr=Qt!=="horizontal"||C?Pe:Pe.map(function(Rr,wn){return f.createElement(v_,{key:Rr.key,overflowDisabled:wn>Wt},Rr)}),Yr=f.createElement(kd,ut({id:m,ref:be,prefixCls:"".concat(o,"-overflow"),component:"ul",itemComponent:kE,className:Re(o,"".concat(o,"-root"),"".concat(o,"-").concat(Qt),l,ae(ae({},"".concat(o,"-inline-collapsed"),ct),"".concat(o,"-rtl"),Se),a),dir:p,style:s,role:"menu",tabIndex:u,data:zr,renderRawItem:function(wn){return wn},renderRawRest:function(wn){var Pn=wn.length,Ar=Pn?Pe.slice(-Pn):null;return f.createElement(rP,{eventKey:QF,title:me,disabled:$t,internalPopupClose:Pn===0,popupClassName:pe},Ar)},maxCount:Qt!=="horizontal"||C?kd.INVALIDATE:kd.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(wn){At(wn)},onKeyDown:Qn},Ce));return f.createElement(vW.Provider,{value:ni},f.createElement(W0e.Provider,{value:Oe},f.createElement(v_,{prefixCls:o,rootClassName:a,mode:Qt,openKeys:se,rtl:Se,disabled:b,motion:K?Y:null,defaultMotions:K?ie:null,activeKey:Mt,onActive:Dn,onInactive:Xn,selectedKeys:oe,inlineIndent:V,subMenuOpenDelay:T,subMenuCloseDelay:E,forceSubMenuRender:k,builtinPlacements:ee,triggerSubMenuAction:fe,getPopupContainer:he,itemIcon:ne,expandIcon:ue,onItemClick:ft,onOpenChange:Jt},f.createElement(Y0e.Provider,{value:Ve},Yr),f.createElement("div",{style:{display:"none"},"aria-hidden":!0},f.createElement(q0e.Provider,{value:gt},Ne)))))}),eC=hQe;eC.Item=kE;eC.SubMenu=rP;eC.ItemGroup=wW;eC.Divider=xW;var tye={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"},pQe=function(t,n){return f.createElement(wr,ut({},t,{ref:n,icon:tye}))},mQe=f.forwardRef(pQe),gQe={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"},vQe=function(t,n){return f.createElement(wr,ut({},t,{ref:n,icon:gQe}))},eS=f.forwardRef(vQe);const nye=f.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),yQe=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:i,headerHeight:o,headerPadding:a,headerColor:s,footerPadding:l,fontSize:c,bodyBg:u,headerBg:d}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:u,"&, *":{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:s,lineHeight:je(o),background:d,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:l,color:r,fontSize:c,background:i},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},rye=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:o,marginXXS:a,colorTextLightSolid:s,colorBgContainer:l}=e,c=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${c}px`,headerColor:i,footerPadding:`${o}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+a*2,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:l,lightTriggerBg:l,lightTriggerColor:i}},iye=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],oye=Tr("Layout",e=>[yQe(e)],rye,{deprecatedTokens:iye}),bQe=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:i,antCls:o,triggerHeight:a,triggerColor:s,triggerBg:l,headerHeight:c,zeroTriggerWidth:u,zeroTriggerHeight:d,borderRadiusLG:h,lightSiderBg:p,lightTriggerColor:m,lightTriggerBg:v,bodyBg:y}=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:s,lineHeight:je(a),textAlign:"center",background:l,cursor:"pointer",transition:`all ${r}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:c,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:d,color:s,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${je(h)} ${je(h)} 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(u).mul(-1).equal(),borderRadius:`${je(h)} 0 0 ${je(h)}`}}},"&-light":{background:p,[`${t}-trigger`]:{color:m,background:v},[`${t}-zero-width-trigger`]:{color:m,background:v,border:`1px solid ${y}`,borderInlineStart:0}}}}},SQe=Tr(["Layout","Sider"],e=>[bQe(e)],rye,{deprecatedTokens:iye});var CQe=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 _ee={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},xQe=e=>!Number.isNaN(Number.parseFloat(e))&&isFinite(e),iP=f.createContext({}),wQe=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),aye=f.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:i,children:o,defaultCollapsed:a=!1,theme:s="dark",style:l={},collapsible:c=!1,reverseArrow:u=!1,width:d=200,collapsedWidth:h=80,zeroWidthTriggerStyle:p,breakpoint:m,onCollapse:v,onBreakpoint:y}=e,S=CQe(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:b}=f.useContext(nye),[C,_]=f.useState("collapsed"in e?e.collapsed:a),[T,x]=f.useState(!1);f.useEffect(()=>{"collapsed"in e&&_(e.collapsed)},[e.collapsed]);const E=(ne,ue)=>{"collapsed"in e||_(ne),v==null||v(ne,ue)},{getPrefixCls:k,direction:M}=f.useContext(hn),P=k("layout-sider",n),[D,R,A]=SQe(P),H=f.useRef(null);H.current=ne=>{x(ne.matches),y==null||y(ne.matches),C!==ne.matches&&E(ne.matches,"responsive")},f.useEffect(()=>{function ne(ye){return H.current(ye)}let ue;if(typeof window<"u"){const{matchMedia:ye}=window;if(ye&&m&&m in _ee){ue=ye(`screen and (max-width: ${_ee[m]})`);try{ue.addEventListener("change",ne)}catch{ue.addListener(ne)}ne(ue)}}return()=>{try{ue==null||ue.removeEventListener("change",ne)}catch{ue==null||ue.removeListener(ne)}}},[m]),f.useEffect(()=>{const ne=wQe("ant-sider-");return b.addSider(ne),()=>b.removeSider(ne)},[]);const F=()=>{E(!C,"clickTrigger")},z=Pr(S,["collapsed"]),W=C?h:d,q=xQe(W)?`${W}px`:String(W),Z=parseFloat(String(h||0))===0?f.createElement("span",{onClick:F,className:Re(`${P}-zero-width-trigger`,`${P}-zero-width-trigger-${u?"right":"left"}`),style:p},i||f.createElement(mQe,null)):null,N=M==="rtl"==!u,Y={expanded:N?f.createElement(hp,null):f.createElement(eS,null),collapsed:N?f.createElement(eS,null):f.createElement(hp,null)}[C?"collapsed":"expanded"],ie=i!==null?Z||f.createElement("div",{className:`${P}-trigger`,onClick:F,style:{width:q}},i||Y):null,ce=Object.assign(Object.assign({},l),{flex:`0 0 ${q}`,maxWidth:q,minWidth:q,width:q}),fe=Re(P,`${P}-${s}`,{[`${P}-collapsed`]:!!C,[`${P}-has-trigger`]:c&&i!==null&&!Z,[`${P}-below`]:!!T,[`${P}-zero-width`]:parseFloat(q)===0},r,R,A),ee=f.useMemo(()=>({siderCollapsed:C}),[C]);return D(f.createElement(iP.Provider,{value:ee},f.createElement("aside",Object.assign({className:fe},z,{style:ce,ref:t}),f.createElement("div",{className:`${P}-children`},o),c||T&&Z?ie:null)))});var _Qe={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"},EQe=function(t,n){return f.createElement(wr,ut({},t,{ref:n,icon:_Qe}))},_W=f.forwardRef(EQe);const W9=f.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var TQe=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 sye=e=>{const{prefixCls:t,className:n,dashed:r}=e,i=TQe(e,["prefixCls","className","dashed"]),{getPrefixCls:o}=f.useContext(hn),a=o("menu",t),s=Re({[`${a}-item-divider-dashed`]:!!r},n);return f.createElement(xW,Object.assign({className:s},i))},lye=e=>{var t;const{className:n,children:r,icon:i,title:o,danger:a,extra:s}=e,{prefixCls:l,firstLevel:c,direction:u,disableMenuItemTitleTooltip:d,inlineCollapsed:h}=f.useContext(W9),p=C=>{const _=r==null?void 0:r[0],T=f.createElement("span",{className:Re(`${l}-title-content`,{[`${l}-title-content-with-extra`]:!!s||s===0})},r);return(!i||f.isValidElement(r)&&r.type==="span")&&r&&C&&c&&typeof _=="string"?f.createElement("div",{className:`${l}-inline-collapsed-noicon`},_.charAt(0)):T},{siderCollapsed:m}=f.useContext(iP);let v=o;typeof o>"u"?v=c?r:"":o===!1&&(v="");const y={title:v};!m&&!h&&(y.title=null,y.open=!1);const S=Uo(r).length;let b=f.createElement(kE,Object.assign({},Pr(e,["title","icon","danger"]),{className:Re({[`${l}-item-danger`]:a,[`${l}-item-only-child`]:(i?S+1:S)===1},n),title:typeof o=="string"?o:void 0}),$o(i,{className:Re(f.isValidElement(i)?(t=i.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),p(h));return d||(b=f.createElement(ta,Object.assign({},y,{placement:u==="rtl"?"left":"right",classNames:{root:`${l}-inline-collapsed-tooltip`}}),b)),b};var kQe=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 V9=f.createContext(null),cye=f.forwardRef((e,t)=>{const{children:n}=e,r=kQe(e,["children"]),i=f.useContext(V9),o=f.useMemo(()=>Object.assign(Object.assign({},i),r),[i,r.prefixCls,r.mode,r.selectable,r.rootClassName]),a=oFe(n),s=Qd(t,a?mg(n):null);return f.createElement(V9.Provider,{value:o},f.createElement(zd,{space:!0},a?f.cloneElement(n,{ref:s}):n))}),OQe=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:i,lineWidth:o,lineType:a,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${je(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:s},[`> ${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"}}}},PQe=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(${je(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${je(n)})`}}}}},Eee=e=>Object.assign({},jd(e)),Tee=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:i,subMenuItemSelectedColor:o,groupTitleColor:a,itemBg:s,subMenuItemBg:l,itemSelectedBg:c,activeBarHeight:u,activeBarWidth:d,activeBarBorderWidth:h,motionDurationSlow:p,motionEaseInOut:m,motionEaseOut:v,itemPaddingInline:y,motionDurationMid:S,itemHoverColor:b,lineType:C,colorSplit:_,itemDisabledColor:T,dangerItemColor:x,dangerItemHoverColor:E,dangerItemSelectedColor:k,dangerItemActiveBg:M,dangerItemSelectedBg:P,popupBg:D,itemHoverBg:R,itemActiveBg:A,menuSubMenuBg:H,horizontalItemSelectedColor:F,horizontalItemSelectedBg:z,horizontalItemBorderRadius:W,horizontalItemHoverBg:q}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:s,[`&${n}-root:focus-visible`]:Object.assign({},Eee(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:a}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:o},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},Eee(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${T} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:b}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:R},"&:active":{backgroundColor:A}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:R},"&:active":{backgroundColor:A}}},[`${n}-item-danger`]:{color:x,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:E}},[`&${n}-item:active`]:{background:M}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:i,[`&${n}-item-danger`]:{color:k},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:P}},[`&${n}-submenu > ${n}`]:{backgroundColor:H},[`&${n}-popup > ${n}`]:{backgroundColor:D},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:D},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:h,marginTop:e.calc(h).mul(-1).equal(),marginBottom:0,borderRadius:W,"&::after":{position:"absolute",insetInline:y,bottom:0,borderBottom:`${je(u)} solid transparent`,transition:`border-color ${p} ${m}`,content:'""'},"&:hover, &-active, &-open":{background:q,"&::after":{borderBottomWidth:u,borderBottomColor:F}},"&-selected":{color:F,backgroundColor:z,"&:hover":{backgroundColor:z},"&::after":{borderBottomWidth:u,borderBottomColor:F}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${je(h)} ${C} ${_}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${je(d)} solid ${i}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${S} ${v}`,`opacity ${S} ${v}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:k}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${S} ${m}`,`opacity ${S} ${m}`].join(",")}}}}}},kee=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:i,menuArrowSize:o,marginXS:a,itemMarginBlock:s,itemWidth:l,itemPaddingInline:c}=e,u=e.calc(o).add(i).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:je(n),paddingInline:c,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:l},[`> ${t}-item,
|
||
> ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:je(n)},[`${t}-item-group-list ${t}-submenu-title,
|
||
${t}-submenu-title`]:{paddingInlineEnd:u}}},MQe=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:i,dropdownWidth:o,controlHeightLG:a,motionEaseOut:s,paddingXL:l,itemMarginInline:c,fontSizeLG:u,motionDurationFast:d,motionDurationSlow:h,paddingXS:p,boxShadowSecondary:m,collapsedWidth:v,collapsedIconSize:y}=e,S={height:r,lineHeight:je(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},kee(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},kee(e)),{boxShadow:m})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:o,maxHeight:`calc(100vh - ${je(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 ${h}`,`background ${h}`,`padding ${d} ${s}`].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`]:S,[`& ${t}-item-group-title`]:{paddingInlineStart:l}},[`${t}-item`]:S}},{[`${t}-inline-collapsed`]:{width:v,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:u,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% - ${je(e.calc(y).div(2).equal())} - ${je(c)})`,textOverflow:"clip",[`
|
||
${t}-submenu-arrow,
|
||
${t}-submenu-expand-icon
|
||
`]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:y,lineHeight:je(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({},Yl),{paddingInline:p})}}]},Oee=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:i,motionEaseOut:o,iconCls:a,iconSize:s,iconMarginInlineEnd:l}=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:s,fontSize:s,transition:[`font-size ${r} ${o}`,`margin ${n} ${i}`,`color ${n}`].join(","),"+ span":{marginInlineStart:l,opacity:1,transition:[`opacity ${n} ${i}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},qv()),[`&${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",cursor:"not-allowed",pointerEvents:"none"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Pee=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(${je(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${je(a)})`}}}}},IQe=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:i,motionDurationMid:o,motionEaseInOut:a,paddingXS:s,padding:l,colorSplit:c,lineWidth:u,zIndexPopup:d,borderRadiusLG:h,subMenuItemBorderRadius:p,menuArrowSize:m,menuArrowOffset:v,lineType:y,groupTitleLineHeight:S,groupTitleFontSize:b}=e;return[{"":{[n]:Object.assign(Object.assign({},Fd()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},$r(e)),Fd()),{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:`${je(s)} ${je(l)}`,fontSize:b,lineHeight:S,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}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:y,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Oee(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${je(e.calc(r).mul(2).equal())} ${je(l)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:h,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:h},Oee(e)),Pee(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${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}}}),Pee(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
|
||
&-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${je(v)})`},"&::after":{transform:`rotate(45deg) translateX(${je(e.calc(v).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${je(e.calc(m).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${je(e.calc(v).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${je(v)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},$Qe=e=>{var t,n,r;const{colorPrimary:i,colorError:o,colorTextDisabled:a,colorErrorBg:s,colorText:l,colorTextDescription:c,colorBgContainer:u,colorFillAlter:d,colorFillContent:h,lineWidth:p,lineWidthBold:m,controlItemBgActive:v,colorBgTextHover:y,controlHeightLG:S,lineHeight:b,colorBgElevated:C,marginXXS:_,padding:T,fontSize:x,controlHeightSM:E,fontSizeLG:k,colorTextLightSolid:M,colorErrorHover:P}=e,D=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,R=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:p,A=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,H=new Cr(M).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:l,itemColor:l,colorItemTextHover:l,itemHoverColor:l,colorItemTextHoverHorizontal:i,horizontalItemHoverColor:i,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:i,itemSelectedColor:i,subMenuItemSelectedColor:i,colorItemTextSelectedHorizontal:i,horizontalItemSelectedColor:i,colorItemBg:u,itemBg:u,colorItemBgHover:y,itemHoverBg:y,colorItemBgActive:h,itemActiveBg:v,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:v,itemSelectedBg:v,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:D,colorActiveBarHeight:m,activeBarHeight:m,colorActiveBarBorderSize:p,activeBarBorderWidth:R,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:o,dangerItemColor:o,colorDangerItemTextHover:o,dangerItemHoverColor:o,colorDangerItemTextSelected:o,dangerItemSelectedColor:o,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:A,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:S,groupTitleLineHeight:b,collapsedWidth:S*2,popupBg:C,itemMarginBlock:_,itemPaddingInline:T,horizontalLineHeight:`${S*1.15}px`,iconSize:x,iconMarginInlineEnd:E-x,collapsedIconSize:k,groupTitleFontSize:x,darkItemDisabledColor:new Cr(M).setA(.25).toRgbString(),darkItemColor:H,darkDangerItemColor:o,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:M,darkItemSelectedBg:i,darkDangerItemSelectedBg:o,darkItemHoverBg:"transparent",darkGroupTitleColor:H,darkItemHoverColor:M,darkDangerItemHoverColor:P,darkDangerItemSelectedColor:M,darkDangerItemActiveBg:o,itemWidth:D?`calc(100% + ${R}px)`:`calc(100% - ${A*2}px)`}},RQe=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 Tr("Menu",i=>{const{colorBgElevated:o,controlHeightLG:a,fontSize:s,darkItemColor:l,darkDangerItemColor:c,darkItemBg:u,darkSubMenuItemBg:d,darkItemSelectedColor:h,darkItemSelectedBg:p,darkDangerItemSelectedBg:m,darkItemHoverBg:v,darkGroupTitleColor:y,darkItemHoverColor:S,darkItemDisabledColor:b,darkDangerItemHoverColor:C,darkDangerItemSelectedColor:_,darkDangerItemActiveBg:T,popupBg:x,darkPopupBg:E}=i,k=i.calc(s).div(7).mul(5).equal(),M=ur(i,{menuArrowSize:k,menuHorizontalHeight:i.calc(a).mul(1.15).equal(),menuArrowOffset:i.calc(k).mul(.25).equal(),menuSubMenuBg:o,calc:i.calc,popupBg:x}),P=ur(M,{itemColor:l,itemHoverColor:S,groupTitleColor:y,itemSelectedColor:h,itemBg:u,popupBg:E,subMenuItemBg:d,itemActiveBg:"transparent",itemSelectedBg:p,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:v,itemDisabledColor:b,dangerItemColor:c,dangerItemHoverColor:C,dangerItemSelectedColor:_,dangerItemActiveBg:T,dangerItemSelectedBg:m,menuSubMenuBg:d,horizontalItemSelectedColor:h,horizontalItemSelectedBg:p});return[IQe(M),OQe(M),MQe(M),Tee(M,"light"),Tee(P,"dark"),PQe(M),bE(M),qf(M,"slide-up"),qf(M,"slide-down"),YS(M,"zoom-big")]},$Qe,{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)},uye=e=>{var t;const{popupClassName:n,icon:r,title:i,theme:o}=e,a=f.useContext(W9),{prefixCls:s,inlineCollapsed:l,theme:c}=a,u=JS();let d;if(!r)d=l&&!u.length&&i&&typeof i=="string"?f.createElement("div",{className:`${s}-inline-collapsed-noicon`},i.charAt(0)):f.createElement("span",{className:`${s}-title-content`},i);else{const m=f.isValidElement(i)&&i.type==="span";d=f.createElement(f.Fragment,null,$o(r,{className:Re(f.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),m?i:f.createElement("span",{className:`${s}-title-content`},i))}const h=f.useMemo(()=>Object.assign(Object.assign({},a),{firstLevel:!1}),[a]),[p]=Du("Menu");return f.createElement(W9.Provider,{value:h},f.createElement(rP,Object.assign({},Pr(e,["icon"]),{title:d,popupClassName:Re(s,n,`${s}-${o||c}`),popupStyle:Object.assign({zIndex:p},e.popupStyle)})))};var AQe=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 LR(e){return e===null||e===!1}const NQe={item:lye,submenu:uye,divider:sye},DQe=f.forwardRef((e,t)=>{var n;const r=f.useContext(V9),i=r||{},{getPrefixCls:o,getPopupContainer:a,direction:s,menu:l}=f.useContext(hn),c=o(),{prefixCls:u,className:d,style:h,theme:p="light",expandIcon:m,_internalDisableMenuItemTitleTooltip:v,inlineCollapsed:y,siderCollapsed:S,rootClassName:b,mode:C,selectable:_,onClick:T,overflowedIndicatorPopupClassName:x}=e,E=AQe(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),k=Pr(E,["collapsedWidth"]);(n=i.validator)===null||n===void 0||n.call(i,{mode:C});const M=cr(function(){var V;T==null||T.apply(void 0,arguments),(V=i.onClick)===null||V===void 0||V.call(i)}),P=i.mode||C,D=_??i.selectable,R=y??S,A={horizontal:{motionName:`${c}-slide-up`},inline:Xb(c),other:{motionName:`${c}-zoom-big`}},H=o("menu",u||i.prefixCls),F=_i(H),[z,W,q]=RQe(H,F,!r),Z=Re(`${H}-${p}`,l==null?void 0:l.className,d),N=f.useMemo(()=>{var V,Y;if(typeof m=="function"||LR(m))return m||null;if(typeof i.expandIcon=="function"||LR(i.expandIcon))return i.expandIcon||null;if(typeof(l==null?void 0:l.expandIcon)=="function"||LR(l==null?void 0:l.expandIcon))return(l==null?void 0:l.expandIcon)||null;const ie=(V=m??(i==null?void 0:i.expandIcon))!==null&&V!==void 0?V:l==null?void 0:l.expandIcon;return $o(ie,{className:Re(`${H}-submenu-expand-icon`,f.isValidElement(ie)?(Y=ie.props)===null||Y===void 0?void 0:Y.className:void 0)})},[m,i==null?void 0:i.expandIcon,l==null?void 0:l.expandIcon,H]),B=f.useMemo(()=>({prefixCls:H,inlineCollapsed:R||!1,direction:s,firstLevel:!0,theme:p,mode:P,disableMenuItemTitleTooltip:v}),[H,R,s,v,p]);return z(f.createElement(V9.Provider,{value:null},f.createElement(W9.Provider,{value:B},f.createElement(eC,Object.assign({getPopupContainer:a,overflowedIndicator:f.createElement(_W,null),overflowedIndicatorPopupClassName:Re(H,`${H}-${p}`,x),mode:P,selectable:D,onClick:M},k,{inlineCollapsed:R,style:Object.assign(Object.assign({},l==null?void 0:l.style),h),className:Z,prefixCls:H,direction:s,defaultMotions:A,expandIcon:N,ref:t,rootClassName:Re(b,W,i.rootClassName,q,F),_internalComponents:NQe})))))}),Jd=f.forwardRef((e,t)=>{const n=f.useRef(null),r=f.useContext(iP);return f.useImperativeHandle(t,()=>({menu:n.current,focus:i=>{var o;(o=n.current)===null||o===void 0||o.focus(i)}})),f.createElement(DQe,Object.assign({ref:n},e,r))});Jd.Item=lye;Jd.SubMenu=uye;Jd.Divider=sye;Jd.ItemGroup=wW;const LQe=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}}}}}},FQe=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:i,sizePopupArrow:o,antCls:a,iconCls:s,motionDurationMid:l,paddingBlock:c,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:h,fontSizeIcon:p,controlPaddingHorizontal:m,colorBgElevated:v}=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`]:{[`& > ${s}-down, & > ${a}-btn-icon > ${s}-down`]:{fontSize:p}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${s}-down`]:{fontSize:p},[`${s}-down::before`]:{transition:`transform ${l}`}},[`${t}-wrap-open`]:{[`${s}-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:AO},[`&${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:DO},[`&${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:NO},[`&${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:LO}}},gW(e,v,{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({},$r(e)),{[n]:Object.assign(Object.assign({padding:d,listStyleType:"none",backgroundColor:v,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},gl(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${je(c)} ${je(m)}`,color:e.colorTextDescription,transition:`all ${l}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:u,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 ${l}`,"&: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:`${je(c)} ${je(m)}`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${l}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},gl(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:h,cursor:"not-allowed","&:hover":{color:h,backgroundColor:v,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${je(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:p,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${je(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(m).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:h,backgroundColor:v,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[qf(e,"slide-up"),qf(e,"slide-down"),Qb(e,"move-up"),Qb(e,"move-down"),YS(e,"zoom-big")]]},jQe=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},eP({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),JO(e)),BQe=Tr("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:i}=e,o=ur(e,{menuCls:`${i}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[FQe(o),LQe(o)]},jQe,{resetStyle:!1}),OE=e=>{var t;const{menu:n,arrow:r,prefixCls:i,children:o,trigger:a,disabled:s,dropdownRender:l,getPopupContainer:c,overlayClassName:u,rootClassName:d,overlayStyle:h,open:p,onOpenChange:m,visible:v,onVisibleChange:y,mouseEnterDelay:S=.15,mouseLeaveDelay:b=.1,autoAdjustOverflow:C=!0,placement:_="",overlay:T,transitionName:x}=e,{getPopupContainer:E,getPrefixCls:k,direction:M,dropdown:P}=f.useContext(hn);eh();const D=f.useMemo(()=>{const he=k();return x!==void 0?x:_.includes("top")?`${he}-slide-down`:`${he}-slide-up`},[k,_,x]),R=f.useMemo(()=>_?_.includes("Center")?_.slice(0,_.indexOf("Center")):_:M==="rtl"?"bottomRight":"bottomLeft",[_,M]),A=k("dropdown",i),H=_i(A),[F,z,W]=BQe(A,H),[,q]=na(),Z=f.Children.only($Xe(o)?f.createElement("span",null,o):o),N=$o(Z,{className:Re(`${A}-trigger`,{[`${A}-rtl`]:M==="rtl"},Z.props.className),disabled:(t=Z.props.disabled)!==null&&t!==void 0?t:s}),B=s?[]:a,V=!!(B!=null&&B.includes("contextMenu")),[Y,ie]=Jn(!1,{value:p??v}),ce=cr(he=>{m==null||m(he,{source:"trigger"}),y==null||y(he),ie(he)}),fe=Re(u,d,z,W,H,P==null?void 0:P.className,{[`${A}-rtl`]:M==="rtl"}),ee=N0e({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:C,offset:q.marginXXS,arrowWidth:r?q.sizePopupArrow:0,borderRadius:q.borderRadius}),ne=f.useCallback(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(m==null||m(!1,{source:"menu"}),ie(!1))},[n==null?void 0:n.selectable,n==null?void 0:n.multiple]),ue=()=>{let he;return n!=null&&n.items?he=f.createElement(Jd,Object.assign({},n)):typeof T=="function"?he=T():he=T,l&&(he=l(he)),he=f.Children.only(typeof he=="string"?f.createElement("span",null,he):he),f.createElement(cye,{prefixCls:`${A}-menu`,rootClassName:Re(W,H),expandIcon:f.createElement("span",{className:`${A}-menu-submenu-arrow`},f.createElement(hp,{className:`${A}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:ne,validator:_e=>{}},he)},[ye,me]=Du("Dropdown",h==null?void 0:h.zIndex);let pe=f.createElement(U0e,Object.assign({alignPoint:V},Pr(e,["rootClassName"]),{mouseEnterDelay:S,mouseLeaveDelay:b,visible:Y,builtinPlacements:ee,arrow:!!r,overlayClassName:fe,prefixCls:A,getPopupContainer:c||E,transitionName:D,trigger:B,overlay:ue,placement:R,onVisibleChange:ce,overlayStyle:Object.assign(Object.assign(Object.assign({},P==null?void 0:P.style),h),{zIndex:ye})}),N);return ye&&(pe=f.createElement(gE.Provider,{value:me},pe)),F(pe)},HQe=vg(OE,"align",void 0,"dropdown",e=>e),zQe=e=>f.createElement(HQe,Object.assign({},e),f.createElement("span",null));OE._InternalPanelDoNotUseOrYouWillBeFired=zQe;const oP=e=>{let{children:t}=e;const{getPrefixCls:n}=f.useContext(hn),r=n("breadcrumb");return f.createElement("li",{className:`${r}-separator`,"aria-hidden":"true"},t===""?t:t||"/")};oP.__ANT_BREADCRUMB_SEPARATOR=!0;var UQe=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 WQe(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 dye(e,t,n,r){if(n==null)return null;const{className:i,onClick:o}=t,a=UQe(t,["className","onClick"]),s=Object.assign(Object.assign({},Hi(a,{data:!0,aria:!0})),{onClick:o});return r!==void 0?f.createElement("a",Object.assign({},s,{className:Re(`${e}-link`,i),href:r}),n):f.createElement("span",Object.assign({},s,{className:Re(`${e}-link`,i)}),n)}function VQe(e,t){return(r,i,o,a,s)=>{if(t)return t(r,i,o,a);const l=WQe(r,i);return dye(e,r,l,s)}}var JF=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 fye=e=>{const{prefixCls:t,separator:n="/",children:r,menu:i,overlay:o,dropdownProps:a,href:s}=e,c=(u=>{if(i||o){const d=Object.assign({},a);if(i){const h=i||{},{items:p}=h,m=JF(h,["items"]);d.menu=Object.assign(Object.assign({},m),{items:p==null?void 0:p.map((v,y)=>{var{key:S,title:b,label:C,path:_}=v,T=JF(v,["key","title","label","path"]);let x=C??b;return _&&(x=f.createElement("a",{href:`${s}${_}`},x)),Object.assign(Object.assign({},T),{key:S??y,label:x})})})}else o&&(d.overlay=o);return f.createElement(OE,Object.assign({placement:"bottom"},d),f.createElement("span",{className:`${t}-overlay-link`},u,f.createElement(TE,null)))}return u})(r);return c!=null?f.createElement(f.Fragment,null,f.createElement("li",null,c),n&&f.createElement(oP,null,n)):null},hye=e=>{const{prefixCls:t,children:n,href:r}=e,i=JF(e,["prefixCls","children","href"]),{getPrefixCls:o}=f.useContext(hn),a=o("breadcrumb",t);return f.createElement(fye,Object.assign({},i,{prefixCls:a}),dye(a,i,n,r))};hye.__ANT_BREADCRUMB_ITEM=!0;const KQe=e=>{const{componentCls:t,iconCls:n,calc:r}=e;return{[t]:Object.assign(Object.assign({},$r(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 ${je(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}},gl(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 ${je(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"}})}},qQe=e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}),GQe=Tr("Breadcrumb",e=>{const t=ur(e,{});return KQe(t)},qQe);var Mee=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 YQe(e){const{breadcrumbName:t,children:n}=e,r=Mee(e,["breadcrumbName","children"]),i=Object.assign({title:t},r);return n&&(i.menu={items:n.map(o=>{var{breadcrumbName:a}=o,s=Mee(o,["breadcrumbName"]);return Object.assign(Object.assign({},s),{title:a})})}),i}function XQe(e,t){return f.useMemo(()=>e||(t?t.map(YQe):null),[e,t])}var QQe=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 ZQe=(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},EW=e=>{const{prefixCls:t,separator:n="/",style:r,className:i,rootClassName:o,routes:a,items:s,children:l,itemRender:c,params:u={}}=e,d=QQe(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:h,direction:p,breadcrumb:m}=f.useContext(hn);let v;const y=h("breadcrumb",t),[S,b,C]=GQe(y),_=XQe(s,a),T=VQe(y,c);if(_&&_.length>0){const k=[],M=s||a;v=_.map((P,D)=>{const{path:R,key:A,type:H,menu:F,overlay:z,onClick:W,className:q,separator:Z,dropdownProps:N}=P,B=ZQe(u,R);B!==void 0&&k.push(B);const V=A??D;if(H==="separator")return f.createElement(oP,{key:V},Z);const Y={},ie=D===_.length-1;F?Y.menu=F:z&&(Y.overlay=z);let{href:ce}=P;return k.length&&B!==void 0&&(ce=`#/${k.join("/")}`),f.createElement(fye,Object.assign({key:V},Y,Hi(P,{data:!0,aria:!0}),{className:q,dropdownProps:N,href:ce,separator:ie?"":n,onClick:W,prefixCls:y}),T(P,u,M,k,ce))})}else if(l){const k=Uo(l).length;v=Uo(l).map((M,P)=>{if(!M)return M;const D=P===k-1;return $o(M,{separator:D?"":n,key:P})})}const x=Re(y,m==null?void 0:m.className,{[`${y}-rtl`]:p==="rtl"},i,o,b,C),E=Object.assign(Object.assign({},m==null?void 0:m.style),r);return S(f.createElement("nav",Object.assign({className:x,style:E},d),f.createElement("ol",null,v)))};EW.Item=hye;EW.Separator=oP;var pye={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(yo,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",a="second",s="minute",l="hour",c="day",u="week",d="month",h="quarter",p="year",m="date",v="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(H){var F=["th","st","nd","rd"],z=H%100;return"["+H+(F[(z-20)%10]||F[z]||F[0])+"]"}},C=function(H,F,z){var W=String(H);return!W||W.length>=F?H:""+Array(F+1-W.length).join(z)+H},_={s:C,z:function(H){var F=-H.utcOffset(),z=Math.abs(F),W=Math.floor(z/60),q=z%60;return(F<=0?"+":"-")+C(W,2,"0")+":"+C(q,2,"0")},m:function H(F,z){if(F.date()<z.date())return-H(z,F);var W=12*(z.year()-F.year())+(z.month()-F.month()),q=F.clone().add(W,d),Z=z-q<0,N=F.clone().add(W+(Z?-1:1),d);return+(-(W+(z-q)/(Z?q-N:N-q))||0)},a:function(H){return H<0?Math.ceil(H)||0:Math.floor(H)},p:function(H){return{M:d,y:p,w:u,d:c,D:m,h:l,m:s,s:a,ms:o,Q:h}[H]||String(H||"").toLowerCase().replace(/s$/,"")},u:function(H){return H===void 0}},T="en",x={};x[T]=b;var E="$isDayjsObject",k=function(H){return H instanceof R||!(!H||!H[E])},M=function H(F,z,W){var q;if(!F)return T;if(typeof F=="string"){var Z=F.toLowerCase();x[Z]&&(q=Z),z&&(x[Z]=z,q=Z);var N=F.split("-");if(!q&&N.length>1)return H(N[0])}else{var B=F.name;x[B]=F,q=B}return!W&&q&&(T=q),q||!W&&T},P=function(H,F){if(k(H))return H.clone();var z=typeof F=="object"?F:{};return z.date=H,z.args=arguments,new R(z)},D=_;D.l=M,D.i=k,D.w=function(H,F){return P(H,{locale:F.$L,utc:F.$u,x:F.$x,$offset:F.$offset})};var R=function(){function H(z){this.$L=M(z.locale,null,!0),this.parse(z),this.$x=this.$x||z.x||{},this[E]=!0}var F=H.prototype;return F.parse=function(z){this.$d=function(W){var q=W.date,Z=W.utc;if(q===null)return new Date(NaN);if(D.u(q))return new Date;if(q instanceof Date)return new Date(q);if(typeof q=="string"&&!/Z$/i.test(q)){var N=q.match(y);if(N){var B=N[2]-1||0,V=(N[7]||"0").substring(0,3);return Z?new Date(Date.UTC(N[1],B,N[3]||1,N[4]||0,N[5]||0,N[6]||0,V)):new Date(N[1],B,N[3]||1,N[4]||0,N[5]||0,N[6]||0,V)}}return new Date(q)}(z),this.init()},F.init=function(){var z=this.$d;this.$y=z.getFullYear(),this.$M=z.getMonth(),this.$D=z.getDate(),this.$W=z.getDay(),this.$H=z.getHours(),this.$m=z.getMinutes(),this.$s=z.getSeconds(),this.$ms=z.getMilliseconds()},F.$utils=function(){return D},F.isValid=function(){return this.$d.toString()!==v},F.isSame=function(z,W){var q=P(z);return this.startOf(W)<=q&&q<=this.endOf(W)},F.isAfter=function(z,W){return P(z)<this.startOf(W)},F.isBefore=function(z,W){return this.endOf(W)<P(z)},F.$g=function(z,W,q){return D.u(z)?this[W]:this.set(q,z)},F.unix=function(){return Math.floor(this.valueOf()/1e3)},F.valueOf=function(){return this.$d.getTime()},F.startOf=function(z,W){var q=this,Z=!!D.u(W)||W,N=D.p(z),B=function(ue,ye){var me=D.w(q.$u?Date.UTC(q.$y,ye,ue):new Date(q.$y,ye,ue),q);return Z?me:me.endOf(c)},V=function(ue,ye){return D.w(q.toDate()[ue].apply(q.toDate("s"),(Z?[0,0,0,0]:[23,59,59,999]).slice(ye)),q)},Y=this.$W,ie=this.$M,ce=this.$D,fe="set"+(this.$u?"UTC":"");switch(N){case p:return Z?B(1,0):B(31,11);case d:return Z?B(1,ie):B(0,ie+1);case u:var ee=this.$locale().weekStart||0,ne=(Y<ee?Y+7:Y)-ee;return B(Z?ce-ne:ce+(6-ne),ie);case c:case m:return V(fe+"Hours",0);case l:return V(fe+"Minutes",1);case s:return V(fe+"Seconds",2);case a:return V(fe+"Milliseconds",3);default:return this.clone()}},F.endOf=function(z){return this.startOf(z,!1)},F.$set=function(z,W){var q,Z=D.p(z),N="set"+(this.$u?"UTC":""),B=(q={},q[c]=N+"Date",q[m]=N+"Date",q[d]=N+"Month",q[p]=N+"FullYear",q[l]=N+"Hours",q[s]=N+"Minutes",q[a]=N+"Seconds",q[o]=N+"Milliseconds",q)[Z],V=Z===c?this.$D+(W-this.$W):W;if(Z===d||Z===p){var Y=this.clone().set(m,1);Y.$d[B](V),Y.init(),this.$d=Y.set(m,Math.min(this.$D,Y.daysInMonth())).$d}else B&&this.$d[B](V);return this.init(),this},F.set=function(z,W){return this.clone().$set(z,W)},F.get=function(z){return this[D.p(z)]()},F.add=function(z,W){var q,Z=this;z=Number(z);var N=D.p(W),B=function(ie){var ce=P(Z);return D.w(ce.date(ce.date()+Math.round(ie*z)),Z)};if(N===d)return this.set(d,this.$M+z);if(N===p)return this.set(p,this.$y+z);if(N===c)return B(1);if(N===u)return B(7);var V=(q={},q[s]=r,q[l]=i,q[a]=n,q)[N]||1,Y=this.$d.getTime()+z*V;return D.w(Y,this)},F.subtract=function(z,W){return this.add(-1*z,W)},F.format=function(z){var W=this,q=this.$locale();if(!this.isValid())return q.invalidDate||v;var Z=z||"YYYY-MM-DDTHH:mm:ssZ",N=D.z(this),B=this.$H,V=this.$m,Y=this.$M,ie=q.weekdays,ce=q.months,fe=q.meridiem,ee=function(ye,me,pe,he){return ye&&(ye[me]||ye(W,Z))||pe[me].slice(0,he)},ne=function(ye){return D.s(B%12||12,ye,"0")},ue=fe||function(ye,me,pe){var he=ye<12?"AM":"PM";return pe?he.toLowerCase():he};return Z.replace(S,function(ye,me){return me||function(pe){switch(pe){case"YY":return String(W.$y).slice(-2);case"YYYY":return D.s(W.$y,4,"0");case"M":return Y+1;case"MM":return D.s(Y+1,2,"0");case"MMM":return ee(q.monthsShort,Y,ce,3);case"MMMM":return ee(ce,Y);case"D":return W.$D;case"DD":return D.s(W.$D,2,"0");case"d":return String(W.$W);case"dd":return ee(q.weekdaysMin,W.$W,ie,2);case"ddd":return ee(q.weekdaysShort,W.$W,ie,3);case"dddd":return ie[W.$W];case"H":return String(B);case"HH":return D.s(B,2,"0");case"h":return ne(1);case"hh":return ne(2);case"a":return ue(B,V,!0);case"A":return ue(B,V,!1);case"m":return String(V);case"mm":return D.s(V,2,"0");case"s":return String(W.$s);case"ss":return D.s(W.$s,2,"0");case"SSS":return D.s(W.$ms,3,"0");case"Z":return N}return null}(ye)||N.replace(":","")})},F.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},F.diff=function(z,W,q){var Z,N=this,B=D.p(W),V=P(z),Y=(V.utcOffset()-this.utcOffset())*r,ie=this-V,ce=function(){return D.m(N,V)};switch(B){case p:Z=ce()/12;break;case d:Z=ce();break;case h:Z=ce()/3;break;case u:Z=(ie-Y)/6048e5;break;case c:Z=(ie-Y)/864e5;break;case l:Z=ie/i;break;case s:Z=ie/r;break;case a:Z=ie/n;break;default:Z=ie}return q?Z:D.a(Z)},F.daysInMonth=function(){return this.endOf(d).$D},F.$locale=function(){return x[this.$L]},F.locale=function(z,W){if(!z)return this.$L;var q=this.clone(),Z=M(z,W,!0);return Z&&(q.$L=Z),q},F.clone=function(){return D.w(this.$d,this)},F.toDate=function(){return new Date(this.valueOf())},F.toJSON=function(){return this.isValid()?this.toISOString():null},F.toISOString=function(){return this.$d.toISOString()},F.toString=function(){return this.$d.toUTCString()},H}(),A=R.prototype;return P.prototype=A,[["$ms",o],["$s",a],["$m",s],["$H",l],["$W",c],["$M",d],["$y",p],["$D",m]].forEach(function(H){A[H[1]]=function(F){return this.$g(F,H[0],H[1])}}),P.extend=function(H,F){return H.$i||(H(F,R,P),H.$i=!0),P},P.locale=M,P.isDayjs=k,P.unix=function(H){return P(1e3*H)},P.en=x[T],P.Ls=x,P.p={},P})})(pye);var mye=pye.exports;const Fr=hi(mye);var gye={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(yo,function(){return function(n,r){r.prototype.weekday=function(i){var o=this.$locale().weekStart||0,a=this.$W,s=(a<o?a+7:a)-o;return this.$utils().u(i)?s:this.subtract(s,"day").add(i,"day")}}})})(gye);var JQe=gye.exports;const vye=hi(JQe);var yye={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(yo,function(){return function(n,r,i){var o=r.prototype,a=function(d){return d&&(d.indexOf?d:d.s)},s=function(d,h,p,m,v){var y=d.name?d:d.$locale(),S=a(y[h]),b=a(y[p]),C=S||b.map(function(T){return T.slice(0,m)});if(!v)return C;var _=y.weekStart;return C.map(function(T,x){return C[(x+(_||0))%7]})},l=function(){return i.Ls[i.locale()]},c=function(d,h){return d.formats[h]||function(p){return p.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(m,v,y){return v||y.slice(1)})}(d.formats[h.toUpperCase()])},u=function(){var d=this;return{months:function(h){return h?h.format("MMMM"):s(d,"months")},monthsShort:function(h){return h?h.format("MMM"):s(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):s(d,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):s(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):s(d,"weekdaysShort","weekdays",3)},longDateFormat:function(h){return c(d.$locale(),h)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return u.bind(this)()},i.localeData=function(){var d=l();return{firstDayOfWeek:function(){return d.weekStart||0},weekdays:function(){return i.weekdays()},weekdaysShort:function(){return i.weekdaysShort()},weekdaysMin:function(){return i.weekdaysMin()},months:function(){return i.months()},monthsShort:function(){return i.monthsShort()},longDateFormat:function(h){return c(d,h)},meridiem:d.meridiem,ordinal:d.ordinal}},i.months=function(){return s(l(),"months")},i.monthsShort=function(){return s(l(),"monthsShort","months",3)},i.weekdays=function(d){return s(l(),"weekdays",null,null,d)},i.weekdaysShort=function(d){return s(l(),"weekdaysShort","weekdays",3,d)},i.weekdaysMin=function(d){return s(l(),"weekdaysMin","weekdays",2,d)}}})})(yye);var eZe=yye.exports;const bye=hi(eZe);var Sye={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(yo,function(){var n="week",r="year";return function(i,o,a){var s=o.prototype;s.week=function(l){if(l===void 0&&(l=null),l!==null)return this.add(7*(l-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var u=a(this).startOf(r).add(1,r).date(c),d=a(this).endOf(n);if(u.isBefore(d))return 1}var h=a(this).startOf(r).date(c).startOf(n).subtract(1,"millisecond"),p=this.diff(h,n,!0);return p<0?a(this).startOf("week").week():Math.ceil(p)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(Sye);var tZe=Sye.exports;const TW=hi(tZe);var Cye={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(yo,function(){return function(n,r){r.prototype.weekYear=function(){var i=this.month(),o=this.week(),a=this.year();return o===1&&i===11?a+1:i===0&&o>=52?a-1:a}}})})(Cye);var nZe=Cye.exports;const rZe=hi(nZe);var xye={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(yo,function(){return function(n,r){var i=r.prototype,o=i.format;i.format=function(a){var s=this,l=this.$locale();if(!this.isValid())return o.bind(this)(a);var c=this.$utils(),u=(a||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(d){switch(d){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return l.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return l.ordinal(s.week(),"W");case"w":case"ww":return c.s(s.week(),d==="w"?1:2,"0");case"W":case"WW":return c.s(s.isoWeek(),d==="W"?1:2,"0");case"k":case"kk":return c.s(String(s.$H===0?24:s.$H),d==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return d}});return o.bind(this)(u)}}})})(xye);var iZe=xye.exports;const wye=hi(iZe);var _ye={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(yo,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,o=/\d\d/,a=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,l={},c=function(y){return(y=+y)+(y>68?1900:2e3)},u=function(y){return function(S){this[y]=+S}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=function(S){if(!S||S==="Z")return 0;var b=S.match(/([+-]|\d\d)/g),C=60*b[1]+(+b[2]||0);return C===0?0:b[0]==="+"?-C:C}(y)}],h=function(y){var S=l[y];return S&&(S.indexOf?S:S.s.concat(S.f))},p=function(y,S){var b,C=l.meridiem;if(C){for(var _=1;_<=24;_+=1)if(y.indexOf(C(_,0,S))>-1){b=_>12;break}}else b=y===(S?"pm":"PM");return b},m={A:[s,function(y){this.afternoon=p(y,!1)}],a:[s,function(y){this.afternoon=p(y,!0)}],Q:[i,function(y){this.month=3*(y-1)+1}],S:[i,function(y){this.milliseconds=100*+y}],SS:[o,function(y){this.milliseconds=10*+y}],SSS:[/\d{3}/,function(y){this.milliseconds=+y}],s:[a,u("seconds")],ss:[a,u("seconds")],m:[a,u("minutes")],mm:[a,u("minutes")],H:[a,u("hours")],h:[a,u("hours")],HH:[a,u("hours")],hh:[a,u("hours")],D:[a,u("day")],DD:[o,u("day")],Do:[s,function(y){var S=l.ordinal,b=y.match(/\d+/);if(this.day=b[0],S)for(var C=1;C<=31;C+=1)S(C).replace(/\[|\]/g,"")===y&&(this.day=C)}],w:[a,u("week")],ww:[o,u("week")],M:[a,u("month")],MM:[o,u("month")],MMM:[s,function(y){var S=h("months"),b=(h("monthsShort")||S.map(function(C){return C.slice(0,3)})).indexOf(y)+1;if(b<1)throw new Error;this.month=b%12||b}],MMMM:[s,function(y){var S=h("months").indexOf(y)+1;if(S<1)throw new Error;this.month=S%12||S}],Y:[/[+-]?\d+/,u("year")],YY:[o,function(y){this.year=c(y)}],YYYY:[/\d{4}/,u("year")],Z:d,ZZ:d};function v(y){var S,b;S=y,b=l&&l.formats;for(var C=(y=S.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(P,D,R){var A=R&&R.toUpperCase();return D||b[R]||n[R]||b[A].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(H,F,z){return F||z.slice(1)})})).match(r),_=C.length,T=0;T<_;T+=1){var x=C[T],E=m[x],k=E&&E[0],M=E&&E[1];C[T]=M?{regex:k,parser:M}:x.replace(/^\[|\]$/g,"")}return function(P){for(var D={},R=0,A=0;R<_;R+=1){var H=C[R];if(typeof H=="string")A+=H.length;else{var F=H.regex,z=H.parser,W=P.slice(A),q=F.exec(W)[0];z.call(D,q),P=P.replace(q,"")}}return function(Z){var N=Z.afternoon;if(N!==void 0){var B=Z.hours;N?B<12&&(Z.hours+=12):B===12&&(Z.hours=0),delete Z.afternoon}}(D),D}}return function(y,S,b){b.p.customParseFormat=!0,y&&y.parseTwoDigitYear&&(c=y.parseTwoDigitYear);var C=S.prototype,_=C.parse;C.parse=function(T){var x=T.date,E=T.utc,k=T.args;this.$u=E;var M=k[1];if(typeof M=="string"){var P=k[2]===!0,D=k[3]===!0,R=P||D,A=k[2];D&&(A=k[2]),l=this.$locale(),!P&&A&&(l=b.Ls[A]),this.$d=function(W,q,Z,N){try{if(["x","X"].indexOf(q)>-1)return new Date((q==="X"?1e3:1)*W);var B=v(q)(W),V=B.year,Y=B.month,ie=B.day,ce=B.hours,fe=B.minutes,ee=B.seconds,ne=B.milliseconds,ue=B.zone,ye=B.week,me=new Date,pe=ie||(V||Y?1:me.getDate()),he=V||me.getFullYear(),_e=0;V&&!Y||(_e=Y>0?Y-1:me.getMonth());var le,xe=ce||0,we=fe||0,De=ee||0,Fe=ne||0;return ue?new Date(Date.UTC(he,_e,pe,xe,we,De,Fe+60*ue.offset*1e3)):Z?new Date(Date.UTC(he,_e,pe,xe,we,De,Fe)):(le=new Date(he,_e,pe,xe,we,De,Fe),ye&&(le=N(le).week(ye).toDate()),le)}catch{return new Date("")}}(x,M,E,b),this.init(),A&&A!==!0&&(this.$L=this.locale(A).$L),R&&x!=this.format(M)&&(this.$d=new Date("")),l={}}else if(M instanceof Array)for(var H=M.length,F=1;F<=H;F+=1){k[1]=M[F-1];var z=b.apply(this,k);if(z.isValid()){this.$d=z.$d,this.$L=z.$L,this.init();break}F===H&&(this.$d=new Date(""))}else _.call(this,T)}}})})(_ye);var oZe=_ye.exports;const Eye=hi(oZe);Fr.extend(Eye);Fr.extend(wye);Fr.extend(vye);Fr.extend(bye);Fr.extend(TW);Fr.extend(rZe);Fr.extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(o){var a=(o||"").replace("Wo","wo");return r.bind(this)(a)}});var aZe={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},Gg=function(t){var n=aZe[t];return n||t.split("_")[0]},sZe={getNow:function(){var t=Fr();return typeof t.tz=="function"?t.tz():t},getFixedDate:function(t){return Fr(t,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(t){return t.endOf("month")},getWeekDay:function(t){var n=t.locale("en");return n.weekday()+n.localeData().firstDayOfWeek()},getYear:function(t){return t.year()},getMonth:function(t){return t.month()},getDate:function(t){return t.date()},getHour:function(t){return t.hour()},getMinute:function(t){return t.minute()},getSecond:function(t){return t.second()},getMillisecond:function(t){return t.millisecond()},addYear:function(t,n){return t.add(n,"year")},addMonth:function(t,n){return t.add(n,"month")},addDate:function(t,n){return t.add(n,"day")},setYear:function(t,n){return t.year(n)},setMonth:function(t,n){return t.month(n)},setDate:function(t,n){return t.date(n)},setHour:function(t,n){return t.hour(n)},setMinute:function(t,n){return t.minute(n)},setSecond:function(t,n){return t.second(n)},setMillisecond:function(t,n){return t.millisecond(n)},isAfter:function(t,n){return t.isAfter(n)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){return Fr().locale(Gg(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(Gg(t)).weekday(0)},getWeek:function(t,n){return n.locale(Gg(t)).week()},getShortWeekDays:function(t){return Fr().locale(Gg(t)).localeData().weekdaysMin()},getShortMonths:function(t){return Fr().locale(Gg(t)).localeData().monthsShort()},format:function(t,n,r){return n.locale(Gg(t)).format(r)},parse:function(t,n,r){for(var i=Gg(t),o=0;o<r.length;o+=1){var a=r[o],s=n;if(a.includes("wo")||a.includes("Wo")){for(var l=s.split("-")[0],c=s.split("-")[1],u=Fr(l,"YYYY").startOf("year").locale(i),d=0;d<=52;d+=1){var h=u.add(d,"week");if(h.format("Wo")===c)return h}return null}var p=Fr(s,a,!0).locale(i);if(p.isValid())return p}return null}}};function aP(e,t){return e!==void 0?e:t?"bottomRight":"bottomLeft"}function Tye(e,t){var n=aP(e,t),r=n==null?void 0:n.toLowerCase().endsWith("right"),i=r?"insetInlineEnd":"insetInlineStart";return t&&(i=["insetInlineStart","insetInlineEnd"].find(function(o){return o!==i})),i}var ef=f.createContext(null),lZe={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function kye(e){var t=e.popupElement,n=e.popupStyle,r=e.popupClassName,i=e.popupAlign,o=e.transitionName,a=e.getPopupContainer,s=e.children,l=e.range,c=e.placement,u=e.builtinPlacements,d=u===void 0?lZe:u,h=e.direction,p=e.visible,m=e.onClose,v=f.useContext(ef),y=v.prefixCls,S="".concat(y,"-dropdown"),b=aP(c,h==="rtl");return f.createElement(EE,{showAction:[],hideAction:["click"],popupPlacement:b,builtinPlacements:d,prefixCls:S,popupTransitionName:o,popup:t,popupAlign:i,popupVisible:p,popupClassName:Re(r,ae(ae({},"".concat(S,"-range"),l),"".concat(S,"-rtl"),h==="rtl")),popupStyle:n,stretch:"minWidth",getPopupContainer:a,onPopupVisibleChange:function(_){_||m()}},s)}function kW(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",r=String(e);r.length<t;)r="".concat(n).concat(r);return r}function Xv(e){return e==null?[]:Array.isArray(e)?e:[e]}function nw(e,t,n){var r=pt(e);return r[t]=n,r}function sP(e,t){var n={},r=t||Object.keys(e);return r.forEach(function(i){e[i]!==void 0&&(n[i]=e[i])}),n}function Oye(e,t,n){if(n)return n;switch(e){case"time":return t.fieldTimeFormat;case"datetime":return t.fieldDateTimeFormat;case"month":return t.fieldMonthFormat;case"year":return t.fieldYearFormat;case"quarter":return t.fieldQuarterFormat;case"week":return t.fieldWeekFormat;default:return t.fieldDateFormat}}function Pye(e,t,n){var r=n!==void 0?n:t[t.length-1],i=t.find(function(o){return e[o]});return r!==i?e[i]:void 0}function Mye(e){return sP(e,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function OW(e,t,n,r){var i=f.useMemo(function(){return e||function(a,s){var l=a;return t&&s.type==="date"?t(l,s.today):n&&s.type==="month"?n(l,s.locale):s.originNode}},[e,n,t]),o=f.useCallback(function(a,s){return i(a,G(G({},s),{},{range:r}))},[i,r]);return o}function Iye(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=f.useState([!1,!1]),i=Le(r,2),o=i[0],a=i[1],s=function(u,d){a(function(h){return nw(h,d,u)})},l=f.useMemo(function(){return o.map(function(c,u){if(c)return!0;var d=e[u];return d?!!(!n[u]&&!d||d&&t(d,{activeIndex:u})):!1})},[e,o,t,n]);return[l,s]}function $ye(e,t,n,r,i){var o="",a=[];return e&&a.push(i?"hh":"HH"),t&&a.push("mm"),n&&a.push("ss"),o=a.join(":"),r&&(o+=".SSS"),i&&(o+=" A"),o}function cZe(e,t,n,r,i,o){var a=e.fieldDateTimeFormat,s=e.fieldDateFormat,l=e.fieldTimeFormat,c=e.fieldMonthFormat,u=e.fieldYearFormat,d=e.fieldWeekFormat,h=e.fieldQuarterFormat,p=e.yearFormat,m=e.cellYearFormat,v=e.cellQuarterFormat,y=e.dayFormat,S=e.cellDateFormat,b=$ye(t,n,r,i,o);return G(G({},e),{},{fieldDateTimeFormat:a||"YYYY-MM-DD ".concat(b),fieldDateFormat:s||"YYYY-MM-DD",fieldTimeFormat:l||b,fieldMonthFormat:c||"YYYY-MM",fieldYearFormat:u||"YYYY",fieldWeekFormat:d||"gggg-wo",fieldQuarterFormat:h||"YYYY-[Q]Q",yearFormat:p||"YYYY",cellYearFormat:m||"YYYY",cellQuarterFormat:v||"[Q]Q",cellDateFormat:S||y||"D"})}function Rye(e,t){var n=t.showHour,r=t.showMinute,i=t.showSecond,o=t.showMillisecond,a=t.use12Hours;return ge.useMemo(function(){return cZe(e,n,r,i,o,a)},[e,n,r,i,o,a])}function Bx(e,t,n){return n??t.some(function(r){return e.includes(r)})}var uZe=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function dZe(e){var t=sP(e,uZe),n=e.format,r=e.picker,i=null;return n&&(i=n,Array.isArray(i)&&(i=i[0]),i=ln(i)==="object"?i.format:i),r==="time"&&(t.format=i),[t,i]}function fZe(e){return e&&typeof e=="string"}function Aye(e,t,n,r){return[e,t,n,r].some(function(i){return i!==void 0})}function Nye(e,t,n,r,i){var o=t,a=n,s=r;if(!e&&!o&&!a&&!s&&!i)o=!0,a=!0,s=!0;else if(e){var l,c,u,d=[o,a,s].some(function(m){return m===!1}),h=[o,a,s].some(function(m){return m===!0}),p=d?!0:!h;o=(l=o)!==null&&l!==void 0?l:p,a=(c=a)!==null&&c!==void 0?c:p,s=(u=s)!==null&&u!==void 0?u:p}return[o,a,s,i]}function Dye(e){var t=e.showTime,n=dZe(e),r=Le(n,2),i=r[0],o=r[1],a=t&&ln(t)==="object"?t:{},s=G(G({defaultOpenValue:a.defaultOpenValue||a.defaultValue},i),a),l=s.showMillisecond,c=s.showHour,u=s.showMinute,d=s.showSecond,h=Aye(c,u,d,l),p=Nye(h,c,u,d,l),m=Le(p,3);return c=m[0],u=m[1],d=m[2],[s,G(G({},s),{},{showHour:c,showMinute:u,showSecond:d,showMillisecond:l}),s.format,o]}function Lye(e,t,n,r,i){var o=e==="time";if(e==="datetime"||o){for(var a=r,s=Oye(e,i,null),l=s,c=[t,n],u=0;u<c.length;u+=1){var d=Xv(c[u])[0];if(fZe(d)){l=d;break}}var h=a.showHour,p=a.showMinute,m=a.showSecond,v=a.showMillisecond,y=a.use12Hours,S=Bx(l,["a","A","LT","LLL","LTS"],y),b=Aye(h,p,m,v);b||(h=Bx(l,["H","h","k","LT","LLL"]),p=Bx(l,["m","LT","LLL"]),m=Bx(l,["s","LTS"]),v=Bx(l,["SSS"]));var C=Nye(b,h,p,m,v),_=Le(C,3);h=_[0],p=_[1],m=_[2];var T=t||$ye(h,p,m,v,S);return G(G({},a),{},{format:T,showHour:h,showMinute:p,showSecond:m,showMillisecond:v,use12Hours:S})}return null}function hZe(e,t,n){if(t===!1)return null;var r=t&&ln(t)==="object"?t:{};return r.clearIcon||n||f.createElement("span",{className:"".concat(e,"-clear-btn")})}var FR=7;function bg(e,t,n){return!e&&!t||e===t?!0:!e||!t?!1:n()}function ej(e,t,n){return bg(t,n,function(){var r=Math.floor(e.getYear(t)/10),i=Math.floor(e.getYear(n)/10);return r===i})}function wv(e,t,n){return bg(t,n,function(){return e.getYear(t)===e.getYear(n)})}function Iee(e,t){var n=Math.floor(e.getMonth(t)/3);return n+1}function pZe(e,t,n){return bg(t,n,function(){return wv(e,t,n)&&Iee(e,t)===Iee(e,n)})}function PW(e,t,n){return bg(t,n,function(){return wv(e,t,n)&&e.getMonth(t)===e.getMonth(n)})}function MW(e,t,n){return bg(t,n,function(){return wv(e,t,n)&&PW(e,t,n)&&e.getDate(t)===e.getDate(n)})}function Fye(e,t,n){return bg(t,n,function(){return e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)})}function jye(e,t,n){return bg(t,n,function(){return MW(e,t,n)&&Fye(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n)})}function _2(e,t,n,r){return bg(n,r,function(){var i=e.locale.getWeekFirstDate(t,n),o=e.locale.getWeekFirstDate(t,r);return wv(e,i,o)&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r)})}function Hs(e,t,n,r,i){switch(i){case"date":return MW(e,n,r);case"week":return _2(e,t.locale,n,r);case"month":return PW(e,n,r);case"quarter":return pZe(e,n,r);case"year":return wv(e,n,r);case"decade":return ej(e,n,r);case"time":return Fye(e,n,r);default:return jye(e,n,r)}}function lP(e,t,n,r){return!t||!n||!r?!1:e.isAfter(r,t)&&e.isAfter(n,r)}function GT(e,t,n,r,i){return Hs(e,t,n,r,i)?!0:e.isAfter(n,r)}function mZe(e,t,n){var r=t.locale.getWeekFirstDay(e),i=t.setDate(n,1),o=t.getWeekDay(i),a=t.addDate(i,r-o);return t.getMonth(a)===t.getMonth(n)&&t.getDate(a)>1&&(a=t.addDate(a,-7)),a}function Wa(e,t){var n=t.generateConfig,r=t.locale,i=t.format;return e?typeof i=="function"?i(e):n.locale.format(r.locale,e,i):""}function K9(e,t,n){var r=t,i=["getHour","getMinute","getSecond","getMillisecond"],o=["setHour","setMinute","setSecond","setMillisecond"];return o.forEach(function(a,s){n?r=e[a](r,e[i[s]](n)):r=e[a](r,0)}),r}function gZe(e,t,n,r,i){var o=cr(function(a,s){return!!(n&&n(a,s)||r&&e.isAfter(r,a)&&!Hs(e,t,r,a,s.type)||i&&e.isAfter(a,i)&&!Hs(e,t,i,a,s.type))});return o}function vZe(e,t,n){return f.useMemo(function(){var r=Oye(e,t,n),i=Xv(r),o=i[0],a=ln(o)==="object"&&o.type==="mask"?o.format:null;return[i.map(function(s){return typeof s=="string"||typeof s=="function"?s:s.format}),a]},[e,t,n])}function yZe(e,t,n){return typeof e[0]=="function"||n?!0:t}function bZe(e,t,n,r){var i=cr(function(o,a){var s=G({type:t},a);if(delete s.activeIndex,!e.isValidate(o)||n&&n(o,s))return!0;if((t==="date"||t==="time")&&r){var l,c=a&&a.activeIndex===1?"end":"start",u=((l=r.disabledTime)===null||l===void 0?void 0:l.call(r,o,c,{from:s.from}))||{},d=u.disabledHours,h=u.disabledMinutes,p=u.disabledSeconds,m=u.disabledMilliseconds,v=r.disabledHours,y=r.disabledMinutes,S=r.disabledSeconds,b=d||v,C=h||y,_=p||S,T=e.getHour(o),x=e.getMinute(o),E=e.getSecond(o),k=e.getMillisecond(o);if(b&&b().includes(T)||C&&C(T).includes(x)||_&&_(T,x).includes(E)||m&&m(T,x,E).includes(k))return!0}return!1});return i}function YT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=f.useMemo(function(){var r=e&&Xv(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function Bye(e,t){var n=e.generateConfig,r=e.locale,i=e.picker,o=i===void 0?"date":i,a=e.prefixCls,s=a===void 0?"rc-picker":a,l=e.styles,c=l===void 0?{}:l,u=e.classNames,d=u===void 0?{}:u,h=e.order,p=h===void 0?!0:h,m=e.components,v=m===void 0?{}:m,y=e.inputRender,S=e.allowClear,b=e.clearIcon,C=e.needConfirm,_=e.multiple,T=e.format,x=e.inputReadOnly,E=e.disabledDate,k=e.minDate,M=e.maxDate,P=e.showTime,D=e.value,R=e.defaultValue,A=e.pickerValue,H=e.defaultPickerValue,F=YT(D),z=YT(R),W=YT(A),q=YT(H),Z=o==="date"&&P?"datetime":o,N=Z==="time"||Z==="datetime",B=N||_,V=C??N,Y=Dye(e),ie=Le(Y,4),ce=ie[0],fe=ie[1],ee=ie[2],ne=ie[3],ue=Rye(r,fe),ye=f.useMemo(function(){return Lye(Z,ee,ne,ce,ue)},[Z,ee,ne,ce,ue]),me=f.useMemo(function(){return G(G({},e),{},{prefixCls:s,locale:ue,picker:o,styles:c,classNames:d,order:p,components:G({input:y},v),clearIcon:hZe(s,S,b),showTime:ye,value:F,defaultValue:z,pickerValue:W,defaultPickerValue:q},t==null?void 0:t())},[e]),pe=vZe(Z,ue,T),he=Le(pe,2),_e=he[0],le=he[1],xe=yZe(_e,x,_),we=gZe(n,r,E,k,M),De=bZe(n,o,we,ye),Fe=f.useMemo(function(){return G(G({},me),{},{needConfirm:V,inputReadOnly:xe,disabledDate:we})},[me,V,xe,we]);return[Fe,Z,B,_e,le,De]}function SZe(e,t,n){var r=Jn(t,{value:e}),i=Le(r,2),o=i[0],a=i[1],s=ge.useRef(e),l=ge.useRef(),c=function(){Sr.cancel(l.current)},u=cr(function(){a(s.current),n&&o!==s.current&&n(s.current)}),d=cr(function(h,p){c(),s.current=h,h||p?u():l.current=Sr(u)});return ge.useEffect(function(){return c},[]),[o,d]}function Hye(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,i=n.every(function(u){return u})?!1:e,o=SZe(i,t||!1,r),a=Le(o,2),s=a[0],l=a[1];function c(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!d.inherit||s)&&l(u,d.force)}return[s,c]}function zye(e){var t=f.useRef();return f.useImperativeHandle(e,function(){var n;return{nativeElement:(n=t.current)===null||n===void 0?void 0:n.nativeElement,focus:function(i){var o;(o=t.current)===null||o===void 0||o.focus(i)},blur:function(){var i;(i=t.current)===null||i===void 0||i.blur()}}}),t}function Uye(e,t){return f.useMemo(function(){return e||(t?(fi(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=Le(n,2),i=r[0],o=r[1];return{label:i,value:o}})):[])},[e,t])}function IW(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=f.useRef(t);r.current=t,X1(function(){if(e)r.current(e);else{var i=Sr(function(){r.current(e)},n);return function(){Sr.cancel(i)}}},[e])}function Wye(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=f.useState(0),i=Le(r,2),o=i[0],a=i[1],s=f.useState(!1),l=Le(s,2),c=l[0],u=l[1],d=f.useRef([]),h=f.useRef(null),p=f.useRef(null),m=function(_){h.current=_},v=function(_){return h.current===_},y=function(_){u(_)},S=function(_){return _&&(p.current=_),p.current},b=function(_){var T=d.current,x=new Set(T.filter(function(k){return _[k]||t[k]})),E=T[T.length-1]===0?1:0;return x.size>=2||e[E]?null:E};return IW(c||n,function(){c||(d.current=[],m(null))}),f.useEffect(function(){c&&d.current.push(o)},[c,o]),[c,y,S,o,a,b,d.current,m,v]}function CZe(e,t,n,r,i,o){var a=n[n.length-1],s=function(c,u){var d=Le(e,2),h=d[0],p=d[1],m=G(G({},u),{},{from:Pye(e,n)});return a===1&&t[0]&&h&&!Hs(r,i,h,c,m.type)&&r.isAfter(h,c)||a===0&&t[1]&&p&&!Hs(r,i,p,c,m.type)&&r.isAfter(c,p)?!0:o==null?void 0:o(c,m)};return s}function E2(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,r*10);case"decade":return e.addYear(n,r*100);default:return n}}var jR=[];function Vye(e,t,n,r,i,o,a,s){var l=arguments.length>8&&arguments[8]!==void 0?arguments[8]:jR,c=arguments.length>9&&arguments[9]!==void 0?arguments[9]:jR,u=arguments.length>10&&arguments[10]!==void 0?arguments[10]:jR,d=arguments.length>11?arguments[11]:void 0,h=arguments.length>12?arguments[12]:void 0,p=arguments.length>13?arguments[13]:void 0,m=a==="time",v=o||0,y=function(W){var q=e.getNow();return m&&(q=K9(e,q)),l[W]||n[W]||q},S=Le(c,2),b=S[0],C=S[1],_=Jn(function(){return y(0)},{value:b}),T=Le(_,2),x=T[0],E=T[1],k=Jn(function(){return y(1)},{value:C}),M=Le(k,2),P=M[0],D=M[1],R=f.useMemo(function(){var z=[x,P][v];return m?z:K9(e,z,u[v])},[m,x,P,v,e,u]),A=function(W){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",Z=[E,D][v];Z(W);var N=[x,P];N[v]=W,d&&(!Hs(e,t,x,N[0],a)||!Hs(e,t,P,N[1],a))&&d(N,{source:q,range:v===1?"end":"start",mode:r})},H=function(W,q){if(s){var Z={date:"month",week:"month",month:"year",quarter:"year"},N=Z[a];if(N&&!Hs(e,t,W,q,N))return E2(e,a,q,-1);if(a==="year"&&W){var B=Math.floor(e.getYear(W)/10),V=Math.floor(e.getYear(q)/10);if(B!==V)return E2(e,a,q,-1)}}return q},F=f.useRef(null);return Er(function(){if(i&&!l[v]){var z=m?null:e.getNow();if(F.current!==null&&F.current!==v?z=[x,P][v^1]:n[v]?z=v===0?n[0]:H(n[0],n[1]):n[v^1]&&(z=n[v^1]),z){h&&e.isAfter(h,z)&&(z=h);var W=s?E2(e,a,z,1):z;p&&e.isAfter(W,p)&&(z=s?E2(e,a,p,-1):p),A(z,"reset")}}},[i,v,n[v]]),f.useEffect(function(){i?F.current=v:F.current=null},[i,v]),Er(function(){i&&l&&l[v]&&A(l[v],"reset")},[i,v]),[R,A]}function Kye(e,t){var n=f.useRef(e),r=f.useState({}),i=Le(r,2),o=i[1],a=function(c){return c&&t!==void 0?t:n.current},s=function(c){n.current=c,o({})};return[a,s,a(!0)]}var xZe=[];function qye(e,t,n){var r=function(a){return a.map(function(s){return Wa(s,{generateConfig:e,locale:t,format:n[0]})})},i=function(a,s){for(var l=Math.max(a.length,s.length),c=-1,u=0;u<l;u+=1){var d=a[u]||null,h=s[u]||null;if(d!==h&&!jye(e,d,h)){c=u;break}}return[c<0,c!==0]};return[r,i]}function Gye(e,t){return pt(e).sort(function(n,r){return t.isAfter(n,r)?1:-1})}function wZe(e){var t=Kye(e),n=Le(t,2),r=n[0],i=n[1],o=cr(function(){i(e)});return f.useEffect(function(){o()},[e]),[r,i]}function Yye(e,t,n,r,i,o,a,s,l){var c=Jn(o,{value:a}),u=Le(c,2),d=u[0],h=u[1],p=d||xZe,m=wZe(p),v=Le(m,2),y=v[0],S=v[1],b=qye(e,t,n),C=Le(b,2),_=C[0],T=C[1],x=cr(function(k){var M=pt(k);if(r)for(var P=0;P<2;P+=1)M[P]=M[P]||null;else i&&(M=Gye(M.filter(function(z){return z}),e));var D=T(y(),M),R=Le(D,2),A=R[0],H=R[1];if(!A&&(S(M),s)){var F=_(M);s(M,F,{range:H?"end":"start"})}}),E=function(){l&&l(y())};return[p,h,y,x,E]}function Xye(e,t,n,r,i,o,a,s,l,c){var u=e.generateConfig,d=e.locale,h=e.picker,p=e.onChange,m=e.allowEmpty,v=e.order,y=o.some(function(A){return A})?!1:v,S=qye(u,d,a),b=Le(S,2),C=b[0],_=b[1],T=Kye(t),x=Le(T,2),E=x[0],k=x[1],M=cr(function(){k(t)});f.useEffect(function(){M()},[t]);var P=cr(function(A){var H=A===null,F=pt(A||E());if(H)for(var z=Math.max(o.length,F.length),W=0;W<z;W+=1)o[W]||(F[W]=null);y&&F[0]&&F[1]&&(F=Gye(F,u)),i(F);var q=F,Z=Le(q,2),N=Z[0],B=Z[1],V=!N,Y=!B,ie=m?(!V||m[0])&&(!Y||m[1]):!0,ce=!v||V||Y||Hs(u,d,N,B,h)||u.isAfter(B,N),fe=(o[0]||!N||!c(N,{activeIndex:0}))&&(o[1]||!B||!c(B,{from:N,activeIndex:1})),ee=H||ie&&ce&&fe;if(ee){n(F);var ne=_(F,t),ue=Le(ne,1),ye=ue[0];p&&!ye&&p(H&&F.every(function(me){return!me})?null:F,C(F))}return ee}),D=cr(function(A,H){var F=nw(E(),A,r()[A]);k(F),H&&P()}),R=!s&&!l;return IW(!R,function(){R&&(P(),i(t),M())},2),[D,P]}function Qye(e,t,n,r,i){return t!=="date"&&t!=="time"?!1:n!==void 0?n:r!==void 0?r:!i&&(e==="date"||e==="time")}function _Ze(e,t,n,r,i,o){var a=e;function s(d,h,p){var m=o[d](a),v=p.find(function(C){return C.value===m});if(!v||v.disabled){var y=p.filter(function(C){return!C.disabled}),S=pt(y).reverse(),b=S.find(function(C){return C.value<=m})||y[0];b&&(m=b.value,a=o[h](a,m))}return m}var l=s("getHour","setHour",t()),c=s("getMinute","setMinute",n(l)),u=s("getSecond","setSecond",r(l,c));return s("getMillisecond","setMillisecond",i(l,c,u)),a}function XT(){return[]}function QT(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,a=[],s=n>=1?n|0:1,l=e;l<=t;l+=s){var c=i.includes(l);(!c||!r)&&a.push({label:kW(l,o),value:l,disabled:c})}return a}function $W(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t||{},i=r.use12Hours,o=r.hourStep,a=o===void 0?1:o,s=r.minuteStep,l=s===void 0?1:s,c=r.secondStep,u=c===void 0?1:c,d=r.millisecondStep,h=d===void 0?100:d,p=r.hideDisabledOptions,m=r.disabledTime,v=r.disabledHours,y=r.disabledMinutes,S=r.disabledSeconds,b=f.useMemo(function(){return n||e.getNow()},[n,e]),C=f.useCallback(function(q){var Z=(m==null?void 0:m(q))||{};return[Z.disabledHours||v||XT,Z.disabledMinutes||y||XT,Z.disabledSeconds||S||XT,Z.disabledMilliseconds||XT]},[m,v,y,S]),_=f.useMemo(function(){return C(b)},[b,C]),T=Le(_,4),x=T[0],E=T[1],k=T[2],M=T[3],P=f.useCallback(function(q,Z,N,B){var V=QT(0,23,a,p,q()),Y=i?V.map(function(ee){return G(G({},ee),{},{label:kW(ee.value%12||12,2)})}):V,ie=function(ne){return QT(0,59,l,p,Z(ne))},ce=function(ne,ue){return QT(0,59,u,p,N(ne,ue))},fe=function(ne,ue,ye){return QT(0,999,h,p,B(ne,ue,ye),3)};return[Y,ie,ce,fe]},[p,a,i,h,l,u]),D=f.useMemo(function(){return P(x,E,k,M)},[P,x,E,k,M]),R=Le(D,4),A=R[0],H=R[1],F=R[2],z=R[3],W=function(Z,N){var B=function(){return A},V=H,Y=F,ie=z;if(N){var ce=C(N),fe=Le(ce,4),ee=fe[0],ne=fe[1],ue=fe[2],ye=fe[3],me=P(ee,ne,ue,ye),pe=Le(me,4),he=pe[0],_e=pe[1],le=pe[2],xe=pe[3];B=function(){return he},V=_e,Y=le,ie=xe}var we=_Ze(Z,B,V,Y,ie,e);return we};return[W,A,H,F,z]}function EZe(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,i=e.showNow,o=e.showTime,a=e.onSubmit,s=e.onNow,l=e.invalid,c=e.needConfirm,u=e.generateConfig,d=e.disabledDate,h=f.useContext(ef),p=h.prefixCls,m=h.locale,v=h.button,y=v===void 0?"button":v,S=u.getNow(),b=$W(u,o,S),C=Le(b,1),_=C[0],T=r==null?void 0:r(t),x=d(S,{type:t}),E=function(){if(!x){var H=_(S);s(H)}},k="".concat(p,"-now"),M="".concat(k,"-btn"),P=i&&f.createElement("li",{className:k},f.createElement("a",{className:Re(M,x&&"".concat(M,"-disabled")),"aria-disabled":x,onClick:E},n==="date"?m.today:m.now)),D=c&&f.createElement("li",{className:"".concat(p,"-ok")},f.createElement(y,{disabled:l,onClick:a},m.ok)),R=(P||D)&&f.createElement("ul",{className:"".concat(p,"-ranges")},P,D);return!T&&!R?null:f.createElement("div",{className:"".concat(p,"-footer")},T&&f.createElement("div",{className:"".concat(p,"-footer-extra")},T),R)}function Zye(e,t,n){function r(i,o){var a=i.findIndex(function(l){return Hs(e,t,l,o,n)});if(a===-1)return[].concat(pt(i),[o]);var s=pt(i);return s.splice(a,1),s}return r}var Qv=f.createContext(null);function cP(){return f.useContext(Qv)}function tC(e,t){var n=e.prefixCls,r=e.generateConfig,i=e.locale,o=e.disabledDate,a=e.minDate,s=e.maxDate,l=e.cellRender,c=e.hoverValue,u=e.hoverRangeValue,d=e.onHover,h=e.values,p=e.pickerValue,m=e.onSelect,v=e.prevIcon,y=e.nextIcon,S=e.superPrevIcon,b=e.superNextIcon,C=r.getNow(),_={now:C,values:h,pickerValue:p,prefixCls:n,disabledDate:o,minDate:a,maxDate:s,cellRender:l,hoverValue:c,hoverRangeValue:u,onHover:d,locale:i,generateConfig:r,onSelect:m,panelType:t,prevIcon:v,nextIcon:y,superPrevIcon:S,superNextIcon:b};return[_,C]}var Gm=f.createContext({});function PE(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,i=e.getCellDate,o=e.prefixColumn,a=e.rowClassName,s=e.titleFormat,l=e.getCellText,c=e.getCellClassName,u=e.headerCells,d=e.cellSelection,h=d===void 0?!0:d,p=e.disabledDate,m=cP(),v=m.prefixCls,y=m.panelType,S=m.now,b=m.disabledDate,C=m.cellRender,_=m.onHover,T=m.hoverValue,x=m.hoverRangeValue,E=m.generateConfig,k=m.values,M=m.locale,P=m.onSelect,D=p||b,R="".concat(v,"-cell"),A=f.useContext(Gm),H=A.onCellDblClick,F=function(Y){return k.some(function(ie){return ie&&Hs(E,M,Y,ie,y)})},z=[],W=0;W<t;W+=1){for(var q=[],Z=void 0,N=function(){var Y=W*n+B,ie=i(r,Y),ce=D==null?void 0:D(ie,{type:y});B===0&&(Z=ie,o&&q.push(o(Z)));var fe=!1,ee=!1,ne=!1;if(h&&x){var ue=Le(x,2),ye=ue[0],me=ue[1];fe=lP(E,ye,me,ie),ee=Hs(E,M,ie,ye,y),ne=Hs(E,M,ie,me,y)}var pe=s?Wa(ie,{locale:M,format:s,generateConfig:E}):void 0,he=f.createElement("div",{className:"".concat(R,"-inner")},l(ie));q.push(f.createElement("td",{key:B,title:pe,className:Re(R,G(ae(ae(ae(ae(ae(ae({},"".concat(R,"-disabled"),ce),"".concat(R,"-hover"),(T||[]).some(function(_e){return Hs(E,M,ie,_e,y)})),"".concat(R,"-in-range"),fe&&!ee&&!ne),"".concat(R,"-range-start"),ee),"".concat(R,"-range-end"),ne),"".concat(v,"-cell-selected"),!x&&y!=="week"&&F(ie)),c(ie))),onClick:function(){ce||P(ie)},onDoubleClick:function(){!ce&&H&&H()},onMouseEnter:function(){ce||_==null||_(ie)},onMouseLeave:function(){ce||_==null||_(null)}},C?C(ie,{prefixCls:v,originNode:he,today:S,type:y,locale:M}):he))},B=0;B<n;B+=1)N();z.push(f.createElement("tr",{key:W,className:a==null?void 0:a(Z)},q))}return f.createElement("div",{className:"".concat(v,"-body")},f.createElement("table",{className:"".concat(v,"-content")},u&&f.createElement("thead",null,f.createElement("tr",null,u)),f.createElement("tbody",null,z)))}var ZT={visibility:"hidden"};function nC(e){var t=e.offset,n=e.superOffset,r=e.onChange,i=e.getStart,o=e.getEnd,a=e.children,s=cP(),l=s.prefixCls,c=s.prevIcon,u=c===void 0?"‹":c,d=s.nextIcon,h=d===void 0?"›":d,p=s.superPrevIcon,m=p===void 0?"«":p,v=s.superNextIcon,y=v===void 0?"»":v,S=s.minDate,b=s.maxDate,C=s.generateConfig,_=s.locale,T=s.pickerValue,x=s.panelType,E="".concat(l,"-header"),k=f.useContext(Gm),M=k.hidePrev,P=k.hideNext,D=k.hideHeader,R=f.useMemo(function(){if(!S||!t||!o)return!1;var V=o(t(-1,T));return!GT(C,_,V,S,x)},[S,t,T,o,C,_,x]),A=f.useMemo(function(){if(!S||!n||!o)return!1;var V=o(n(-1,T));return!GT(C,_,V,S,x)},[S,n,T,o,C,_,x]),H=f.useMemo(function(){if(!b||!t||!i)return!1;var V=i(t(1,T));return!GT(C,_,b,V,x)},[b,t,T,i,C,_,x]),F=f.useMemo(function(){if(!b||!n||!i)return!1;var V=i(n(1,T));return!GT(C,_,b,V,x)},[b,n,T,i,C,_,x]),z=function(Y){t&&r(t(Y,T))},W=function(Y){n&&r(n(Y,T))};if(D)return null;var q="".concat(E,"-prev-btn"),Z="".concat(E,"-next-btn"),N="".concat(E,"-super-prev-btn"),B="".concat(E,"-super-next-btn");return f.createElement("div",{className:E},n&&f.createElement("button",{type:"button","aria-label":"super-prev-year",onClick:function(){return W(-1)},tabIndex:-1,className:Re(N,A&&"".concat(N,"-disabled")),disabled:A,style:M?ZT:{}},m),t&&f.createElement("button",{type:"button","aria-label":"prev-year",onClick:function(){return z(-1)},tabIndex:-1,className:Re(q,R&&"".concat(q,"-disabled")),disabled:R,style:M?ZT:{}},u),f.createElement("div",{className:"".concat(E,"-view")},a),t&&f.createElement("button",{type:"button","aria-label":"next-year",onClick:function(){return z(1)},tabIndex:-1,className:Re(Z,H&&"".concat(Z,"-disabled")),disabled:H,style:P?ZT:{}},h),n&&f.createElement("button",{type:"button","aria-label":"super-next-year",onClick:function(){return W(1)},tabIndex:-1,className:Re(B,F&&"".concat(B,"-disabled")),disabled:F,style:P?ZT:{}},y))}function uP(e){var t=e.prefixCls,n=e.panelName,r=n===void 0?"date":n,i=e.locale,o=e.generateConfig,a=e.pickerValue,s=e.onPickerValueChange,l=e.onModeChange,c=e.mode,u=c===void 0?"date":c,d=e.disabledDate,h=e.onSelect,p=e.onHover,m=e.showWeek,v="".concat(t,"-").concat(r,"-panel"),y="".concat(t,"-cell"),S=u==="week",b=tC(e,u),C=Le(b,2),_=C[0],T=C[1],x=o.locale.getWeekFirstDay(i.locale),E=o.setDate(a,1),k=mZe(i.locale,o,E),M=o.getMonth(a),P=m===void 0?S:m,D=P?function(V){var Y=d==null?void 0:d(V,{type:"week"});return f.createElement("td",{key:"week",className:Re(y,"".concat(y,"-week"),ae({},"".concat(y,"-disabled"),Y)),onClick:function(){Y||h(V)},onMouseEnter:function(){Y||p==null||p(V)},onMouseLeave:function(){Y||p==null||p(null)}},f.createElement("div",{className:"".concat(y,"-inner")},o.locale.getWeek(i.locale,V)))}:null,R=[],A=i.shortWeekDays||(o.locale.getShortWeekDays?o.locale.getShortWeekDays(i.locale):[]);D&&R.push(f.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var H=0;H<FR;H+=1)R.push(f.createElement("th",{key:H},A[(H+x)%FR]));var F=function(Y,ie){return o.addDate(Y,ie)},z=function(Y){return Wa(Y,{locale:i,format:i.cellDateFormat,generateConfig:o})},W=function(Y){var ie=ae(ae({},"".concat(t,"-cell-in-view"),PW(o,Y,a)),"".concat(t,"-cell-today"),MW(o,Y,T));return ie},q=i.shortMonths||(o.locale.getShortMonths?o.locale.getShortMonths(i.locale):[]),Z=f.createElement("button",{type:"button","aria-label":"year panel",key:"year",onClick:function(){l("year",a)},tabIndex:-1,className:"".concat(t,"-year-btn")},Wa(a,{locale:i,format:i.yearFormat,generateConfig:o})),N=f.createElement("button",{type:"button","aria-label":"month panel",key:"month",onClick:function(){l("month",a)},tabIndex:-1,className:"".concat(t,"-month-btn")},i.monthFormat?Wa(a,{locale:i,format:i.monthFormat,generateConfig:o}):q[M]),B=i.monthBeforeYear?[N,Z]:[Z,N];return f.createElement(Qv.Provider,{value:_},f.createElement("div",{className:Re(v,m&&"".concat(v,"-show-week"))},f.createElement(nC,{offset:function(Y){return o.addMonth(a,Y)},superOffset:function(Y){return o.addYear(a,Y)},onChange:s,getStart:function(Y){return o.setDate(Y,1)},getEnd:function(Y){var ie=o.setDate(Y,1);return ie=o.addMonth(ie,1),o.addDate(ie,-1)}},B),f.createElement(PE,ut({titleFormat:i.fieldDateFormat},e,{colNum:FR,rowNum:6,baseDate:k,headerCells:R,getCellDate:F,getCellText:z,getCellClassName:W,prefixColumn:D,cellSelection:!S}))))}var TZe=1/3;function kZe(e,t){var n=f.useRef(!1),r=f.useRef(null),i=f.useRef(null),o=function(){return n.current},a=function(){Sr.cancel(r.current),n.current=!1},s=f.useRef(),l=function(){var d=e.current;if(i.current=null,s.current=0,d){var h=d.querySelector('[data-value="'.concat(t,'"]')),p=d.querySelector("li"),m=function v(){a(),n.current=!0,s.current+=1;var y=d.scrollTop,S=p.offsetTop,b=h.offsetTop,C=b-S;if(b===0&&h!==p||!GS(d)){s.current<=5&&(r.current=Sr(v));return}var _=y+(C-y)*TZe,T=Math.abs(C-_);if(i.current!==null&&i.current<T){a();return}if(i.current=T,T<=1){d.scrollTop=C,a();return}d.scrollTop=_,r.current=Sr(v)};h&&p&&m()}},c=cr(l);return[c,a,o]}var OZe=300;function PZe(e){return e.map(function(t){var n=t.value,r=t.label,i=t.disabled;return[n,r,i].join(",")}).join(";")}function Hx(e){var t=e.units,n=e.value,r=e.optionalValue,i=e.type,o=e.onChange,a=e.onHover,s=e.onDblClick,l=e.changeOnScroll,c=cP(),u=c.prefixCls,d=c.cellRender,h=c.now,p=c.locale,m="".concat(u,"-time-panel"),v="".concat(u,"-time-panel-cell"),y=f.useRef(null),S=f.useRef(),b=function(){clearTimeout(S.current)},C=kZe(y,n??r),_=Le(C,3),T=_[0],x=_[1],E=_[2];Er(function(){return T(),b(),function(){x(),b()}},[n,r,PZe(t)]);var k=function(D){b();var R=D.target;!E()&&l&&(S.current=setTimeout(function(){var A=y.current,H=A.querySelector("li").offsetTop,F=Array.from(A.querySelectorAll("li")),z=F.map(function(B){return B.offsetTop-H}),W=z.map(function(B,V){return t[V].disabled?Number.MAX_SAFE_INTEGER:Math.abs(B-R.scrollTop)}),q=Math.min.apply(Math,pt(W)),Z=W.findIndex(function(B){return B===q}),N=t[Z];N&&!N.disabled&&o(N.value)},OZe))},M="".concat(m,"-column");return f.createElement("ul",{className:M,ref:y,"data-type":i,onScroll:k},t.map(function(P){var D=P.label,R=P.value,A=P.disabled,H=f.createElement("div",{className:"".concat(v,"-inner")},D);return f.createElement("li",{key:R,className:Re(v,ae(ae({},"".concat(v,"-selected"),n===R),"".concat(v,"-disabled"),A)),onClick:function(){A||o(R)},onDoubleClick:function(){!A&&s&&s()},onMouseEnter:function(){a(R)},onMouseLeave:function(){a(null)},"data-value":R},d?d(R,{prefixCls:u,originNode:H,today:h,type:"time",subType:i,locale:p}):H)}))}function Yp(e){return e<12}function MZe(e){var t=e.showHour,n=e.showMinute,r=e.showSecond,i=e.showMillisecond,o=e.use12Hours,a=e.changeOnScroll,s=cP(),l=s.prefixCls,c=s.values,u=s.generateConfig,d=s.locale,h=s.onSelect,p=s.onHover,m=p===void 0?function(){}:p,v=s.pickerValue,y=(c==null?void 0:c[0])||null,S=f.useContext(Gm),b=S.onCellDblClick,C=$W(u,e,y),_=Le(C,5),T=_[0],x=_[1],E=_[2],k=_[3],M=_[4],P=function(Je){var Ze=y&&u[Je](y),rt=v&&u[Je](v);return[Ze,rt]},D=P("getHour"),R=Le(D,2),A=R[0],H=R[1],F=P("getMinute"),z=Le(F,2),W=z[0],q=z[1],Z=P("getSecond"),N=Le(Z,2),B=N[0],V=N[1],Y=P("getMillisecond"),ie=Le(Y,2),ce=ie[0],fe=ie[1],ee=A===null?null:Yp(A)?"am":"pm",ne=f.useMemo(function(){return o?Yp(A)?x.filter(function(Ue){return Yp(Ue.value)}):x.filter(function(Ue){return!Yp(Ue.value)}):x},[A,x,o]),ue=function(Je,Ze){var rt,qt=Je.filter(function(St){return!St.disabled});return Ze??(qt==null||(rt=qt[0])===null||rt===void 0?void 0:rt.value)},ye=ue(x,A),me=f.useMemo(function(){return E(ye)},[E,ye]),pe=ue(me,W),he=f.useMemo(function(){return k(ye,pe)},[k,ye,pe]),_e=ue(he,B),le=f.useMemo(function(){return M(ye,pe,_e)},[M,ye,pe,_e]),xe=ue(le,ce),we=f.useMemo(function(){if(!o)return[];var Ue=u.getNow(),Je=u.setHour(Ue,6),Ze=u.setHour(Ue,18),rt=function(St,Ot){var Bt=d.cellMeridiemFormat;return Bt?Wa(St,{generateConfig:u,locale:d,format:Bt}):Ot};return[{label:rt(Je,"AM"),value:"am",disabled:x.every(function(qt){return qt.disabled||!Yp(qt.value)})},{label:rt(Ze,"PM"),value:"pm",disabled:x.every(function(qt){return qt.disabled||Yp(qt.value)})}]},[x,o,u,d]),De=function(Je){var Ze=T(Je);h(Ze)},Fe=f.useMemo(function(){var Ue=y||v||u.getNow(),Je=function(rt){return rt!=null};return Je(A)?(Ue=u.setHour(Ue,A),Ue=u.setMinute(Ue,W),Ue=u.setSecond(Ue,B),Ue=u.setMillisecond(Ue,ce)):Je(H)?(Ue=u.setHour(Ue,H),Ue=u.setMinute(Ue,q),Ue=u.setSecond(Ue,V),Ue=u.setMillisecond(Ue,fe)):Je(ye)&&(Ue=u.setHour(Ue,ye),Ue=u.setMinute(Ue,pe),Ue=u.setSecond(Ue,_e),Ue=u.setMillisecond(Ue,xe)),Ue},[y,v,A,W,B,ce,ye,pe,_e,xe,H,q,V,fe,u]),Ce=function(Je,Ze){return Je===null?null:u[Ze](Fe,Je)},Te=function(Je){return Ce(Je,"setHour")},ke=function(Je){return Ce(Je,"setMinute")},Pe=function(Je){return Ce(Je,"setSecond")},Ne=function(Je){return Ce(Je,"setMillisecond")},We=function(Je){return Je===null?null:Je==="am"&&!Yp(A)?u.setHour(Fe,A-12):Je==="pm"&&Yp(A)?u.setHour(Fe,A+12):Fe},Q=function(Je){De(Te(Je))},K=function(Je){De(ke(Je))},J=function(Je){De(Pe(Je))},be=function(Je){De(Ne(Je))},Oe=function(Je){De(We(Je))},Se=function(Je){m(Te(Je))},Ke=function(Je){m(ke(Je))},tt=function(Je){m(Pe(Je))},se=function(Je){m(Ne(Je))},ze=function(Je){m(We(Je))},Ye={onDblClick:b,changeOnScroll:a};return f.createElement("div",{className:"".concat(l,"-content")},t&&f.createElement(Hx,ut({units:ne,value:A,optionalValue:H,type:"hour",onChange:Q,onHover:Se},Ye)),n&&f.createElement(Hx,ut({units:me,value:W,optionalValue:q,type:"minute",onChange:K,onHover:Ke},Ye)),r&&f.createElement(Hx,ut({units:he,value:B,optionalValue:V,type:"second",onChange:J,onHover:tt},Ye)),i&&f.createElement(Hx,ut({units:le,value:ce,optionalValue:fe,type:"millisecond",onChange:be,onHover:se},Ye)),o&&f.createElement(Hx,ut({units:we,value:ee,type:"meridiem",onChange:Oe,onHover:ze},Ye)))}function Jye(e){var t=e.prefixCls,n=e.value,r=e.locale,i=e.generateConfig,o=e.showTime,a=o||{},s=a.format,l="".concat(t,"-time-panel"),c=tC(e,"time"),u=Le(c,1),d=u[0];return f.createElement(Qv.Provider,{value:d},f.createElement("div",{className:Re(l)},f.createElement(nC,null,n?Wa(n,{locale:r,format:s,generateConfig:i}):" "),f.createElement(MZe,o)))}function IZe(e){var t=e.prefixCls,n=e.generateConfig,r=e.showTime,i=e.onSelect,o=e.value,a=e.pickerValue,s=e.onHover,l="".concat(t,"-datetime-panel"),c=$W(n,r),u=Le(c,1),d=u[0],h=function(y){return o?K9(n,y,o):K9(n,y,a)},p=function(y){s==null||s(y&&h(y))},m=function(y){var S=h(y);i(d(S,S))};return f.createElement("div",{className:l},f.createElement(uP,ut({},e,{onSelect:m,onHover:p})),f.createElement(Jye,e))}function $Ze(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,i=e.pickerValue,o=e.disabledDate,a=e.onPickerValueChange,s="".concat(t,"-decade-panel"),l=tC(e,"decade"),c=Le(l,1),u=c[0],d=function(x){var E=Math.floor(r.getYear(x)/100)*100;return r.setYear(x,E)},h=function(x){var E=d(x);return r.addYear(E,99)},p=d(i),m=h(i),v=r.addYear(p,-10),y=function(x,E){return r.addYear(x,E*10)},S=function(x){var E=n.cellYearFormat,k=Wa(x,{locale:n,format:E,generateConfig:r}),M=Wa(r.addYear(x,9),{locale:n,format:E,generateConfig:r});return"".concat(k,"-").concat(M)},b=function(x){return ae({},"".concat(t,"-cell-in-view"),ej(r,x,p)||ej(r,x,m)||lP(r,p,m,x))},C=o?function(T,x){var E=r.setDate(T,1),k=r.setMonth(E,0),M=r.setYear(k,Math.floor(r.getYear(k)/10)*10),P=r.addYear(M,10),D=r.addDate(P,-1);return o(M,x)&&o(D,x)}:null,_="".concat(Wa(p,{locale:n,format:n.yearFormat,generateConfig:r}),"-").concat(Wa(m,{locale:n,format:n.yearFormat,generateConfig:r}));return f.createElement(Qv.Provider,{value:u},f.createElement("div",{className:s},f.createElement(nC,{superOffset:function(x){return r.addYear(i,x*100)},onChange:a,getStart:d,getEnd:h},_),f.createElement(PE,ut({},e,{disabledDate:C,colNum:3,rowNum:4,baseDate:v,getCellDate:y,getCellText:S,getCellClassName:b}))))}function RZe(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,i=e.pickerValue,o=e.disabledDate,a=e.onPickerValueChange,s=e.onModeChange,l="".concat(t,"-month-panel"),c=tC(e,"month"),u=Le(c,1),d=u[0],h=r.setMonth(i,0),p=n.shortMonths||(r.locale.getShortMonths?r.locale.getShortMonths(n.locale):[]),m=function(_,T){return r.addMonth(_,T)},v=function(_){var T=r.getMonth(_);return n.monthFormat?Wa(_,{locale:n,format:n.monthFormat,generateConfig:r}):p[T]},y=function(){return ae({},"".concat(t,"-cell-in-view"),!0)},S=o?function(C,_){var T=r.setDate(C,1),x=r.setMonth(T,r.getMonth(T)+1),E=r.addDate(x,-1);return o(T,_)&&o(E,_)}:null,b=f.createElement("button",{type:"button",key:"year","aria-label":"year panel",onClick:function(){s("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},Wa(i,{locale:n,format:n.yearFormat,generateConfig:r}));return f.createElement(Qv.Provider,{value:d},f.createElement("div",{className:l},f.createElement(nC,{superOffset:function(_){return r.addYear(i,_)},onChange:a,getStart:function(_){return r.setMonth(_,0)},getEnd:function(_){return r.setMonth(_,11)}},b),f.createElement(PE,ut({},e,{disabledDate:S,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:h,getCellDate:m,getCellText:v,getCellClassName:y}))))}function AZe(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,i=e.pickerValue,o=e.onPickerValueChange,a=e.onModeChange,s="".concat(t,"-quarter-panel"),l=tC(e,"quarter"),c=Le(l,1),u=c[0],d=r.setMonth(i,0),h=function(S,b){return r.addMonth(S,b*3)},p=function(S){return Wa(S,{locale:n,format:n.cellQuarterFormat,generateConfig:r})},m=function(){return ae({},"".concat(t,"-cell-in-view"),!0)},v=f.createElement("button",{type:"button",key:"year","aria-label":"year panel",onClick:function(){a("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},Wa(i,{locale:n,format:n.yearFormat,generateConfig:r}));return f.createElement(Qv.Provider,{value:u},f.createElement("div",{className:s},f.createElement(nC,{superOffset:function(S){return r.addYear(i,S)},onChange:o,getStart:function(S){return r.setMonth(S,0)},getEnd:function(S){return r.setMonth(S,11)}},v),f.createElement(PE,ut({},e,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:d,getCellDate:h,getCellText:p,getCellClassName:m}))))}function NZe(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,i=e.value,o=e.hoverValue,a=e.hoverRangeValue,s=r.locale,l="".concat(t,"-week-panel-row"),c=function(d){var h={};if(a){var p=Le(a,2),m=p[0],v=p[1],y=_2(n,s,m,d),S=_2(n,s,v,d);h["".concat(l,"-range-start")]=y,h["".concat(l,"-range-end")]=S,h["".concat(l,"-range-hover")]=!y&&!S&&lP(n,m,v,d)}return o&&(h["".concat(l,"-hover")]=o.some(function(b){return _2(n,s,d,b)})),Re(l,ae({},"".concat(l,"-selected"),!a&&_2(n,s,i,d)),h)};return f.createElement(uP,ut({},e,{mode:"week",panelName:"week",rowClassName:c}))}function DZe(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,i=e.pickerValue,o=e.disabledDate,a=e.onPickerValueChange,s=e.onModeChange,l="".concat(t,"-year-panel"),c=tC(e,"year"),u=Le(c,1),d=u[0],h=function(E){var k=Math.floor(r.getYear(E)/10)*10;return r.setYear(E,k)},p=function(E){var k=h(E);return r.addYear(k,9)},m=h(i),v=p(i),y=r.addYear(m,-1),S=function(E,k){return r.addYear(E,k)},b=function(E){return Wa(E,{locale:n,format:n.cellYearFormat,generateConfig:r})},C=function(E){return ae({},"".concat(t,"-cell-in-view"),wv(r,E,m)||wv(r,E,v)||lP(r,m,v,E))},_=o?function(x,E){var k=r.setMonth(x,0),M=r.setDate(k,1),P=r.addYear(M,1),D=r.addDate(P,-1);return o(M,E)&&o(D,E)}:null,T=f.createElement("button",{type:"button",key:"decade","aria-label":"decade panel",onClick:function(){s("decade")},tabIndex:-1,className:"".concat(t,"-decade-btn")},Wa(m,{locale:n,format:n.yearFormat,generateConfig:r}),"-",Wa(v,{locale:n,format:n.yearFormat,generateConfig:r}));return f.createElement(Qv.Provider,{value:d},f.createElement("div",{className:l},f.createElement(nC,{superOffset:function(E){return r.addYear(i,E*10)},onChange:a,getStart:h,getEnd:p},T),f.createElement(PE,ut({},e,{disabledDate:_,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:y,getCellDate:S,getCellText:b,getCellClassName:C}))))}var LZe={date:uP,datetime:IZe,week:NZe,month:RZe,quarter:AZe,year:DZe,decade:$Ze,time:Jye};function FZe(e,t){var n,r=e.locale,i=e.generateConfig,o=e.direction,a=e.prefixCls,s=e.tabIndex,l=s===void 0?0:s,c=e.multiple,u=e.defaultValue,d=e.value,h=e.onChange,p=e.onSelect,m=e.defaultPickerValue,v=e.pickerValue,y=e.onPickerValueChange,S=e.mode,b=e.onPanelChange,C=e.picker,_=C===void 0?"date":C,T=e.showTime,x=e.hoverValue,E=e.hoverRangeValue,k=e.cellRender,M=e.dateRender,P=e.monthCellRender,D=e.components,R=D===void 0?{}:D,A=e.hideHeader,H=((n=f.useContext(ef))===null||n===void 0?void 0:n.prefixCls)||a||"rc-picker",F=f.useRef();f.useImperativeHandle(t,function(){return{nativeElement:F.current}});var z=Dye(e),W=Le(z,4),q=W[0],Z=W[1],N=W[2],B=W[3],V=Rye(r,Z),Y=_==="date"&&T?"datetime":_,ie=f.useMemo(function(){return Lye(Y,N,B,q,V)},[Y,N,B,q,V]),ce=i.getNow(),fe=Jn(_,{value:S,postState:function(ze){return ze||"date"}}),ee=Le(fe,2),ne=ee[0],ue=ee[1],ye=ne==="date"&&ie?"datetime":ne,me=Zye(i,r,Y),pe=Jn(u,{value:d}),he=Le(pe,2),_e=he[0],le=he[1],xe=f.useMemo(function(){var se=Xv(_e).filter(function(ze){return ze});return c?se:se.slice(0,1)},[_e,c]),we=cr(function(se){le(se),h&&(se===null||xe.length!==se.length||xe.some(function(ze,Ye){return!Hs(i,r,ze,se[Ye],Y)}))&&(h==null||h(c?se:se[0]))}),De=cr(function(se){if(p==null||p(se),ne===_){var ze=c?me(xe,se):[se];we(ze)}}),Fe=Jn(m||xe[0]||ce,{value:v}),Ce=Le(Fe,2),Te=Ce[0],ke=Ce[1];f.useEffect(function(){xe[0]&&!v&&ke(xe[0])},[xe[0]]);var Pe=function(ze,Ye){b==null||b(ze||v,Ye||ne)},Ne=function(ze){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;ke(ze),y==null||y(ze),Ye&&Pe(ze)},We=function(ze,Ye){ue(ze),Ye&&Ne(Ye),Pe(Ye,ze)},Q=function(ze){if(De(ze),Ne(ze),ne!==_){var Ye=["decade","year"],Ue=[].concat(Ye,["month"]),Je={quarter:[].concat(Ye,["quarter"]),week:[].concat(pt(Ue),["week"]),date:[].concat(pt(Ue),["date"])},Ze=Je[_]||Ue,rt=Ze.indexOf(ne),qt=Ze[rt+1];qt&&We(qt,ze)}},K=f.useMemo(function(){var se,ze;if(Array.isArray(E)){var Ye=Le(E,2);se=Ye[0],ze=Ye[1]}else se=E;return!se&&!ze?null:(se=se||ze,ze=ze||se,i.isAfter(se,ze)?[ze,se]:[se,ze])},[E,i]),J=OW(k,M,P),be=R[ye]||LZe[ye]||uP,Oe=f.useContext(Gm),Se=f.useMemo(function(){return G(G({},Oe),{},{hideHeader:A})},[Oe,A]),Ke="".concat(H,"-panel"),tt=sP(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return f.createElement(Gm.Provider,{value:Se},f.createElement("div",{ref:F,tabIndex:l,className:Re(Ke,ae({},"".concat(Ke,"-rtl"),o==="rtl"))},f.createElement(be,ut({},tt,{showTime:ie,prefixCls:H,locale:V,generateConfig:i,onModeChange:We,pickerValue:Te,onPickerValueChange:function(ze){Ne(ze,!0)},value:xe[0],onSelect:Q,values:xe,cellRender:J,hoverRangeValue:K,hoverValue:x}))))}var BR=f.memo(f.forwardRef(FZe));function jZe(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,i=e.onPickerValueChange,o=e.needConfirm,a=e.onSubmit,s=e.range,l=e.hoverValue,c=f.useContext(ef),u=c.prefixCls,d=c.generateConfig,h=f.useCallback(function(b,C){return E2(d,t,b,C)},[d,t]),p=f.useMemo(function(){return h(r,1)},[r,h]),m=function(C){i(h(C,-1))},v={onCellDblClick:function(){o&&a()}},y=t==="time",S=G(G({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:y});return s?S.hoverRangeValue=l:S.hoverValue=l,n?f.createElement("div",{className:"".concat(u,"-panels")},f.createElement(Gm.Provider,{value:G(G({},v),{},{hideNext:!0})},f.createElement(BR,S)),f.createElement(Gm.Provider,{value:G(G({},v),{},{hidePrev:!0})},f.createElement(BR,ut({},S,{pickerValue:p,onPickerValueChange:m})))):f.createElement(Gm.Provider,{value:G({},v)},f.createElement(BR,S))}function $ee(e){return typeof e=="function"?e():e}function BZe(e){var t=e.prefixCls,n=e.presets,r=e.onClick,i=e.onHover;return n.length?f.createElement("div",{className:"".concat(t,"-presets")},f.createElement("ul",null,n.map(function(o,a){var s=o.label,l=o.value;return f.createElement("li",{key:a,onClick:function(){r($ee(l))},onMouseEnter:function(){i($ee(l))},onMouseLeave:function(){i(null)}},s)}))):null}function ebe(e){var t=e.panelRender,n=e.internalMode,r=e.picker,i=e.showNow,o=e.range,a=e.multiple,s=e.activeOffset,l=s===void 0?0:s,c=e.placement,u=e.presets,d=e.onPresetHover,h=e.onPresetSubmit,p=e.onFocus,m=e.onBlur,v=e.onPanelMouseDown,y=e.direction,S=e.value,b=e.onSelect,C=e.isInvalid,_=e.defaultOpenValue,T=e.onOk,x=e.onSubmit,E=f.useContext(ef),k=E.prefixCls,M="".concat(k,"-panel"),P=y==="rtl",D=f.useRef(null),R=f.useRef(null),A=f.useState(0),H=Le(A,2),F=H[0],z=H[1],W=f.useState(0),q=Le(W,2),Z=q[0],N=q[1],B=function(we){we.offsetWidth&&z(we.offsetWidth)};f.useEffect(function(){if(o){var xe,we=((xe=D.current)===null||xe===void 0?void 0:xe.offsetWidth)||0,De=F-we;l<=De?N(0):N(l+we-F)}},[F,l,o]);function V(xe){return xe.filter(function(we){return we})}var Y=f.useMemo(function(){return V(Xv(S))},[S]),ie=r==="time"&&!Y.length,ce=f.useMemo(function(){return ie?V([_]):Y},[ie,Y,_]),fe=ie?_:Y,ee=f.useMemo(function(){return ce.length?ce.some(function(xe){return C(xe)}):!0},[ce,C]),ne=function(){ie&&b(_),T(),x()},ue=f.createElement("div",{className:"".concat(k,"-panel-layout")},f.createElement(BZe,{prefixCls:k,presets:u,onClick:h,onHover:d}),f.createElement("div",null,f.createElement(jZe,ut({},e,{value:fe})),f.createElement(EZe,ut({},e,{showNow:a?!1:i,invalid:ee,onSubmit:ne}))));t&&(ue=t(ue));var ye="".concat(M,"-container"),me="marginLeft",pe="marginRight",he=f.createElement("div",{onMouseDown:v,tabIndex:-1,className:Re(ye,"".concat(k,"-").concat(n,"-panel-container")),style:ae(ae({},P?pe:me,Z),P?me:pe,"auto"),onFocus:p,onBlur:m},ue);if(o){var _e=aP(c,P),le=Tye(_e,P);he=f.createElement("div",{onMouseDown:v,ref:R,className:Re("".concat(k,"-range-wrapper"),"".concat(k,"-").concat(r,"-range-wrapper"))},f.createElement("div",{ref:D,className:"".concat(k,"-range-arrow"),style:ae({},le,l)}),f.createElement(Va,{onResize:B},he))}return he}function tbe(e,t){var n=e.format,r=e.maskFormat,i=e.generateConfig,o=e.locale,a=e.preserveInvalidOnBlur,s=e.inputReadOnly,l=e.required,c=e["aria-required"],u=e.onSubmit,d=e.onFocus,h=e.onBlur,p=e.onInputChange,m=e.onInvalid,v=e.open,y=e.onOpenChange,S=e.onKeyDown,b=e.onChange,C=e.activeHelp,_=e.name,T=e.autoComplete,x=e.id,E=e.value,k=e.invalid,M=e.placeholder,P=e.disabled,D=e.activeIndex,R=e.allHelp,A=e.picker,H=function(V,Y){var ie=i.locale.parse(o.locale,V,[Y]);return ie&&i.isValidate(ie)?ie:null},F=n[0],z=f.useCallback(function(B){return Wa(B,{locale:o,format:F,generateConfig:i})},[o,i,F]),W=f.useMemo(function(){return E.map(z)},[E,z]),q=f.useMemo(function(){var B=A==="time"?8:10,V=typeof F=="function"?F(i.getNow()).length:F.length;return Math.max(B,V)+2},[F,A,i]),Z=function(V){for(var Y=0;Y<n.length;Y+=1){var ie=n[Y];if(typeof ie=="string"){var ce=H(V,ie);if(ce)return ce}}return!1},N=function(V){function Y(fe){return V!==void 0?fe[V]:fe}var ie=Hi(e,{aria:!0,data:!0}),ce=G(G({},ie),{},{format:r,validateFormat:function(ee){return!!Z(ee)},preserveInvalidOnBlur:a,readOnly:s,required:l,"aria-required":c,name:_,autoComplete:T,size:q,id:Y(x),value:Y(W)||"",invalid:Y(k),placeholder:Y(M),active:D===V,helped:R||C&&D===V,disabled:Y(P),onFocus:function(ee){d(ee,V)},onBlur:function(ee){h(ee,V)},onSubmit:u,onChange:function(ee){p();var ne=Z(ee);if(ne){m(!1,V),b(ne,V);return}m(!!ee,V)},onHelp:function(){y(!0,{index:V})},onKeyDown:function(ee){var ne=!1;if(S==null||S(ee,function(){ne=!0}),!ee.defaultPrevented&&!ne)switch(ee.key){case"Escape":y(!1,{index:V});break;case"Enter":v||y(!0);break}}},t==null?void 0:t({valueTexts:W}));return Object.keys(ce).forEach(function(fe){ce[fe]===void 0&&delete ce[fe]}),ce};return[N,z]}var HZe=["onMouseEnter","onMouseLeave"];function nbe(e){return f.useMemo(function(){return sP(e,HZe)},[e])}var zZe=["icon","type"],UZe=["onClear"];function dP(e){var t=e.icon,n=e.type,r=tn(e,zZe),i=f.useContext(ef),o=i.prefixCls;return t?f.createElement("span",ut({className:"".concat(o,"-").concat(n)},r),t):null}function tj(e){var t=e.onClear,n=tn(e,UZe);return f.createElement(dP,ut({},n,{type:"clear",role:"button",onMouseDown:function(i){i.preventDefault()},onClick:function(i){i.stopPropagation(),t()}}))}var HR=["YYYY","MM","DD","HH","mm","ss","SSS"],Ree="顧",WZe=function(){function e(t){pi(this,e),ae(this,"format",void 0),ae(this,"maskFormat",void 0),ae(this,"cells",void 0),ae(this,"maskCells",void 0),this.format=t;var n=HR.map(function(s){return"(".concat(s,")")}).join("|"),r=new RegExp(n,"g");this.maskFormat=t.replace(r,function(s){return Ree.repeat(s.length)});var i=new RegExp("(".concat(HR.join("|"),")")),o=(t.split(i)||[]).filter(function(s){return s}),a=0;this.cells=o.map(function(s){var l=HR.includes(s),c=a,u=a+s.length;return a=u,{text:s,mask:l,start:c,end:u}}),this.maskCells=this.cells.filter(function(s){return s.mask})}return mi(e,[{key:"getSelection",value:function(n){var r=this.maskCells[n]||{},i=r.start,o=r.end;return[i||0,o||0]}},{key:"match",value:function(n){for(var r=0;r<this.maskFormat.length;r+=1){var i=this.maskFormat[r],o=n[r];if(!o||i!==Ree&&i!==o)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(n){for(var r=Number.MAX_SAFE_INTEGER,i=0,o=0;o<this.maskCells.length;o+=1){var a=this.maskCells[o],s=a.start,l=a.end;if(n>=s&&n<=l)return o;var c=Math.min(Math.abs(n-s),Math.abs(n-l));c<r&&(r=c,i=o)}return i}}]),e}();function VZe(e){var t={YYYY:[0,9999,new Date().getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]};return t[e]}var KZe=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],nj=f.forwardRef(function(e,t){var n=e.active,r=e.showActiveCls,i=r===void 0?!0:r,o=e.suffixIcon,a=e.format,s=e.validateFormat,l=e.onChange;e.onInput;var c=e.helped,u=e.onHelp,d=e.onSubmit,h=e.onKeyDown,p=e.preserveInvalidOnBlur,m=p===void 0?!1:p,v=e.invalid,y=e.clearIcon,S=tn(e,KZe),b=e.value,C=e.onFocus,_=e.onBlur,T=e.onMouseUp,x=f.useContext(ef),E=x.prefixCls,k=x.input,M=k===void 0?"input":k,P="".concat(E,"-input"),D=f.useState(!1),R=Le(D,2),A=R[0],H=R[1],F=f.useState(b),z=Le(F,2),W=z[0],q=z[1],Z=f.useState(""),N=Le(Z,2),B=N[0],V=N[1],Y=f.useState(null),ie=Le(Y,2),ce=ie[0],fe=ie[1],ee=f.useState(null),ne=Le(ee,2),ue=ne[0],ye=ne[1],me=W||"";f.useEffect(function(){q(b)},[b]);var pe=f.useRef(),he=f.useRef();f.useImperativeHandle(t,function(){return{nativeElement:pe.current,inputElement:he.current,focus:function(se){he.current.focus(se)},blur:function(){he.current.blur()}}});var _e=f.useMemo(function(){return new WZe(a||"")},[a]),le=f.useMemo(function(){return c?[0,0]:_e.getSelection(ce)},[_e,ce,c]),xe=Le(le,2),we=xe[0],De=xe[1],Fe=function(se){se&&se!==a&&se!==b&&u()},Ce=cr(function(tt){s(tt)&&l(tt),q(tt),Fe(tt)}),Te=function(se){if(!a){var ze=se.target.value;Fe(ze),q(ze),l(ze)}},ke=function(se){var ze=se.clipboardData.getData("text");s(ze)&&Ce(ze)},Pe=f.useRef(!1),Ne=function(){Pe.current=!0},We=function(se){var ze=se.target,Ye=ze.selectionStart,Ue=_e.getMaskCellIndex(Ye);fe(Ue),ye({}),T==null||T(se),Pe.current=!1},Q=function(se){H(!0),fe(0),V(""),C(se)},K=function(se){_(se)},J=function(se){H(!1),K(se)};IW(n,function(){!n&&!m&&q(b)});var be=function(se){se.key==="Enter"&&s(me)&&d(),h==null||h(se)},Oe=function(se){be(se);var ze=se.key,Ye=null,Ue=null,Je=De-we,Ze=a.slice(we,De),rt=function(Bt){fe(function(Dt){var an=Dt+Bt;return an=Math.max(an,0),an=Math.min(an,_e.size()-1),an})},qt=function(Bt){var Dt=VZe(Ze),an=Le(Dt,3),Vt=an[0],Kt=an[1],Qt=an[2],et=me.slice(we,De),ot=Number(et);if(isNaN(ot))return String(Qt||(Bt>0?Vt:Kt));var Qe=ot+Bt,ct=Kt-Vt+1;return String(Vt+(ct+Qe-Vt)%ct)};switch(ze){case"Backspace":case"Delete":Ye="",Ue=Ze;break;case"ArrowLeft":Ye="",rt(-1);break;case"ArrowRight":Ye="",rt(1);break;case"ArrowUp":Ye="",Ue=qt(1);break;case"ArrowDown":Ye="",Ue=qt(-1);break;default:isNaN(Number(ze))||(Ye=B+ze,Ue=Ye);break}if(Ye!==null&&(V(Ye),Ye.length>=Je&&(rt(1),V(""))),Ue!==null){var St=me.slice(0,we)+kW(Ue,Je)+me.slice(De);Ce(St.slice(0,a.length))}ye({})},Se=f.useRef();Er(function(){if(!(!A||!a||Pe.current)){if(!_e.match(me)){Ce(a);return}return he.current.setSelectionRange(we,De),Se.current=Sr(function(){he.current.setSelectionRange(we,De)}),function(){Sr.cancel(Se.current)}}},[_e,a,A,me,ce,we,De,ue,Ce]);var Ke=a?{onFocus:Q,onBlur:J,onKeyDown:Oe,onMouseDown:Ne,onMouseUp:We,onPaste:ke}:{};return f.createElement("div",{ref:pe,className:Re(P,ae(ae({},"".concat(P,"-active"),n&&i),"".concat(P,"-placeholder"),c))},f.createElement(M,ut({ref:he,"aria-invalid":v,autoComplete:"off"},S,{onKeyDown:be,onBlur:K},Ke,{value:me,onChange:Te})),f.createElement(dP,{type:"suffix",icon:o}),y)}),qZe=["id","prefix","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveOffset","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],GZe=["index"],YZe=["insetInlineStart","insetInlineEnd"];function XZe(e,t){var n=e.id,r=e.prefix,i=e.clearIcon,o=e.suffixIcon,a=e.separator,s=a===void 0?"~":a,l=e.activeIndex;e.activeHelp,e.allHelp;var c=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var u=e.placeholder,d=e.className,h=e.style,p=e.onClick,m=e.onClear,v=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var y=e.disabled,S=e.invalid;e.inputReadOnly;var b=e.direction;e.onOpenChange;var C=e.onActiveOffset,_=e.placement,T=e.onMouseDown;e.required,e["aria-required"];var x=e.autoFocus,E=e.tabIndex,k=tn(e,qZe),M=b==="rtl",P=f.useContext(ef),D=P.prefixCls,R=f.useMemo(function(){if(typeof n=="string")return[n];var he=n||{};return[he.start,he.end]},[n]),A=f.useRef(),H=f.useRef(),F=f.useRef(),z=function(_e){var le;return(le=[H,F][_e])===null||le===void 0?void 0:le.current};f.useImperativeHandle(t,function(){return{nativeElement:A.current,focus:function(_e){if(ln(_e)==="object"){var le,xe=_e||{},we=xe.index,De=we===void 0?0:we,Fe=tn(xe,GZe);(le=z(De))===null||le===void 0||le.focus(Fe)}else{var Ce;(Ce=z(_e??0))===null||Ce===void 0||Ce.focus()}},blur:function(){var _e,le;(_e=z(0))===null||_e===void 0||_e.blur(),(le=z(1))===null||le===void 0||le.blur()}}});var W=nbe(k),q=f.useMemo(function(){return Array.isArray(u)?u:[u,u]},[u]),Z=tbe(G(G({},e),{},{id:R,placeholder:q})),N=Le(Z,1),B=N[0],V=aP(_,M),Y=Tye(V,M),ie=V==null?void 0:V.toLowerCase().endsWith("right"),ce=f.useState({position:"absolute",width:0}),fe=Le(ce,2),ee=fe[0],ne=fe[1],ue=cr(function(){var he=z(l);if(he){var _e=he.nativeElement,le=_e.offsetWidth,xe=_e.offsetLeft,we=_e.offsetParent,De=(we==null?void 0:we.offsetWidth)||0,Fe=ie?De-le-xe:xe;ne(function(Ce){Ce.insetInlineStart,Ce.insetInlineEnd;var Te=tn(Ce,YZe);return G(G({},Te),{},ae({width:le},Y,Fe))}),C(Fe)}});f.useEffect(function(){ue()},[l]);var ye=i&&(v[0]&&!y[0]||v[1]&&!y[1]),me=x&&!y[0],pe=x&&!me&&!y[1];return f.createElement(Va,{onResize:ue},f.createElement("div",ut({},W,{className:Re(D,"".concat(D,"-range"),ae(ae(ae(ae({},"".concat(D,"-focused"),c),"".concat(D,"-disabled"),y.every(function(he){return he})),"".concat(D,"-invalid"),S.some(function(he){return he})),"".concat(D,"-rtl"),M),d),style:h,ref:A,onClick:p,onMouseDown:function(_e){var le=_e.target;le!==H.current.inputElement&&le!==F.current.inputElement&&_e.preventDefault(),T==null||T(_e)}}),r&&f.createElement("div",{className:"".concat(D,"-prefix")},r),f.createElement(nj,ut({ref:H},B(0),{autoFocus:me,tabIndex:E,"date-range":"start"})),f.createElement("div",{className:"".concat(D,"-range-separator")},s),f.createElement(nj,ut({ref:F},B(1),{autoFocus:pe,tabIndex:E,"date-range":"end"})),f.createElement("div",{className:"".concat(D,"-active-bar"),style:ee}),f.createElement(dP,{type:"suffix",icon:o}),ye&&f.createElement(tj,{icon:i,onClear:m})))}var QZe=f.forwardRef(XZe);function Aee(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function JT(e){return e===1?"end":"start"}function ZZe(e,t){var n=Bye(e,function(){var xn=e.disabled,zn=e.allowEmpty,Gn=Aee(xn,!1),rr=Aee(zn,!1);return{disabled:Gn,allowEmpty:rr}}),r=Le(n,6),i=r[0],o=r[1],a=r[2],s=r[3],l=r[4],c=r[5],u=i.prefixCls,d=i.styles,h=i.classNames,p=i.placement,m=i.defaultValue,v=i.value,y=i.needConfirm,S=i.onKeyDown,b=i.disabled,C=i.allowEmpty,_=i.disabledDate,T=i.minDate,x=i.maxDate,E=i.defaultOpen,k=i.open,M=i.onOpenChange,P=i.locale,D=i.generateConfig,R=i.picker,A=i.showNow,H=i.showToday,F=i.showTime,z=i.mode,W=i.onPanelChange,q=i.onCalendarChange,Z=i.onOk,N=i.defaultPickerValue,B=i.pickerValue,V=i.onPickerValueChange,Y=i.inputReadOnly,ie=i.suffixIcon,ce=i.onFocus,fe=i.onBlur,ee=i.presets,ne=i.ranges,ue=i.components,ye=i.cellRender,me=i.dateRender,pe=i.monthCellRender,he=i.onClick,_e=zye(t),le=Hye(k,E,b,M),xe=Le(le,2),we=xe[0],De=xe[1],Fe=function(zn,Gn){(b.some(function(rr){return!rr})||!zn)&&De(zn,Gn)},Ce=Yye(D,P,s,!0,!1,m,v,q,Z),Te=Le(Ce,5),ke=Te[0],Pe=Te[1],Ne=Te[2],We=Te[3],Q=Te[4],K=Ne(),J=Wye(b,C,we),be=Le(J,9),Oe=be[0],Se=be[1],Ke=be[2],tt=be[3],se=be[4],ze=be[5],Ye=be[6],Ue=be[7],Je=be[8],Ze=function(zn,Gn){Se(!0),ce==null||ce(zn,{range:JT(Gn??tt)})},rt=function(zn,Gn){Se(!1),fe==null||fe(zn,{range:JT(Gn??tt)})},qt=f.useMemo(function(){if(!F)return null;var xn=F.disabledTime,zn=xn?function(Gn){var rr=JT(tt),jr=Pye(K,Ye,tt);return xn(Gn,rr,{from:jr})}:void 0;return G(G({},F),{},{disabledTime:zn})},[F,tt,K,Ye]),St=Jn([R,R],{value:z}),Ot=Le(St,2),Bt=Ot[0],Dt=Ot[1],an=Bt[tt]||R,Vt=an==="date"&&qt?"datetime":an,Kt=Vt===R&&Vt!=="time",Qt=Qye(R,an,A,H,!0),et=Xye(i,ke,Pe,Ne,We,b,s,Oe,we,c),ot=Le(et,2),Qe=ot[0],ct=ot[1],Nt=CZe(K,b,Ye,D,P,_),Lt=Iye(K,c,C),Zt=Le(Lt,2),Wt=Zt[0],At=Zt[1],$t=Vye(D,P,K,Bt,we,tt,o,Kt,N,B,qt==null?void 0:qt.defaultOpenValue,V,T,x),Gt=Le($t,2),Ft=Gt[0],cn=Gt[1],_t=cr(function(xn,zn,Gn){var rr=nw(Bt,tt,zn);if((rr[0]!==Bt[0]||rr[1]!==Bt[1])&&Dt(rr),W&&Gn!==!1){var jr=pt(K);xn&&(jr[tt]=xn),W(jr,rr)}}),jt=function(zn,Gn){return nw(K,Gn,zn)},nn=function(zn,Gn){var rr=K;zn&&(rr=jt(zn,tt)),Ue(tt);var jr=ze(rr);We(rr),Qe(tt,jr===null),jr===null?Fe(!1,{force:!0}):Gn||_e.current.focus({index:jr})},Ht=function(zn){var Gn,rr=zn.target.getRootNode();if(!_e.current.nativeElement.contains((Gn=rr.activeElement)!==null&&Gn!==void 0?Gn:document.activeElement)){var jr=b.findIndex(function(Ao){return!Ao});jr>=0&&_e.current.focus({index:jr})}Fe(!0),he==null||he(zn)},Tt=function(){ct(null),Fe(!1,{force:!0})},gt=f.useState(null),Ve=Le(gt,2),Yt=Ve[0],mt=Ve[1],Mt=f.useState(null),zt=Le(Mt,2),Dn=zt[0],Xn=zt[1],O=f.useMemo(function(){return Dn||K},[K,Dn]);f.useEffect(function(){we||Xn(null)},[we]);var j=f.useState(0),oe=Le(j,2),Ae=oe[0],Ge=oe[1],ft=Uye(ee,ne),Jt=function(zn){Xn(zn),mt("preset")},on=function(zn){var Gn=ct(zn);Gn&&Fe(!1,{force:!0})},Qn=function(zn){nn(zn)},ni=function(zn){Xn(zn?jt(zn,tt):null),mt("cell")},zr=function(zn){Fe(!0),Ze(zn)},Yr=function(){Ke("panel")},Rr=function(zn){var Gn=nw(K,tt,zn);We(Gn),!y&&!a&&o===Vt&&nn(zn)},wn=function(){Fe(!1)},Pn=OW(ye,me,pe,JT(tt)),Ar=K[tt]||null,bn=cr(function(xn){return c(xn,{activeIndex:tt})}),Cn=f.useMemo(function(){var xn=Hi(i,!1),zn=Pr(i,[].concat(pt(Object.keys(xn)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return zn},[i]),tr=f.createElement(ebe,ut({},Cn,{showNow:Qt,showTime:qt,range:!0,multiplePanel:Kt,activeOffset:Ae,placement:p,disabledDate:Nt,onFocus:zr,onBlur:rt,onPanelMouseDown:Yr,picker:R,mode:an,internalMode:Vt,onPanelChange:_t,format:l,value:Ar,isInvalid:bn,onChange:null,onSelect:Rr,pickerValue:Ft,defaultOpenValue:Xv(F==null?void 0:F.defaultOpenValue)[tt],onPickerValueChange:cn,hoverValue:O,onHover:ni,needConfirm:y,onSubmit:nn,onOk:Q,presets:ft,onPresetHover:Jt,onPresetSubmit:on,onNow:Qn,cellRender:Pn})),Ir=function(zn,Gn){var rr=jt(zn,Gn);We(rr)},li=function(){Ke("input")},Wi=function(zn,Gn){var rr=Ye.length,jr=Ye[rr-1];if(rr&&jr!==Gn&&y&&!C[jr]&&!Je(jr)&&K[jr]){_e.current.focus({index:jr});return}Ke("input"),Fe(!0,{inherit:!0}),tt!==Gn&&we&&!y&&a&&nn(null,!0),se(Gn),Ze(zn,Gn)},mr=function(zn,Gn){if(Fe(!1),!y&&Ke()==="input"){var rr=ze(K);Qe(tt,rr===null)}rt(zn,Gn)},Li=function(zn,Gn){zn.key==="Tab"&&nn(null,!0),S==null||S(zn,Gn)},dr=f.useMemo(function(){return{prefixCls:u,locale:P,generateConfig:D,button:ue.button,input:ue.input}},[u,P,D,ue.button,ue.input]);return Er(function(){we&&tt!==void 0&&_t(null,R,!1)},[we,tt,R]),Er(function(){var xn=Ke();!we&&xn==="input"&&(Fe(!1),nn(null,!0)),!we&&a&&!y&&xn==="panel"&&(Fe(!0),nn())},[we]),f.createElement(ef.Provider,{value:dr},f.createElement(kye,ut({},Mye(i),{popupElement:tr,popupStyle:d.popup,popupClassName:h.popup,visible:we,onClose:wn,range:!0}),f.createElement(QZe,ut({},i,{ref:_e,suffixIcon:ie,activeIndex:Oe||we?tt:null,activeHelp:!!Dn,allHelp:!!Dn&&Yt==="preset",focused:Oe,onFocus:Wi,onBlur:mr,onKeyDown:Li,onSubmit:nn,value:O,maskFormat:l,onChange:Ir,onInputChange:li,format:s,inputReadOnly:Y,disabled:b,open:we,onOpenChange:Fe,onClick:Ht,onClear:Tt,invalid:Wt,onInvalid:At,onActiveOffset:Ge}))))}var JZe=f.forwardRef(ZZe);function eJe(e){var t=e.prefixCls,n=e.value,r=e.onRemove,i=e.removeIcon,o=i===void 0?"×":i,a=e.formatDate,s=e.disabled,l=e.maxTagCount,c=e.placeholder,u="".concat(t,"-selector"),d="".concat(t,"-selection"),h="".concat(d,"-overflow");function p(y,S){return f.createElement("span",{className:Re("".concat(d,"-item")),title:typeof y=="string"?y:null},f.createElement("span",{className:"".concat(d,"-item-content")},y),!s&&S&&f.createElement("span",{onMouseDown:function(C){C.preventDefault()},onClick:S,className:"".concat(d,"-item-remove")},o))}function m(y){var S=a(y),b=function(_){_&&_.stopPropagation(),r(y)};return p(S,b)}function v(y){var S="+ ".concat(y.length," ...");return p(S)}return f.createElement("div",{className:u},f.createElement(kd,{prefixCls:h,data:n,renderItem:m,renderRest:v,itemKey:function(S){return a(S)},maxCount:l}),!n.length&&f.createElement("span",{className:"".concat(t,"-selection-placeholder")},c))}var tJe=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function nJe(e,t){e.id;var n=e.open,r=e.prefix,i=e.clearIcon,o=e.suffixIcon;e.activeHelp,e.allHelp;var a=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var s=e.locale,l=e.generateConfig,c=e.placeholder,u=e.className,d=e.style,h=e.onClick,p=e.onClear,m=e.internalPicker,v=e.value,y=e.onChange,S=e.onSubmit;e.onInputChange;var b=e.multiple,C=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var _=e.disabled,T=e.invalid;e.inputReadOnly;var x=e.direction;e.onOpenChange;var E=e.onMouseDown;e.required,e["aria-required"];var k=e.autoFocus,M=e.tabIndex,P=e.removeIcon,D=tn(e,tJe),R=x==="rtl",A=f.useContext(ef),H=A.prefixCls,F=f.useRef(),z=f.useRef();f.useImperativeHandle(t,function(){return{nativeElement:F.current,focus:function(ee){var ne;(ne=z.current)===null||ne===void 0||ne.focus(ee)},blur:function(){var ee;(ee=z.current)===null||ee===void 0||ee.blur()}}});var W=nbe(D),q=function(ee){y([ee])},Z=function(ee){var ne=v.filter(function(ue){return ue&&!Hs(l,s,ue,ee,m)});y(ne),n||S()},N=tbe(G(G({},e),{},{onChange:q}),function(fe){var ee=fe.valueTexts;return{value:ee[0]||"",active:a}}),B=Le(N,2),V=B[0],Y=B[1],ie=!!(i&&v.length&&!_),ce=b?f.createElement(f.Fragment,null,f.createElement(eJe,{prefixCls:H,value:v,onRemove:Z,formatDate:Y,maxTagCount:C,disabled:_,removeIcon:P,placeholder:c}),f.createElement("input",{className:"".concat(H,"-multiple-input"),value:v.map(Y).join(","),ref:z,readOnly:!0,autoFocus:k,tabIndex:M}),f.createElement(dP,{type:"suffix",icon:o}),ie&&f.createElement(tj,{icon:i,onClear:p})):f.createElement(nj,ut({ref:z},V(),{autoFocus:k,tabIndex:M,suffixIcon:o,clearIcon:ie&&f.createElement(tj,{icon:i,onClear:p}),showActiveCls:!1}));return f.createElement("div",ut({},W,{className:Re(H,ae(ae(ae(ae(ae({},"".concat(H,"-multiple"),b),"".concat(H,"-focused"),a),"".concat(H,"-disabled"),_),"".concat(H,"-invalid"),T),"".concat(H,"-rtl"),R),u),style:d,ref:F,onClick:h,onMouseDown:function(ee){var ne,ue=ee.target;ue!==((ne=z.current)===null||ne===void 0?void 0:ne.inputElement)&&ee.preventDefault(),E==null||E(ee)}}),r&&f.createElement("div",{className:"".concat(H,"-prefix")},r),ce)}var rJe=f.forwardRef(nJe);function iJe(e,t){var n=Bye(e),r=Le(n,6),i=r[0],o=r[1],a=r[2],s=r[3],l=r[4],c=r[5],u=i,d=u.prefixCls,h=u.styles,p=u.classNames,m=u.order,v=u.defaultValue,y=u.value,S=u.needConfirm,b=u.onChange,C=u.onKeyDown,_=u.disabled,T=u.disabledDate,x=u.minDate,E=u.maxDate,k=u.defaultOpen,M=u.open,P=u.onOpenChange,D=u.locale,R=u.generateConfig,A=u.picker,H=u.showNow,F=u.showToday,z=u.showTime,W=u.mode,q=u.onPanelChange,Z=u.onCalendarChange,N=u.onOk,B=u.multiple,V=u.defaultPickerValue,Y=u.pickerValue,ie=u.onPickerValueChange,ce=u.inputReadOnly,fe=u.suffixIcon,ee=u.removeIcon,ne=u.onFocus,ue=u.onBlur,ye=u.presets,me=u.components,pe=u.cellRender,he=u.dateRender,_e=u.monthCellRender,le=u.onClick,xe=zye(t);function we(bn){return bn===null?null:B?bn:bn[0]}var De=Zye(R,D,o),Fe=Hye(M,k,[_],P),Ce=Le(Fe,2),Te=Ce[0],ke=Ce[1],Pe=function(Cn,tr,Ir){if(Z){var li=G({},Ir);delete li.range,Z(we(Cn),we(tr),li)}},Ne=function(Cn){N==null||N(we(Cn))},We=Yye(R,D,s,!1,m,v,y,Pe,Ne),Q=Le(We,5),K=Q[0],J=Q[1],be=Q[2],Oe=Q[3],Se=Q[4],Ke=be(),tt=Wye([_]),se=Le(tt,4),ze=se[0],Ye=se[1],Ue=se[2],Je=se[3],Ze=function(Cn){Ye(!0),ne==null||ne(Cn,{})},rt=function(Cn){Ye(!1),ue==null||ue(Cn,{})},qt=Jn(A,{value:W}),St=Le(qt,2),Ot=St[0],Bt=St[1],Dt=Ot==="date"&&z?"datetime":Ot,an=Qye(A,Ot,H,F),Vt=b&&function(bn,Cn){b(we(bn),we(Cn))},Kt=Xye(G(G({},i),{},{onChange:Vt}),K,J,be,Oe,[],s,ze,Te,c),Qt=Le(Kt,2),et=Qt[1],ot=Iye(Ke,c),Qe=Le(ot,2),ct=Qe[0],Nt=Qe[1],Lt=f.useMemo(function(){return ct.some(function(bn){return bn})},[ct]),Zt=function(Cn,tr){if(ie){var Ir=G(G({},tr),{},{mode:tr.mode[0]});delete Ir.range,ie(Cn[0],Ir)}},Wt=Vye(R,D,Ke,[Ot],Te,Je,o,!1,V,Y,Xv(z==null?void 0:z.defaultOpenValue),Zt,x,E),At=Le(Wt,2),$t=At[0],Gt=At[1],Ft=cr(function(bn,Cn,tr){if(Bt(Cn),q&&tr!==!1){var Ir=bn||Ke[Ke.length-1];q(Ir,Cn)}}),cn=function(){et(be()),ke(!1,{force:!0})},_t=function(Cn){!_&&!xe.current.nativeElement.contains(document.activeElement)&&xe.current.focus(),ke(!0),le==null||le(Cn)},jt=function(){et(null),ke(!1,{force:!0})},nn=f.useState(null),Ht=Le(nn,2),Tt=Ht[0],gt=Ht[1],Ve=f.useState(null),Yt=Le(Ve,2),mt=Yt[0],Mt=Yt[1],zt=f.useMemo(function(){var bn=[mt].concat(pt(Ke)).filter(function(Cn){return Cn});return B?bn:bn.slice(0,1)},[Ke,mt,B]),Dn=f.useMemo(function(){return!B&&mt?[mt]:Ke.filter(function(bn){return bn})},[Ke,mt,B]);f.useEffect(function(){Te||Mt(null)},[Te]);var Xn=Uye(ye),O=function(Cn){Mt(Cn),gt("preset")},j=function(Cn){var tr=B?De(be(),Cn):[Cn],Ir=et(tr);Ir&&!B&&ke(!1,{force:!0})},oe=function(Cn){j(Cn)},Ae=function(Cn){Mt(Cn),gt("cell")},Ge=function(Cn){ke(!0),Ze(Cn)},ft=function(Cn){if(Ue("panel"),!(B&&Dt!==A)){var tr=B?De(be(),Cn):[Cn];Oe(tr),!S&&!a&&o===Dt&&cn()}},Jt=function(){ke(!1)},on=OW(pe,he,_e),Qn=f.useMemo(function(){var bn=Hi(i,!1),Cn=Pr(i,[].concat(pt(Object.keys(bn)),["onChange","onCalendarChange","style","className","onPanelChange"]));return G(G({},Cn),{},{multiple:i.multiple})},[i]),ni=f.createElement(ebe,ut({},Qn,{showNow:an,showTime:z,disabledDate:T,onFocus:Ge,onBlur:rt,picker:A,mode:Ot,internalMode:Dt,onPanelChange:Ft,format:l,value:Ke,isInvalid:c,onChange:null,onSelect:ft,pickerValue:$t,defaultOpenValue:z==null?void 0:z.defaultOpenValue,onPickerValueChange:Gt,hoverValue:zt,onHover:Ae,needConfirm:S,onSubmit:cn,onOk:Se,presets:Xn,onPresetHover:O,onPresetSubmit:j,onNow:oe,cellRender:on})),zr=function(Cn){Oe(Cn)},Yr=function(){Ue("input")},Rr=function(Cn){Ue("input"),ke(!0,{inherit:!0}),Ze(Cn)},wn=function(Cn){ke(!1),rt(Cn)},Pn=function(Cn,tr){Cn.key==="Tab"&&cn(),C==null||C(Cn,tr)},Ar=f.useMemo(function(){return{prefixCls:d,locale:D,generateConfig:R,button:me.button,input:me.input}},[d,D,R,me.button,me.input]);return Er(function(){Te&&Je!==void 0&&Ft(null,A,!1)},[Te,Je,A]),Er(function(){var bn=Ue();!Te&&bn==="input"&&(ke(!1),cn()),!Te&&a&&!S&&bn==="panel"&&(ke(!0),cn())},[Te]),f.createElement(ef.Provider,{value:Ar},f.createElement(kye,ut({},Mye(i),{popupElement:ni,popupStyle:h.popup,popupClassName:p.popup,visible:Te,onClose:Jt}),f.createElement(rJe,ut({},i,{ref:xe,suffixIcon:fe,removeIcon:ee,activeHelp:!!mt,allHelp:!!mt&&Tt==="preset",focused:ze,onFocus:Rr,onBlur:wn,onKeyDown:Pn,onSubmit:cn,value:Dn,maskFormat:l,onChange:zr,onInputChange:Yr,internalPicker:o,format:s,inputReadOnly:ce,disabled:_,open:Te,onOpenChange:ke,onClick:_t,onClear:jt,invalid:Lt,onInvalid:function(Cn){Nt(Cn,0)}}))))}var oJe=f.forwardRef(iJe);const rbe=f.createContext(null),aJe=rbe.Provider,ibe=f.createContext(null),sJe=ibe.Provider;var lJe=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],obe=f.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,i=e.className,o=e.style,a=e.checked,s=e.disabled,l=e.defaultChecked,c=l===void 0?!1:l,u=e.type,d=u===void 0?"checkbox":u,h=e.title,p=e.onChange,m=tn(e,lJe),v=f.useRef(null),y=f.useRef(null),S=Jn(c,{value:a}),b=Le(S,2),C=b[0],_=b[1];f.useImperativeHandle(t,function(){return{focus:function(k){var M;(M=v.current)===null||M===void 0||M.focus(k)},blur:function(){var k;(k=v.current)===null||k===void 0||k.blur()},input:v.current,nativeElement:y.current}});var T=Re(r,i,ae(ae({},"".concat(r,"-checked"),C),"".concat(r,"-disabled"),s)),x=function(k){s||("checked"in e||_(k.target.checked),p==null||p({target:G(G({},e),{},{type:d,checked:k.target.checked}),stopPropagation:function(){k.stopPropagation()},preventDefault:function(){k.preventDefault()},nativeEvent:k.nativeEvent}))};return f.createElement("span",{className:T,title:h,style:o,ref:y},f.createElement("input",ut({},m,{className:"".concat(r,"-input"),ref:v,onChange:x,disabled:s,checked:!!C,type:d})),f.createElement("span",{className:"".concat(r,"-inner")}))});function abe(e){const t=ge.useRef(null),n=()=>{Sr.cancel(t.current),t.current=null};return[()=>{n(),t.current=Sr(()=>{t.current=null})},o=>{t.current&&(o.stopPropagation(),n()),e==null||e(o)}]}const cJe=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},$r(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"}})}},uJe=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:i,motionDurationSlow:o,motionDurationMid:a,motionEaseInOutCirc:s,colorBgContainer:l,colorBorder:c,lineWidth:u,colorBgContainerDisabled:d,colorTextDisabled:h,paddingXS:p,dotColorDisabled:m,lineType:v,radioColor:y,radioBgColor:S,calc:b}=e,C=`${t}-inner`,T=b(i).sub(b(4).mul(2)),x=b(1).mul(i).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},$r(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${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:`${je(u)} ${v} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},$r(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,
|
||
&:hover ${C}`]:{borderColor:r},[`${t}-input:focus-visible + ${C}`]:Object.assign({},jd(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:x,height:x,marginBlockStart:b(1).mul(i).div(-2).equal({unit:!0}),marginInlineStart:b(1).mul(i).div(-2).equal({unit:!0}),backgroundColor:y,borderBlockStart:0,borderInlineStart:0,borderRadius:x,transform:"scale(0)",opacity:0,transition:`all ${o} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:x,height:x,backgroundColor:l,borderColor:c,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[C]:{borderColor:r,backgroundColor:S,"&::after":{transform:`scale(${e.calc(e.dotSize).div(i).equal()})`,opacity:1,transition:`all ${o} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[C]:{backgroundColor:d,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:m}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:h,cursor:"not-allowed"},[`&${t}-checked`]:{[C]:{"&::after":{transform:`scale(${b(T).div(i).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:p,paddingInlineEnd:p}})}},dJe=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:i,lineType:o,colorBorder:a,motionDurationSlow:s,motionDurationMid:l,buttonPaddingInline:c,fontSize:u,buttonBg:d,fontSizeLG:h,controlHeightLG:p,controlHeightSM:m,paddingXS:v,borderRadius:y,borderRadiusSM:S,borderRadiusLG:b,buttonCheckedBg:C,buttonSolidCheckedColor:_,colorTextDisabled:T,colorBgContainerDisabled:x,buttonCheckedBgDisabled:E,buttonCheckedColorDisabled:k,colorPrimary:M,colorPrimaryHover:P,colorPrimaryActive:D,buttonSolidCheckedBg:R,buttonSolidCheckedHoverBg:A,buttonSolidCheckedActiveBg:H,calc:F}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:je(F(n).sub(F(i).mul(2)).equal()),background:d,border:`${je(i)} ${o} ${a}`,borderBlockStartWidth:F(i).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:i,cursor:"pointer",transition:[`color ${l}`,`background ${l}`,`box-shadow ${l}`].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:F(i).mul(-1).equal(),insetInlineStart:F(i).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:i,paddingInline:0,backgroundColor:a,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${je(i)} ${o} ${a}`,borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y},"&:first-child:last-child":{borderRadius:y},[`${r}-group-large &`]:{height:p,fontSize:h,lineHeight:je(F(p).sub(F(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},[`${r}-group-small &`]:{height:m,paddingInline:F(v).sub(i).equal(),paddingBlock:0,lineHeight:je(F(m).sub(F(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:S,borderEndStartRadius:S},"&:last-child":{borderStartEndRadius:S,borderEndEndRadius:S}},"&:hover":{position:"relative",color:M},"&:has(:focus-visible)":Object.assign({},jd(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:M,background:C,borderColor:M,"&::before":{backgroundColor:M},"&:first-child":{borderColor:M},"&:hover":{color:P,borderColor:P,"&::before":{backgroundColor:P}},"&:active":{color:D,borderColor:D,"&::before":{backgroundColor:D}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:_,background:R,borderColor:R,"&:hover":{color:_,background:A,borderColor:A},"&:active":{color:_,background:H,borderColor:H}},"&-disabled":{color:T,backgroundColor:x,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:T,backgroundColor:x,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:k,backgroundColor:E,borderColor:a,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},fJe=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:i,fontSizeLG:o,colorText:a,colorBgContainer:s,colorTextDisabled:l,controlItemBgActiveDisabled:c,colorTextLightSolid:u,colorPrimary:d,colorPrimaryHover:h,colorPrimaryActive:p,colorWhite:m}=e,v=4,y=o,S=t?y-v*2:y-(v+i)*2;return{radioSize:y,dotSize:S,dotColorDisabled:l,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:h,buttonSolidCheckedActiveBg:p,buttonBg:s,buttonCheckedBg:s,buttonColor:a,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:l,buttonPaddingInline:n-i,wrapperMarginInlineEnd:r,radioColor:t?d:m,radioBgColor:t?s:d}},sbe=Tr("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${je(n)} ${t}`,o=ur(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[cJe(o),uJe(o),dJe(o)]},fJe,{unitless:{radioSize:!0,dotSize:!0}});var hJe=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 pJe=(e,t)=>{var n,r;const i=f.useContext(rbe),o=f.useContext(ibe),{getPrefixCls:a,direction:s,radio:l}=f.useContext(hn),c=f.useRef(null),u=va(t,c),{isFormItemInput:d}=f.useContext(pa),h=z=>{var W,q;(W=e.onChange)===null||W===void 0||W.call(e,z),(q=i==null?void 0:i.onChange)===null||q===void 0||q.call(i,z)},{prefixCls:p,className:m,rootClassName:v,children:y,style:S,title:b}=e,C=hJe(e,["prefixCls","className","rootClassName","children","style","title"]),_=a("radio",p),T=((i==null?void 0:i.optionType)||o)==="button",x=T?`${_}-button`:_,E=_i(_),[k,M,P]=sbe(_,E),D=Object.assign({},C),R=f.useContext(ea);i&&(D.name=i.name,D.onChange=h,D.checked=e.value===i.value,D.disabled=(n=D.disabled)!==null&&n!==void 0?n:i.disabled),D.disabled=(r=D.disabled)!==null&&r!==void 0?r:R;const A=Re(`${x}-wrapper`,{[`${x}-wrapper-checked`]:D.checked,[`${x}-wrapper-disabled`]:D.disabled,[`${x}-wrapper-rtl`]:s==="rtl",[`${x}-wrapper-in-form-item`]:d,[`${x}-wrapper-block`]:!!(i!=null&&i.block)},l==null?void 0:l.className,m,v,M,P,E),[H,F]=abe(D.onClick);return k(f.createElement(yE,{component:"Radio",disabled:D.disabled},f.createElement("label",{className:A,style:Object.assign(Object.assign({},l==null?void 0:l.style),S),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:b,onClick:H},f.createElement(obe,Object.assign({},D,{className:Re(D.className,{[IO]:!T}),type:"radio",prefixCls:x,ref:u,onClick:F})),y!==void 0?f.createElement("span",null,y):null)))},q9=f.forwardRef(pJe),mJe=f.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=f.useContext(hn),i=UO(),{prefixCls:o,className:a,rootClassName:s,options:l,buttonStyle:c="outline",disabled:u,children:d,size:h,style:p,id:m,optionType:v,name:y=i,defaultValue:S,value:b,block:C=!1,onChange:_,onMouseEnter:T,onMouseLeave:x,onFocus:E,onBlur:k}=e,[M,P]=Jn(S,{value:b}),D=f.useCallback(V=>{const Y=M,ie=V.target.value;"value"in e||P(ie),ie!==Y&&(_==null||_(V))},[M,P,_]),R=n("radio",o),A=`${R}-group`,H=_i(R),[F,z,W]=sbe(R,H);let q=d;l&&l.length>0&&(q=l.map(V=>typeof V=="string"||typeof V=="number"?f.createElement(q9,{key:V.toString(),prefixCls:R,disabled:u,value:V,checked:M===V},V):f.createElement(q9,{key:`radio-group-value-options-${V.value}`,prefixCls:R,disabled:V.disabled||u,value:V.value,checked:M===V.value,title:V.title,style:V.style,id:V.id,required:V.required},V.label)));const Z=Ro(h),N=Re(A,`${A}-${c}`,{[`${A}-${Z}`]:Z,[`${A}-rtl`]:r==="rtl",[`${A}-block`]:C},a,s,z,W,H),B=f.useMemo(()=>({onChange:D,value:M,disabled:u,name:y,optionType:v,block:C}),[D,M,u,y,v,C]);return F(f.createElement("div",Object.assign({},Hi(e,{aria:!0,data:!0}),{className:N,style:p,onMouseEnter:T,onMouseLeave:x,onFocus:E,onBlur:k,id:m,ref:t}),f.createElement(aJe,{value:B},q)))}),gJe=f.memo(mJe);var vJe=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 yJe=(e,t)=>{const{getPrefixCls:n}=f.useContext(hn),{prefixCls:r}=e,i=vJe(e,["prefixCls"]),o=n("radio",r);return f.createElement(sJe,{value:"button"},f.createElement(q9,Object.assign({prefixCls:o},i,{type:"radio",ref:t})))},bJe=f.forwardRef(yJe),ti=q9;ti.Button=bJe;ti.Group=gJe;ti.__ANT_RADIO=!0;function ME(e){return ur(e,{inputAffixPadding:e.paddingXXS})}const IE=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:i,controlHeightSM:o,controlHeightLG:a,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:h,colorPrimaryHover:p,colorPrimary:m,controlOutlineWidth:v,controlOutline:y,colorErrorOutline:S,colorWarningOutline:b,colorBgContainer:C}=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-s*l)/2*10)/10-i,paddingInline:c-i,paddingInlineSM:u-i,paddingInlineLG:d-i,addonBg:h,activeBorderColor:m,hoverBorderColor:p,activeShadow:`0 0 0 ${v}px ${y}`,errorActiveShadow:`0 0 0 ${v}px ${S}`,warningActiveShadow:`0 0 0 ${v}px ${b}`,hoverBg:C,activeBg:C,inputFontSize:n,inputFontSizeLG:s,inputFontSizeSM:n}},SJe=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),fP=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({},SJe(ur(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),RW=(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}}),Nee=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},RW(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),AW=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},RW(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},fP(e))}),Nee(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Nee(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),Dee=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),lbe=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${je(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},Dee(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),Dee(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},fP(e))}})}),NW=(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)}},cbe=(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}}),Lee=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},cbe(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),DW=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},cbe(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},fP(e))}),Lee(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),Lee(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),Fee=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),ube=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:`${je(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${je(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},Fee(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),Fee(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:`${je(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${je(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${je(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${je(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${je(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${je(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),LW=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),dbe=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:i}=e;return{padding:`${je(t)} ${je(i)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},FW=e=>({padding:`${je(e.paddingBlockSM)} ${je(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),$E=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${je(e.paddingBlock)} ${je(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},LW(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({},dbe(e)),"&-sm":Object.assign({},FW(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),fbe=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({},dbe(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},FW(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 ${je(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${je(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${je(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:`${je(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${je(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"},Fd()),{[`${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}}}})}},CJe=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({},$r(e)),$E(e)),AW(e)),DW(e)),NW(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"}})}},xJe=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${je(e.inputAffixPadding)}`}}}},wJe=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:i,colorIcon:o,colorIconHover:a,iconCls:s}=e,l=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},$E(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}}}),xJe(e)),{[`${s}${t}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:a}}}),[c]:{[`${s}${t}-password-icon`]:{color:o,cursor:"not-allowed","&:hover":{color:o}}}}},_Je=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},$r(e)),fbe(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}}},lbe(e)),ube(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}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},EJe=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,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}}}}},TJe=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}}}}}},kJe=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},jW=Tr("Input",e=>{const t=ur(e,ME(e));return[CJe(t),TJe(t),wJe(t),_Je(t),EJe(t),kJe(t),Yv(t)]},IE,{resetFont:!1}),zR=(e,t)=>{const{componentCls:n,controlHeight:r}=e,i=t?`${n}-${t}`:"",o=_0e(e);return[{[`${n}-multiple${i}`]:{paddingBlock:o.containerPadding,paddingInlineStart:o.basePadding,minHeight:r,[`${n}-selection-item`]:{height:o.itemHeight,lineHeight:je(o.itemLineHeight)}}}]},OJe=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,i=ur(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),o=ur(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[zR(i,"small"),zR(e),zR(o,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},E0e(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},PJe=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:i,motionDurationMid:o,cellHoverBg:a,lineWidth:s,lineType:l,colorPrimary:c,cellActiveWithRangeBg:u,colorTextLightSolid:d,colorTextDisabled:h,cellBgDisabled:p,colorFillSecondary:m}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:je(r),borderRadius:i,transition:`background ${o}`},[`&:hover:not(${t}-in-view):not(${t}-disabled),
|
||
&:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[n]:{background:a}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${je(s)} ${l} ${c}`,borderRadius:i,content:'""'}},[`&-in-view${t}-in-range,
|
||
&-in-view${t}-range-start,
|
||
&-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:u}},[`&-in-view${t}-selected,
|
||
&-in-view${t}-range-start,
|
||
&-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:d,background:c},[`&${t}-disabled ${n}`]:{background:m}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:i,borderEndStartRadius:i,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i},"&-disabled":{color:h,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:p}},[`&-disabled${t}-today ${n}::before`]:{borderColor:h}}},MJe=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:i,pickerControlIconSize:o,cellWidth:a,paddingSM:s,paddingXS:l,paddingXXS:c,colorBgContainer:u,lineWidth:d,lineType:h,borderRadiusLG:p,colorPrimary:m,colorTextHeading:v,colorSplit:y,pickerControlIconBorderWidth:S,colorIcon:b,textHeight:C,motionDurationMid:_,colorIconHover:T,fontWeightStrong:x,cellHeight:E,pickerCellPaddingVertical:k,colorTextDisabled:M,colorText:P,fontSize:D,motionDurationSlow:R,withoutTimeCellHeight:A,pickerQuarterPanelContentHeight:H,borderRadiusSM:F,colorTextLightSolid:z,cellHoverBg:W,timeColumnHeight:q,timeColumnWidth:Z,timeCellHeight:N,controlItemBgActive:B,marginXXS:V,pickerDatePanelPaddingHorizontal:Y,pickerControlIconMargin:ie}=e,ce=e.calc(a).mul(7).add(e.calc(Y).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:u,borderRadius:p,outline:"none","&-focused":{borderColor:m},"&-rtl":{[`${t}-prev-icon,
|
||
${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,
|
||
${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:ce},"&-header":{display:"flex",padding:`0 ${je(l)}`,color:v,borderBottom:`${je(d)} ${h} ${y}`,"> *":{flex:"none"},button:{padding:0,color:b,lineHeight:je(C),background:"transparent",border:0,cursor:"pointer",transition:`color ${_}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:D,"&:hover":{color:T},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:x,lineHeight:je(C),"> button":{color:"inherit",fontWeight:"inherit","&:not(:first-child)":{marginInlineStart:l},"&:hover":{color:m}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:o,height:o,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:o,height:o,border:"0 solid currentcolor",borderBlockWidth:`${je(S)} 0`,borderInlineWidth:`${je(S)} 0`,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:ie,insetInlineStart:ie,display:"inline-block",width:o,height:o,border:"0 solid currentcolor",borderBlockWidth:`${je(S)} 0`,borderInlineWidth:`${je(S)} 0`,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:E,fontWeight:"normal"},th:{height:e.calc(E).add(e.calc(k).mul(2)).equal(),color:P,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${je(k)} 0`,color:M,cursor:"pointer","&-in-view":{color:P}},PJe(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(A).mul(4).equal()},[r]:{padding:`0 ${je(l)}`}},"&-quarter-panel":{[`${t}-content`]:{height:H}},"&-decade-panel":{[r]:{padding:`0 ${je(e.calc(l).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${je(l)}`},[r]:{width:i}},"&-date-panel":{[`${t}-body`]:{padding:`${je(l)} ${je(Y)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${t}-cell`]:{[`&:hover ${r},
|
||
&-selected ${r},
|
||
${r}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${_}`},"&:first-child:before":{borderStartStartRadius:F,borderEndStartRadius:F},"&:last-child:before":{borderStartEndRadius:F,borderEndEndRadius:F}},"&:hover td:before":{background:W},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:m},[`&${t}-cell-week`]:{color:new Cr(z).setA(.5).toHexString()},[r]:{color:z}}},"&-range-hover td:before":{background:B}}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${je(l)} ${je(s)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${je(d)} ${h} ${y}`},[`${t}-date-panel,
|
||
${t}-time-panel`]:{transition:`opacity ${R}`},"&-active":{[`${t}-date-panel,
|
||
${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:q},"&-column":{flex:"1 0 auto",width:Z,margin:`${je(c)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${_}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:`calc(100% - ${je(N)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${je(d)} ${h} ${y}`},"&-active":{background:new Cr(B).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:V,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(Z).sub(e.calc(V).mul(2)).equal(),height:N,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(Z).sub(N).div(2).equal(),color:P,lineHeight:je(N),borderRadius:F,cursor:"pointer",transition:`background ${_}`,"&:hover":{background:W}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:B}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:M,background:"transparent",cursor:"not-allowed"}}}}}}}}},IJe=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:i,antCls:o,colorPrimary:a,cellActiveWithRangeBg:s,colorPrimaryBorder:l,lineType:c,colorSplit:u}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${je(r)} ${c} ${u}`,"&-extra":{padding:`0 ${je(i)}`,lineHeight:je(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${je(r)} ${c} ${u}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:je(i),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:je(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${o}-tag-blue`]:{color:a,background:s,borderColor:l,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},$Je=e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:i}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(i).add(e.calc(r).div(2)).equal()}},RJe=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:i,paddingXXS:o,lineWidth:a}=e,s=o*2,l=a*2,c=Math.min(n-s,n-l),u=Math.min(r-s,r-l),d=Math.min(i-s,i-l);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(o/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new Cr(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Cr(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:i*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:i,withoutTimeCellHeight:i*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:c,multipleItemHeightSM:u,multipleItemHeightLG:d,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},AJe=e=>Object.assign(Object.assign(Object.assign(Object.assign({},IE(e)),RJe(e)),JO(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),NJe=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign({},AW(e)),DW(e)),NW(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${je(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${je(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${je(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},UR=(e,t,n,r)=>{const i=e.calc(n).add(2).equal(),o=e.max(e.calc(t).sub(i).div(2).equal(),0),a=e.max(e.calc(t).sub(i).sub(o).equal(),0);return{padding:`${je(o)} ${je(r)} ${je(a)}`}},DJe=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},LJe=e=>{const{componentCls:t,antCls:n,controlHeight:r,paddingInline:i,lineWidth:o,lineType:a,colorBorder:s,borderRadius:l,motionDurationMid:c,colorTextDisabled:u,colorTextPlaceholder:d,controlHeightLG:h,fontSizeLG:p,controlHeightSM:m,paddingInlineSM:v,paddingXS:y,marginXS:S,colorTextDescription:b,lineWidthBold:C,colorPrimary:_,motionDurationSlow:T,zIndexPopup:x,paddingXXS:E,sizePopupArrow:k,colorBgElevated:M,borderRadiusLG:P,boxShadowSecondary:D,borderRadiusSM:R,colorSplit:A,cellHoverBg:H,presetsWidth:F,presetsMaxWidth:z,boxShadowPopoverArrow:W,fontHeight:q,fontHeightLG:Z,lineHeightLG:N}=e;return[{[t]:Object.assign(Object.assign(Object.assign({},$r(e)),UR(e,r,q,i)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:l,transition:`border ${c}, box-shadow ${c}, background ${c}`,[`${t}-prefix`]:{marginInlineEnd:e.inputAffixPadding},[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:e.fontSize,lineHeight:e.lineHeight,transition:`all ${c}`},LW(d)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:u,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:d}}},"&-large":Object.assign(Object.assign({},UR(e,h,Z,i)),{[`${t}-input > input`]:{fontSize:p,lineHeight:N}}),"&-small":Object.assign({},UR(e,m,q,v)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(y).div(2).equal(),color:u,lineHeight:1,pointerEvents:"none",transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:S}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:u,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top"},"&:hover":{color:b}},"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:p,color:u,fontSize:p,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:b},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-active-bar`]:{bottom:e.calc(o).mul(-1).equal(),height:C,background:_,opacity:0,transition:`all ${T} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${je(y)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:i},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:v}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},$r(e)),MJe(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:x,[`&${t}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${t}-dropdown-placement-bottomLeft,
|
||
&${t}-dropdown-placement-bottomRight`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft,
|
||
&${t}-dropdown-placement-topRight`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft,
|
||
&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight,
|
||
&${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft,
|
||
&${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:DO},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft,
|
||
&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight,
|
||
&${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft,
|
||
&${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:AO},[`&${n}-slide-up-leave ${t}-panel-container`]:{pointerEvents:"none"},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft,
|
||
&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:LO},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft,
|
||
&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:NO},[`${t}-panel > ${t}-time-panel`]:{paddingTop:E},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(i).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${T} ease-out`},R0e(e,M,W)),{"&:before":{insetInlineStart:e.calc(i).mul(1.5).equal()}}),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:M,borderRadius:P,boxShadow:D,transition:`margin ${T}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:F,maxWidth:z,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:y,borderInlineEnd:`${je(o)} ${a} ${A}`,li:Object.assign(Object.assign({},Yl),{borderRadius:R,paddingInline:y,paddingBlock:e.calc(m).sub(q).div(2).equal(),cursor:"pointer",transition:`all ${T}`,"+ li":{marginTop:S},"&:hover":{background:H}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:s}}}}),"&-dropdown-range":{padding:`${je(e.calc(k).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},qf(e,"slide-up"),qf(e,"slide-down"),Qb(e,"move-up"),Qb(e,"move-down")]},hbe=Tr("DatePicker",e=>{const t=ur(ME(e),$Je(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[IJe(t),LJe(t),NJe(t),DJe(t),OJe(t),Yv(e,{focusElCls:`${e.componentCls}-focused`})]},AJe);var pbe={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"},FJe=function(t,n){return f.createElement(wr,ut({},t,{ref:n,icon:pbe}))},jJe=f.forwardRef(FJe);const hP=f.createContext(null);var BJe=function(t){var n=t.activeTabOffset,r=t.horizontal,i=t.rtl,o=t.indicator,a=o===void 0?{}:o,s=a.size,l=a.align,c=l===void 0?"center":l,u=f.useState(),d=Le(u,2),h=d[0],p=d[1],m=f.useRef(),v=ge.useCallback(function(S){return typeof s=="function"?s(S):typeof s=="number"?s:S},[s]);function y(){Sr.cancel(m.current)}return f.useEffect(function(){var S={};if(n)if(r){S.width=v(n.width);var b=i?"right":"left";c==="start"&&(S[b]=n[b]),c==="center"&&(S[b]=n[b]+n.width/2,S.transform=i?"translateX(50%)":"translateX(-50%)"),c==="end"&&(S[b]=n[b]+n.width,S.transform="translateX(-100%)")}else S.height=v(n.height),c==="start"&&(S.top=n.top),c==="center"&&(S.top=n.top+n.height/2,S.transform="translateY(-50%)"),c==="end"&&(S.top=n.top+n.height,S.transform="translateY(-100%)");return y(),m.current=Sr(function(){p(S)}),y},[n,r,i,c,v]),{style:h}},jee={width:0,height:0,left:0,top:0};function HJe(e,t,n){return f.useMemo(function(){for(var r,i=new Map,o=t.get((r=e[0])===null||r===void 0?void 0:r.key)||jee,a=o.left+o.width,s=0;s<e.length;s+=1){var l=e[s].key,c=t.get(l);if(!c){var u;c=t.get((u=e[s-1])===null||u===void 0?void 0:u.key)||jee}var d=i.get(l)||G({},c);d.right=a-d.left-d.width,i.set(l,d)}return i},[e.map(function(r){return r.key}).join("_"),t,n])}function Bee(e,t){var n=f.useRef(e),r=f.useState({}),i=Le(r,2),o=i[1];function a(s){var l=typeof s=="function"?s(n.current):s;l!==n.current&&t(l,n.current),n.current=l,o({})}return[n.current,a]}var zJe=.1,Hee=.01,H3=20,zee=Math.pow(.995,H3);function UJe(e,t){var n=f.useState(),r=Le(n,2),i=r[0],o=r[1],a=f.useState(0),s=Le(a,2),l=s[0],c=s[1],u=f.useState(0),d=Le(u,2),h=d[0],p=d[1],m=f.useState(),v=Le(m,2),y=v[0],S=v[1],b=f.useRef();function C(M){var P=M.touches[0],D=P.screenX,R=P.screenY;o({x:D,y:R}),window.clearInterval(b.current)}function _(M){if(i){var P=M.touches[0],D=P.screenX,R=P.screenY;o({x:D,y:R});var A=D-i.x,H=R-i.y;t(A,H);var F=Date.now();c(F),p(F-l),S({x:A,y:H})}}function T(){if(i&&(o(null),S(null),y)){var M=y.x/h,P=y.y/h,D=Math.abs(M),R=Math.abs(P);if(Math.max(D,R)<zJe)return;var A=M,H=P;b.current=window.setInterval(function(){if(Math.abs(A)<Hee&&Math.abs(H)<Hee){window.clearInterval(b.current);return}A*=zee,H*=zee,t(A*H3,H*H3)},H3)}}var x=f.useRef();function E(M){var P=M.deltaX,D=M.deltaY,R=0,A=Math.abs(P),H=Math.abs(D);A===H?R=x.current==="x"?P:D:A>H?(R=P,x.current="x"):(R=D,x.current="y"),t(-R,-R)&&M.preventDefault()}var k=f.useRef(null);k.current={onTouchStart:C,onTouchMove:_,onTouchEnd:T,onWheel:E},f.useEffect(function(){function M(A){k.current.onTouchStart(A)}function P(A){k.current.onTouchMove(A)}function D(A){k.current.onTouchEnd(A)}function R(A){k.current.onWheel(A)}return document.addEventListener("touchmove",P,{passive:!1}),document.addEventListener("touchend",D,{passive:!0}),e.current.addEventListener("touchstart",M,{passive:!0}),e.current.addEventListener("wheel",R,{passive:!1}),function(){document.removeEventListener("touchmove",P),document.removeEventListener("touchend",D)}},[])}function mbe(e){var t=f.useState(0),n=Le(t,2),r=n[0],i=n[1],o=f.useRef(0),a=f.useRef();return a.current=e,X1(function(){var s;(s=a.current)===null||s===void 0||s.call(a)},[r]),function(){o.current===r&&(o.current+=1,i(o.current))}}function WJe(e){var t=f.useRef([]),n=f.useState({}),r=Le(n,2),i=r[1],o=f.useRef(typeof e=="function"?e():e),a=mbe(function(){var l=o.current;t.current.forEach(function(c){l=c(l)}),t.current=[],o.current=l,i({})});function s(l){t.current.push(l),a()}return[o.current,s]}var Uee={width:0,height:0,left:0,top:0,right:0};function VJe(e,t,n,r,i,o,a){var s=a.tabs,l=a.tabPosition,c=a.rtl,u,d,h;return["top","bottom"].includes(l)?(u="width",d=c?"right":"left",h=Math.abs(n)):(u="height",d="top",h=-n),f.useMemo(function(){if(!s.length)return[0,0];for(var p=s.length,m=p,v=0;v<p;v+=1){var y=e.get(s[v].key)||Uee;if(Math.floor(y[d]+y[u])>Math.floor(h+t)){m=v-1;break}}for(var S=0,b=p-1;b>=0;b-=1){var C=e.get(s[b].key)||Uee;if(C[d]<h){S=b+1;break}}return S>=m?[0,0]:[S,m]},[e,t,r,i,o,h,l,s.map(function(p){return p.key}).join("_"),c])}function Wee(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var KJe="TABS_DQ";function gbe(e){return String(e).replace(/"/g,KJe)}function BW(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var vbe=f.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,i=e.locale,o=e.style;return!r||r.showAdd===!1?null:f.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(s){r.onEdit("add",{event:s})}},r.addIcon||"+")}),Vee=f.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,i=e.extra;if(!i)return null;var o,a={};return ln(i)==="object"&&!f.isValidElement(i)?a=i:a.right=i,n==="right"&&(o=a.right),n==="left"&&(o=a.left),o?f.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},o):null}),qJe=f.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,i=e.tabs,o=e.locale,a=e.mobile,s=e.more,l=s===void 0?{}:s,c=e.style,u=e.className,d=e.editable,h=e.tabBarGutter,p=e.rtl,m=e.removeAriaLabel,v=e.onTabClick,y=e.getPopupContainer,S=e.popupClassName,b=f.useState(!1),C=Le(b,2),_=C[0],T=C[1],x=f.useState(null),E=Le(x,2),k=E[0],M=E[1],P=l.icon,D=P===void 0?"More":P,R="".concat(r,"-more-popup"),A="".concat(n,"-dropdown"),H=k!==null?"".concat(R,"-").concat(k):null,F=o==null?void 0:o.dropdownAriaLabel;function z(Y,ie){Y.preventDefault(),Y.stopPropagation(),d.onEdit("remove",{key:ie,event:Y})}var W=f.createElement(eC,{onClick:function(ie){var ce=ie.key,fe=ie.domEvent;v(ce,fe),T(!1)},prefixCls:"".concat(A,"-menu"),id:R,tabIndex:-1,role:"listbox","aria-activedescendant":H,selectedKeys:[k],"aria-label":F!==void 0?F:"expanded dropdown"},i.map(function(Y){var ie=Y.closable,ce=Y.disabled,fe=Y.closeIcon,ee=Y.key,ne=Y.label,ue=BW(ie,fe,d,ce);return f.createElement(kE,{key:ee,id:"".concat(R,"-").concat(ee),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(ee),disabled:ce},f.createElement("span",null,ne),ue&&f.createElement("button",{type:"button","aria-label":m||"remove",tabIndex:0,className:"".concat(A,"-menu-item-remove"),onClick:function(me){me.stopPropagation(),z(me,ee)}},fe||d.removeIcon||"×"))}));function q(Y){for(var ie=i.filter(function(ue){return!ue.disabled}),ce=ie.findIndex(function(ue){return ue.key===k})||0,fe=ie.length,ee=0;ee<fe;ee+=1){ce=(ce+Y+fe)%fe;var ne=ie[ce];if(!ne.disabled){M(ne.key);return}}}function Z(Y){var ie=Y.which;if(!_){[Pt.DOWN,Pt.SPACE,Pt.ENTER].includes(ie)&&(T(!0),Y.preventDefault());return}switch(ie){case Pt.UP:q(-1),Y.preventDefault();break;case Pt.DOWN:q(1),Y.preventDefault();break;case Pt.ESC:T(!1);break;case Pt.SPACE:case Pt.ENTER:k!==null&&v(k,Y);break}}f.useEffect(function(){var Y=document.getElementById(H);Y&&Y.scrollIntoView&&Y.scrollIntoView(!1)},[k]),f.useEffect(function(){_||M(null)},[_]);var N=ae({},p?"marginRight":"marginLeft",h);i.length||(N.visibility="hidden",N.order=1);var B=Re(ae({},"".concat(A,"-rtl"),p)),V=a?null:f.createElement(U0e,ut({prefixCls:A,overlay:W,visible:i.length?_:!1,onVisibleChange:T,overlayClassName:Re(B,S),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:y},l),f.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:N,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":R,id:"".concat(r,"-more"),"aria-expanded":_,onKeyDown:Z},D));return f.createElement("div",{className:Re("".concat(n,"-nav-operations"),u),style:c,ref:t},V,f.createElement(vbe,{prefixCls:n,locale:o,editable:d}))});const GJe=f.memo(qJe,function(e,t){return t.tabMoving});var YJe=function(t){var n=t.prefixCls,r=t.id,i=t.active,o=t.focus,a=t.tab,s=a.key,l=a.label,c=a.disabled,u=a.closeIcon,d=a.icon,h=t.closable,p=t.renderWrapper,m=t.removeAriaLabel,v=t.editable,y=t.onClick,S=t.onFocus,b=t.onBlur,C=t.onKeyDown,_=t.onMouseDown,T=t.onMouseUp,x=t.style,E=t.tabCount,k=t.currentPosition,M="".concat(n,"-tab"),P=BW(h,u,v,c);function D(z){c||y(z)}function R(z){z.preventDefault(),z.stopPropagation(),v.onEdit("remove",{key:s,event:z})}var A=f.useMemo(function(){return d&&typeof l=="string"?f.createElement("span",null,l):l},[l,d]),H=f.useRef(null);f.useEffect(function(){o&&H.current&&H.current.focus()},[o]);var F=f.createElement("div",{key:s,"data-node-key":gbe(s),className:Re(M,ae(ae(ae(ae({},"".concat(M,"-with-remove"),P),"".concat(M,"-active"),i),"".concat(M,"-disabled"),c),"".concat(M,"-focus"),o)),style:x,onClick:D},f.createElement("div",{ref:H,role:"tab","aria-selected":i,id:r&&"".concat(r,"-tab-").concat(s),className:"".concat(M,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(s),"aria-disabled":c,tabIndex:c?null:i?0:-1,onClick:function(W){W.stopPropagation(),D(W)},onKeyDown:C,onMouseDown:_,onMouseUp:T,onFocus:S,onBlur:b},o&&f.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"Tab ".concat(k," of ").concat(E)),d&&f.createElement("span",{className:"".concat(M,"-icon")},d),l&&A),P&&f.createElement("button",{type:"button","aria-label":m||"remove",tabIndex:i?0:-1,className:"".concat(M,"-remove"),onClick:function(W){W.stopPropagation(),R(W)}},u||v.removeIcon||"×"));return p?p(F):F},XJe=function(t,n){var r=t.offsetWidth,i=t.offsetHeight,o=t.offsetTop,a=t.offsetLeft,s=t.getBoundingClientRect(),l=s.width,c=s.height,u=s.left,d=s.top;return Math.abs(l-r)<1?[l,c,u-n.left,d-n.top]:[r,i,a,o]},ry=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 s=t.current.getBoundingClientRect(),l=s.width,c=s.height;if(Math.abs(l-i)<1)return[l,c]}return[i,a]},e5=function(t,n){return t[n?0:1]},Kee=f.forwardRef(function(e,t){var n=e.className,r=e.style,i=e.id,o=e.animated,a=e.activeKey,s=e.rtl,l=e.extra,c=e.editable,u=e.locale,d=e.tabPosition,h=e.tabBarGutter,p=e.children,m=e.onTabClick,v=e.onTabScroll,y=e.indicator,S=f.useContext(hP),b=S.prefixCls,C=S.tabs,_=f.useRef(null),T=f.useRef(null),x=f.useRef(null),E=f.useRef(null),k=f.useRef(null),M=f.useRef(null),P=f.useRef(null),D=d==="top"||d==="bottom",R=Bee(0,function(Yt,mt){D&&v&&v({direction:Yt>mt?"left":"right"})}),A=Le(R,2),H=A[0],F=A[1],z=Bee(0,function(Yt,mt){!D&&v&&v({direction:Yt>mt?"top":"bottom"})}),W=Le(z,2),q=W[0],Z=W[1],N=f.useState([0,0]),B=Le(N,2),V=B[0],Y=B[1],ie=f.useState([0,0]),ce=Le(ie,2),fe=ce[0],ee=ce[1],ne=f.useState([0,0]),ue=Le(ne,2),ye=ue[0],me=ue[1],pe=f.useState([0,0]),he=Le(pe,2),_e=he[0],le=he[1],xe=WJe(new Map),we=Le(xe,2),De=we[0],Fe=we[1],Ce=HJe(C,De,fe[0]),Te=e5(V,D),ke=e5(fe,D),Pe=e5(ye,D),Ne=e5(_e,D),We=Math.floor(Te)<Math.floor(ke+Pe),Q=We?Te-Ne:Te-Pe,K="".concat(b,"-nav-operations-hidden"),J=0,be=0;D&&s?(J=0,be=Math.max(0,ke-Q)):(J=Math.min(0,Q-ke),be=0);function Oe(Yt){return Yt<J?J:Yt>be?be:Yt}var Se=f.useRef(null),Ke=f.useState(),tt=Le(Ke,2),se=tt[0],ze=tt[1];function Ye(){ze(Date.now())}function Ue(){Se.current&&clearTimeout(Se.current)}UJe(E,function(Yt,mt){function Mt(zt,Dn){zt(function(Xn){var O=Oe(Xn+Dn);return O})}return We?(D?Mt(F,Yt):Mt(Z,mt),Ue(),Ye(),!0):!1}),f.useEffect(function(){return Ue(),se&&(Se.current=setTimeout(function(){ze(0)},100)),Ue},[se]);var Je=VJe(Ce,Q,D?H:q,ke,Pe,Ne,G(G({},e),{},{tabs:C})),Ze=Le(Je,2),rt=Ze[0],qt=Ze[1],St=cr(function(){var Yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a,mt=Ce.get(Yt)||{width:0,height:0,left:0,right:0,top:0};if(D){var Mt=H;s?mt.right<H?Mt=mt.right:mt.right+mt.width>H+Q&&(Mt=mt.right+mt.width-Q):mt.left<-H?Mt=-mt.left:mt.left+mt.width>-H+Q&&(Mt=-(mt.left+mt.width-Q)),Z(0),F(Oe(Mt))}else{var zt=q;mt.top<-q?zt=-mt.top:mt.top+mt.height>-q+Q&&(zt=-(mt.top+mt.height-Q)),F(0),Z(Oe(zt))}}),Ot=f.useState(),Bt=Le(Ot,2),Dt=Bt[0],an=Bt[1],Vt=f.useState(!1),Kt=Le(Vt,2),Qt=Kt[0],et=Kt[1],ot=C.filter(function(Yt){return!Yt.disabled}).map(function(Yt){return Yt.key}),Qe=function(mt){var Mt=ot.indexOf(Dt||a),zt=ot.length,Dn=(Mt+mt+zt)%zt,Xn=ot[Dn];an(Xn)},ct=function(mt){var Mt=mt.code,zt=s&&D,Dn=ot[0],Xn=ot[ot.length-1];switch(Mt){case"ArrowLeft":{D&&Qe(zt?1:-1);break}case"ArrowRight":{D&&Qe(zt?-1:1);break}case"ArrowUp":{mt.preventDefault(),D||Qe(-1);break}case"ArrowDown":{mt.preventDefault(),D||Qe(1);break}case"Home":{mt.preventDefault(),an(Dn);break}case"End":{mt.preventDefault(),an(Xn);break}case"Enter":case"Space":{mt.preventDefault(),m(Dt,mt);break}case"Backspace":case"Delete":{var O=ot.indexOf(Dt),j=C.find(function(Ae){return Ae.key===Dt}),oe=BW(j==null?void 0:j.closable,j==null?void 0:j.closeIcon,c,j==null?void 0:j.disabled);oe&&(mt.preventDefault(),mt.stopPropagation(),c.onEdit("remove",{key:Dt,event:mt}),O===ot.length-1?Qe(-1):Qe(1));break}}},Nt={};D?Nt[s?"marginRight":"marginLeft"]=h:Nt.marginTop=h;var Lt=C.map(function(Yt,mt){var Mt=Yt.key;return f.createElement(YJe,{id:i,prefixCls:b,key:Mt,tab:Yt,style:mt===0?void 0:Nt,closable:Yt.closable,editable:c,active:Mt===a,focus:Mt===Dt,renderWrapper:p,removeAriaLabel:u==null?void 0:u.removeAriaLabel,tabCount:ot.length,currentPosition:mt+1,onClick:function(Dn){m(Mt,Dn)},onKeyDown:ct,onFocus:function(){Qt||an(Mt),St(Mt),Ye(),E.current&&(s||(E.current.scrollLeft=0),E.current.scrollTop=0)},onBlur:function(){an(void 0)},onMouseDown:function(){et(!0)},onMouseUp:function(){et(!1)}})}),Zt=function(){return Fe(function(){var mt,Mt=new Map,zt=(mt=k.current)===null||mt===void 0?void 0:mt.getBoundingClientRect();return C.forEach(function(Dn){var Xn,O=Dn.key,j=(Xn=k.current)===null||Xn===void 0?void 0:Xn.querySelector('[data-node-key="'.concat(gbe(O),'"]'));if(j){var oe=XJe(j,zt),Ae=Le(oe,4),Ge=Ae[0],ft=Ae[1],Jt=Ae[2],on=Ae[3];Mt.set(O,{width:Ge,height:ft,left:Jt,top:on})}}),Mt})};f.useEffect(function(){Zt()},[C.map(function(Yt){return Yt.key}).join("_")]);var Wt=mbe(function(){var Yt=ry(_),mt=ry(T),Mt=ry(x);Y([Yt[0]-mt[0]-Mt[0],Yt[1]-mt[1]-Mt[1]]);var zt=ry(P);me(zt);var Dn=ry(M);le(Dn);var Xn=ry(k);ee([Xn[0]-zt[0],Xn[1]-zt[1]]),Zt()}),At=C.slice(0,rt),$t=C.slice(qt+1),Gt=[].concat(pt(At),pt($t)),Ft=Ce.get(a),cn=BJe({activeTabOffset:Ft,horizontal:D,indicator:y,rtl:s}),_t=cn.style;f.useEffect(function(){St()},[a,J,be,Wee(Ft),Wee(Ce),D]),f.useEffect(function(){Wt()},[s]);var jt=!!Gt.length,nn="".concat(b,"-nav-wrap"),Ht,Tt,gt,Ve;return D?s?(Tt=H>0,Ht=H!==be):(Ht=H<0,Tt=H!==J):(gt=q<0,Ve=q!==J),f.createElement(Va,{onResize:Wt},f.createElement("div",{ref:Qd(t,_),role:"tablist","aria-orientation":D?"horizontal":"vertical",className:Re("".concat(b,"-nav"),n),style:r,onKeyDown:function(){Ye()}},f.createElement(Vee,{ref:T,position:"left",extra:l,prefixCls:b}),f.createElement(Va,{onResize:Wt},f.createElement("div",{className:Re(nn,ae(ae(ae(ae({},"".concat(nn,"-ping-left"),Ht),"".concat(nn,"-ping-right"),Tt),"".concat(nn,"-ping-top"),gt),"".concat(nn,"-ping-bottom"),Ve)),ref:E},f.createElement(Va,{onResize:Wt},f.createElement("div",{ref:k,className:"".concat(b,"-nav-list"),style:{transform:"translate(".concat(H,"px, ").concat(q,"px)"),transition:se?"none":void 0}},Lt,f.createElement(vbe,{ref:P,prefixCls:b,locale:u,editable:c,style:G(G({},Lt.length===0?void 0:Nt),{},{visibility:jt?"hidden":null})}),f.createElement("div",{className:Re("".concat(b,"-ink-bar"),ae({},"".concat(b,"-ink-bar-animated"),o.inkBar)),style:_t}))))),f.createElement(GJe,ut({},e,{removeAriaLabel:u==null?void 0:u.removeAriaLabel,ref:M,prefixCls:b,tabs:Gt,className:!jt&&K,tabMoving:!!se})),f.createElement(Vee,{ref:x,position:"right",extra:l,prefixCls:b})))}),ybe=f.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,o=e.id,a=e.active,s=e.tabKey,l=e.children;return f.createElement("div",{id:o&&"".concat(o,"-panel-").concat(s),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":o&&"".concat(o,"-tab-").concat(s),"aria-hidden":!a,style:i,className:Re(n,a&&"".concat(n,"-active"),r),ref:t},l)}),QJe=["renderTabBar"],ZJe=["label","key"],JJe=function(t){var n=t.renderTabBar,r=tn(t,QJe),i=f.useContext(hP),o=i.tabs;if(n){var a=G(G({},r),{},{panes:o.map(function(s){var l=s.label,c=s.key,u=tn(s,ZJe);return f.createElement(ybe,ut({tab:l,key:c,tabKey:c},u))})});return n(a,Kee)}return f.createElement(Kee,r)},eet=["key","forceRender","style","className","destroyInactiveTabPane"],tet=function(t){var n=t.id,r=t.activeKey,i=t.animated,o=t.tabPosition,a=t.destroyInactiveTabPane,s=f.useContext(hP),l=s.prefixCls,c=s.tabs,u=i.tabPane,d="".concat(l,"-tabpane");return f.createElement("div",{className:Re("".concat(l,"-content-holder"))},f.createElement("div",{className:Re("".concat(l,"-content"),"".concat(l,"-content-").concat(o),ae({},"".concat(l,"-content-animated"),u))},c.map(function(h){var p=h.key,m=h.forceRender,v=h.style,y=h.className,S=h.destroyInactiveTabPane,b=tn(h,eet),C=p===r;return f.createElement(ha,ut({key:p,visible:C,forceRender:m,removeOnLeave:!!(a||S),leavedClassName:"".concat(d,"-hidden")},i.tabPaneMotion),function(_,T){var x=_.style,E=_.className;return f.createElement(ybe,ut({},b,{prefixCls:d,id:n,tabKey:p,animated:u,active:C,style:G(G({},v),x),className:Re(y,E),ref:T}))})})))};function net(){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=G({inkBar:!0},ln(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var ret=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],qee=0,iet=f.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,i=r===void 0?"rc-tabs":r,o=e.className,a=e.items,s=e.direction,l=e.activeKey,c=e.defaultActiveKey,u=e.editable,d=e.animated,h=e.tabPosition,p=h===void 0?"top":h,m=e.tabBarGutter,v=e.tabBarStyle,y=e.tabBarExtraContent,S=e.locale,b=e.more,C=e.destroyInactiveTabPane,_=e.renderTabBar,T=e.onChange,x=e.onTabClick,E=e.onTabScroll,k=e.getPopupContainer,M=e.popupClassName,P=e.indicator,D=tn(e,ret),R=f.useMemo(function(){return(a||[]).filter(function(_e){return _e&&ln(_e)==="object"&&"key"in _e})},[a]),A=s==="rtl",H=net(d),F=f.useState(!1),z=Le(F,2),W=z[0],q=z[1];f.useEffect(function(){q(qO())},[]);var Z=Jn(function(){var _e;return(_e=R[0])===null||_e===void 0?void 0:_e.key},{value:l,defaultValue:c}),N=Le(Z,2),B=N[0],V=N[1],Y=f.useState(function(){return R.findIndex(function(_e){return _e.key===B})}),ie=Le(Y,2),ce=ie[0],fe=ie[1];f.useEffect(function(){var _e=R.findIndex(function(xe){return xe.key===B});if(_e===-1){var le;_e=Math.max(0,Math.min(ce,R.length-1)),V((le=R[_e])===null||le===void 0?void 0:le.key)}fe(_e)},[R.map(function(_e){return _e.key}).join("_"),B,ce]);var ee=Jn(null,{value:n}),ne=Le(ee,2),ue=ne[0],ye=ne[1];f.useEffect(function(){n||(ye("rc-tabs-".concat(qee)),qee+=1)},[]);function me(_e,le){x==null||x(_e,le);var xe=_e!==B;V(_e),xe&&(T==null||T(_e))}var pe={id:ue,activeKey:B,animated:H,tabPosition:p,rtl:A,mobile:W},he=G(G({},pe),{},{editable:u,locale:S,more:b,tabBarGutter:m,onTabClick:me,onTabScroll:E,extra:y,style:v,panes:null,getPopupContainer:k,popupClassName:M,indicator:P});return f.createElement(hP.Provider,{value:{tabs:R,prefixCls:i}},f.createElement("div",ut({ref:t,id:n,className:Re(i,"".concat(i,"-").concat(p),ae(ae(ae({},"".concat(i,"-mobile"),W),"".concat(i,"-editable"),u),"".concat(i,"-rtl"),A),o)},D),f.createElement(JJe,ut({},he,{renderTabBar:_})),f.createElement(tet,ut({destroyInactiveTabPane:C},pe,{animated:H}))))});const oet={motionAppear:!1,motionEnter:!0,motionLeave:!0};function aet(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({},oet),{motionName:as(e,"switch")})),n}var set=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 cet(e){return e.filter(t=>t)}function uet(e,t){if(e)return e;const n=Uo(t).map(r=>{if(f.isValidElement(r)){const{key:i,props:o}=r,a=o||{},{tab:s}=a,l=set(a,["tab"]);return Object.assign(Object.assign({key:String(i)},l),{label:s})}return null});return cet(n)}const det=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}`}}}}},[qf(e,"slide-up"),qf(e,"slide-down")]]},fet=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:`${je(e.lineWidth)} ${e.lineType} ${o}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-tab-focus`]:Object.assign({},jd(e,-3)),[`${t}-ink-bar`]:{visibility:"hidden"},[`& ${t}-tab${t}-tab-focus ${t}-tab-btn`]:{outline:"none"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:je(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${je(e.borderRadiusLG)} ${je(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${je(e.borderRadiusLG)} ${je(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:je(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${je(e.borderRadiusLG)} 0 0 ${je(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 ${je(e.borderRadiusLG)} ${je(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},het=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},$r(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:`${je(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({},Yl),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${je(e.paddingXXS)} ${je(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"}}})}})}},pet=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:o,verticalItemMargin:a,calc:s}=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:`${je(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:s(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:je(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${je(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:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${je(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},met=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 ${je(e.borderRadius)} ${je(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${je(e.borderRadius)} ${je(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${je(e.borderRadius)} ${je(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${je(e.borderRadius)} 0 0 ${je(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},get=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:o,horizontalItemPadding:a,itemSelectedColor:s,itemColor:l}=e,c=`${t}-tab`;return{[c]:{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:l,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${c}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({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}},gl(e)),"&:hover":{color:r},[`&${c}-active ${c}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${c}-focus ${c}-btn`]:Object.assign({},jd(e)),[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${i}`]:{margin:0},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:o}}}},vet=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:je(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:je(e.marginXS)},marginLeft:{_skip_check_:!0,value:je(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"}}}}},yet=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:i,itemHoverColor:o,itemActiveColor:a,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},$r(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,marginLeft:{_skip_check_:!0,value:i},padding:je(e.paddingXS),background:"transparent",border:`${je(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${je(e.borderRadiusLG)} ${je(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}},gl(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),get(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},gl(e)),{"&-hidden":{display:"none"}})}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},bet=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}},Cet=Tr("Tabs",e=>{const t=ur(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${je(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${je(e.horizontalItemGutter)}`});return[met(t),vet(t),pet(t),het(t),fet(t),yet(t),det(t)]},bet),xet=()=>null;var wet=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 rC=e=>{var t,n,r,i,o,a,s,l,c,u,d;const{type:h,className:p,rootClassName:m,size:v,onEdit:y,hideAdd:S,centered:b,addIcon:C,removeIcon:_,moreIcon:T,more:x,popupClassName:E,children:k,items:M,animated:P,style:D,indicatorSize:R,indicator:A}=e,H=wet(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:F}=H,{direction:z,tabs:W,getPrefixCls:q,getPopupContainer:Z}=f.useContext(hn),N=q("tabs",F),B=_i(N),[V,Y,ie]=Cet(N,B);let ce;h==="editable-card"&&(ce={onEdit:(pe,he)=>{let{key:_e,event:le}=he;y==null||y(pe==="add"?le:_e,pe)},removeIcon:(t=_??(W==null?void 0:W.removeIcon))!==null&&t!==void 0?t:f.createElement(nh,null),addIcon:(C??(W==null?void 0:W.addIcon))||f.createElement(jJe,null),showAdd:S!==!0});const fe=q(),ee=Ro(v),ne=uet(M,k),ue=aet(N,P),ye=Object.assign(Object.assign({},W==null?void 0:W.style),D),me={align:(n=A==null?void 0:A.align)!==null&&n!==void 0?n:(r=W==null?void 0:W.indicator)===null||r===void 0?void 0:r.align,size:(s=(o=(i=A==null?void 0:A.size)!==null&&i!==void 0?i:R)!==null&&o!==void 0?o:(a=W==null?void 0:W.indicator)===null||a===void 0?void 0:a.size)!==null&&s!==void 0?s:W==null?void 0:W.indicatorSize};return V(f.createElement(iet,Object.assign({direction:z,getPopupContainer:Z},H,{items:ne,className:Re({[`${N}-${ee}`]:ee,[`${N}-card`]:["card","editable-card"].includes(h),[`${N}-editable-card`]:h==="editable-card",[`${N}-centered`]:b},W==null?void 0:W.className,p,m,Y,ie,B),popupClassName:Re(E,Y,ie,B),style:ye,editable:ce,more:Object.assign({icon:(d=(u=(c=(l=W==null?void 0:W.more)===null||l===void 0?void 0:l.icon)!==null&&c!==void 0?c:W==null?void 0:W.moreIcon)!==null&&u!==void 0?u:T)!==null&&d!==void 0?d:f.createElement(_W,null),transitionName:`${fe}-slide-up`},x),prefixCls:N,animated:ue,indicator:me})))};rC.TabPane=xet;var _et=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 bbe=e=>{var{prefixCls:t,className:n,hoverable:r=!0}=e,i=_et(e,["prefixCls","className","hoverable"]);const{getPrefixCls:o}=f.useContext(hn),a=o("card",t),s=Re(`${a}-grid`,n,{[`${a}-grid-hoverable`]:r});return f.createElement("div",Object.assign({},i,{className:s}))},Eet=e=>{const{antCls:t,componentCls:n,headerHeight:r,headerPadding:i,tabsMarginBottom:o}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${je(i)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${je(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${je(e.borderRadiusLG)} ${je(e.borderRadiusLG)} 0 0`},Fd()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},Yl),{[`
|
||
> ${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:`${je(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},Tet=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:i}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
|
||
${je(i)} 0 0 0 ${n},
|
||
0 ${je(i)} 0 0 ${n},
|
||
${je(i)} ${je(i)} 0 0 ${n},
|
||
${je(i)} 0 0 0 ${n} inset,
|
||
0 ${je(i)} 0 0 ${n} inset;
|
||
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},ket=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:`${je(e.lineWidth)} ${e.lineType} ${o}`,display:"flex",borderRadius:`0 0 ${je(e.borderRadiusLG)} ${je(e.borderRadiusLG)}`},Fd()),{"& > 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:je(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:i,lineHeight:je(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${je(e.lineWidth)} ${e.lineType} ${o}`}}})},Oet=e=>Object.assign(Object.assign({margin:`${je(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},Fd()),{"&-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},Yl),"&-description":{color:e.colorTextDescription}}),Pet=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:i}=e;return{[`${t}-head`]:{padding:`0 ${je(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${je(e.padding)} ${je(i)}`}}},Met=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},Iet=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:i,boxShadowTertiary:o,bodyPadding:a,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},$r(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:o},[`${t}-head`]:Eet(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:a,borderRadius:`0 0 ${je(e.borderRadiusLG)} ${je(e.borderRadiusLG)}`},Fd()),[`${t}-grid`]:Tet(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${je(e.borderRadiusLG)} ${je(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:ket(e),[`${t}-meta`]:Oet(e)}),[`${t}-bordered`]:{border:`${je(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:`${je(e.borderRadiusLG)} ${je(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`]:Pet(e),[`${t}-loading`]:Met(e),[`${t}-rtl`]:{direction:"rtl"}}},$et=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:i,headerFontSizeSM:o}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:i,padding:`0 ${je(r)}`,fontSize:o,[`> ${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"}}}}},Ret=e=>{var t,n;return{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,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:(t=e.bodyPadding)!==null&&t!==void 0?t:e.paddingLG,headerPadding:(n=e.headerPadding)!==null&&n!==void 0?n:e.paddingLG}},Aet=Tr("Card",e=>{const t=ur(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[Iet(t),$et(t)]},Ret);var Gee=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 Net=e=>{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return f.createElement("ul",{className:t,style:r},n.map((i,o)=>{const a=`action-${o}`;return f.createElement("li",{style:{width:`${100/n.length}%`},key:a},f.createElement("span",null,i))}))},Det=f.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:o,extra:a,headStyle:s={},bodyStyle:l={},title:c,loading:u,bordered:d=!0,size:h,type:p,cover:m,actions:v,tabList:y,children:S,activeTabKey:b,defaultActiveTabKey:C,tabBarExtraContent:_,hoverable:T,tabProps:x={},classNames:E,styles:k}=e,M=Gee(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:P,direction:D,card:R}=f.useContext(hn),A=De=>{var Fe;(Fe=e.onTabChange)===null||Fe===void 0||Fe.call(e,De)},H=De=>{var Fe;return Re((Fe=R==null?void 0:R.classNames)===null||Fe===void 0?void 0:Fe[De],E==null?void 0:E[De])},F=De=>{var Fe;return Object.assign(Object.assign({},(Fe=R==null?void 0:R.styles)===null||Fe===void 0?void 0:Fe[De]),k==null?void 0:k[De])},z=f.useMemo(()=>{let De=!1;return f.Children.forEach(S,Fe=>{(Fe==null?void 0:Fe.type)===bbe&&(De=!0)}),De},[S]),W=P("card",n),[q,Z,N]=Aet(W),B=f.createElement(kp,{loading:!0,active:!0,paragraph:{rows:4},title:!1},S),V=b!==void 0,Y=Object.assign(Object.assign({},x),{[V?"activeKey":"defaultActiveKey"]:V?b:C,tabBarExtraContent:_});let ie;const ce=Ro(h),fe=!ce||ce==="default"?"large":ce,ee=y?f.createElement(rC,Object.assign({size:fe},Y,{className:`${W}-head-tabs`,onChange:A,items:y.map(De=>{var{tab:Fe}=De,Ce=Gee(De,["tab"]);return Object.assign({label:Fe},Ce)})})):null;if(c||a||ee){const De=Re(`${W}-head`,H("header")),Fe=Re(`${W}-head-title`,H("title")),Ce=Re(`${W}-extra`,H("extra")),Te=Object.assign(Object.assign({},s),F("header"));ie=f.createElement("div",{className:De,style:Te},f.createElement("div",{className:`${W}-head-wrapper`},c&&f.createElement("div",{className:Fe,style:F("title")},c),a&&f.createElement("div",{className:Ce,style:F("extra")},a)),ee)}const ne=Re(`${W}-cover`,H("cover")),ue=m?f.createElement("div",{className:ne,style:F("cover")},m):null,ye=Re(`${W}-body`,H("body")),me=Object.assign(Object.assign({},l),F("body")),pe=f.createElement("div",{className:ye,style:me},u?B:S),he=Re(`${W}-actions`,H("actions")),_e=v!=null&&v.length?f.createElement(Net,{actionClasses:he,actionStyle:F("actions"),actions:v}):null,le=Pr(M,["onTabChange"]),xe=Re(W,R==null?void 0:R.className,{[`${W}-loading`]:u,[`${W}-bordered`]:d,[`${W}-hoverable`]:T,[`${W}-contain-grid`]:z,[`${W}-contain-tabs`]:y==null?void 0:y.length,[`${W}-${ce}`]:ce,[`${W}-type-${p}`]:!!p,[`${W}-rtl`]:D==="rtl"},r,i,Z,N),we=Object.assign(Object.assign({},R==null?void 0:R.style),o);return q(f.createElement("div",Object.assign({ref:t},le,{className:xe,style:we}),ie,ue,pe,_e))});var Let=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 Fet=e=>{const{prefixCls:t,className:n,avatar:r,title:i,description:o}=e,a=Let(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=f.useContext(hn),l=s("card",t),c=Re(`${l}-meta`,n),u=r?f.createElement("div",{className:`${l}-meta-avatar`},r):null,d=i?f.createElement("div",{className:`${l}-meta-title`},i):null,h=o?f.createElement("div",{className:`${l}-meta-description`},o):null,p=d||h?f.createElement("div",{className:`${l}-meta-detail`},d,h):null;return f.createElement("div",Object.assign({},a,{className:c}),u,p)},Zv=Det;Zv.Grid=bbe;Zv.Meta=Fet;function jet(e,t,n){var r=n||{},i=r.noTrailing,o=i===void 0?!1:i,a=r.noLeading,s=a===void 0?!1:a,l=r.debounceMode,c=l===void 0?void 0:l,u,d=!1,h=0;function p(){u&&clearTimeout(u)}function m(y){var S=y||{},b=S.upcomingOnly,C=b===void 0?!1:b;p(),d=!C}function v(){for(var y=arguments.length,S=new Array(y),b=0;b<y;b++)S[b]=arguments[b];var C=this,_=Date.now()-h;if(d)return;function T(){h=Date.now(),t.apply(C,S)}function x(){u=void 0}!s&&c&&!u&&T(),p(),c===void 0&&_>e?s?(h=Date.now(),o||(u=setTimeout(c?x:T,e))):T():o!==!0&&(u=setTimeout(c?x:T,c===void 0?e-_:e))}return v.cancel=m,v}function Bet(e,t,n){var r={},i=r.atBegin,o=i===void 0?!1:i;return jet(e,t,{debounceMode:o!==!1})}var iC=f.createContext({}),hb="__rc_cascader_search_mark__",Het=function(t,n,r){var i=r.label,o=i===void 0?"":i;return n.some(function(a){return String(a[o]).toLowerCase().includes(t.toLowerCase())})},zet=function(t,n,r,i){return n.map(function(o){return o[i.label]}).join(" / ")},Uet=function(t,n,r,i,o,a){var s=o.filter,l=s===void 0?Het:s,c=o.render,u=c===void 0?zet:c,d=o.limit,h=d===void 0?50:d,p=o.sort;return f.useMemo(function(){var m=[];if(!t)return[];function v(y,S){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;y.forEach(function(C){if(!(!p&&h!==!1&&h>0&&m.length>=h)){var _=[].concat(pt(S),[C]),T=C[r.children],x=b||C.disabled;if((!T||T.length===0||a)&&l(t,_,{label:r.label})){var E;m.push(G(G({},C),{},(E={disabled:x},ae(E,r.label,u(t,_,i,r)),ae(E,hb,_),ae(E,r.children,void 0),E)))}T&&v(C[r.children],_,x)}})}return v(n,[]),p&&m.sort(function(y,S){return p(y[hb],S[hb],t,r)}),h!==!1&&h>0?m.slice(0,h):m},[t,n,r,i,u,a,l,p,h])},HW="__RC_CASCADER_SPLIT__",Sbe="SHOW_PARENT",Cbe="SHOW_CHILD";function Od(e){return e.join(HW)}function tS(e){return e.map(Od)}function Wet(e){return e.split(HW)}function xbe(e){var t=e||{},n=t.label,r=t.value,i=t.children,o=r||"value";return{label:n||"label",value:o,key:o,children:i||"children"}}function T2(e,t){var n,r;return(n=e.isLeaf)!==null&&n!==void 0?n:!((r=e[t.children])!==null&&r!==void 0&&r.length)}function Vet(e){var t=e.parentElement;if(t){var n=e.offsetTop-t.offsetTop;n-t.scrollTop<0?t.scrollTo({top:n}):n+e.offsetHeight-t.scrollTop>t.offsetHeight&&t.scrollTo({top:n+e.offsetHeight-t.offsetHeight})}}function wbe(e,t){return e.map(function(n){var r;return(r=n[hb])===null||r===void 0?void 0:r.map(function(i){return i[t.value]})})}function Ket(e){return Array.isArray(e)&&Array.isArray(e[0])}function G9(e){return e?Ket(e)?e:(e.length===0?[]:[e]).map(function(t){return Array.isArray(t)?t:[t]}):[]}function _be(e,t,n){var r=new Set(e),i=t();return e.filter(function(o){var a=i[o],s=a?a.parent:null,l=a?a.children:null;return a&&a.node.disabled?!0:n===Cbe?!(l&&l.some(function(c){return c.key&&r.has(c.key)})):!(s&&!s.node.disabled&&r.has(s.key))})}function nS(e,t,n){for(var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=t,o=[],a=function(){var c,u,d,h=e[s],p=(c=i)===null||c===void 0?void 0:c.findIndex(function(v){var y=v[n.value];return r?String(y)===String(h):y===h}),m=p!==-1?(u=i)===null||u===void 0?void 0:u[p]:null;o.push({value:(d=m==null?void 0:m[n.value])!==null&&d!==void 0?d:h,index:p,option:m}),i=m==null?void 0:m[n.children]},s=0;s<e.length;s+=1)a();return o}const qet=function(e,t,n,r,i){return f.useMemo(function(){var o=i||function(a){var s=r?a.slice(-1):a,l=" / ";return s.every(function(c){return["string","number"].includes(ln(c))})?s.join(l):s.reduce(function(c,u,d){var h=f.isValidElement(u)?f.cloneElement(u,{key:d}):u;return d===0?[h]:[].concat(pt(c),[l,h])},[])};return e.map(function(a){var s,l=nS(a,t,n),c=o(l.map(function(d){var h,p=d.option,m=d.value;return(h=p==null?void 0:p[n.label])!==null&&h!==void 0?h:m}),l.map(function(d){var h=d.option;return h})),u=Od(a);return{label:c,value:u,key:u,valueCells:a,disabled:(s=l[l.length-1])===null||s===void 0||(s=s.option)===null||s===void 0?void 0:s.disabled}})},[e,t,n,i,r])};function Ebe(e,t){return f.useCallback(function(n){var r=[],i=[];return n.forEach(function(o){var a=nS(o,e,t);a.every(function(s){return s.option})?i.push(o):r.push(o)}),[i,r]},[e,t])}function jl(e,t){return e[t]}var Get=["children"];function Tbe(e,t){return"".concat(e,"-").concat(t)}function Yet(e){return e&&e.type&&e.type.isTreeNode}function RE(e,t){return e??t}function rS(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 kbe(e){function t(n){var r=Uo(n);return r.map(function(i){if(!Yet(i))return fi(!i,"Tree/TreeNode can only accept TreeNode as children."),null;var o=i.key,a=i.props,s=a.children,l=tn(a,Get),c=G({key:o},l),u=t(s);return u.length&&(c.children=u),c}).filter(function(i){return i})}return t(e)}function WR(e,t,n){var r=rS(n),i=r._title,o=r.key,a=r.children,s=new Set(t===!0?[]:t),l=[];function c(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return u.map(function(h,p){for(var m=Tbe(d?d.pos:"0",p),v=RE(h[o],m),y,S=0;S<i.length;S+=1){var b=i[S];if(h[b]!==void 0){y=h[b];break}}var C=Object.assign(Pr(h,[].concat(pt(i),[o,a])),{title:y,key:v,parent:d,pos:m,children:null,data:h,isStart:[].concat(pt(d?d.isStart:[]),[p===0]),isEnd:[].concat(pt(d?d.isEnd:[]),[p===u.length-1])});return l.push(C),t===!0||s.has(v)?C.children=c(h[a]||[],C):C.children=[],C})}return c(e),l}function Xet(e,t,n){var r={};ln(n)==="object"?r=n:r={externalGetKey:n},r=r||{};var i=r,o=i.childrenPropName,a=i.externalGetKey,s=i.fieldNames,l=rS(s),c=l.key,u=l.children,d=o||u,h;a?typeof a=="string"?h=function(v){return v[a]}:typeof a=="function"&&(h=function(v){return a(v)}):h=function(v,y){return RE(v[c],y)};function p(m,v,y,S){var b=m?m[d]:e,C=m?Tbe(y.pos,v):"0",_=m?[].concat(pt(S),[m]):[];if(m){var T=h(m,C),x={node:m,index:v,pos:C,key:T,parentPos:y.node?y.pos:null,level:y.level+1,nodes:_};t(x)}b&&b.forEach(function(E,k){p(E,k,{node:m,pos:C,level:y?y.level+1:-1},_)})}p(null)}function AE(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,s=t.fieldNames,l=arguments.length>2?arguments[2]:void 0,c=o||l,u={},d={},h={posEntities:u,keyEntities:d};return n&&(h=n(h)||h),Xet(e,function(p){var m=p.node,v=p.index,y=p.pos,S=p.key,b=p.parentPos,C=p.level,_=p.nodes,T={node:m,nodes:_,index:v,key:S,pos:y,level:C},x=RE(S,y);u[y]=T,d[x]=T,T.parent=u[b],T.parent&&(T.parent.children=T.parent.children||[],T.parent.children.push(T)),r&&r(T,h)},{externalGetKey:c,childrenPropName:a,fieldNames:s}),i&&i(h),h}function rw(e,t){var n=t.expandedKeys,r=t.selectedKeys,i=t.loadedKeys,o=t.loadingKeys,a=t.checkedKeys,s=t.halfCheckedKeys,l=t.dragOverNodeKey,c=t.dropPosition,u=t.keyEntities,d=jl(u,e),h={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:s.indexOf(e)!==-1,pos:String(d?d.pos:""),dragOver:l===e&&c===0,dragOverGapTop:l===e&&c===-1,dragOverGapBottom:l===e&&c===1};return h}function wa(e){var t=e.data,n=e.expanded,r=e.selected,i=e.checked,o=e.loaded,a=e.loading,s=e.halfChecked,l=e.dragOver,c=e.dragOverGapTop,u=e.dragOverGapBottom,d=e.pos,h=e.active,p=e.eventKey,m=G(G({},t),{},{expanded:n,selected:r,checked:i,loaded:o,loading:a,halfChecked:s,dragOver:l,dragOverGapTop:c,dragOverGapBottom:u,pos:d,active:h,key:p});return"props"in m||Object.defineProperty(m,"props",{get:function(){return fi(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),m}const Qet=function(e,t){var n=f.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),r=f.useCallback(function(){return n.current.options!==e&&(n.current.options=e,n.current.info=AE(e,{fieldNames:t,initWrapper:function(o){return G(G({},o),{},{pathKeyEntities:{}})},processEntity:function(o,a){var s=o.nodes.map(function(l){return l[t.value]}).join(HW);a.pathKeyEntities[s]=o,o.key=s}})),n.current.info.pathKeyEntities},[t,e]);return r};function Obe(e,t){var n=f.useMemo(function(){return t||[]},[t]),r=Qet(n,e),i=f.useCallback(function(o){var a=r();return o.map(function(s){var l=a[s].nodes;return l.map(function(c){return c[e.value]})})},[r,e]);return[n,r,i]}function Zet(e){return f.useMemo(function(){if(!e)return[!1,{}];var t={matchInputWidth:!0,limit:50};return e&&ln(e)==="object"&&(t=G(G({},t),e)),t.limit<=0&&(t.limit=!1),[!0,t]},[e])}function Pbe(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function Jet(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,i=t.checkable;return!!(n||r)||i===!1}function ett(e,t,n,r){for(var i=new Set(e),o=new Set,a=0;a<=n;a+=1){var s=t.get(a)||new Set;s.forEach(function(d){var h=d.key,p=d.node,m=d.children,v=m===void 0?[]:m;i.has(h)&&!r(p)&&v.filter(function(y){return!r(y.node)}).forEach(function(y){i.add(y.key)})})}for(var l=new Set,c=n;c>=0;c-=1){var u=t.get(c)||new Set;u.forEach(function(d){var h=d.parent,p=d.node;if(!(r(p)||!d.parent||l.has(d.parent.key))){if(r(d.parent.node)){l.add(h.key);return}var m=!0,v=!1;(h.children||[]).filter(function(y){return!r(y.node)}).forEach(function(y){var S=y.key,b=i.has(S);m&&!b&&(m=!1),!v&&(b||o.has(S))&&(v=!0)}),m&&i.add(h.key),v&&o.add(h.key),l.add(h.key)}})}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(Pbe(o,i))}}function ttt(e,t,n,r,i){for(var o=new Set(e),a=new Set(t),s=0;s<=r;s+=1){var l=n.get(s)||new Set;l.forEach(function(h){var p=h.key,m=h.node,v=h.children,y=v===void 0?[]:v;!o.has(p)&&!a.has(p)&&!i(m)&&y.filter(function(S){return!i(S.node)}).forEach(function(S){o.delete(S.key)})})}a=new Set;for(var c=new Set,u=r;u>=0;u-=1){var d=n.get(u)||new Set;d.forEach(function(h){var p=h.parent,m=h.node;if(!(i(m)||!h.parent||c.has(h.parent.key))){if(i(h.parent.node)){c.add(p.key);return}var v=!0,y=!1;(p.children||[]).filter(function(S){return!i(S.node)}).forEach(function(S){var b=S.key,C=o.has(b);v&&!C&&(v=!1),!y&&(C||a.has(b))&&(y=!0)}),v||o.delete(p.key),y&&a.add(p.key),c.add(p.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(Pbe(a,o))}}function bu(e,t,n,r){var i=[],o;r?o=r:o=Jet;var a=new Set(e.filter(function(u){var d=!!jl(n,u);return d||i.push(u),d})),s=new Map,l=0;Object.keys(n).forEach(function(u){var d=n[u],h=d.level,p=s.get(h);p||(p=new Set,s.set(h,p)),p.add(d),l=Math.max(l,h)}),fi(!i.length,"Tree missing follow keys: ".concat(i.slice(0,100).map(function(u){return"'".concat(u,"'")}).join(", ")));var c;return t===!0?c=ett(a,s,l,o):c=ttt(a,t.halfCheckedKeys,s,l,o),c}function Mbe(e,t,n,r,i,o,a,s){return function(l){if(!e)t(l);else{var c=Od(l),u=tS(n),d=tS(r),h=u.includes(c),p=i.some(function(x){return Od(x)===c}),m=n,v=i;if(p&&!h)v=i.filter(function(x){return Od(x)!==c});else{var y=h?u.filter(function(x){return x!==c}):[].concat(pt(u),[c]),S=o(),b;if(h){var C=bu(y,{checked:!1,halfCheckedKeys:d},S);b=C.checkedKeys}else{var _=bu(y,!0,S);b=_.checkedKeys}var T=_be(b,o,s);m=a(T)}t([].concat(pt(v),pt(m)))}}}function Ibe(e,t,n,r,i){return f.useMemo(function(){var o=i(t),a=Le(o,2),s=a[0],l=a[1];if(!e||!t.length)return[s,[],l];var c=tS(s),u=n(),d=bu(c,!0,u),h=d.checkedKeys,p=d.halfCheckedKeys;return[r(h),r(p),l]},[e,t,n,r,i])}var ntt=f.memo(function(e){var t=e.children;return t},function(e,t){return!t.open});function rtt(e){var t,n=e.prefixCls,r=e.checked,i=e.halfChecked,o=e.disabled,a=e.onClick,s=e.disableCheckbox,l=f.useContext(iC),c=l.checkable,u=typeof c!="boolean"?c:null;return f.createElement("span",{className:Re("".concat(n),(t={},ae(t,"".concat(n,"-checked"),r),ae(t,"".concat(n,"-indeterminate"),!r&&i),ae(t,"".concat(n,"-disabled"),o||s),t)),onClick:a},u)}var $be="__cascader_fix_label__";function itt(e){var t=e.prefixCls,n=e.multiple,r=e.options,i=e.activeValue,o=e.prevValuePath,a=e.onToggleOpen,s=e.onSelect,l=e.onActive,c=e.checkedSet,u=e.halfCheckedSet,d=e.loadingKeys,h=e.isSelectable,p=e.disabled,m="".concat(t,"-menu"),v="".concat(t,"-menu-item"),y=f.useContext(iC),S=y.fieldNames,b=y.changeOnSelect,C=y.expandTrigger,_=y.expandIcon,T=y.loadingIcon,x=y.dropdownMenuColumnStyle,E=y.optionRender,k=C==="hover",M=function(R){return p||R},P=f.useMemo(function(){return r.map(function(D){var R,A=D.disabled,H=D.disableCheckbox,F=D[hb],z=(R=D[$be])!==null&&R!==void 0?R:D[S.label],W=D[S.value],q=T2(D,S),Z=F?F.map(function(ie){return ie[S.value]}):[].concat(pt(o),[W]),N=Od(Z),B=d.includes(N),V=c.has(N),Y=u.has(N);return{disabled:A,label:z,value:W,isLeaf:q,isLoading:B,checked:V,halfChecked:Y,option:D,disableCheckbox:H,fullPath:Z,fullPathKey:N}})},[r,c,S,u,d,o]);return f.createElement("ul",{className:m,role:"menu"},P.map(function(D){var R,A=D.disabled,H=D.label,F=D.value,z=D.isLeaf,W=D.isLoading,q=D.checked,Z=D.halfChecked,N=D.option,B=D.fullPath,V=D.fullPathKey,Y=D.disableCheckbox,ie=function(){if(!M(A)){var ne=pt(B);k&&z&&ne.pop(),l(ne)}},ce=function(){h(N)&&!M(A)&&s(B,z)},fe;return typeof N.title=="string"?fe=N.title:typeof H=="string"&&(fe=H),f.createElement("li",{key:V,className:Re(v,(R={},ae(R,"".concat(v,"-expand"),!z),ae(R,"".concat(v,"-active"),i===F||i===V),ae(R,"".concat(v,"-disabled"),M(A)),ae(R,"".concat(v,"-loading"),W),R)),style:x,role:"menuitemcheckbox",title:fe,"aria-checked":q,"data-path-key":V,onClick:function(){ie(),!Y&&(!n||z)&&ce()},onDoubleClick:function(){b&&a(!1)},onMouseEnter:function(){k&&ie()},onMouseDown:function(ne){ne.preventDefault()}},n&&f.createElement(rtt,{prefixCls:"".concat(t,"-checkbox"),checked:q,halfChecked:Z,disabled:M(A)||Y,disableCheckbox:Y,onClick:function(ne){Y||(ne.stopPropagation(),ce())}}),f.createElement("div",{className:"".concat(v,"-content")},E?E(N):H),!W&&_&&!z&&f.createElement("div",{className:"".concat(v,"-expand-icon")},_),W&&T&&f.createElement("div",{className:"".concat(v,"-loading-icon")},T))}))}var ott=function(t,n){var r=f.useContext(iC),i=r.values,o=i[0],a=f.useState([]),s=Le(a,2),l=s[0],c=s[1];return f.useEffect(function(){t||c(o||[])},[n,o]),[l,c]};const att=function(e,t,n,r,i,o,a){var s=a.direction,l=a.searchValue,c=a.toggleOpen,u=a.open,d=s==="rtl",h=f.useMemo(function(){for(var x=-1,E=t,k=[],M=[],P=r.length,D=wbe(t,n),R=function(W){var q=E.findIndex(function(Z,N){return(D[N]?Od(D[N]):Z[n.value])===r[W]});if(q===-1)return 1;x=q,k.push(x),M.push(r[W]),E=E[x][n.children]},A=0;A<P&&E&&!R(A);A+=1);for(var H=t,F=0;F<k.length-1;F+=1)H=H[k[F]][n.children];return[M,x,H,D]},[r,n,t]),p=Le(h,4),m=p[0],v=p[1],y=p[2],S=p[3],b=function(E){i(E)},C=function(E){var k=y.length,M=v;M===-1&&E<0&&(M=k);for(var P=0;P<k;P+=1){M=(M+E+k)%k;var D=y[M];if(D&&!D.disabled){var R=m.slice(0,-1).concat(S[M]?Od(S[M]):D[n.value]);b(R);return}}},_=function(){if(m.length>1){var E=m.slice(0,-1);b(E)}else c(!1)},T=function(){var E,k=((E=y[v])===null||E===void 0?void 0:E[n.children])||[],M=k.find(function(D){return!D.disabled});if(M){var P=[].concat(pt(m),[M[n.value]]);b(P)}};f.useImperativeHandle(e,function(){return{onKeyDown:function(E){var k=E.which;switch(k){case Pt.UP:case Pt.DOWN:{var M=0;k===Pt.UP?M=-1:k===Pt.DOWN&&(M=1),M!==0&&C(M);break}case Pt.LEFT:{if(l)break;d?T():_();break}case Pt.RIGHT:{if(l)break;d?_():T();break}case Pt.BACKSPACE:{l||_();break}case Pt.ENTER:{if(m.length){var P=y[v],D=(P==null?void 0:P[hb])||[];D.length?o(D.map(function(R){return R[n.value]}),D[D.length-1]):o(m,y[v])}break}case Pt.ESC:c(!1),u&&E.stopPropagation()}},onKeyUp:function(){}}})};var Rbe=f.forwardRef(function(e,t){var n,r,i,o=e.prefixCls,a=e.multiple,s=e.searchValue,l=e.toggleOpen,c=e.notFoundContent,u=e.direction,d=e.open,h=e.disabled,p=f.useRef(null),m=u==="rtl",v=f.useContext(iC),y=v.options,S=v.values,b=v.halfValues,C=v.fieldNames,_=v.changeOnSelect,T=v.onSelect,x=v.searchOptions,E=v.dropdownPrefixCls,k=v.loadData,M=v.expandTrigger,P=E||o,D=f.useState([]),R=Le(D,2),A=R[0],H=R[1],F=function(_e){if(!(!k||s)){var le=nS(_e,y,C),xe=le.map(function(Fe){var Ce=Fe.option;return Ce}),we=xe[xe.length-1];if(we&&!T2(we,C)){var De=Od(_e);H(function(Fe){return[].concat(pt(Fe),[De])}),k(xe)}}};f.useEffect(function(){A.length&&A.forEach(function(he){var _e=Wet(he),le=nS(_e,y,C,!0).map(function(we){var De=we.option;return De}),xe=le[le.length-1];(!xe||xe[C.children]||T2(xe,C))&&H(function(we){return we.filter(function(De){return De!==he})})})},[y,A,C]);var z=f.useMemo(function(){return new Set(tS(S))},[S]),W=f.useMemo(function(){return new Set(tS(b))},[b]),q=ott(a,d),Z=Le(q,2),N=Z[0],B=Z[1],V=function(_e){B(_e),F(_e)},Y=function(_e){if(h)return!1;var le=_e.disabled,xe=T2(_e,C);return!le&&(xe||_||a)},ie=function(_e,le){var xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;T(_e),!a&&(le||_&&(M==="hover"||xe))&&l(!1)},ce=f.useMemo(function(){return s?x:y},[s,x,y]),fe=f.useMemo(function(){for(var he=[{options:ce}],_e=ce,le=wbe(_e,C),xe=function(){var Fe=N[we],Ce=_e.find(function(ke,Pe){return(le[Pe]?Od(le[Pe]):ke[C.value])===Fe}),Te=Ce==null?void 0:Ce[C.children];if(!(Te!=null&&Te.length))return 1;_e=Te,he.push({options:Te})},we=0;we<N.length&&!xe();we+=1);return he},[ce,N,C]),ee=function(_e,le){Y(le)&&ie(_e,T2(le,C),!0)};att(t,ce,C,N,V,ee,{direction:u,searchValue:s,toggleOpen:l,open:d}),f.useEffect(function(){if(!s)for(var he=0;he<N.length;he+=1){var _e,le=N.slice(0,he+1),xe=Od(le),we=(_e=p.current)===null||_e===void 0?void 0:_e.querySelector('li[data-path-key="'.concat(xe.replace(/\\{0,2}"/g,'\\"'),'"]'));we&&Vet(we)}},[N,s]);var ne=!((n=fe[0])!==null&&n!==void 0&&(n=n.options)!==null&&n!==void 0&&n.length),ue=[(r={},ae(r,C.value,"__EMPTY__"),ae(r,$be,c),ae(r,"disabled",!0),r)],ye=G(G({},e),{},{multiple:!ne&&a,onSelect:ie,onActive:V,onToggleOpen:l,checkedSet:z,halfCheckedSet:W,loadingKeys:A,isSelectable:Y}),me=ne?[{options:ue}]:fe,pe=me.map(function(he,_e){var le=N.slice(0,_e),xe=N[_e];return f.createElement(itt,ut({key:_e},ye,{prefixCls:P,options:he.options,prevValuePath:le,activeValue:xe}))});return f.createElement(ntt,{open:d},f.createElement("div",{className:Re("".concat(P,"-menus"),(i={},ae(i,"".concat(P,"-menu-empty"),ne),ae(i,"".concat(P,"-rtl"),m),i)),ref:p},pe))}),stt=f.forwardRef(function(e,t){var n=rW();return f.createElement(Rbe,ut({},e,n,{ref:t}))});function ltt(){}function Abe(e){var t,n=e,r=n.prefixCls,i=r===void 0?"rc-cascader":r,o=n.style,a=n.className,s=n.options,l=n.checkable,c=n.defaultValue,u=n.value,d=n.fieldNames,h=n.changeOnSelect,p=n.onChange,m=n.showCheckedStrategy,v=n.loadData,y=n.expandTrigger,S=n.expandIcon,b=S===void 0?">":S,C=n.loadingIcon,_=n.direction,T=n.notFoundContent,x=T===void 0?"Not Found":T,E=n.disabled,k=!!l,M=Jn(c,{value:u,postState:G9}),P=Le(M,2),D=P[0],R=P[1],A=f.useMemo(function(){return xbe(d)},[JSON.stringify(d)]),H=Obe(A,s),F=Le(H,3),z=F[0],W=F[1],q=F[2],Z=Ebe(z,A),N=Ibe(k,D,W,q,Z),B=Le(N,3),V=B[0],Y=B[1],ie=B[2],ce=cr(function(me){if(R(me),p){var pe=G9(me),he=pe.map(function(xe){return nS(xe,z,A).map(function(we){return we.option})}),_e=k?pe:pe[0],le=k?he:he[0];p(_e,le)}}),fe=Mbe(k,ce,V,Y,ie,W,q,m),ee=cr(function(me){fe(me)}),ne=f.useMemo(function(){return{options:z,fieldNames:A,values:V,halfValues:Y,changeOnSelect:h,onSelect:ee,checkable:l,searchOptions:[],dropdownPrefixCls:void 0,loadData:v,expandTrigger:y,expandIcon:b,loadingIcon:C,dropdownMenuColumnStyle:void 0}},[z,A,V,Y,h,ee,l,v,y,b,C]),ue="".concat(i,"-panel"),ye=!z.length;return f.createElement(iC.Provider,{value:ne},f.createElement("div",{className:Re(ue,(t={},ae(t,"".concat(ue,"-rtl"),_==="rtl"),ae(t,"".concat(ue,"-empty"),ye),t),a),style:o},ye?x:f.createElement(Rbe,{prefixCls:i,searchValue:"",multiple:k,toggleOpen:ltt,open:!0,direction:_,disabled:E})))}var ctt=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","dropdownStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy","optionRender"],NE=f.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,i=r===void 0?"rc-cascader":r,o=e.fieldNames,a=e.defaultValue,s=e.value,l=e.changeOnSelect,c=e.onChange,u=e.displayRender,d=e.checkable,h=e.autoClearSearchValue,p=h===void 0?!0:h,m=e.searchValue,v=e.onSearch,y=e.showSearch,S=e.expandTrigger,b=e.options,C=e.dropdownPrefixCls,_=e.loadData,T=e.popupVisible,x=e.open,E=e.popupClassName,k=e.dropdownClassName,M=e.dropdownMenuColumnStyle,P=e.dropdownStyle,D=e.popupPlacement,R=e.placement,A=e.onDropdownVisibleChange,H=e.onPopupVisibleChange,F=e.expandIcon,z=F===void 0?">":F,W=e.loadingIcon,q=e.children,Z=e.dropdownMatchSelectWidth,N=Z===void 0?!1:Z,B=e.showCheckedStrategy,V=B===void 0?Sbe:B,Y=e.optionRender,ie=tn(e,ctt),ce=lW(n),fe=!!d,ee=Jn(a,{value:s,postState:G9}),ne=Le(ee,2),ue=ne[0],ye=ne[1],me=f.useMemo(function(){return xbe(o)},[JSON.stringify(o)]),pe=Obe(me,b),he=Le(pe,3),_e=he[0],le=he[1],xe=he[2],we=Jn("",{value:m,postState:function(Vt){return Vt||""}}),De=Le(we,2),Fe=De[0],Ce=De[1],Te=function(Vt,Kt){Ce(Vt),Kt.source!=="blur"&&v&&v(Vt)},ke=Zet(y),Pe=Le(ke,2),Ne=Pe[0],We=Pe[1],Q=Uet(Fe,_e,me,C||i,We,l||fe),K=Ebe(_e,me),J=Ibe(fe,ue,le,xe,K),be=Le(J,3),Oe=be[0],Se=be[1],Ke=be[2],tt=f.useMemo(function(){var an=tS(Oe),Vt=_be(an,le,V);return[].concat(pt(Ke),pt(xe(Vt)))},[Oe,le,xe,Ke,V]),se=qet(tt,_e,me,fe,u),ze=cr(function(an){if(ye(an),c){var Vt=G9(an),Kt=Vt.map(function(ot){return nS(ot,_e,me).map(function(Qe){return Qe.option})}),Qt=fe?Vt:Vt[0],et=fe?Kt:Kt[0];c(Qt,et)}}),Ye=Mbe(fe,ze,Oe,Se,Ke,le,xe,V),Ue=cr(function(an){(!fe||p)&&Ce(""),Ye(an)}),Je=function(Vt,Kt){if(Kt.type==="clear"){ze([]);return}var Qt=Kt.values[0],et=Qt.valueCells;Ue(et)},Ze=x!==void 0?x:T,rt=k||E,qt=R||D,St=function(Vt){A==null||A(Vt),H==null||H(Vt)},Ot=f.useMemo(function(){return{options:_e,fieldNames:me,values:Oe,halfValues:Se,changeOnSelect:l,onSelect:Ue,checkable:d,searchOptions:Q,dropdownPrefixCls:C,loadData:_,expandTrigger:S,expandIcon:z,loadingIcon:W,dropdownMenuColumnStyle:M,optionRender:Y}},[_e,me,Oe,Se,l,Ue,d,Q,C,_,S,z,W,M,Y]),Bt=!(Fe?Q:_e).length,Dt=Fe&&We.matchInputWidth||Bt?{}:{minWidth:"auto"};return f.createElement(iC.Provider,{value:Ot},f.createElement(oW,ut({},ie,{ref:t,id:ce,prefixCls:i,autoClearSearchValue:p,dropdownMatchSelectWidth:N,dropdownStyle:G(G({},Dt),P),displayValues:se,onDisplayValuesChange:Je,mode:fe?"multiple":void 0,searchValue:Fe,onSearch:Te,showSearch:Ne,OptionList:stt,emptyOptions:Bt,open:Ze,dropdownClassName:rt,placement:qt,onDropdownVisibleChange:St,getRawInputElement:function(){return q}})))});NE.SHOW_PARENT=Sbe;NE.SHOW_CHILD=Cbe;NE.Panel=Abe;function Nbe(e,t){const{getPrefixCls:n,direction:r,renderEmpty:i}=f.useContext(hn),o=t||r,a=n("select",e),s=n("cascader",e);return[a,s,o,i]}function Dbe(e,t){return f.useMemo(()=>t?f.createElement("span",{className:`${e}-checkbox-inner`}):!1,[t])}const Lbe=(e,t,n)=>{let r=n;n||(r=t?f.createElement(eS,null):f.createElement(hp,null));const i=f.createElement("span",{className:`${e}-menu-item-loading-icon`},f.createElement(Bd,{spin:!0}));return f.useMemo(()=>[r,i],[r])},utt=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},$r(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},$r(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({},$r(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({},jd(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${je(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:`${je(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 pP(e,t){const n=ur(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[utt(n)]}const Fbe=Tr("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[pP(n,e)]}),jbe=e=>{const{prefixCls:t,componentCls:n}=e,r=`${n}-menu-item`,i=`
|
||
&${r}-expand ${r}-expand-icon,
|
||
${r}-loading-icon
|
||
`;return[pP(`${t}-checkbox`,e),{[n]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${n}-menu-empty`]:{[`${n}-menu`]:{width:"100%",height:"auto",[r]:{color:e.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:e.controlItemWidth,height:e.dropdownHeight,margin:0,padding:e.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${je(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&-item":Object.assign(Object.assign({},Yl),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:e.optionPadding,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,"&:hover":{background:e.controlItemBgHover},"&-disabled":{color:e.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[i]:{color:e.colorTextDisabled}},[`&-active:not(${r}-disabled)`]:{"&, &:hover":{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg}},"&-content":{flex:"auto"},[i]:{marginInlineStart:e.paddingXXS,color:e.colorTextDescription,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}})}}}]},dtt=e=>{const{componentCls:t,antCls:n}=e;return[{[t]:{width:e.controlWidth}},{[`${t}-dropdown`]:[{[`&${n}-select-dropdown`]:{padding:0}},jbe(e)]},{[`${t}-dropdown-rtl`]:{direction:"rtl"}},Yv(e)]},Bbe=e=>{const t=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:e.controlItemBgActive,optionSelectedFontWeight:e.fontWeightStrong,optionPadding:`${t}px ${e.paddingSM}px`,menuPadding:e.paddingXXS,optionSelectedColor:e.colorText}},Hbe=Tr("Cascader",e=>[dtt(e)],Bbe),ftt=e=>{const{componentCls:t}=e;return{[`${t}-panel`]:[jbe(e),{display:"inline-flex",border:`${je(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,borderRadius:e.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${t}-menus`]:{alignItems:"stretch"},[`${t}-menu`]:{height:"auto"},"&-empty":{padding:e.paddingXXS}}]}},htt=M1e(["Cascader","Panel"],e=>ftt(e),Bbe);function ptt(e){const{prefixCls:t,className:n,multiple:r,rootClassName:i,notFoundContent:o,direction:a,expandIcon:s,disabled:l}=e,c=f.useContext(ea),u=l??c,[d,h,p,m]=Nbe(t,a),v=_i(h),[y,S,b]=Hbe(h,v);htt(h);const C=p==="rtl",[_,T]=Lbe(d,C,s),x=o||(m==null?void 0:m("Cascader"))||f.createElement(ZS,{componentName:"Cascader"}),E=Dbe(h,r);return y(f.createElement(Abe,Object.assign({},e,{checkable:E,prefixCls:h,className:Re(n,S,i,b,v),notFoundContent:x,direction:p,expandIcon:_,loadingIcon:T,disabled:u})))}var mtt=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{SHOW_CHILD:gtt,SHOW_PARENT:vtt}=NE;function ytt(e,t,n){const r=e.toLowerCase().split(t).reduce((a,s,l)=>l===0?[s]:[].concat(pt(a),[t,s]),[]),i=[];let o=0;return r.forEach((a,s)=>{const l=o+a.length;let c=e.slice(o,l);o=l,s%2===1&&(c=f.createElement("span",{className:`${n}-menu-item-keyword`,key:`separator-${s}`},c)),i.push(c)}),i}const btt=(e,t,n,r)=>{const i=[],o=e.toLowerCase();return t.forEach((a,s)=>{s!==0&&i.push(" / ");let l=a[r.label];const c=typeof l;(c==="string"||c==="number")&&(l=ytt(String(l),o,n)),i.push(l)}),i},oC=f.forwardRef((e,t)=>{var n;const{prefixCls:r,size:i,disabled:o,className:a,rootClassName:s,multiple:l,bordered:c=!0,transitionName:u,choiceTransitionName:d="",popupClassName:h,dropdownClassName:p,expandIcon:m,placement:v,showSearch:y,allowClear:S=!0,notFoundContent:b,direction:C,getPopupContainer:_,status:T,showArrow:x,builtinPlacements:E,style:k,variant:M}=e,P=mtt(e,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style","variant"]),D=Pr(P,["suffixIcon"]),{getPopupContainer:R,getPrefixCls:A,popupOverflow:H,cascader:F}=f.useContext(hn),{status:z,hasFeedback:W,isFormItemInput:q,feedbackIcon:Z}=f.useContext(pa),N=Op(z,T),[B,V,Y,ie]=Nbe(r,C),ce=Y==="rtl",fe=A(),ee=_i(B),[ne,ue,ye]=dW(B,ee),me=_i(V),[pe]=Hbe(V,me),{compactSize:he,compactItemClassnames:_e}=Zd(B,C),[le,xe]=Pp("cascader",M,c),we=b||(ie==null?void 0:ie("Cascader"))||f.createElement(ZS,{componentName:"Cascader"}),De=Re(h||p,`${V}-dropdown`,{[`${V}-dropdown-rtl`]:Y==="rtl"},s,ee,me,ue,ye),Fe=f.useMemo(()=>{if(!y)return y;let se={render:btt};return typeof y=="object"&&(se=Object.assign(Object.assign({},se),y)),se},[y]),Ce=Ro(se=>{var ze;return(ze=i??he)!==null&&ze!==void 0?ze:se}),Te=f.useContext(ea),ke=o??Te,[Pe,Ne]=Lbe(B,ce,m),We=Dbe(V,l),Q=hW(e.suffixIcon,x),{suffixIcon:K,removeIcon:J,clearIcon:be}=QO(Object.assign(Object.assign({},e),{hasFeedback:W,feedbackIcon:Z,showSuffixIcon:Q,multiple:l,prefixCls:B,componentName:"Cascader"})),Oe=f.useMemo(()=>v!==void 0?v:ce?"bottomRight":"bottomLeft",[v,ce]),Se=S===!0?{clearIcon:be}:S,[Ke]=Du("SelectLike",(n=D.dropdownStyle)===null||n===void 0?void 0:n.zIndex),tt=f.createElement(NE,Object.assign({prefixCls:B,className:Re(!r&&V,{[`${B}-lg`]:Ce==="large",[`${B}-sm`]:Ce==="small",[`${B}-rtl`]:ce,[`${B}-${le}`]:xe,[`${B}-in-form-item`]:q},Ud(B,N,W),_e,F==null?void 0:F.className,a,s,ee,me,ue,ye),disabled:ke,style:Object.assign(Object.assign({},F==null?void 0:F.style),k)},D,{builtinPlacements:uW(E,H),direction:Y,placement:Oe,notFoundContent:we,allowClear:Se,showSearch:Fe,expandIcon:Pe,suffixIcon:K,removeIcon:J,loadingIcon:Ne,checkable:We,dropdownClassName:De,dropdownPrefixCls:r||V,dropdownStyle:Object.assign(Object.assign({},D.dropdownStyle),{zIndex:Ke}),choiceTransitionName:as(fe,"",d),transitionName:as(fe,"slide-up",u),getPopupContainer:_||R,ref:t}));return pe(ne(tt))}),Stt=vg(oC,"dropdownAlign",e=>Pr(e,["visible"]));oC.SHOW_PARENT=vtt;oC.SHOW_CHILD=gtt;oC.Panel=ptt;oC._InternalPanelDoNotUseOrYouWillBeFired=Stt;const zbe=ge.createContext(null);var Ctt=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 xtt=(e,t)=>{var n;const{prefixCls:r,className:i,rootClassName:o,children:a,indeterminate:s=!1,style:l,onMouseEnter:c,onMouseLeave:u,skipGroup:d=!1,disabled:h}=e,p=Ctt(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:m,direction:v,checkbox:y}=f.useContext(hn),S=f.useContext(zbe),{isFormItemInput:b}=f.useContext(pa),C=f.useContext(ea),_=(n=(S==null?void 0:S.disabled)||h)!==null&&n!==void 0?n:C,T=f.useRef(p.value),x=f.useRef(null),E=va(t,x);f.useEffect(()=>{S==null||S.registerValue(p.value)},[]),f.useEffect(()=>{if(!d)return p.value!==T.current&&(S==null||S.cancelValue(T.current),S==null||S.registerValue(p.value),T.current=p.value),()=>S==null?void 0:S.cancelValue(p.value)},[p.value]),f.useEffect(()=>{var q;!((q=x.current)===null||q===void 0)&&q.input&&(x.current.input.indeterminate=s)},[s]);const k=m("checkbox",r),M=_i(k),[P,D,R]=Fbe(k,M),A=Object.assign({},p);S&&!d&&(A.onChange=function(){p.onChange&&p.onChange.apply(p,arguments),S.toggleOption&&S.toggleOption({label:a,value:p.value})},A.name=S.name,A.checked=S.value.includes(p.value));const H=Re(`${k}-wrapper`,{[`${k}-rtl`]:v==="rtl",[`${k}-wrapper-checked`]:A.checked,[`${k}-wrapper-disabled`]:_,[`${k}-wrapper-in-form-item`]:b},y==null?void 0:y.className,i,o,R,M,D),F=Re({[`${k}-indeterminate`]:s},IO,D),[z,W]=abe(A.onClick);return P(f.createElement(yE,{component:"Checkbox",disabled:_},f.createElement("label",{className:H,style:Object.assign(Object.assign({},y==null?void 0:y.style),l),onMouseEnter:c,onMouseLeave:u,onClick:z},f.createElement(obe,Object.assign({},A,{onClick:W,prefixCls:k,className:F,disabled:_,ref:E})),a!==void 0&&f.createElement("span",null,a))))},Ube=f.forwardRef(xtt);var wtt=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 _tt=f.forwardRef((e,t)=>{const{defaultValue:n,children:r,options:i=[],prefixCls:o,className:a,rootClassName:s,style:l,onChange:c}=e,u=wtt(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:d,direction:h}=f.useContext(hn),[p,m]=f.useState(u.value||n||[]),[v,y]=f.useState([]);f.useEffect(()=>{"value"in u&&m(u.value||[])},[u.value]);const S=f.useMemo(()=>i.map(F=>typeof F=="string"||typeof F=="number"?{label:F,value:F}:F),[i]),b=F=>{y(z=>z.filter(W=>W!==F))},C=F=>{y(z=>[].concat(pt(z),[F]))},_=F=>{const z=p.indexOf(F.value),W=pt(p);z===-1?W.push(F.value):W.splice(z,1),"value"in u||m(W),c==null||c(W.filter(q=>v.includes(q)).sort((q,Z)=>{const N=S.findIndex(V=>V.value===q),B=S.findIndex(V=>V.value===Z);return N-B}))},T=d("checkbox",o),x=`${T}-group`,E=_i(T),[k,M,P]=Fbe(T,E),D=Pr(u,["value","disabled"]),R=i.length?S.map(F=>f.createElement(Ube,{prefixCls:T,key:F.value.toString(),disabled:"disabled"in F?F.disabled:u.disabled,value:F.value,checked:p.includes(F.value),onChange:F.onChange,className:`${x}-item`,style:F.style,title:F.title,id:F.id,required:F.required},F.label)):r,A={toggleOption:_,value:p,disabled:u.disabled,name:u.name,registerValue:C,cancelValue:b},H=Re(x,{[`${x}-rtl`]:h==="rtl"},a,s,P,E,M);return k(f.createElement("div",Object.assign({className:H,style:l},D,{ref:t}),f.createElement(zbe.Provider,{value:A},R)))}),mp=Ube;mp.Group=_tt;mp.__ANT_CHECKBOX=!0;const Wbe=f.createContext({});var Ett=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 Yee(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const Ttt=["xs","sm","md","lg","xl","xxl"],_v=f.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=f.useContext(hn),{gutter:i,wrap:o}=f.useContext(Wbe),{prefixCls:a,span:s,order:l,offset:c,push:u,pull:d,className:h,children:p,flex:m,style:v}=e,y=Ett(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),S=n("col",a),[b,C,_]=zKe(S),T={};let x={};Ttt.forEach(M=>{let P={};const D=e[M];typeof D=="number"?P.span=D:typeof D=="object"&&(P=D||{}),delete y[M],x=Object.assign(Object.assign({},x),{[`${S}-${M}-${P.span}`]:P.span!==void 0,[`${S}-${M}-order-${P.order}`]:P.order||P.order===0,[`${S}-${M}-offset-${P.offset}`]:P.offset||P.offset===0,[`${S}-${M}-push-${P.push}`]:P.push||P.push===0,[`${S}-${M}-pull-${P.pull}`]:P.pull||P.pull===0,[`${S}-rtl`]:r==="rtl"}),P.flex&&(x[`${S}-${M}-flex`]=!0,T[`--${S}-${M}-flex`]=Yee(P.flex))});const E=Re(S,{[`${S}-${s}`]:s!==void 0,[`${S}-order-${l}`]:l,[`${S}-offset-${c}`]:c,[`${S}-push-${u}`]:u,[`${S}-pull-${d}`]:d},h,x,C,_),k={};if(i&&i[0]>0){const M=i[0]/2;k.paddingLeft=M,k.paddingRight=M}return m&&(k.flex=Yee(m),o===!1&&!k.minWidth&&(k.minWidth=0)),b(f.createElement("div",Object.assign({},y,{style:Object.assign(Object.assign(Object.assign({},k),v),T),className:E,ref:t}),p))});var ktt=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 Xee(e,t){const[n,r]=f.useState(typeof e=="string"?e:""),i=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let o=0;o<ig.length;o++){const a=ig[o];if(!t[a])continue;const s=e[a];if(s!==void 0){r(s);return}}};return f.useEffect(()=>{i()},[JSON.stringify(e),t]),n}const DE=f.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:i,className:o,style:a,children:s,gutter:l=0,wrap:c}=e,u=ktt(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:d,direction:h}=f.useContext(hn),[p,m]=f.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[v,y]=f.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),S=Xee(i,v),b=Xee(r,v),C=f.useRef(l),_=M0e();f.useEffect(()=>{const W=_.subscribe(q=>{y(q);const Z=C.current||0;(!Array.isArray(Z)&&typeof Z=="object"||Array.isArray(Z)&&(typeof Z[0]=="object"||typeof Z[1]=="object"))&&m(q)});return()=>_.unsubscribe(W)},[]);const T=()=>{const W=[void 0,void 0];return(Array.isArray(l)?l:[l,void 0]).forEach((Z,N)=>{if(typeof Z=="object")for(let B=0;B<ig.length;B++){const V=ig[B];if(p[V]&&Z[V]!==void 0){W[N]=Z[V];break}}else W[N]=Z}),W},x=d("row",n),[E,k,M]=HKe(x),P=T(),D=Re(x,{[`${x}-no-wrap`]:c===!1,[`${x}-${b}`]:b,[`${x}-${S}`]:S,[`${x}-rtl`]:h==="rtl"},o,k,M),R={},A=P[0]!=null&&P[0]>0?P[0]/-2:void 0;A&&(R.marginLeft=A,R.marginRight=A);const[H,F]=P;R.rowGap=F;const z=f.useMemo(()=>({gutter:[H,F],wrap:c}),[H,F,c]);return E(f.createElement(Wbe.Provider,{value:z},f.createElement("div",Object.assign({},u,{className:D,style:Object.assign(Object.assign({},R),a),ref:t}),s)))}),Ott=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:i,textPaddingInline:o,orientationMargin:a,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},$r(e)),{borderBlockStart:`${je(i)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${je(i)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${je(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${je(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${je(i)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`calc(${a} * 100%)`},"&::after":{width:`calc(100% - ${a} * 100%)`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`calc(100% - ${a} * 100%)`},"&::after":{width:`calc(${a} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:o},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${je(i)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${je(i)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},Ptt=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),Mtt=Tr("Divider",e=>{const t=ur(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[Ott(t)]},Ptt,{unitless:{orientationMargin:!0}});var Itt=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 $tt=e=>{const{getPrefixCls:t,direction:n,divider:r}=f.useContext(hn),{prefixCls:i,type:o="horizontal",orientation:a="center",orientationMargin:s,className:l,rootClassName:c,children:u,dashed:d,variant:h="solid",plain:p,style:m}=e,v=Itt(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),y=t("divider",i),[S,b,C]=Mtt(y),_=!!u,T=a==="left"&&s!=null,x=a==="right"&&s!=null,E=Re(y,r==null?void 0:r.className,b,C,`${y}-${o}`,{[`${y}-with-text`]:_,[`${y}-with-text-${a}`]:_,[`${y}-dashed`]:!!d,[`${y}-${h}`]:h!=="solid",[`${y}-plain`]:!!p,[`${y}-rtl`]:n==="rtl",[`${y}-no-default-orientation-margin-left`]:T,[`${y}-no-default-orientation-margin-right`]:x},l,c),k=f.useMemo(()=>typeof s=="number"?s:/^\d+$/.test(s)?Number(s):s,[s]),M=Object.assign(Object.assign({},T&&{marginLeft:k}),x&&{marginRight:k});return S(f.createElement("div",Object.assign({className:E,style:Object.assign(Object.assign({},r==null?void 0:r.style),m)},v,{role:"separator"}),u&&o!=="vertical"&&f.createElement("span",{className:`${y}-inner-text`,style:M},u)))};var Qee=function(t,n){if(!t)return null;var r={left:t.offsetLeft,right:t.parentElement.clientWidth-t.clientWidth-t.offsetLeft,width:t.clientWidth,top:t.offsetTop,bottom:t.parentElement.clientHeight-t.clientHeight-t.offsetTop,height:t.clientHeight};return n?{left:0,right:0,width:0,top:r.top,bottom:r.bottom,height:r.height}:{left:r.left,right:r.right,width:r.width,top:0,bottom:0,height:0}},pf=function(t){return t!==void 0?"".concat(t,"px"):void 0};function Rtt(e){var t=e.prefixCls,n=e.containerRef,r=e.value,i=e.getValueIndex,o=e.motionName,a=e.onMotionStart,s=e.onMotionEnd,l=e.direction,c=e.vertical,u=c===void 0?!1:c,d=f.useRef(null),h=f.useState(r),p=Le(h,2),m=p[0],v=p[1],y=function(F){var z,W=i(F),q=(z=n.current)===null||z===void 0?void 0:z.querySelectorAll(".".concat(t,"-item"))[W];return(q==null?void 0:q.offsetParent)&&q},S=f.useState(null),b=Le(S,2),C=b[0],_=b[1],T=f.useState(null),x=Le(T,2),E=x[0],k=x[1];Er(function(){if(m!==r){var H=y(m),F=y(r),z=Qee(H,u),W=Qee(F,u);v(r),_(z),k(W),H&&F?a():s()}},[r]);var M=f.useMemo(function(){if(u){var H;return pf((H=C==null?void 0:C.top)!==null&&H!==void 0?H:0)}return pf(l==="rtl"?-(C==null?void 0:C.right):C==null?void 0:C.left)},[u,l,C]),P=f.useMemo(function(){if(u){var H;return pf((H=E==null?void 0:E.top)!==null&&H!==void 0?H:0)}return pf(l==="rtl"?-(E==null?void 0:E.right):E==null?void 0:E.left)},[u,l,E]),D=function(){return u?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},R=function(){return u?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},A=function(){_(null),k(null),s()};return!C||!E?null:f.createElement(ha,{visible:!0,motionName:o,motionAppear:!0,onAppearStart:D,onAppearActive:R,onVisibleChanged:A},function(H,F){var z=H.className,W=H.style,q=G(G({},W),{},{"--thumb-start-left":M,"--thumb-start-width":pf(C==null?void 0:C.width),"--thumb-active-left":P,"--thumb-active-width":pf(E==null?void 0:E.width),"--thumb-start-top":M,"--thumb-start-height":pf(C==null?void 0:C.height),"--thumb-active-top":P,"--thumb-active-height":pf(E==null?void 0:E.height)}),Z={ref:va(d,F),style:q,className:Re("".concat(t,"-thumb"),z)};return f.createElement("div",Z)})}var Att=["prefixCls","direction","vertical","options","disabled","defaultValue","value","name","onChange","className","motionName"];function Ntt(e){if(typeof e.title<"u")return e.title;if(ln(e.label)!=="object"){var t;return(t=e.label)===null||t===void 0?void 0:t.toString()}}function Dtt(e){return e.map(function(t){if(ln(t)==="object"&&t!==null){var n=Ntt(t);return G(G({},t),{},{title:n})}return{label:t==null?void 0:t.toString(),title:t==null?void 0:t.toString(),value:t}})}var Ltt=function(t){var n=t.prefixCls,r=t.className,i=t.disabled,o=t.checked,a=t.label,s=t.title,l=t.value,c=t.name,u=t.onChange,d=t.onFocus,h=t.onBlur,p=t.onKeyDown,m=t.onKeyUp,v=t.onMouseDown,y=function(b){i||u(b,l)};return f.createElement("label",{className:Re(r,ae({},"".concat(n,"-item-disabled"),i)),onMouseDown:v},f.createElement("input",{name:c,className:"".concat(n,"-item-input"),type:"radio",disabled:i,checked:o,onChange:y,onFocus:d,onBlur:h,onKeyDown:p,onKeyUp:m}),f.createElement("div",{className:"".concat(n,"-item-label"),title:s,"aria-selected":o},a))},Ftt=f.forwardRef(function(e,t){var n,r,i=e.prefixCls,o=i===void 0?"rc-segmented":i,a=e.direction,s=e.vertical,l=e.options,c=l===void 0?[]:l,u=e.disabled,d=e.defaultValue,h=e.value,p=e.name,m=e.onChange,v=e.className,y=v===void 0?"":v,S=e.motionName,b=S===void 0?"thumb-motion":S,C=tn(e,Att),_=f.useRef(null),T=f.useMemo(function(){return va(_,t)},[_,t]),x=f.useMemo(function(){return Dtt(c)},[c]),E=Jn((n=x[0])===null||n===void 0?void 0:n.value,{value:h,defaultValue:d}),k=Le(E,2),M=k[0],P=k[1],D=f.useState(!1),R=Le(D,2),A=R[0],H=R[1],F=function(pe,he){P(he),m==null||m(he)},z=Pr(C,["children"]),W=f.useState(!1),q=Le(W,2),Z=q[0],N=q[1],B=f.useState(!1),V=Le(B,2),Y=V[0],ie=V[1],ce=function(){ie(!0)},fe=function(){ie(!1)},ee=function(){N(!1)},ne=function(pe){pe.key==="Tab"&&N(!0)},ue=function(pe){var he=x.findIndex(function(we){return we.value===M}),_e=x.length,le=(he+pe+_e)%_e,xe=x[le];xe&&(P(xe.value),m==null||m(xe.value))},ye=function(pe){switch(pe.key){case"ArrowLeft":case"ArrowUp":ue(-1);break;case"ArrowRight":case"ArrowDown":ue(1);break}};return f.createElement("div",ut({role:"radiogroup","aria-label":"segmented control",tabIndex:u?void 0:0},z,{className:Re(o,(r={},ae(r,"".concat(o,"-rtl"),a==="rtl"),ae(r,"".concat(o,"-disabled"),u),ae(r,"".concat(o,"-vertical"),s),r),y),ref:T}),f.createElement("div",{className:"".concat(o,"-group")},f.createElement(Rtt,{vertical:s,prefixCls:o,value:M,containerRef:_,motionName:"".concat(o,"-").concat(b),direction:a,getValueIndex:function(pe){return x.findIndex(function(he){return he.value===pe})},onMotionStart:function(){H(!0)},onMotionEnd:function(){H(!1)}}),x.map(function(me){var pe;return f.createElement(Ltt,ut({},me,{name:p,key:me.value,prefixCls:o,className:Re(me.className,"".concat(o,"-item"),(pe={},ae(pe,"".concat(o,"-item-selected"),me.value===M&&!A),ae(pe,"".concat(o,"-item-focused"),Y&&Z&&me.value===M),pe)),checked:me.value===M,onChange:F,onFocus:ce,onBlur:fe,onKeyDown:ye,onKeyUp:ne,onMouseDown:ee,disabled:!!u||!!me.disabled}))})))}),jtt=Ftt;function Zee(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function Jee(e){return{backgroundColor:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}const Btt=Object.assign({overflow:"hidden"},Yl),Htt=e=>{const{componentCls:t}=e,n=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),r=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),i=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},$r(e)),{display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`}),gl(e)),{[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",flexDirection:"row",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-vertical`]:{[`${t}-group`]:{flexDirection:"column"},[`${t}-thumb`]:{width:"100%",height:0,padding:`0 ${je(e.paddingXXS)}`}},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid} ${e.motionEaseInOut}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":Object.assign(Object.assign({},Jee(e)),{color:e.itemSelectedColor}),"&-focused":Object.assign({},jd(e)),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",transition:`background-color ${e.motionDurationMid}`,pointerEvents:"none"},[`&:hover:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemHoverBg}},[`&:active:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemActiveBg}},"&-label":Object.assign({minHeight:n,lineHeight:je(n),padding:`0 ${je(e.segmentedPaddingHorizontal)}`},Btt),"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:Object.assign(Object.assign({},Jee(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${je(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, height ${e.motionDurationSlow} ${e.motionEaseInOut}`,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:r,lineHeight:je(r),padding:`0 ${je(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:i,lineHeight:je(i),padding:`0 ${je(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),Zee(`&-disabled ${t}-item`,e)),Zee(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}})}},ztt=e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:i,colorFill:o,lineWidthBold:a,colorBgLayout:s}=e;return{trackPadding:a,trackBg:s,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:i,itemActiveBg:o,itemSelectedColor:n}},Utt=Tr("Segmented",e=>{const{lineWidth:t,calc:n}=e,r=ur(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()});return[Htt(r)]},ztt);var ete=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 Wtt(e){return typeof e=="object"&&!!(e!=null&&e.icon)}const Vtt=f.forwardRef((e,t)=>{const n=UO(),{prefixCls:r,className:i,rootClassName:o,block:a,options:s=[],size:l="middle",style:c,vertical:u,name:d=n}=e,h=ete(e,["prefixCls","className","rootClassName","block","options","size","style","vertical","name"]),{getPrefixCls:p,direction:m,segmented:v}=f.useContext(hn),y=p("segmented",r),[S,b,C]=Utt(y),_=Ro(l),T=f.useMemo(()=>s.map(k=>{if(Wtt(k)){const{icon:M,label:P}=k,D=ete(k,["icon","label"]);return Object.assign(Object.assign({},D),{label:f.createElement(f.Fragment,null,f.createElement("span",{className:`${y}-item-icon`},M),P&&f.createElement("span",null,P))})}return k}),[s,y]),x=Re(i,o,v==null?void 0:v.className,{[`${y}-block`]:a,[`${y}-sm`]:_==="small",[`${y}-lg`]:_==="large",[`${y}-vertical`]:u},b,C),E=Object.assign(Object.assign({},v==null?void 0:v.style),c);return S(f.createElement(jtt,Object.assign({},h,{name:d,className:x,style:E,options:T,ref:t,prefixCls:y,direction:m,vertical:u})))}),Vbe=Vtt,Kbe=ge.createContext({}),qbe=ge.createContext({}),Gbe=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=()=>{if(r&&n&&!n.cleared){const o=n.toHsb();o.a=0;const a=Ks(o);a.cleared=!0,r(a)}};return ge.createElement("div",{className:`${t}-clear`,onClick:i})};var Ym;(function(e){e.hex="hex",e.rgb="rgb",e.hsb="hsb"})(Ym||(Ym={}));var Ktt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},qtt=function(t,n){return f.createElement(wr,ut({},t,{ref:n,icon:Ktt}))},Gtt=f.forwardRef(qtt);function rj(){return typeof BigInt=="function"}function Ybe(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function Q1(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",i=r.split("."),o=i[0]||"0",a=i[1]||"0";o==="0"&&a==="0"&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:o,decimalStr:a,fullStr:"".concat(s).concat(r)}}function zW(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function O1(e){var t=String(e);if(zW(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&UW(t)?t.length-t.indexOf(".")-1:0}function mP(e){var t=String(e);if(zW(e)){if(e>Number.MAX_SAFE_INTEGER)return String(rj()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(rj()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(O1(t))}return Q1(t).fullStr}function UW(e){return typeof e=="number"?!Number.isNaN(e):e?/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e):!1}var Ytt=function(){function e(t){if(pi(this,e),ae(this,"origin",""),ae(this,"negative",void 0),ae(this,"integer",void 0),ae(this,"decimal",void 0),ae(this,"decimalLen",void 0),ae(this,"empty",void 0),ae(this,"nan",void 0),Ybe(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(zW(n)&&(n=Number(n)),n=typeof n=="string"?n:mP(n),UW(n)){var r=Q1(n);this.negative=r.negative;var i=r.trimStr.split(".");this.integer=BigInt(i[0]);var o=i[1]||"0";this.decimal=BigInt(o),this.decimalLen=o.length}else this.nan=!0}return mi(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(n){var r="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(n,"0"));return BigInt(r)}},{key:"negate",value:function(){var n=new e(this.toString());return n.negative=!n.negative,n}},{key:"cal",value:function(n,r,i){var o=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),a=this.alignDecimal(o),s=n.alignDecimal(o),l=r(a,s).toString(),c=i(o),u=Q1(l),d=u.negativeStr,h=u.trimStr,p="".concat(d).concat(h.padStart(c+1,"0"));return new e("".concat(p.slice(0,-c),".").concat(p.slice(-c)))}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=new e(n);return r.isInvalidate()?this:this.cal(r,function(i,o){return i+o},function(i){return i})}},{key:"multi",value:function(n){var r=new e(n);return this.isInvalidate()||r.isInvalidate()?new e(NaN):this.cal(r,function(i,o){return i*o},function(i){return i*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toString()===(n==null?void 0:n.toString())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Q1("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),Xtt=function(){function e(t){if(pi(this,e),ae(this,"origin",""),ae(this,"number",void 0),ae(this,"empty",void 0),Ybe(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return mi(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var i=this.number+r;if(i>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(i<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(O1(this.number),O1(r));return new e(i.toFixed(o))}},{key:"multi",value:function(n){var r=Number(n);if(this.isInvalidate()||Number.isNaN(r))return new e(NaN);var i=this.number*r;if(i>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(i<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(O1(this.number),O1(r));return new e(i.toFixed(o))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toNumber()===(n==null?void 0:n.toNumber())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":mP(this.number):this.origin}}]),e}();function sd(e){return rj()?new Ytt(e):new Xtt(e)}function z3(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var i=Q1(e),o=i.negativeStr,a=i.integerStr,s=i.decimalStr,l="".concat(t).concat(s),c="".concat(o).concat(a);if(n>=0){var u=Number(s[n]);if(u>=5&&!r){var d=sd(e).add("".concat(o,"0.").concat("0".repeat(n)).concat(10-u));return z3(d.toString(),t,n,r)}return n===0?c:"".concat(c).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return l===".0"?c:"".concat(c).concat(l)}function Qtt(e){return!!(e.addonBefore||e.addonAfter)}function Ztt(e){return!!(e.prefix||e.suffix||e.allowClear)}function tte(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 Y9(e,t,n,r){if(n){var i=t;if(t.type==="click"){i=tte(t,e,""),n(i);return}if(e.type!=="file"&&r!==void 0){i=tte(t,e,r),n(i);return}n(i)}}function WW(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 VW=ge.forwardRef(function(e,t){var n,r,i,o=e.inputElement,a=e.children,s=e.prefixCls,l=e.prefix,c=e.suffix,u=e.addonBefore,d=e.addonAfter,h=e.className,p=e.style,m=e.disabled,v=e.readOnly,y=e.focused,S=e.triggerFocus,b=e.allowClear,C=e.value,_=e.handleReset,T=e.hidden,x=e.classes,E=e.classNames,k=e.dataAttrs,M=e.styles,P=e.components,D=e.onClear,R=a??o,A=(P==null?void 0:P.affixWrapper)||"span",H=(P==null?void 0:P.groupWrapper)||"span",F=(P==null?void 0:P.wrapper)||"span",z=(P==null?void 0:P.groupAddon)||"span",W=f.useRef(null),q=function(le){var xe;(xe=W.current)!==null&&xe!==void 0&&xe.contains(le.target)&&(S==null||S())},Z=Ztt(e),N=f.cloneElement(R,{value:C,className:Re((n=R.props)===null||n===void 0?void 0:n.className,!Z&&(E==null?void 0:E.variant))||null}),B=f.useRef(null);if(ge.useImperativeHandle(t,function(){return{nativeElement:B.current||W.current}}),Z){var V=null;if(b){var Y=!m&&!v&&C,ie="".concat(s,"-clear-icon"),ce=ln(b)==="object"&&b!==null&&b!==void 0&&b.clearIcon?b.clearIcon:"✖";V=ge.createElement("button",{type:"button",onClick:function(le){_==null||_(le),D==null||D()},onMouseDown:function(le){return le.preventDefault()},className:Re(ie,ae(ae({},"".concat(ie,"-hidden"),!Y),"".concat(ie,"-has-suffix"),!!c))},ce)}var fe="".concat(s,"-affix-wrapper"),ee=Re(fe,ae(ae(ae(ae(ae({},"".concat(s,"-disabled"),m),"".concat(fe,"-disabled"),m),"".concat(fe,"-focused"),y),"".concat(fe,"-readonly"),v),"".concat(fe,"-input-with-clear-btn"),c&&b&&C),x==null?void 0:x.affixWrapper,E==null?void 0:E.affixWrapper,E==null?void 0:E.variant),ne=(c||b)&&ge.createElement("span",{className:Re("".concat(s,"-suffix"),E==null?void 0:E.suffix),style:M==null?void 0:M.suffix},V,c);N=ge.createElement(A,ut({className:ee,style:M==null?void 0:M.affixWrapper,onClick:q},k==null?void 0:k.affixWrapper,{ref:W}),l&&ge.createElement("span",{className:Re("".concat(s,"-prefix"),E==null?void 0:E.prefix),style:M==null?void 0:M.prefix},l),N,ne)}if(Qtt(e)){var ue="".concat(s,"-group"),ye="".concat(ue,"-addon"),me="".concat(ue,"-wrapper"),pe=Re("".concat(s,"-wrapper"),ue,x==null?void 0:x.wrapper,E==null?void 0:E.wrapper),he=Re(me,ae({},"".concat(me,"-disabled"),m),x==null?void 0:x.group,E==null?void 0:E.groupWrapper);N=ge.createElement(H,{className:he,ref:B},ge.createElement(F,{className:pe},u&&ge.createElement(z,{className:ye},u),N,d&&ge.createElement(z,{className:ye},d)))}return ge.cloneElement(N,{className:Re((r=N.props)===null||r===void 0?void 0:r.className,h)||null,style:G(G({},(i=N.props)===null||i===void 0?void 0:i.style),p),hidden:T})}),Jtt=["show"];function Xbe(e,t){return f.useMemo(function(){var n={};t&&(n.show=ln(t)==="object"&&t.formatter?t.formatter:!!t),n=G(G({},n),e);var r=n,i=r.show,o=tn(r,Jtt);return G(G({},o),{},{show:!!i,showFormatter:typeof i=="function"?i:void 0,strategy:o.strategy||function(a){return a.length}})},[e,t])}var ent=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],tnt=f.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,i=e.onFocus,o=e.onBlur,a=e.onPressEnter,s=e.onKeyDown,l=e.onKeyUp,c=e.prefixCls,u=c===void 0?"rc-input":c,d=e.disabled,h=e.htmlSize,p=e.className,m=e.maxLength,v=e.suffix,y=e.showCount,S=e.count,b=e.type,C=b===void 0?"text":b,_=e.classes,T=e.classNames,x=e.styles,E=e.onCompositionStart,k=e.onCompositionEnd,M=tn(e,ent),P=f.useState(!1),D=Le(P,2),R=D[0],A=D[1],H=f.useRef(!1),F=f.useRef(!1),z=f.useRef(null),W=f.useRef(null),q=function(Ne){z.current&&WW(z.current,Ne)},Z=Jn(e.defaultValue,{value:e.value}),N=Le(Z,2),B=N[0],V=N[1],Y=B==null?"":String(B),ie=f.useState(null),ce=Le(ie,2),fe=ce[0],ee=ce[1],ne=Xbe(S,y),ue=ne.max||m,ye=ne.strategy(Y),me=!!ue&&ye>ue;f.useImperativeHandle(t,function(){var Pe;return{focus:q,blur:function(){var We;(We=z.current)===null||We===void 0||We.blur()},setSelectionRange:function(We,Q,K){var J;(J=z.current)===null||J===void 0||J.setSelectionRange(We,Q,K)},select:function(){var We;(We=z.current)===null||We===void 0||We.select()},input:z.current,nativeElement:((Pe=W.current)===null||Pe===void 0?void 0:Pe.nativeElement)||z.current}}),f.useEffect(function(){F.current&&(F.current=!1),A(function(Pe){return Pe&&d?!1:Pe})},[d]);var pe=function(Ne,We,Q){var K=We;if(!H.current&&ne.exceedFormatter&&ne.max&&ne.strategy(We)>ne.max){if(K=ne.exceedFormatter(We,{max:ne.max}),We!==K){var J,be;ee([((J=z.current)===null||J===void 0?void 0:J.selectionStart)||0,((be=z.current)===null||be===void 0?void 0:be.selectionEnd)||0])}}else if(Q.source==="compositionEnd")return;V(K),z.current&&Y9(z.current,Ne,r,K)};f.useEffect(function(){if(fe){var Pe;(Pe=z.current)===null||Pe===void 0||Pe.setSelectionRange.apply(Pe,pt(fe))}},[fe]);var he=function(Ne){pe(Ne,Ne.target.value,{source:"change"})},_e=function(Ne){H.current=!1,pe(Ne,Ne.currentTarget.value,{source:"compositionEnd"}),k==null||k(Ne)},le=function(Ne){a&&Ne.key==="Enter"&&!F.current&&(F.current=!0,a(Ne)),s==null||s(Ne)},xe=function(Ne){Ne.key==="Enter"&&(F.current=!1),l==null||l(Ne)},we=function(Ne){A(!0),i==null||i(Ne)},De=function(Ne){F.current&&(F.current=!1),A(!1),o==null||o(Ne)},Fe=function(Ne){V(""),q(),z.current&&Y9(z.current,Ne,r)},Ce=me&&"".concat(u,"-out-of-range"),Te=function(){var Ne=Pr(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return ge.createElement("input",ut({autoComplete:n},Ne,{onChange:he,onFocus:we,onBlur:De,onKeyDown:le,onKeyUp:xe,className:Re(u,ae({},"".concat(u,"-disabled"),d),T==null?void 0:T.input),style:x==null?void 0:x.input,ref:z,size:h,type:C,onCompositionStart:function(Q){H.current=!0,E==null||E(Q)},onCompositionEnd:_e}))},ke=function(){var Ne=Number(ue)>0;if(v||ne.show){var We=ne.showFormatter?ne.showFormatter({value:Y,count:ye,maxLength:ue}):"".concat(ye).concat(Ne?" / ".concat(ue):"");return ge.createElement(ge.Fragment,null,ne.show&&ge.createElement("span",{className:Re("".concat(u,"-show-count-suffix"),ae({},"".concat(u,"-show-count-has-suffix"),!!v),T==null?void 0:T.count),style:G({},x==null?void 0:x.count)},We),v)}return null};return ge.createElement(VW,ut({},M,{prefixCls:u,className:Re(p,Ce),handleReset:Fe,value:Y,focused:R,triggerFocus:q,suffix:ke(),disabled:d,classes:_,classNames:T,styles:x}),Te())});function nnt(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(r,i){if(t[i])return t[i];var o=r[i];return typeof o=="function"?o.bind(r):o}}):e}function rnt(e,t){var n=f.useRef(null);function r(){try{var o=e.selectionStart,a=e.selectionEnd,s=e.value,l=s.substring(0,o),c=s.substring(a);n.current={start:o,end:a,value:s,beforeTxt:l,afterTxt:c}}catch{}}function i(){if(e&&n.current&&t)try{var o=e.value,a=n.current,s=a.beforeTxt,l=a.afterTxt,c=a.start,u=o.length;if(o.startsWith(s))u=s.length;else if(o.endsWith(l))u=o.length-n.current.afterTxt.length;else{var d=s[c-1],h=o.indexOf(d,c-1);h!==-1&&(u=h+1)}e.setSelectionRange(u,u)}catch(p){fi(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(p.message))}}return[r,i]}var int=function(){var t=f.useState(!1),n=Le(t,2),r=n[0],i=n[1];return Er(function(){i(qO())},[]),r},ont=200,ant=600;function snt(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,i=e.upDisabled,o=e.downDisabled,a=e.onStep,s=f.useRef(),l=f.useRef([]),c=f.useRef();c.current=a;var u=function(){clearTimeout(s.current)},d=function(C,_){C.preventDefault(),u(),c.current(_);function T(){c.current(_),s.current=setTimeout(T,ont)}s.current=setTimeout(T,ant)};f.useEffect(function(){return function(){u(),l.current.forEach(function(b){return Sr.cancel(b)})}},[]);var h=int();if(h)return null;var p="".concat(t,"-handler"),m=Re(p,"".concat(p,"-up"),ae({},"".concat(p,"-up-disabled"),i)),v=Re(p,"".concat(p,"-down"),ae({},"".concat(p,"-down-disabled"),o)),y=function(){return l.current.push(Sr(u))},S={unselectable:"on",role:"button",onMouseUp:y,onMouseLeave:y};return f.createElement("div",{className:"".concat(p,"-wrap")},f.createElement("span",ut({},S,{onMouseDown:function(C){d(C,!0)},"aria-label":"Increase Value","aria-disabled":i,className:m}),n||f.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),f.createElement("span",ut({},S,{onMouseDown:function(C){d(C,!1)},"aria-label":"Decrease Value","aria-disabled":o,className:v}),r||f.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function nte(e){var t=typeof e=="number"?mP(e):Q1(e).fullStr,n=t.includes(".");return n?Q1(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const lnt=function(){var e=f.useRef(0),t=function(){Sr.cancel(e.current)};return f.useEffect(function(){return t},[]),function(n){t(),e.current=Sr(function(){n()})}};var cnt=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],unt=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],rte=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},ite=function(t){var n=sd(t);return n.isInvalidate()?null:n},dnt=f.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,o=e.min,a=e.max,s=e.step,l=s===void 0?1:s,c=e.defaultValue,u=e.value,d=e.disabled,h=e.readOnly,p=e.upHandler,m=e.downHandler,v=e.keyboard,y=e.changeOnWheel,S=y===void 0?!1:y,b=e.controls,C=b===void 0?!0:b;e.classNames;var _=e.stringMode,T=e.parser,x=e.formatter,E=e.precision,k=e.decimalSeparator,M=e.onChange,P=e.onInput,D=e.onPressEnter,R=e.onStep,A=e.changeOnBlur,H=A===void 0?!0:A,F=e.domRef,z=tn(e,cnt),W="".concat(n,"-input"),q=f.useRef(null),Z=f.useState(!1),N=Le(Z,2),B=N[0],V=N[1],Y=f.useRef(!1),ie=f.useRef(!1),ce=f.useRef(!1),fe=f.useState(function(){return sd(u??c)}),ee=Le(fe,2),ne=ee[0],ue=ee[1];function ye(St){u===void 0&&ue(St)}var me=f.useCallback(function(St,Ot){if(!Ot)return E>=0?E:Math.max(O1(St),O1(l))},[E,l]),pe=f.useCallback(function(St){var Ot=String(St);if(T)return T(Ot);var Bt=Ot;return k&&(Bt=Bt.replace(k,".")),Bt.replace(/[^\w.-]+/g,"")},[T,k]),he=f.useRef(""),_e=f.useCallback(function(St,Ot){if(x)return x(St,{userTyping:Ot,input:String(he.current)});var Bt=typeof St=="number"?mP(St):St;if(!Ot){var Dt=me(Bt,Ot);if(UW(Bt)&&(k||Dt>=0)){var an=k||".";Bt=z3(Bt,an,Dt)}}return Bt},[x,me,k]),le=f.useState(function(){var St=c??u;return ne.isInvalidate()&&["string","number"].includes(ln(St))?Number.isNaN(St)?"":St:_e(ne.toString(),!1)}),xe=Le(le,2),we=xe[0],De=xe[1];he.current=we;function Fe(St,Ot){De(_e(St.isInvalidate()?St.toString(!1):St.toString(!Ot),Ot))}var Ce=f.useMemo(function(){return ite(a)},[a,E]),Te=f.useMemo(function(){return ite(o)},[o,E]),ke=f.useMemo(function(){return!Ce||!ne||ne.isInvalidate()?!1:Ce.lessEquals(ne)},[Ce,ne]),Pe=f.useMemo(function(){return!Te||!ne||ne.isInvalidate()?!1:ne.lessEquals(Te)},[Te,ne]),Ne=rnt(q.current,B),We=Le(Ne,2),Q=We[0],K=We[1],J=function(Ot){return Ce&&!Ot.lessEquals(Ce)?Ce:Te&&!Te.lessEquals(Ot)?Te:null},be=function(Ot){return!J(Ot)},Oe=function(Ot,Bt){var Dt=Ot,an=be(Dt)||Dt.isEmpty();if(!Dt.isEmpty()&&!Bt&&(Dt=J(Dt)||Dt,an=!0),!h&&!d&&an){var Vt=Dt.toString(),Kt=me(Vt,Bt);return Kt>=0&&(Dt=sd(z3(Vt,".",Kt)),be(Dt)||(Dt=sd(z3(Vt,".",Kt,!0)))),Dt.equals(ne)||(ye(Dt),M==null||M(Dt.isEmpty()?null:rte(_,Dt)),u===void 0&&Fe(Dt,Bt)),Dt}return ne},Se=lnt(),Ke=function St(Ot){if(Q(),he.current=Ot,De(Ot),!ie.current){var Bt=pe(Ot),Dt=sd(Bt);Dt.isNaN()||Oe(Dt,!0)}P==null||P(Ot),Se(function(){var an=Ot;T||(an=Ot.replace(/。/g,".")),an!==Ot&&St(an)})},tt=function(){ie.current=!0},se=function(){ie.current=!1,Ke(q.current.value)},ze=function(Ot){Ke(Ot.target.value)},Ye=function(Ot){var Bt;if(!(Ot&&ke||!Ot&&Pe)){Y.current=!1;var Dt=sd(ce.current?nte(l):l);Ot||(Dt=Dt.negate());var an=(ne||sd(0)).add(Dt.toString()),Vt=Oe(an,!1);R==null||R(rte(_,Vt),{offset:ce.current?nte(l):l,type:Ot?"up":"down"}),(Bt=q.current)===null||Bt===void 0||Bt.focus()}},Ue=function(Ot){var Bt=sd(pe(we)),Dt;Bt.isNaN()?Dt=Oe(ne,Ot):Dt=Oe(Bt,Ot),u!==void 0?Fe(ne,!1):Dt.isNaN()||Fe(Dt,!1)},Je=function(){Y.current=!0},Ze=function(Ot){var Bt=Ot.key,Dt=Ot.shiftKey;Y.current=!0,ce.current=Dt,Bt==="Enter"&&(ie.current||(Y.current=!1),Ue(!1),D==null||D(Ot)),v!==!1&&!ie.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Bt)&&(Ye(Bt==="Up"||Bt==="ArrowUp"),Ot.preventDefault())},rt=function(){Y.current=!1,ce.current=!1};f.useEffect(function(){if(S&&B){var St=function(Dt){Ye(Dt.deltaY<0),Dt.preventDefault()},Ot=q.current;if(Ot)return Ot.addEventListener("wheel",St,{passive:!1}),function(){return Ot.removeEventListener("wheel",St)}}});var qt=function(){H&&Ue(!1),V(!1),Y.current=!1};return X1(function(){ne.isInvalidate()||Fe(ne,!1)},[E,x]),X1(function(){var St=sd(u);ue(St);var Ot=sd(pe(we));(!St.equals(Ot)||!Y.current||x)&&Fe(St,Y.current)},[u]),X1(function(){x&&K()},[we]),f.createElement("div",{ref:F,className:Re(n,r,ae(ae(ae(ae(ae({},"".concat(n,"-focused"),B),"".concat(n,"-disabled"),d),"".concat(n,"-readonly"),h),"".concat(n,"-not-a-number"),ne.isNaN()),"".concat(n,"-out-of-range"),!ne.isInvalidate()&&!be(ne))),style:i,onFocus:function(){V(!0)},onBlur:qt,onKeyDown:Ze,onKeyUp:rt,onCompositionStart:tt,onCompositionEnd:se,onBeforeInput:Je},C&&f.createElement(snt,{prefixCls:n,upNode:p,downNode:m,upDisabled:ke,downDisabled:Pe,onStep:Ye}),f.createElement("div",{className:"".concat(W,"-wrap")},f.createElement("input",ut({autoComplete:"off",role:"spinbutton","aria-valuemin":o,"aria-valuemax":a,"aria-valuenow":ne.isInvalidate()?null:ne.toString(),step:l},z,{ref:va(q,t),className:W,value:we,onChange:ze,disabled:d,readOnly:h}))))}),fnt=f.forwardRef(function(e,t){var n=e.disabled,r=e.style,i=e.prefixCls,o=i===void 0?"rc-input-number":i,a=e.value,s=e.prefix,l=e.suffix,c=e.addonBefore,u=e.addonAfter,d=e.className,h=e.classNames,p=tn(e,unt),m=f.useRef(null),v=f.useRef(null),y=f.useRef(null),S=function(C){y.current&&WW(y.current,C)};return f.useImperativeHandle(t,function(){return nnt(y.current,{focus:S,nativeElement:m.current.nativeElement||v.current})}),f.createElement(VW,{className:d,triggerFocus:S,prefixCls:o,value:a,disabled:n,style:r,prefix:s,suffix:l,addonAfter:u,addonBefore:c,classNames:h,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:m},f.createElement(dnt,ut({prefixCls:o,disabled:n,ref:y,domRef:v,className:h==null?void 0:h.input},p)))});const hnt=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto",r=e.controlHeightSM-e.lineWidth*2;return Object.assign(Object.assign({},IE(e)),{controlWidth:90,handleWidth:r,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new Cr(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0,handleVisibleWidth:n===!0?r:0})},ote=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:i}=e;const o=t==="lg"?i:r;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:o,borderEndEndRadius:o},[`${n}-handler-up`]:{borderStartEndRadius:o},[`${n}-handler-down`]:{borderEndEndRadius:o}}}},pnt=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:i,inputFontSizeSM:o,inputFontSizeLG:a,controlHeightLG:s,controlHeightSM:l,colorError:c,paddingInlineSM:u,paddingBlockSM:d,paddingBlockLG:h,paddingInlineLG:p,colorTextDescription:m,motionDurationMid:v,handleHoverColor:y,handleOpacity:S,paddingInline:b,paddingBlock:C,handleBg:_,handleActiveBg:T,colorTextDisabled:x,borderRadiusSM:E,borderRadiusLG:k,controlWidth:M,handleBorderColor:P,filledHandleBg:D,lineHeightLG:R,calc:A}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},$r(e)),$E(e)),{display:"inline-block",width:M,margin:0,padding:0,borderRadius:i}),AW(e,{[`${t}-handler-wrap`]:{background:_,[`${t}-handler-down`]:{borderBlockStart:`${je(n)} ${r} ${P}`}}})),DW(e,{[`${t}-handler-wrap`]:{background:D,[`${t}-handler-down`]:{borderBlockStart:`${je(n)} ${r} ${P}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:_}}})),NW(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,lineHeight:R,borderRadius:k,[`input${t}-input`]:{height:A(s).sub(A(n).mul(2)).equal(),padding:`${je(h)} ${je(p)}`}},"&-sm":{padding:0,fontSize:o,borderRadius:E,[`input${t}-input`]:{height:A(l).sub(A(n).mul(2)).equal(),padding:`${je(d)} ${je(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},$r(e)),fbe(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:k,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:E}}},lbe(e)),ube(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}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},$r(e)),{width:"100%",padding:`${je(C)} ${je(b)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:i,outline:0,transition:`all ${v} linear`,appearance:"textfield",fontSize:"inherit"}),LW(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:S,height:"100%",borderStartStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${v}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
||
${t}-handler-up-inner,
|
||
${t}-handler-down-inner
|
||
`]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:m,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${je(n)} ${r} ${P}`,transition:`all ${v} linear`,"&:active":{background:T},"&:hover":{height:"60%",[`
|
||
${t}-handler-up-inner,
|
||
${t}-handler-down-inner
|
||
`]:{color:y}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},qv()),{color:m,transition:`all ${v} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:i},[`${t}-handler-down`]:{borderEndEndRadius:i}},ote(e,"lg")),ote(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`
|
||
${t}-handler-up-disabled,
|
||
${t}-handler-down-disabled
|
||
`]:{cursor:"not-allowed"},[`
|
||
${t}-handler-up-disabled:hover &-handler-up-inner,
|
||
${t}-handler-down-disabled:hover &-handler-down-inner
|
||
`]:{color:x}})}]},mnt=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:i,controlWidth:o,borderRadiusLG:a,borderRadiusSM:s,paddingInlineLG:l,paddingInlineSM:c,paddingBlockLG:u,paddingBlockSM:d,motionDurationMid:h}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${je(n)} 0`}},$E(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:o,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:a,paddingInlineStart:l,[`input${t}-input`]:{padding:`${je(u)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:c,[`input${t}-input`]:{padding:`${je(d)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:i},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:i,transition:`margin ${h}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(r).equal()}})}},gnt=Tr("InputNumber",e=>{const t=ur(e,ME(e));return[pnt(t),mnt(t),Yv(t)]},hnt,{unitless:{handleOpacity:!0}});var vnt=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 Qbe=f.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=f.useContext(hn),i=f.useRef(null);f.useImperativeHandle(t,()=>i.current);const{className:o,rootClassName:a,size:s,disabled:l,prefixCls:c,addonBefore:u,addonAfter:d,prefix:h,suffix:p,bordered:m,readOnly:v,status:y,controls:S,variant:b}=e,C=vnt(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),_=n("input-number",c),T=_i(_),[x,E,k]=gnt(_,T),{compactSize:M,compactItemClassnames:P}=Zd(_,r);let D=f.createElement(Gtt,{className:`${_}-handler-up-inner`}),R=f.createElement(TE,{className:`${_}-handler-down-inner`});const A=typeof S=="boolean"?S:void 0;typeof S=="object"&&(D=typeof S.upIcon>"u"?D:f.createElement("span",{className:`${_}-handler-up-inner`},S.upIcon),R=typeof S.downIcon>"u"?R:f.createElement("span",{className:`${_}-handler-down-inner`},S.downIcon));const{hasFeedback:H,status:F,isFormItemInput:z,feedbackIcon:W}=f.useContext(pa),q=Op(F,y),Z=Ro(ne=>{var ue;return(ue=s??M)!==null&&ue!==void 0?ue:ne}),N=f.useContext(ea),B=l??N,[V,Y]=Pp("inputNumber",b,m),ie=H&&f.createElement(f.Fragment,null,W),ce=Re({[`${_}-lg`]:Z==="large",[`${_}-sm`]:Z==="small",[`${_}-rtl`]:r==="rtl",[`${_}-in-form-item`]:z},E),fe=`${_}-group`,ee=f.createElement(fnt,Object.assign({ref:i,disabled:B,className:Re(k,T,o,a,P),upHandler:D,downHandler:R,prefixCls:_,readOnly:v,controls:A,prefix:h,suffix:ie||p,addonBefore:u&&f.createElement(zd,{form:!0,space:!0},u),addonAfter:d&&f.createElement(zd,{form:!0,space:!0},d),classNames:{input:ce,variant:Re({[`${_}-${V}`]:Y},Ud(_,q,H)),affixWrapper:Re({[`${_}-affix-wrapper-sm`]:Z==="small",[`${_}-affix-wrapper-lg`]:Z==="large",[`${_}-affix-wrapper-rtl`]:r==="rtl",[`${_}-affix-wrapper-without-controls`]:S===!1},E),wrapper:Re({[`${fe}-rtl`]:r==="rtl"},E),groupWrapper:Re({[`${_}-group-wrapper-sm`]:Z==="small",[`${_}-group-wrapper-lg`]:Z==="large",[`${_}-group-wrapper-rtl`]:r==="rtl",[`${_}-group-wrapper-${V}`]:Y},Ud(`${_}-group-wrapper`,q,H),E)}},C));return x(ee)}),gp=Qbe,ynt=e=>f.createElement(or,{theme:{components:{InputNumber:{handleVisible:!0}}}},f.createElement(Qbe,Object.assign({},e)));gp._InternalPanelDoNotUseOrYouWillBeFired=ynt;const Z1=e=>{let{prefixCls:t,min:n=0,max:r=100,value:i,onChange:o,className:a,formatter:s}=e;const l=`${t}-steppers`,[c,u]=f.useState(i);return f.useEffect(()=>{Number.isNaN(i)||u(i)},[i]),ge.createElement(gp,{className:Re(l,a),min:n,max:r,value:c,formatter:s,size:"small",onChange:d=>{i||u(d||0),o==null||o(d)}})},bnt=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=`${t}-alpha-input`,[o,a]=f.useState(Ks(n||"#000"));f.useEffect(()=>{n&&a(n)},[n]);const s=l=>{const c=o.toHsb();c.a=(l||0)/100;const u=Ks(c);n||a(u),r==null||r(u)};return ge.createElement(Z1,{value:qU(o),prefixCls:t,formatter:l=>`${l}%`,className:i,onChange:s})},Snt=e=>{const{getPrefixCls:t,direction:n}=f.useContext(hn),{prefixCls:r,className:i}=e,o=t("input-group",r),a=t("input"),[s,l]=jW(a),c=Re(o,{[`${o}-lg`]:e.size==="large",[`${o}-sm`]:e.size==="small",[`${o}-compact`]:e.compact,[`${o}-rtl`]:n==="rtl"},l,i),u=f.useContext(pa),d=f.useMemo(()=>Object.assign(Object.assign({},u),{isFormItemInput:!1}),[u]);return s(f.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},f.createElement(pa.Provider,{value:d},e.children)))},Zbe=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:ge.createElement(th,null)}),t};function Jbe(e,t){const n=f.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var i,o,a,s;!((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"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return f.useEffect(()=>(t&&r(),()=>n.current.forEach(i=>{i&&clearTimeout(i)})),[]),r}function Cnt(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var xnt=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 gP=f.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:i=!0,status:o,size:a,disabled:s,onBlur:l,onFocus:c,suffix:u,allowClear:d,addonAfter:h,addonBefore:p,className:m,style:v,styles:y,rootClassName:S,onChange:b,classNames:C,variant:_}=e,T=xnt(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:x,direction:E,input:k}=ge.useContext(hn),M=x("input",r),P=f.useRef(null),D=_i(M),[R,A,H]=jW(M,D),{compactSize:F,compactItemClassnames:z}=Zd(M,E),W=Ro(he=>{var _e;return(_e=a??F)!==null&&_e!==void 0?_e:he}),q=ge.useContext(ea),Z=s??q,{status:N,hasFeedback:B,feedbackIcon:V}=f.useContext(pa),Y=Op(N,o),ie=Cnt(e)||!!B;f.useRef(ie);const ce=Jbe(P,!0),fe=he=>{ce(),l==null||l(he)},ee=he=>{ce(),c==null||c(he)},ne=he=>{ce(),b==null||b(he)},ue=(B||u)&&ge.createElement(ge.Fragment,null,u,B&&V),ye=Zbe(d??(k==null?void 0:k.allowClear)),[me,pe]=Pp("input",_,i);return R(ge.createElement(tnt,Object.assign({ref:va(t,P),prefixCls:M,autoComplete:k==null?void 0:k.autoComplete},T,{disabled:Z,onBlur:fe,onFocus:ee,style:Object.assign(Object.assign({},k==null?void 0:k.style),v),styles:Object.assign(Object.assign({},k==null?void 0:k.styles),y),suffix:ue,allowClear:ye,className:Re(m,S,H,D,z,k==null?void 0:k.className),onChange:ne,addonBefore:p&&ge.createElement(zd,{form:!0,space:!0},p),addonAfter:h&&ge.createElement(zd,{form:!0,space:!0},h),classNames:Object.assign(Object.assign(Object.assign({},C),k==null?void 0:k.classNames),{input:Re({[`${M}-sm`]:W==="small",[`${M}-lg`]:W==="large",[`${M}-rtl`]:E==="rtl"},C==null?void 0:C.input,(n=k==null?void 0:k.classNames)===null||n===void 0?void 0:n.input,A),variant:Re({[`${M}-${me}`]:pe},Ud(M,Y)),affixWrapper:Re({[`${M}-affix-wrapper-sm`]:W==="small",[`${M}-affix-wrapper-lg`]:W==="large",[`${M}-affix-wrapper-rtl`]:E==="rtl"},A),wrapper:Re({[`${M}-group-rtl`]:E==="rtl"},A),groupWrapper:Re({[`${M}-group-wrapper-sm`]:W==="small",[`${M}-group-wrapper-lg`]:W==="large",[`${M}-group-wrapper-rtl`]:E==="rtl",[`${M}-group-wrapper-${me}`]:pe},Ud(`${M}-group-wrapper`,Y,B),A)})})))}),wnt=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}}}},_nt=Tr(["Input","OTP"],e=>{const t=ur(e,ME(e));return[wnt(t)]},IE);var Ent=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 Tnt=f.forwardRef((e,t)=>{const{value:n,onChange:r,onActiveChange:i,index:o,mask:a}=e,s=Ent(e,["value","onChange","onActiveChange","index","mask"]),l=n&&typeof a=="string"?a:n,c=m=>{r(o,m.target.value)},u=f.useRef(null);f.useImperativeHandle(t,()=>u.current);const d=()=>{Sr(()=>{var m;const v=(m=u.current)===null||m===void 0?void 0:m.input;document.activeElement===v&&v&&v.select()})},h=m=>{const{key:v,ctrlKey:y,metaKey:S}=m;v==="ArrowLeft"?i(o-1):v==="ArrowRight"?i(o+1):v==="z"&&(y||S)&&m.preventDefault(),d()},p=m=>{m.key==="Backspace"&&!n&&i(o-1),d()};return f.createElement(gP,Object.assign({type:a===!0?"password":"text"},s,{ref:u,value:l,onInput:c,onFocus:d,onKeyDown:h,onKeyUp:p,onMouseDown:d,onMouseUp:d}))});var knt=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 t5(e){return(e||"").split("")}const Ont=f.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:i,defaultValue:o,value:a,onChange:s,formatter:l,variant:c,disabled:u,status:d,autoFocus:h,mask:p,type:m,onInput:v,inputMode:y}=e,S=knt(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:b,direction:C}=f.useContext(hn),_=b("otp",n),T=Hi(S,{aria:!0,data:!0,attr:!0}),x=_i(_),[E,k,M]=_nt(_,x),P=Ro(ie=>i??ie),D=f.useContext(pa),R=Op(D.status,d),A=f.useMemo(()=>Object.assign(Object.assign({},D),{status:R,hasFeedback:!1,feedbackIcon:null}),[D,R]),H=f.useRef(null),F=f.useRef({});f.useImperativeHandle(t,()=>({focus:()=>{var ie;(ie=F.current[0])===null||ie===void 0||ie.focus()},blur:()=>{var ie;for(let ce=0;ce<r;ce+=1)(ie=F.current[ce])===null||ie===void 0||ie.blur()},nativeElement:H.current}));const z=ie=>l?l(ie):ie,[W,q]=f.useState(t5(z(o||"")));f.useEffect(()=>{a!==void 0&&q(t5(a))},[a]);const Z=cr(ie=>{q(ie),v&&v(ie),s&&ie.length===r&&ie.every(ce=>ce)&&ie.some((ce,fe)=>W[fe]!==ce)&&s(ie.join(""))}),N=cr((ie,ce)=>{let fe=pt(W);for(let ne=0;ne<ie;ne+=1)fe[ne]||(fe[ne]="");ce.length<=1?fe[ie]=ce:fe=fe.slice(0,ie).concat(t5(ce)),fe=fe.slice(0,r);for(let ne=fe.length-1;ne>=0&&!fe[ne];ne-=1)fe.pop();const ee=z(fe.map(ne=>ne||" ").join(""));return fe=t5(ee).map((ne,ue)=>ne===" "&&!fe[ue]?fe[ue]:ne),fe}),B=(ie,ce)=>{var fe;const ee=N(ie,ce),ne=Math.min(ie+ce.length,r-1);ne!==ie&&ee[ie]!==void 0&&((fe=F.current[ne])===null||fe===void 0||fe.focus()),Z(ee)},V=ie=>{var ce;(ce=F.current[ie])===null||ce===void 0||ce.focus()},Y={variant:c,disabled:u,status:R,mask:p,type:m,inputMode:y};return E(f.createElement("div",Object.assign({},T,{ref:H,className:Re(_,{[`${_}-sm`]:P==="small",[`${_}-lg`]:P==="large",[`${_}-rtl`]:C==="rtl"},M,k)}),f.createElement(pa.Provider,{value:A},Array.from({length:r}).map((ie,ce)=>{const fe=`otp-${ce}`,ee=W[ce]||"";return f.createElement(Tnt,Object.assign({ref:ne=>{F.current[ce]=ne},key:fe,index:ce,size:P,htmlSize:1,className:`${_}-input`,onChange:B,value:ee,onActiveChange:V,autoFocus:ce===0&&h},Y))}))))});var Pnt={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"},Mnt=function(t,n){return f.createElement(wr,ut({},t,{ref:n,icon:Pnt}))},eSe=f.forwardRef(Mnt),tSe={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"},Int=function(t,n){return f.createElement(wr,ut({},t,{ref:n,icon:tSe}))},vP=f.forwardRef(Int),$nt=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 Rnt=e=>e?f.createElement(vP,null):f.createElement(eSe,null),Ant={click:"onClick",hover:"onMouseOver"},Nnt=f.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:i=!0,iconRender:o=Rnt}=e,a=f.useContext(ea),s=n??a,l=typeof i=="object"&&i.visible!==void 0,[c,u]=f.useState(()=>l?i.visible:!1),d=f.useRef(null);f.useEffect(()=>{l&&u(i.visible)},[l,i]);const h=Jbe(d),p=()=>{var P;if(s)return;c&&h();const D=!c;u(D),typeof i=="object"&&((P=i.onVisibleChange)===null||P===void 0||P.call(i,D))},m=P=>{const D=Ant[r]||"",R=o(c),A={[D]:p,className:`${P}-icon`,key:"passwordIcon",onMouseDown:H=>{H.preventDefault()},onMouseUp:H=>{H.preventDefault()}};return f.cloneElement(f.isValidElement(R)?R:f.createElement("span",null,R),A)},{className:v,prefixCls:y,inputPrefixCls:S,size:b}=e,C=$nt(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:_}=f.useContext(hn),T=_("input",S),x=_("input-password",y),E=i&&m(x),k=Re(x,v,{[`${x}-${b}`]:!!b}),M=Object.assign(Object.assign({},Pr(C,["suffix","iconRender","visibilityToggle"])),{type:c?"text":"password",className:k,prefixCls:T,suffix:E});return b&&(M.size=b),f.createElement(gP,Object.assign({ref:va(t,d)},M))});var Dnt=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 Lnt=f.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:i,size:o,suffix:a,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:d,onChange:h,onCompositionStart:p,onCompositionEnd:m}=e,v=Dnt(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:y,direction:S}=f.useContext(hn),b=f.useRef(!1),C=y("input-search",n),_=y("input",r),{compactSize:T}=Zd(C,S),x=Ro(B=>{var V;return(V=o??T)!==null&&V!==void 0?V:B}),E=f.useRef(null),k=B=>{B!=null&&B.target&&B.type==="click"&&d&&d(B.target.value,B,{source:"clear"}),h==null||h(B)},M=B=>{var V;document.activeElement===((V=E.current)===null||V===void 0?void 0:V.input)&&B.preventDefault()},P=B=>{var V,Y;d&&d((Y=(V=E.current)===null||V===void 0?void 0:V.input)===null||Y===void 0?void 0:Y.value,B,{source:"input"})},D=B=>{b.current||c||P(B)},R=typeof s=="boolean"?f.createElement(XO,null):null,A=`${C}-button`;let H;const F=s||{},z=F.type&&F.type.__ANT_BUTTON===!0;z||F.type==="button"?H=$o(F,Object.assign({onMouseDown:M,onClick:B=>{var V,Y;(Y=(V=F==null?void 0:F.props)===null||V===void 0?void 0:V.onClick)===null||Y===void 0||Y.call(V,B),P(B)},key:"enterButton"},z?{className:A,size:x}:{})):H=f.createElement(hr,{className:A,type:s?"primary":void 0,size:x,disabled:u,key:"enterButton",onMouseDown:M,onClick:P,loading:c,icon:R},s),l&&(H=[H,$o(l,{key:"addonAfter"})]);const W=Re(C,{[`${C}-rtl`]:S==="rtl",[`${C}-${x}`]:!!x,[`${C}-with-button`]:!!s},i),q=Object.assign(Object.assign({},v),{className:W,prefixCls:_,type:"search"}),Z=B=>{b.current=!0,p==null||p(B)},N=B=>{b.current=!1,m==null||m(B)};return f.createElement(gP,Object.assign({ref:va(E,t),onPressEnter:D},q,{size:x,onCompositionStart:Z,onCompositionEnd:N,addonAfter:H,suffix:a,onChange:k,disabled:u}))});var Fnt=`
|
||
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;
|
||
`,jnt=["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"],VR={},lc;function Bnt(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&&VR[n])return VR[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")),s=jnt.map(function(c){return"".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:o,borderSize:a,boxSizing:i};return t&&n&&(VR[n]=l),l}function Hnt(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;lc||(lc=document.createElement("textarea"),lc.setAttribute("tab-index","-1"),lc.setAttribute("aria-hidden","true"),lc.setAttribute("name","hiddenTextarea"),document.body.appendChild(lc)),e.getAttribute("wrap")?lc.setAttribute("wrap",e.getAttribute("wrap")):lc.removeAttribute("wrap");var i=Bnt(e,t),o=i.paddingSize,a=i.borderSize,s=i.boxSizing,l=i.sizingStyle;lc.setAttribute("style","".concat(l,";").concat(Fnt)),lc.value=e.value||e.placeholder||"";var c=void 0,u=void 0,d,h=lc.scrollHeight;if(s==="border-box"?h+=a:s==="content-box"&&(h-=o),n!==null||r!==null){lc.value=" ";var p=lc.scrollHeight-o;n!==null&&(c=p*n,s==="border-box"&&(c=c+o+a),h=Math.max(c,h)),r!==null&&(u=p*r,s==="border-box"&&(u=u+o+a),d=h>u?"":"hidden",h=Math.min(u,h))}var m={height:h,overflowY:d,resize:"none"};return c&&(m.minHeight=c),u&&(m.maxHeight=u),m}var znt=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],KR=0,qR=1,GR=2,Unt=f.forwardRef(function(e,t){var n=e,r=n.prefixCls,i=n.defaultValue,o=n.value,a=n.autoSize,s=n.onResize,l=n.className,c=n.style,u=n.disabled,d=n.onChange;n.onInternalAutoSize;var h=tn(n,znt),p=Jn(i,{value:o,postState:function(ie){return ie??""}}),m=Le(p,2),v=m[0],y=m[1],S=function(ie){y(ie.target.value),d==null||d(ie)},b=f.useRef();f.useImperativeHandle(t,function(){return{textArea:b.current}});var C=f.useMemo(function(){return a&&ln(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),_=Le(C,2),T=_[0],x=_[1],E=!!a,k=function(){try{if(document.activeElement===b.current){var ie=b.current,ce=ie.selectionStart,fe=ie.selectionEnd,ee=ie.scrollTop;b.current.setSelectionRange(ce,fe),b.current.scrollTop=ee}}catch{}},M=f.useState(GR),P=Le(M,2),D=P[0],R=P[1],A=f.useState(),H=Le(A,2),F=H[0],z=H[1],W=function(){R(KR)};Er(function(){E&&W()},[o,T,x,E]),Er(function(){if(D===KR)R(qR);else if(D===qR){var Y=Hnt(b.current,!1,T,x);R(GR),z(Y)}else k()},[D]);var q=f.useRef(),Z=function(){Sr.cancel(q.current)},N=function(ie){D===GR&&(s==null||s(ie),a&&(Z(),q.current=Sr(function(){W()})))};f.useEffect(function(){return Z},[]);var B=E?F:null,V=G(G({},c),B);return(D===KR||D===qR)&&(V.overflowY="hidden",V.overflowX="hidden"),f.createElement(Va,{onResize:N,disabled:!(a||s)},f.createElement("textarea",ut({},h,{ref:b,style:V,className:Re(r,l,ae({},"".concat(r,"-disabled"),u)),disabled:u,value:v,onChange:S})))}),Wnt=["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"],Vnt=ge.forwardRef(function(e,t){var n,r=e.defaultValue,i=e.value,o=e.onFocus,a=e.onBlur,s=e.onChange,l=e.allowClear,c=e.maxLength,u=e.onCompositionStart,d=e.onCompositionEnd,h=e.suffix,p=e.prefixCls,m=p===void 0?"rc-textarea":p,v=e.showCount,y=e.count,S=e.className,b=e.style,C=e.disabled,_=e.hidden,T=e.classNames,x=e.styles,E=e.onResize,k=e.onClear,M=e.onPressEnter,P=e.readOnly,D=e.autoSize,R=e.onKeyDown,A=tn(e,Wnt),H=Jn(r,{value:i,defaultValue:r}),F=Le(H,2),z=F[0],W=F[1],q=z==null?"":String(z),Z=ge.useState(!1),N=Le(Z,2),B=N[0],V=N[1],Y=ge.useRef(!1),ie=ge.useState(null),ce=Le(ie,2),fe=ce[0],ee=ce[1],ne=f.useRef(null),ue=f.useRef(null),ye=function(){var se;return(se=ue.current)===null||se===void 0?void 0:se.textArea},me=function(){ye().focus()};f.useImperativeHandle(t,function(){var tt;return{resizableTextArea:ue.current,focus:me,blur:function(){ye().blur()},nativeElement:((tt=ne.current)===null||tt===void 0?void 0:tt.nativeElement)||ye()}}),f.useEffect(function(){V(function(tt){return!C&&tt})},[C]);var pe=ge.useState(null),he=Le(pe,2),_e=he[0],le=he[1];ge.useEffect(function(){if(_e){var tt;(tt=ye()).setSelectionRange.apply(tt,pt(_e))}},[_e]);var xe=Xbe(y,v),we=(n=xe.max)!==null&&n!==void 0?n:c,De=Number(we)>0,Fe=xe.strategy(q),Ce=!!we&&Fe>we,Te=function(se,ze){var Ye=ze;!Y.current&&xe.exceedFormatter&&xe.max&&xe.strategy(ze)>xe.max&&(Ye=xe.exceedFormatter(ze,{max:xe.max}),ze!==Ye&&le([ye().selectionStart||0,ye().selectionEnd||0])),W(Ye),Y9(se.currentTarget,se,s,Ye)},ke=function(se){Y.current=!0,u==null||u(se)},Pe=function(se){Y.current=!1,Te(se,se.currentTarget.value),d==null||d(se)},Ne=function(se){Te(se,se.target.value)},We=function(se){se.key==="Enter"&&M&&M(se),R==null||R(se)},Q=function(se){V(!0),o==null||o(se)},K=function(se){V(!1),a==null||a(se)},J=function(se){W(""),me(),Y9(ye(),se,s)},be=h,Oe;xe.show&&(xe.showFormatter?Oe=xe.showFormatter({value:q,count:Fe,maxLength:we}):Oe="".concat(Fe).concat(De?" / ".concat(we):""),be=ge.createElement(ge.Fragment,null,be,ge.createElement("span",{className:Re("".concat(m,"-data-count"),T==null?void 0:T.count),style:x==null?void 0:x.count},Oe)));var Se=function(se){var ze;E==null||E(se),(ze=ye())!==null&&ze!==void 0&&ze.style.height&&ee(!0)},Ke=!D&&!v&&!l;return ge.createElement(VW,{ref:ne,value:q,allowClear:l,handleReset:J,suffix:be,prefixCls:m,classNames:G(G({},T),{},{affixWrapper:Re(T==null?void 0:T.affixWrapper,ae(ae({},"".concat(m,"-show-count"),v),"".concat(m,"-textarea-allow-clear"),l))}),disabled:C,focused:B,className:Re(S,Ce&&"".concat(m,"-out-of-range")),style:G(G({},b),fe&&!Ke?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Oe=="string"?Oe:void 0}},hidden:_,readOnly:P,onClear:k},ge.createElement(Unt,ut({},A,{autoSize:D,maxLength:c,onKeyDown:We,onChange:Ne,onFocus:Q,onBlur:K,onCompositionStart:ke,onCompositionEnd:Pe,className:Re(T==null?void 0:T.textarea),style:G(G({},x==null?void 0:x.textarea),{},{resize:b==null?void 0:b.resize}),disabled:C,prefixCls:m,onResize:Se,ref:ue,readOnly:P})))}),Knt=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 nSe=f.forwardRef((e,t)=>{var n,r;const{prefixCls:i,bordered:o=!0,size:a,disabled:s,status:l,allowClear:c,classNames:u,rootClassName:d,className:h,style:p,styles:m,variant:v}=e,y=Knt(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:S,direction:b,textArea:C}=f.useContext(hn),_=Ro(a),T=f.useContext(ea),x=s??T,{status:E,hasFeedback:k,feedbackIcon:M}=f.useContext(pa),P=Op(E,l),D=f.useRef(null);f.useImperativeHandle(t,()=>{var N;return{resizableTextArea:(N=D.current)===null||N===void 0?void 0:N.resizableTextArea,focus:B=>{var V,Y;WW((Y=(V=D.current)===null||V===void 0?void 0:V.resizableTextArea)===null||Y===void 0?void 0:Y.textArea,B)},blur:()=>{var B;return(B=D.current)===null||B===void 0?void 0:B.blur()}}});const R=S("input",i),A=_i(R),[H,F,z]=jW(R,A),[W,q]=Pp("textArea",v,o),Z=Zbe(c??(C==null?void 0:C.allowClear));return H(f.createElement(Vnt,Object.assign({autoComplete:C==null?void 0:C.autoComplete},y,{style:Object.assign(Object.assign({},C==null?void 0:C.style),p),styles:Object.assign(Object.assign({},C==null?void 0:C.styles),m),disabled:x,allowClear:Z,className:Re(z,A,h,d,C==null?void 0:C.className),classNames:Object.assign(Object.assign(Object.assign({},u),C==null?void 0:C.classNames),{textarea:Re({[`${R}-sm`]:_==="small",[`${R}-lg`]:_==="large"},F,u==null?void 0:u.textarea,(n=C==null?void 0:C.classNames)===null||n===void 0?void 0:n.textarea),variant:Re({[`${R}-${W}`]:q},Ud(R,P)),affixWrapper:Re(`${R}-textarea-affix-wrapper`,{[`${R}-affix-wrapper-rtl`]:b==="rtl",[`${R}-affix-wrapper-sm`]:_==="small",[`${R}-affix-wrapper-lg`]:_==="large",[`${R}-textarea-show-count`]:e.showCount||((r=e.count)===null||r===void 0?void 0:r.show)},F)}),prefixCls:R,suffix:k&&f.createElement("span",{className:`${R}-textarea-suffix`},M),ref:D})))}),$i=gP;$i.Group=Snt;$i.Search=Lnt;$i.TextArea=nSe;$i.Password=Nnt;$i.OTP=Ont;const qnt=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,Gnt=e=>qnt.test(`#${e}`),Ynt=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=`${t}-hex-input`,[o,a]=f.useState(()=>n?C2(n.toHexString()):void 0);f.useEffect(()=>{n&&a(C2(n.toHexString()))},[n]);const s=l=>{const c=l.target.value;a(C2(c)),Gnt(C2(c,!0))&&(r==null||r(Ks(c)))};return ge.createElement($i,{className:i,value:o,prefix:"#",onChange:s,size:"small"})},Xnt=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=`${t}-hsb-input`,[o,a]=f.useState(Ks(n||"#000"));f.useEffect(()=>{n&&a(n)},[n]);const s=(l,c)=>{const u=o.toHsb();u[c]=c==="h"?l:(l||0)/100;const d=Ks(u);n||a(d),r==null||r(d)};return ge.createElement("div",{className:i},ge.createElement(Z1,{max:360,min:0,value:Number(o.toHsb().h),prefixCls:t,className:i,formatter:l=>L3(l||0).toString(),onChange:l=>s(Number(l),"h")}),ge.createElement(Z1,{max:100,min:0,value:Number(o.toHsb().s)*100,prefixCls:t,className:i,formatter:l=>`${L3(l||0)}%`,onChange:l=>s(Number(l),"s")}),ge.createElement(Z1,{max:100,min:0,value:Number(o.toHsb().b)*100,prefixCls:t,className:i,formatter:l=>`${L3(l||0)}%`,onChange:l=>s(Number(l),"b")}))},Qnt=e=>{let{prefixCls:t,value:n,onChange:r}=e;const i=`${t}-rgb-input`,[o,a]=f.useState(Ks(n||"#000"));f.useEffect(()=>{n&&a(n)},[n]);const s=(l,c)=>{const u=o.toRgb();u[c]=l||0;const d=Ks(u);n||a(d),r==null||r(d)};return ge.createElement("div",{className:i},ge.createElement(Z1,{max:255,min:0,value:Number(o.toRgb().r),prefixCls:t,className:i,onChange:l=>s(Number(l),"r")}),ge.createElement(Z1,{max:255,min:0,value:Number(o.toRgb().g),prefixCls:t,className:i,onChange:l=>s(Number(l),"g")}),ge.createElement(Z1,{max:255,min:0,value:Number(o.toRgb().b),prefixCls:t,className:i,onChange:l=>s(Number(l),"b")}))},Znt=[Ym.hex,Ym.hsb,Ym.rgb].map(e=>({value:e,label:e.toLocaleUpperCase()})),Jnt=e=>{const{prefixCls:t,format:n,value:r,disabledAlpha:i,onFormatChange:o,onChange:a,disabledFormat:s}=e,[l,c]=Jn(Ym.hex,{value:n,onChange:o}),u=`${t}-input`,d=p=>{c(p)},h=f.useMemo(()=>{const p={value:r,prefixCls:t,onChange:a};switch(l){case Ym.hsb:return ge.createElement(Xnt,Object.assign({},p));case Ym.rgb:return ge.createElement(Qnt,Object.assign({},p));default:return ge.createElement(Ynt,Object.assign({},p))}},[l,t,r,a]);return ge.createElement("div",{className:`${u}-container`},!s&&ge.createElement(bs,{value:l,variant:"borderless",getPopupContainer:p=>p,popupMatchSelectWidth:68,placement:"bottomRight",onChange:d,className:`${t}-format-select`,size:"small",options:Znt}),ge.createElement("div",{className:u},h),!i&&ge.createElement(bnt,{prefixCls:t,value:r,onChange:a}))};function ij(e,t,n){return(e-t)/(n-t)}function KW(e,t,n,r){var i=ij(t,n,r),o={};switch(e){case"rtl":o.right="".concat(i*100,"%"),o.transform="translateX(50%)";break;case"btt":o.bottom="".concat(i*100,"%"),o.transform="translateY(50%)";break;case"ttb":o.top="".concat(i*100,"%"),o.transform="translateY(-50%)";break;default:o.left="".concat(i*100,"%"),o.transform="translateX(-50%)";break}return o}function h1(e,t){return Array.isArray(e)?e[t]:e}var Jv=f.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),rSe=f.createContext({}),ert=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],ate=f.forwardRef(function(e,t){var n=e.prefixCls,r=e.value,i=e.valueIndex,o=e.onStartMove,a=e.onDelete,s=e.style,l=e.render,c=e.dragging,u=e.draggingDelete,d=e.onOffsetChange,h=e.onChangeComplete,p=e.onFocus,m=e.onMouseEnter,v=tn(e,ert),y=f.useContext(Jv),S=y.min,b=y.max,C=y.direction,_=y.disabled,T=y.keyboard,x=y.range,E=y.tabIndex,k=y.ariaLabelForHandle,M=y.ariaLabelledByForHandle,P=y.ariaRequired,D=y.ariaValueTextFormatterForHandle,R=y.styles,A=y.classNames,H="".concat(n,"-handle"),F=function(ce){_||o(ce,i)},z=function(ce){p==null||p(ce,i)},W=function(ce){m(ce,i)},q=function(ce){if(!_&&T){var fe=null;switch(ce.which||ce.keyCode){case Pt.LEFT:fe=C==="ltr"||C==="btt"?-1:1;break;case Pt.RIGHT:fe=C==="ltr"||C==="btt"?1:-1;break;case Pt.UP:fe=C!=="ttb"?1:-1;break;case Pt.DOWN:fe=C!=="ttb"?-1:1;break;case Pt.HOME:fe="min";break;case Pt.END:fe="max";break;case Pt.PAGE_UP:fe=2;break;case Pt.PAGE_DOWN:fe=-2;break;case Pt.BACKSPACE:case Pt.DELETE:a(i);break}fe!==null&&(ce.preventDefault(),d(fe,i))}},Z=function(ce){switch(ce.which||ce.keyCode){case Pt.LEFT:case Pt.RIGHT:case Pt.UP:case Pt.DOWN:case Pt.HOME:case Pt.END:case Pt.PAGE_UP:case Pt.PAGE_DOWN:h==null||h();break}},N=KW(C,r,S,b),B={};if(i!==null){var V;B={tabIndex:_?null:h1(E,i),role:"slider","aria-valuemin":S,"aria-valuemax":b,"aria-valuenow":r,"aria-disabled":_,"aria-label":h1(k,i),"aria-labelledby":h1(M,i),"aria-required":h1(P,i),"aria-valuetext":(V=h1(D,i))===null||V===void 0?void 0:V(r),"aria-orientation":C==="ltr"||C==="rtl"?"horizontal":"vertical",onMouseDown:F,onTouchStart:F,onFocus:z,onMouseEnter:W,onKeyDown:q,onKeyUp:Z}}var Y=f.createElement("div",ut({ref:t,className:Re(H,ae(ae(ae({},"".concat(H,"-").concat(i+1),i!==null&&x),"".concat(H,"-dragging"),c),"".concat(H,"-dragging-delete"),u),A.handle),style:G(G(G({},N),s),R.handle)},B,v));return l&&(Y=l(Y,{index:i,prefixCls:n,value:r,dragging:c,draggingDelete:u})),Y}),trt=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],nrt=f.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,i=e.onStartMove,o=e.onOffsetChange,a=e.values,s=e.handleRender,l=e.activeHandleRender,c=e.draggingIndex,u=e.draggingDelete,d=e.onFocus,h=tn(e,trt),p=f.useRef({}),m=f.useState(!1),v=Le(m,2),y=v[0],S=v[1],b=f.useState(-1),C=Le(b,2),_=C[0],T=C[1],x=function(D){T(D),S(!0)},E=function(D,R){x(R),d==null||d(D)},k=function(D,R){x(R)};f.useImperativeHandle(t,function(){return{focus:function(D){var R;(R=p.current[D])===null||R===void 0||R.focus()},hideHelp:function(){Nc.flushSync(function(){S(!1)})}}});var M=G({prefixCls:n,onStartMove:i,onOffsetChange:o,render:s,onFocus:E,onMouseEnter:k},h);return f.createElement(f.Fragment,null,a.map(function(P,D){var R=c===D;return f.createElement(ate,ut({ref:function(H){H?p.current[D]=H:delete p.current[D]},dragging:R,draggingDelete:R&&u,style:h1(r,D),key:D,value:P,valueIndex:D},M))}),l&&y&&f.createElement(ate,ut({key:"a11y"},M,{value:a[_],valueIndex:null,dragging:c!==-1,draggingDelete:u,render:l,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),rrt=function(t){var n=t.prefixCls,r=t.style,i=t.children,o=t.value,a=t.onClick,s=f.useContext(Jv),l=s.min,c=s.max,u=s.direction,d=s.includedStart,h=s.includedEnd,p=s.included,m="".concat(n,"-text"),v=KW(u,o,l,c);return f.createElement("span",{className:Re(m,ae({},"".concat(m,"-active"),p&&d<=o&&o<=h)),style:G(G({},v),r),onMouseDown:function(S){S.stopPropagation()},onClick:function(){a(o)}},i)},irt=function(t){var n=t.prefixCls,r=t.marks,i=t.onClick,o="".concat(n,"-mark");return r.length?f.createElement("div",{className:o},r.map(function(a){var s=a.value,l=a.style,c=a.label;return f.createElement(rrt,{key:s,prefixCls:o,style:l,value:s,onClick:i},c)})):null},ort=function(t){var n=t.prefixCls,r=t.value,i=t.style,o=t.activeStyle,a=f.useContext(Jv),s=a.min,l=a.max,c=a.direction,u=a.included,d=a.includedStart,h=a.includedEnd,p="".concat(n,"-dot"),m=u&&d<=r&&r<=h,v=G(G({},KW(c,r,s,l)),typeof i=="function"?i(r):i);return m&&(v=G(G({},v),typeof o=="function"?o(r):o)),f.createElement("span",{className:Re(p,ae({},"".concat(p,"-active"),m)),style:v})},art=function(t){var n=t.prefixCls,r=t.marks,i=t.dots,o=t.style,a=t.activeStyle,s=f.useContext(Jv),l=s.min,c=s.max,u=s.step,d=f.useMemo(function(){var h=new Set;if(r.forEach(function(m){h.add(m.value)}),i&&u!==null)for(var p=l;p<=c;)h.add(p),p+=u;return Array.from(h)},[l,c,u,i,r]);return f.createElement("div",{className:"".concat(n,"-step")},d.map(function(h){return f.createElement(ort,{prefixCls:n,key:h,value:h,style:o,activeStyle:a})}))},ste=function(t){var n=t.prefixCls,r=t.style,i=t.start,o=t.end,a=t.index,s=t.onStartMove,l=t.replaceCls,c=f.useContext(Jv),u=c.direction,d=c.min,h=c.max,p=c.disabled,m=c.range,v=c.classNames,y="".concat(n,"-track"),S=ij(i,d,h),b=ij(o,d,h),C=function(E){!p&&s&&s(E,-1)},_={};switch(u){case"rtl":_.right="".concat(S*100,"%"),_.width="".concat(b*100-S*100,"%");break;case"btt":_.bottom="".concat(S*100,"%"),_.height="".concat(b*100-S*100,"%");break;case"ttb":_.top="".concat(S*100,"%"),_.height="".concat(b*100-S*100,"%");break;default:_.left="".concat(S*100,"%"),_.width="".concat(b*100-S*100,"%")}var T=l||Re(y,ae(ae({},"".concat(y,"-").concat(a+1),a!==null&&m),"".concat(n,"-track-draggable"),s),v.track);return f.createElement("div",{className:T,style:G(G({},_),r),onMouseDown:C,onTouchStart:C})},srt=function(t){var n=t.prefixCls,r=t.style,i=t.values,o=t.startPoint,a=t.onStartMove,s=f.useContext(Jv),l=s.included,c=s.range,u=s.min,d=s.styles,h=s.classNames,p=f.useMemo(function(){if(!c){if(i.length===0)return[];var v=o??u,y=i[0];return[{start:Math.min(v,y),end:Math.max(v,y)}]}for(var S=[],b=0;b<i.length-1;b+=1)S.push({start:i[b],end:i[b+1]});return S},[i,c,o,u]);if(!l)return null;var m=p!=null&&p.length&&(h.tracks||d.tracks)?f.createElement(ste,{index:null,prefixCls:n,start:p[0].start,end:p[p.length-1].end,replaceCls:Re(h.tracks,"".concat(n,"-tracks")),style:d.tracks}):null;return f.createElement(f.Fragment,null,m,p.map(function(v,y){var S=v.start,b=v.end;return f.createElement(ste,{index:y,prefixCls:n,style:G(G({},h1(r,y)),d.track),start:S,end:b,key:y,onStartMove:a})}))},lrt=130;function lte(e){var t="targetTouches"in e?e.targetTouches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function crt(e,t,n,r,i,o,a,s,l,c,u){var d=f.useState(null),h=Le(d,2),p=h[0],m=h[1],v=f.useState(-1),y=Le(v,2),S=y[0],b=y[1],C=f.useState(!1),_=Le(C,2),T=_[0],x=_[1],E=f.useState(n),k=Le(E,2),M=k[0],P=k[1],D=f.useState(n),R=Le(D,2),A=R[0],H=R[1],F=f.useRef(null),z=f.useRef(null),W=f.useRef(null),q=f.useContext(rSe),Z=q.onDragStart,N=q.onDragChange;Er(function(){S===-1&&P(n)},[n,S]),f.useEffect(function(){return function(){document.removeEventListener("mousemove",F.current),document.removeEventListener("mouseup",z.current),W.current&&(W.current.removeEventListener("touchmove",F.current),W.current.removeEventListener("touchend",z.current))}},[]);var B=function(fe,ee,ne){ee!==void 0&&m(ee),P(fe);var ue=fe;ne&&(ue=fe.filter(function(ye,me){return me!==S})),a(ue),N&&N({rawValues:fe,deleteIndex:ne?S:-1,draggingIndex:S,draggingValue:ee})},V=cr(function(ce,fe,ee){if(ce===-1){var ne=A[0],ue=A[A.length-1],ye=r-ne,me=i-ue,pe=fe*(i-r);pe=Math.max(pe,ye),pe=Math.min(pe,me);var he=o(ne+pe);pe=he-ne;var _e=A.map(function(De){return De+pe});B(_e)}else{var le=(i-r)*fe,xe=pt(M);xe[ce]=A[ce];var we=l(xe,le,ce,"dist");B(we.values,we.value,ee)}}),Y=function(fe,ee,ne){fe.stopPropagation();var ue=ne||n,ye=ue[ee];b(ee),m(ye),H(ue),P(ue),x(!1);var me=lte(fe),pe=me.pageX,he=me.pageY,_e=!1;Z&&Z({rawValues:ue,draggingIndex:ee,draggingValue:ye});var le=function(De){De.preventDefault();var Fe=lte(De),Ce=Fe.pageX,Te=Fe.pageY,ke=Ce-pe,Pe=Te-he,Ne=e.current.getBoundingClientRect(),We=Ne.width,Q=Ne.height,K,J;switch(t){case"btt":K=-Pe/Q,J=ke;break;case"ttb":K=Pe/Q,J=ke;break;case"rtl":K=-ke/We,J=Pe;break;default:K=ke/We,J=Pe}_e=c?Math.abs(J)>lrt&&u<M.length:!1,x(_e),V(ee,K,_e)},xe=function we(De){De.preventDefault(),document.removeEventListener("mouseup",we),document.removeEventListener("mousemove",le),W.current&&(W.current.removeEventListener("touchmove",F.current),W.current.removeEventListener("touchend",z.current)),F.current=null,z.current=null,W.current=null,s(_e),b(-1),x(!1)};document.addEventListener("mouseup",xe),document.addEventListener("mousemove",le),fe.currentTarget.addEventListener("touchend",xe),fe.currentTarget.addEventListener("touchmove",le),F.current=le,z.current=xe,W.current=fe.currentTarget},ie=f.useMemo(function(){var ce=pt(n).sort(function(ye,me){return ye-me}),fe=pt(M).sort(function(ye,me){return ye-me}),ee={};fe.forEach(function(ye){ee[ye]=(ee[ye]||0)+1}),ce.forEach(function(ye){ee[ye]=(ee[ye]||0)-1});var ne=c?1:0,ue=Object.values(ee).reduce(function(ye,me){return ye+Math.abs(me)},0);return ue<=ne?M:n},[n,M,c]);return[S,p,T,ie,Y]}function urt(e,t,n,r,i,o){var a=f.useCallback(function(p){return Math.max(e,Math.min(t,p))},[e,t]),s=f.useCallback(function(p){if(n!==null){var m=e+Math.round((a(p)-e)/n)*n,v=function(C){return(String(C).split(".")[1]||"").length},y=Math.max(v(n),v(t),v(e)),S=Number(m.toFixed(y));return e<=S&&S<=t?S:null}return null},[n,e,t,a]),l=f.useCallback(function(p){var m=a(p),v=r.map(function(b){return b.value});n!==null&&v.push(s(p)),v.push(e,t);var y=v[0],S=t-e;return v.forEach(function(b){var C=Math.abs(m-b);C<=S&&(y=b,S=C)}),y},[e,t,r,n,a,s]),c=function p(m,v,y){var S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof v=="number"){var b,C=m[y],_=C+v,T=[];r.forEach(function(P){T.push(P.value)}),T.push(e,t),T.push(s(C));var x=v>0?1:-1;S==="unit"?T.push(s(C+x*n)):T.push(s(_)),T=T.filter(function(P){return P!==null}).filter(function(P){return v<0?P<=C:P>=C}),S==="unit"&&(T=T.filter(function(P){return P!==C}));var E=S==="unit"?C:_;b=T[0];var k=Math.abs(b-E);if(T.forEach(function(P){var D=Math.abs(P-E);D<k&&(b=P,k=D)}),b===void 0)return v<0?e:t;if(S==="dist")return b;if(Math.abs(v)>1){var M=pt(m);return M[y]=b,p(M,v-x,y,S)}return b}else{if(v==="min")return e;if(v==="max")return t}},u=function(m,v,y){var S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",b=m[y],C=c(m,v,y,S);return{value:C,changed:C!==b}},d=function(m){return o===null&&m===0||typeof o=="number"&&m<o},h=function(m,v,y){var S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",b=m.map(l),C=b[y],_=c(b,v,y,S);if(b[y]=_,i===!1){var T=o||0;y>0&&b[y-1]!==C&&(b[y]=Math.max(b[y],b[y-1]+T)),y<b.length-1&&b[y+1]!==C&&(b[y]=Math.min(b[y],b[y+1]-T))}else if(typeof o=="number"||o===null){for(var x=y+1;x<b.length;x+=1)for(var E=!0;d(b[x]-b[x-1])&&E;){var k=u(b,1,x);b[x]=k.value,E=k.changed}for(var M=y;M>0;M-=1)for(var P=!0;d(b[M]-b[M-1])&&P;){var D=u(b,-1,M-1);b[M-1]=D.value,P=D.changed}for(var R=b.length-1;R>0;R-=1)for(var A=!0;d(b[R]-b[R-1])&&A;){var H=u(b,-1,R-1);b[R-1]=H.value,A=H.changed}for(var F=0;F<b.length-1;F+=1)for(var z=!0;d(b[F+1]-b[F])&&z;){var W=u(b,1,F+1);b[F+1]=W.value,z=W.changed}}return{value:b[y],values:b}};return[l,h]}function drt(e){return f.useMemo(function(){if(e===!0||!e)return[!!e,!1,!1,0];var t=e.editable,n=e.draggableTrack,r=e.minCount,i=e.maxCount;return[!0,t,!t&&n,r||0,i]},[e])}var frt=f.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-slider":n,i=e.className,o=e.style,a=e.classNames,s=e.styles,l=e.id,c=e.disabled,u=c===void 0?!1:c,d=e.keyboard,h=d===void 0?!0:d,p=e.autoFocus,m=e.onFocus,v=e.onBlur,y=e.min,S=y===void 0?0:y,b=e.max,C=b===void 0?100:b,_=e.step,T=_===void 0?1:_,x=e.value,E=e.defaultValue,k=e.range,M=e.count,P=e.onChange,D=e.onBeforeChange,R=e.onAfterChange,A=e.onChangeComplete,H=e.allowCross,F=H===void 0?!0:H,z=e.pushable,W=z===void 0?!1:z,q=e.reverse,Z=e.vertical,N=e.included,B=N===void 0?!0:N,V=e.startPoint,Y=e.trackStyle,ie=e.handleStyle,ce=e.railStyle,fe=e.dotStyle,ee=e.activeDotStyle,ne=e.marks,ue=e.dots,ye=e.handleRender,me=e.activeHandleRender,pe=e.track,he=e.tabIndex,_e=he===void 0?0:he,le=e.ariaLabelForHandle,xe=e.ariaLabelledByForHandle,we=e.ariaRequired,De=e.ariaValueTextFormatterForHandle,Fe=f.useRef(null),Ce=f.useRef(null),Te=f.useMemo(function(){return Z?q?"ttb":"btt":q?"rtl":"ltr"},[q,Z]),ke=drt(k),Pe=Le(ke,5),Ne=Pe[0],We=Pe[1],Q=Pe[2],K=Pe[3],J=Pe[4],be=f.useMemo(function(){return isFinite(S)?S:0},[S]),Oe=f.useMemo(function(){return isFinite(C)?C:100},[C]),Se=f.useMemo(function(){return T!==null&&T<=0?1:T},[T]),Ke=f.useMemo(function(){return typeof W=="boolean"?W?Se:!1:W>=0?W:!1},[W,Se]),tt=f.useMemo(function(){return Object.keys(ne||{}).map(function(Yt){var mt=ne[Yt],Mt={value:Number(Yt)};return mt&&ln(mt)==="object"&&!f.isValidElement(mt)&&("label"in mt||"style"in mt)?(Mt.style=mt.style,Mt.label=mt.label):Mt.label=mt,Mt}).filter(function(Yt){var mt=Yt.label;return mt||typeof mt=="number"}).sort(function(Yt,mt){return Yt.value-mt.value})},[ne]),se=urt(be,Oe,Se,tt,F,Ke),ze=Le(se,2),Ye=ze[0],Ue=ze[1],Je=Jn(E,{value:x}),Ze=Le(Je,2),rt=Ze[0],qt=Ze[1],St=f.useMemo(function(){var Yt=rt==null?[]:Array.isArray(rt)?rt:[rt],mt=Le(Yt,1),Mt=mt[0],zt=Mt===void 0?be:Mt,Dn=rt===null?[]:[zt];if(Ne){if(Dn=pt(Yt),M||rt===void 0){var Xn=M>=0?M+1:2;for(Dn=Dn.slice(0,Xn);Dn.length<Xn;){var O;Dn.push((O=Dn[Dn.length-1])!==null&&O!==void 0?O:be)}}Dn.sort(function(j,oe){return j-oe})}return Dn.forEach(function(j,oe){Dn[oe]=Ye(j)}),Dn},[rt,Ne,be,M,Ye]),Ot=function(mt){return Ne?mt:mt[0]},Bt=cr(function(Yt){var mt=pt(Yt).sort(function(Mt,zt){return Mt-zt});P&&!ku(mt,St,!0)&&P(Ot(mt)),qt(mt)}),Dt=cr(function(Yt){Yt&&Fe.current.hideHelp();var mt=Ot(St);R==null||R(mt),fi(!R,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),A==null||A(mt)}),an=function(mt){if(!(u||!We||St.length<=K)){var Mt=pt(St);Mt.splice(mt,1),D==null||D(Ot(Mt)),Bt(Mt);var zt=Math.max(0,mt-1);Fe.current.hideHelp(),Fe.current.focus(zt)}},Vt=crt(Ce,Te,St,be,Oe,Ye,Bt,Dt,Ue,We,K),Kt=Le(Vt,5),Qt=Kt[0],et=Kt[1],ot=Kt[2],Qe=Kt[3],ct=Kt[4],Nt=function(mt,Mt){if(!u){var zt=pt(St),Dn=0,Xn=0,O=Oe-be;St.forEach(function(ft,Jt){var on=Math.abs(mt-ft);on<=O&&(O=on,Dn=Jt),ft<mt&&(Xn=Jt)});var j=Dn;We&&O!==0&&(!J||St.length<J)?(zt.splice(Xn+1,0,mt),j=Xn+1):zt[Dn]=mt,Ne&&!St.length&&M===void 0&&zt.push(mt);var oe=Ot(zt);if(D==null||D(oe),Bt(zt),Mt){var Ae,Ge;(Ae=document.activeElement)===null||Ae===void 0||(Ge=Ae.blur)===null||Ge===void 0||Ge.call(Ae),Fe.current.focus(j),ct(Mt,j,zt)}else R==null||R(oe),fi(!R,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),A==null||A(oe)}},Lt=function(mt){mt.preventDefault();var Mt=Ce.current.getBoundingClientRect(),zt=Mt.width,Dn=Mt.height,Xn=Mt.left,O=Mt.top,j=Mt.bottom,oe=Mt.right,Ae=mt.clientX,Ge=mt.clientY,ft;switch(Te){case"btt":ft=(j-Ge)/Dn;break;case"ttb":ft=(Ge-O)/Dn;break;case"rtl":ft=(oe-Ae)/zt;break;default:ft=(Ae-Xn)/zt}var Jt=be+ft*(Oe-be);Nt(Ye(Jt),mt)},Zt=f.useState(null),Wt=Le(Zt,2),At=Wt[0],$t=Wt[1],Gt=function(mt,Mt){if(!u){var zt=Ue(St,mt,Mt);D==null||D(Ot(St)),Bt(zt.values),$t(zt.value)}};f.useEffect(function(){if(At!==null){var Yt=St.indexOf(At);Yt>=0&&Fe.current.focus(Yt)}$t(null)},[At]);var Ft=f.useMemo(function(){return Q&&Se===null?!1:Q},[Q,Se]),cn=cr(function(Yt,mt){ct(Yt,mt),D==null||D(Ot(St))}),_t=Qt!==-1;f.useEffect(function(){if(!_t){var Yt=St.lastIndexOf(et);Fe.current.focus(Yt)}},[_t]);var jt=f.useMemo(function(){return pt(Qe).sort(function(Yt,mt){return Yt-mt})},[Qe]),nn=f.useMemo(function(){return Ne?[jt[0],jt[jt.length-1]]:[be,jt[0]]},[jt,Ne,be]),Ht=Le(nn,2),Tt=Ht[0],gt=Ht[1];f.useImperativeHandle(t,function(){return{focus:function(){Fe.current.focus(0)},blur:function(){var mt,Mt=document,zt=Mt.activeElement;(mt=Ce.current)!==null&&mt!==void 0&&mt.contains(zt)&&(zt==null||zt.blur())}}}),f.useEffect(function(){p&&Fe.current.focus(0)},[]);var Ve=f.useMemo(function(){return{min:be,max:Oe,direction:Te,disabled:u,keyboard:h,step:Se,included:B,includedStart:Tt,includedEnd:gt,range:Ne,tabIndex:_e,ariaLabelForHandle:le,ariaLabelledByForHandle:xe,ariaRequired:we,ariaValueTextFormatterForHandle:De,styles:s||{},classNames:a||{}}},[be,Oe,Te,u,h,Se,B,Tt,gt,Ne,_e,le,xe,we,De,s,a]);return f.createElement(Jv.Provider,{value:Ve},f.createElement("div",{ref:Ce,className:Re(r,i,ae(ae(ae(ae({},"".concat(r,"-disabled"),u),"".concat(r,"-vertical"),Z),"".concat(r,"-horizontal"),!Z),"".concat(r,"-with-marks"),tt.length)),style:o,onMouseDown:Lt,id:l},f.createElement("div",{className:Re("".concat(r,"-rail"),a==null?void 0:a.rail),style:G(G({},ce),s==null?void 0:s.rail)}),pe!==!1&&f.createElement(srt,{prefixCls:r,style:Y,values:St,startPoint:V,onStartMove:Ft?cn:void 0}),f.createElement(art,{prefixCls:r,marks:tt,dots:ue,style:fe,activeStyle:ee}),f.createElement(nrt,{ref:Fe,prefixCls:r,style:ie,values:Qe,draggingIndex:Qt,draggingDelete:ot,onStartMove:cn,onOffsetChange:Gt,onFocus:m,onBlur:v,handleRender:ye,activeHandleRender:me,onChangeComplete:Dt,onDelete:We?an:void 0}),f.createElement(irt,{prefixCls:r,marks:tt,onClick:Nt})))});const iSe=f.createContext({}),cte=f.forwardRef((e,t)=>{const{open:n,draggingDelete:r}=e,i=f.useRef(null),o=n&&!r,a=f.useRef(null);function s(){Sr.cancel(a.current),a.current=null}function l(){a.current=Sr(()=>{var c;(c=i.current)===null||c===void 0||c.forceAlign(),a.current=null})}return f.useEffect(()=>(o?l():s(),s),[o,e.title]),f.createElement(ta,Object.assign({ref:va(i,t)},e,{open:o}))}),hrt=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:i,marginFull:o,marginPart:a,colorFillContentHover:s,handleColorDisabled:l,calc:c,handleSize:u,handleSizeHover:d,handleActiveColor:h,handleActiveOutlineColor:p,handleLineWidth:m,handleLineWidthHover:v,motionDurationMid:y}=e;return{[t]:Object.assign(Object.assign({},$r(e)),{position:"relative",height:r,margin:`${je(a)} ${je(o)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${je(o)} ${je(a)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${y}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${y}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:s},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${je(m)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:u,height:u,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:c(m).mul(-1).equal(),insetBlockStart:c(m).mul(-1).equal(),width:c(u).add(c(m).mul(2)).equal(),height:c(u).add(c(m).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:u,height:u,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${je(m)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:`
|
||
inset-inline-start ${y},
|
||
inset-block-start ${y},
|
||
width ${y},
|
||
height ${y},
|
||
box-shadow ${y},
|
||
outline ${y}
|
||
`},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:c(d).sub(u).div(2).add(v).mul(-1).equal(),insetBlockStart:c(d).sub(u).div(2).add(v).mul(-1).equal(),width:c(d).add(c(v).mul(2)).equal(),height:c(d).add(c(v).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${je(v)} ${h}`,outline:`6px solid ${p}`,width:d,height:d,insetInlineStart:e.calc(u).sub(d).div(2).equal(),insetBlockStart:e.calc(u).sub(d).div(2).equal()}}},[`&-lock ${t}-handle`]:{"&::before, &::after":{transition:"none"}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:i,height:i,backgroundColor:e.colorBgElevated,border:`${je(m)} solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[`
|
||
${t}-dot
|
||
`]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:u,height:u,boxShadow:`0 0 0 ${je(m)} ${l}`,insetInlineStart:0,insetBlockStart:0},[`
|
||
${t}-mark-text,
|
||
${t}-dot
|
||
`]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},oSe=(e,t)=>{const{componentCls:n,railSize:r,handleSize:i,dotSize:o,marginFull:a,calc:s}=e,l=t?"paddingBlock":"paddingInline",c=t?"width":"height",u=t?"height":"width",d=t?"insetBlockStart":"insetInlineStart",h=t?"top":"insetInlineStart",p=s(r).mul(3).sub(i).div(2).equal(),m=s(i).sub(r).div(2).equal(),v=t?{borderWidth:`${je(m)} 0`,transform:`translateY(${je(s(m).mul(-1).equal())})`}:{borderWidth:`0 ${je(m)}`,transform:`translateX(${je(e.calc(m).mul(-1).equal())})`};return{[l]:r,[u]:s(r).mul(3).equal(),[`${n}-rail`]:{[c]:"100%",[u]:r},[`${n}-track,${n}-tracks`]:{[u]:r},[`${n}-track-draggable`]:Object.assign({},v),[`${n}-handle`]:{[d]:p},[`${n}-mark`]:{insetInlineStart:0,top:0,[h]:s(r).mul(3).add(t?0:a).equal(),[c]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[h]:r,[c]:"100%",[u]:r},[`${n}-dot`]:{position:"absolute",[d]:s(r).sub(o).div(2).equal()}}},prt=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},oSe(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},mrt=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},oSe(e,!1)),{height:"100%"})}},grt=e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,i=e.lineWidth+1,o=e.lineWidth+1*1.5,a=e.colorPrimary,s=new Cr(a).setA(.2).toRgbString();return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:i,handleLineWidthHover:o,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:a,handleActiveOutlineColor:s,handleColorDisabled:new Cr(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},vrt=Tr("Slider",e=>{const t=ur(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[hrt(t),prt(t),mrt(t)]},grt);function YR(){const[e,t]=f.useState(!1),n=f.useRef(null),r=()=>{Sr.cancel(n.current)},i=o=>{r(),o?t(o):n.current=Sr(()=>{t(o)})};return f.useEffect(()=>r,[]),[e,i]}var yrt=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 brt(e,t){return e||e===null?e:t||t===null?t:n=>typeof n=="number"?n.toString():""}const aSe=ge.forwardRef((e,t)=>{var n,r,i,o,a,s,l,c,u,d;const{prefixCls:h,range:p,className:m,rootClassName:v,style:y,disabled:S,tooltipPrefixCls:b,tipFormatter:C,tooltipVisible:_,getTooltipPopupContainer:T,tooltipPlacement:x,tooltip:E={},onChangeComplete:k,classNames:M,styles:P}=e,D=yrt(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete","classNames","styles"]),{vertical:R}=e,{direction:A,slider:H,getPrefixCls:F,getPopupContainer:z}=ge.useContext(hn),W=ge.useContext(ea),q=S??W,{handleRender:Z,direction:N}=ge.useContext(iSe),V=(N||A)==="rtl",[Y,ie]=YR(),[ce,fe]=YR(),ee=Object.assign({},E),{open:ne,placement:ue,getPopupContainer:ye,prefixCls:me,formatter:pe}=ee,he=ne??_,_e=(Y||ce)&&he!==!1,le=brt(pe,C),[xe,we]=YR(),De=Se=>{k==null||k(Se),we(!1)},Fe=(Se,Ke)=>Se||(Ke?V?"left":"right":"top"),Ce=F("slider",h),[Te,ke,Pe]=vrt(Ce),Ne=Re(m,H==null?void 0:H.className,(n=H==null?void 0:H.classNames)===null||n===void 0?void 0:n.root,M==null?void 0:M.root,v,{[`${Ce}-rtl`]:V,[`${Ce}-lock`]:xe},ke,Pe);V&&!D.vertical&&(D.reverse=!D.reverse),ge.useEffect(()=>{const Se=()=>{Sr(()=>{fe(!1)},1)};return document.addEventListener("mouseup",Se),()=>{document.removeEventListener("mouseup",Se)}},[]);const We=p&&!he,Q=Z||((Se,Ke)=>{const{index:tt}=Ke,se=Se.props;function ze(Ze,rt,qt){var St,Ot,Bt,Dt;qt&&((Ot=(St=D)[Ze])===null||Ot===void 0||Ot.call(St,rt)),(Dt=(Bt=se)[Ze])===null||Dt===void 0||Dt.call(Bt,rt)}const Ye=Object.assign(Object.assign({},se),{onMouseEnter:Ze=>{ie(!0),ze("onMouseEnter",Ze)},onMouseLeave:Ze=>{ie(!1),ze("onMouseLeave",Ze)},onMouseDown:Ze=>{fe(!0),we(!0),ze("onMouseDown",Ze)},onFocus:Ze=>{var rt;fe(!0),(rt=D.onFocus)===null||rt===void 0||rt.call(D,Ze),ze("onFocus",Ze,!0)},onBlur:Ze=>{var rt;fe(!1),(rt=D.onBlur)===null||rt===void 0||rt.call(D,Ze),ze("onBlur",Ze,!0)}}),Ue=ge.cloneElement(Se,Ye),Je=(!!he||_e)&&le!==null;return We?Ue:ge.createElement(cte,Object.assign({},ee,{prefixCls:F("tooltip",me??b),title:le?le(Ke.value):"",open:Je,placement:Fe(ue??x,R),key:tt,classNames:{root:`${Ce}-tooltip`},getPopupContainer:ye||T||z}),Ue)}),K=We?(Se,Ke)=>{const tt=ge.cloneElement(Se,{style:Object.assign(Object.assign({},Se.props.style),{visibility:"hidden"})});return ge.createElement(cte,Object.assign({},ee,{prefixCls:F("tooltip",me??b),title:le?le(Ke.value):"",open:le!==null&&_e,placement:Fe(ue??x,R),key:"tooltip",classNames:{root:`${Ce}-tooltip`},getPopupContainer:ye||T||z,draggingDelete:Ke.draggingDelete}),tt)}:void 0,J=Object.assign(Object.assign(Object.assign(Object.assign({},(r=H==null?void 0:H.styles)===null||r===void 0?void 0:r.root),H==null?void 0:H.style),P==null?void 0:P.root),y),be=Object.assign(Object.assign({},(i=H==null?void 0:H.styles)===null||i===void 0?void 0:i.tracks),P==null?void 0:P.tracks),Oe=Re((o=H==null?void 0:H.classNames)===null||o===void 0?void 0:o.tracks,M==null?void 0:M.tracks);return Te(ge.createElement(frt,Object.assign({},D,{classNames:Object.assign({handle:Re((a=H==null?void 0:H.classNames)===null||a===void 0?void 0:a.handle,M==null?void 0:M.handle),rail:Re((s=H==null?void 0:H.classNames)===null||s===void 0?void 0:s.rail,M==null?void 0:M.rail),track:Re((l=H==null?void 0:H.classNames)===null||l===void 0?void 0:l.track,M==null?void 0:M.track)},Oe?{tracks:Oe}:{}),styles:Object.assign({handle:Object.assign(Object.assign({},(c=H==null?void 0:H.styles)===null||c===void 0?void 0:c.handle),P==null?void 0:P.handle),rail:Object.assign(Object.assign({},(u=H==null?void 0:H.styles)===null||u===void 0?void 0:u.rail),P==null?void 0:P.rail),track:Object.assign(Object.assign({},(d=H==null?void 0:H.styles)===null||d===void 0?void 0:d.track),P==null?void 0:P.track)},Object.keys(be).length?{tracks:be}:{}),step:D.step,range:p,className:Ne,style:J,disabled:q,ref:t,prefixCls:Ce,handleRender:Q,activeHandleRender:K,onChangeComplete:De})))});var Srt=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 sSe=e=>{const{prefixCls:t,colors:n,type:r,color:i,range:o=!1,className:a,activeIndex:s,onActive:l,onDragStart:c,onDragChange:u,onKeyDelete:d}=e,h=Srt(e,["prefixCls","colors","type","color","range","className","activeIndex","onActive","onDragStart","onDragChange","onKeyDelete"]),p=Object.assign(Object.assign({},h),{track:!1}),m=f.useMemo(()=>`linear-gradient(90deg, ${n.map(x=>`${x.color} ${x.percent}%`).join(", ")})`,[n]),v=f.useMemo(()=>!i||!r?null:r==="alpha"?i.toRgbString():`hsl(${i.toHsb().h}, 100%, 50%)`,[i,r]),y=cr(c),S=cr(u),b=f.useMemo(()=>({onDragStart:y,onDragChange:S}),[]),C=cr((T,x)=>{const{onFocus:E,style:k,className:M,onKeyDown:P}=T.props,D=Object.assign({},k);return r==="gradient"&&(D.background=Sve(n,x.value)),f.cloneElement(T,{onFocus:R=>{l==null||l(x.index),E==null||E(R)},style:D,className:Re(M,{[`${t}-slider-handle-active`]:s===x.index}),onKeyDown:R=>{(R.key==="Delete"||R.key==="Backspace")&&d&&d(x.index),P==null||P(R)}})}),_=f.useMemo(()=>({direction:"ltr",handleRender:C}),[]);return f.createElement(iSe.Provider,{value:_},f.createElement(rSe.Provider,{value:b},f.createElement(aSe,Object.assign({},p,{className:Re(a,`${t}-slider`),tooltip:{open:!1},range:{editable:o,minCount:2},styles:{rail:{background:m},handle:v?{background:v}:{}},classNames:{rail:`${t}-slider-rail`,handle:`${t}-slider-handle`}}))))},Crt=e=>{const{value:t,onChange:n,onChangeComplete:r}=e,i=a=>n(a[0]),o=a=>r(a[0]);return f.createElement(sSe,Object.assign({},e,{value:[t],onChange:i,onChangeComplete:o}))};function ute(e){return pt(e).sort((t,n)=>t.percent-n.percent)}const xrt=e=>{const{prefixCls:t,mode:n,onChange:r,onChangeComplete:i,onActive:o,activeIndex:a,onGradientDragging:s,colors:l}=e,c=n==="gradient",u=f.useMemo(()=>l.map(S=>({percent:S.percent,color:S.color.toRgbString()})),[l]),d=f.useMemo(()=>u.map(S=>S.percent),[u]),h=f.useRef(u),p=S=>{let{rawValues:b,draggingIndex:C,draggingValue:_}=S;if(b.length>u.length){const T=Sve(u,_),x=pt(u);x.splice(C,0,{percent:_,color:T}),h.current=x}else h.current=u;s(!0),r(new Ec(ute(h.current)),!0)},m=S=>{let{deleteIndex:b,draggingIndex:C,draggingValue:_}=S,T=pt(h.current);b!==-1?T.splice(b,1):(T[C]=Object.assign(Object.assign({},T[C]),{percent:_}),T=ute(T)),r(new Ec(T),!0)},v=S=>{const b=pt(u);b.splice(S,1);const C=new Ec(b);r(C),i(C)},y=S=>{i(new Ec(u)),a>=S.length&&o(S.length-1),s(!1)};return c?f.createElement(sSe,{min:0,max:100,prefixCls:t,className:`${t}-gradient-slider`,colors:u,color:null,value:d,range:!0,onChangeComplete:y,disabled:!1,type:"gradient",activeIndex:a,onActive:o,onDragStart:p,onDragChange:m,onKeyDelete:v}):null},wrt=f.memo(xrt);var _rt=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 Ert={slider:Crt},dte=()=>{const e=f.useContext(Kbe),{mode:t,onModeChange:n,modeOptions:r,prefixCls:i,allowClear:o,value:a,disabledAlpha:s,onChange:l,onClear:c,onChangeComplete:u,activeIndex:d,gradientDragging:h}=e,p=_rt(e,["mode","onModeChange","modeOptions","prefixCls","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete","activeIndex","gradientDragging"]),m=ge.useMemo(()=>a.cleared?[{percent:0,color:new Ec("")},{percent:100,color:new Ec("")}]:a.getColors(),[a]),v=!a.isGradient(),[y,S]=ge.useState(a);Er(()=>{var H;v||S((H=m[d])===null||H===void 0?void 0:H.color)},[h,d]);const b=ge.useMemo(()=>{var H;return v?a:h?y:(H=m[d])===null||H===void 0?void 0:H.color},[a,d,v,y,h]),[C,_]=ge.useState(b),[T,x]=ge.useState(0),E=C!=null&&C.equals(b)?b:C;Er(()=>{_(b)},[T,b==null?void 0:b.toHexString()]);const k=(H,F)=>{let z=Ks(H);if(a.cleared){const q=z.toRgb();if(!q.r&&!q.g&&!q.b&&F){const{type:Z,value:N=0}=F;z=new Ec({h:Z==="hue"?N:0,s:1,b:1,a:Z==="alpha"?N/100:1})}else z=F3(z)}if(t==="single")return z;const W=pt(m);return W[d]=Object.assign(Object.assign({},W[d]),{color:z}),new Ec(W)},M=(H,F,z)=>{const W=k(H,z);_(W.isGradient()?W.getColors()[d].color:W),l(W,F)},P=(H,F)=>{u(k(H,F)),x(z=>z+1)},D=H=>{l(k(H))};let R=null;const A=r.length>1;return(o||A)&&(R=ge.createElement("div",{className:`${i}-operation`},A&&ge.createElement(Vbe,{size:"small",options:r,value:t,onChange:n}),ge.createElement(Gbe,Object.assign({prefixCls:i,value:a,onChange:H=>{l(H),c==null||c()}},p)))),ge.createElement(ge.Fragment,null,R,ge.createElement(wrt,Object.assign({},e,{colors:m})),ge.createElement(LUe,{prefixCls:i,value:E==null?void 0:E.toHsb(),disabledAlpha:s,onChange:(H,F)=>{M(H,!0,F)},onChangeComplete:(H,F)=>{P(H,F)},components:Ert}),ge.createElement(Jnt,Object.assign({value:b,onChange:D,prefixCls:i,disabledAlpha:s},p)))},fte=()=>{const{prefixCls:e,value:t,presets:n,onChange:r}=f.useContext(qbe);return Array.isArray(n)?ge.createElement(IWe,{value:t,presets:n,prefixCls:e,onChange:r}):null},Trt=e=>{const{prefixCls:t,presets:n,panelRender:r,value:i,onChange:o,onClear:a,allowClear:s,disabledAlpha:l,mode:c,onModeChange:u,modeOptions:d,onChangeComplete:h,activeIndex:p,onActive:m,format:v,onFormatChange:y,gradientDragging:S,onGradientDragging:b,disabledFormat:C}=e,_=`${t}-inner`,T=ge.useMemo(()=>({prefixCls:t,value:i,onChange:o,onClear:a,allowClear:s,disabledAlpha:l,mode:c,onModeChange:u,modeOptions:d,onChangeComplete:h,activeIndex:p,onActive:m,format:v,onFormatChange:y,gradientDragging:S,onGradientDragging:b,disabledFormat:C}),[t,i,o,a,s,l,c,u,d,h,p,m,v,y,S,b,C]),x=ge.useMemo(()=>({prefixCls:t,value:i,presets:n,onChange:o}),[t,i,n,o]),E=ge.createElement("div",{className:`${_}-content`},ge.createElement(dte,null),Array.isArray(n)&&ge.createElement($tt,null),ge.createElement(fte,null));return ge.createElement(Kbe.Provider,{value:T},ge.createElement(qbe.Provider,{value:x},ge.createElement("div",{className:_},typeof r=="function"?r(E,{components:{Picker:dte,Presets:fte}}):E)))};var krt=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 Ort=f.forwardRef((e,t)=>{const{color:n,prefixCls:r,open:i,disabled:o,format:a,className:s,showText:l,activeIndex:c}=e,u=krt(e,["color","prefixCls","open","disabled","format","className","showText","activeIndex"]),d=`${r}-trigger`,h=`${d}-text`,p=`${h}-cell`,[m]=Os("ColorPicker"),v=ge.useMemo(()=>{if(!l)return"";if(typeof l=="function")return l(n);if(n.cleared)return m.transparent;if(n.isGradient())return n.getColors().map((C,_)=>{const T=c!==-1&&c!==_;return ge.createElement("span",{key:_,className:Re(p,T&&`${p}-inactive`)},C.color.toRgbString()," ",C.percent,"%")});const S=n.toHexString().toUpperCase(),b=qU(n);switch(a){case"rgb":return n.toRgbString();case"hsb":return n.toHsbString();default:return b<100?`${S.slice(0,7)},${b}%`:S}},[n,a,l,c]),y=f.useMemo(()=>n.cleared?ge.createElement(Gbe,{prefixCls:r}):ge.createElement(UU,{prefixCls:r,color:n.toCssString()}),[n,r]);return ge.createElement("div",Object.assign({ref:t,className:Re(d,s,{[`${d}-active`]:i,[`${d}-disabled`]:o})},Hi(u)),y,l&&ge.createElement("div",{className:h},v))});function Prt(e,t,n){const[r]=Os("ColorPicker"),[i,o]=Jn(e,{value:t}),[a,s]=f.useState("single"),[l,c]=f.useMemo(()=>{const v=(Array.isArray(n)?n:[n]).filter(C=>C);v.length||v.push("single");const y=new Set(v),S=[],b=(C,_)=>{y.has(C)&&S.push({label:_,value:C})};return b("single",r.singleColor),b("gradient",r.gradientColor),[S,y]},[n]),[u,d]=f.useState(null),h=cr(v=>{d(v),o(v)}),p=f.useMemo(()=>{const v=Ks(i||"");return v.equals(u)?u:v},[i,u]),m=f.useMemo(()=>{var v;return c.has(a)?a:(v=l[0])===null||v===void 0?void 0:v.value},[c,a,l]);return f.useEffect(()=>{s(p.isGradient()?"gradient":"single")},[p]),[p,h,m,s,l]}const lSe=(e,t)=>({backgroundImage:`conic-gradient(${t} 0 25%, transparent 0 50%, ${t} 0 75%, transparent 0)`,backgroundSize:`${e} ${e}`}),hte=(e,t)=>{const{componentCls:n,borderRadiusSM:r,colorPickerInsetShadow:i,lineWidth:o,colorFillSecondary:a}=e;return{[`${n}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:r,width:t,height:t,boxShadow:i,flex:"none"},lSe("50%",e.colorFillSecondary)),{[`${n}-color-block-inner`]:{width:"100%",height:"100%",boxShadow:`inset 0 0 0 ${je(o)} ${a}`,borderRadius:"inherit"}})}},Mrt=e=>{const{componentCls:t,antCls:n,fontSizeSM:r,lineHeightSM:i,colorPickerAlphaInputWidth:o,marginXXS:a,paddingXXS:s,controlHeightSM:l,marginXS:c,fontSizeIcon:u,paddingXS:d,colorTextPlaceholder:h,colorPickerInputNumberHandleWidth:p,lineWidth:m}=e;return{[`${t}-input-container`]:{display:"flex",[`${t}-steppers${n}-input-number`]:{fontSize:r,lineHeight:i,[`${n}-input-number-input`]:{paddingInlineStart:s,paddingInlineEnd:0},[`${n}-input-number-handler-wrap`]:{width:p}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${je(o)}`,marginInlineStart:a},[`${t}-format-select${n}-select`]:{marginInlineEnd:c,width:"auto","&-single":{[`${n}-select-selector`]:{padding:0,border:0},[`${n}-select-arrow`]:{insetInlineEnd:0},[`${n}-select-selection-item`]:{paddingInlineEnd:e.calc(u).add(a).equal(),fontSize:r,lineHeight:je(l)},[`${n}-select-item-option-content`]:{fontSize:r,lineHeight:i},[`${n}-select-dropdown`]:{[`${n}-select-item`]:{minHeight:"auto"}}}},[`${t}-input`]:{gap:a,alignItems:"center",flex:1,width:0,[`${t}-hsb-input,${t}-rgb-input`]:{display:"flex",gap:a,alignItems:"center"},[`${t}-steppers`]:{flex:1},[`${t}-hex-input${n}-input-affix-wrapper`]:{flex:1,padding:`0 ${je(d)}`,[`${n}-input`]:{fontSize:r,textTransform:"uppercase",lineHeight:je(e.calc(l).sub(e.calc(m).mul(2)).equal())},[`${n}-input-prefix`]:{color:h}}}}}},Irt=e=>{const{componentCls:t,controlHeightLG:n,borderRadiusSM:r,colorPickerInsetShadow:i,marginSM:o,colorBgElevated:a,colorFillSecondary:s,lineWidthBold:l,colorPickerHandlerSize:c}=e;return{userSelect:"none",[`${t}-select`]:{[`${t}-palette`]:{minHeight:e.calc(n).mul(4).equal(),overflow:"hidden",borderRadius:r},[`${t}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:i,inset:0},marginBottom:o},[`${t}-handler`]:{width:c,height:c,border:`${je(l)} solid ${a}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${i}, 0 0 0 1px ${s}`}}},$rt=e=>{const{componentCls:t,antCls:n,colorTextQuaternary:r,paddingXXS:i,colorPickerPresetColorSize:o,fontSizeSM:a,colorText:s,lineHeightSM:l,lineWidth:c,borderRadius:u,colorFill:d,colorWhite:h,marginXXS:p,paddingXS:m,fontHeightSM:v}=e;return{[`${t}-presets`]:{[`${n}-collapse-item > ${n}-collapse-header`]:{padding:0,[`${n}-collapse-expand-icon`]:{height:v,color:r,paddingInlineEnd:i}},[`${n}-collapse`]:{display:"flex",flexDirection:"column",gap:p},[`${n}-collapse-item > ${n}-collapse-content > ${n}-collapse-content-box`]:{padding:`${je(m)} 0`},"&-label":{fontSize:a,color:s,lineHeight:l},"&-items":{display:"flex",flexWrap:"wrap",gap:e.calc(p).mul(1.5).equal(),[`${t}-presets-color`]:{position:"relative",cursor:"pointer",width:o,height:o,"&::before":{content:'""',pointerEvents:"none",width:e.calc(o).add(e.calc(c).mul(4)).equal(),height:e.calc(o).add(e.calc(c).mul(4)).equal(),position:"absolute",top:e.calc(c).mul(-2).equal(),insetInlineStart:e.calc(c).mul(-2).equal(),borderRadius:u,border:`${je(c)} solid transparent`,transition:`border-color ${e.motionDurationMid} ${e.motionEaseInBack}`},"&:hover::before":{borderColor:d},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.calc(o).div(13).mul(5).equal(),height:e.calc(o).div(13).mul(8).equal(),border:`${je(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}`},[`&${t}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:h,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`},[`&${t}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:a,color:r}}}},Rrt=e=>{const{componentCls:t,colorPickerInsetShadow:n,colorBgElevated:r,colorFillSecondary:i,lineWidthBold:o,colorPickerHandlerSizeSM:a,colorPickerSliderHeight:s,marginSM:l,marginXS:c}=e,u=e.calc(a).sub(e.calc(o).mul(2).equal()).equal(),d=e.calc(a).add(e.calc(o).mul(2).equal()).equal(),h={"&:after":{transform:"scale(1)",boxShadow:`${n}, 0 0 0 1px ${e.colorPrimaryActive}`}};return{[`${t}-slider`]:[lSe(je(s),e.colorFillSecondary),{margin:0,padding:0,height:s,borderRadius:e.calc(s).div(2).equal(),"&-rail":{height:s,borderRadius:e.calc(s).div(2).equal(),boxShadow:n},[`& ${t}-slider-handle`]:{width:u,height:u,top:0,borderRadius:"100%","&:before":{display:"block",position:"absolute",background:"transparent",left:{_skip_check_:!0,value:"50%"},top:"50%",transform:"translate(-50%, -50%)",width:d,height:d,borderRadius:"100%"},"&:after":{width:a,height:a,border:`${je(o)} solid ${r}`,boxShadow:`${n}, 0 0 0 1px ${i}`,outline:"none",insetInlineStart:e.calc(o).mul(-1).equal(),top:e.calc(o).mul(-1).equal(),background:"transparent",transition:"none"},"&:focus":h}}],[`${t}-slider-container`]:{display:"flex",gap:l,marginBottom:l,[`${t}-slider-group`]:{flex:1,flexDirection:"column",justifyContent:"space-between",display:"flex","&-disabled-alpha":{justifyContent:"center"}}},[`${t}-gradient-slider`]:{marginBottom:c,[`& ${t}-slider-handle`]:{"&:after":{transform:"scale(0.8)"},"&-active, &:focus":h}}}},oj=(e,t,n)=>({borderInlineEndWidth:e.lineWidth,borderColor:t,boxShadow:`0 0 0 ${je(e.controlOutlineWidth)} ${n}`,outline:0}),Art=e=>{const{componentCls:t}=e;return{"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},pte=(e,t,n)=>{const{componentCls:r,borderRadiusSM:i,lineWidth:o,colorSplit:a,colorBorder:s,red6:l}=e;return{[`${r}-clear`]:Object.assign(Object.assign({width:t,height:t,borderRadius:i,border:`${je(o)} solid ${a}`,position:"relative",overflow:"hidden",cursor:"inherit",transition:`all ${e.motionDurationFast}`},n),{"&::after":{content:'""',position:"absolute",insetInlineEnd:e.calc(o).mul(-1).equal(),top:e.calc(o).mul(-1).equal(),display:"block",width:40,height:2,transformOrigin:"calc(100% - 1px) 1px",transform:"rotate(-45deg)",backgroundColor:l},"&:hover":{borderColor:s}})}},Nrt=e=>{const{componentCls:t,colorError:n,colorWarning:r,colorErrorHover:i,colorWarningHover:o,colorErrorOutline:a,colorWarningOutline:s}=e;return{[`&${t}-status-error`]:{borderColor:n,"&:hover":{borderColor:i},[`&${t}-trigger-active`]:Object.assign({},oj(e,n,a))},[`&${t}-status-warning`]:{borderColor:r,"&:hover":{borderColor:o},[`&${t}-trigger-active`]:Object.assign({},oj(e,r,s))}}},Drt=e=>{const{componentCls:t,controlHeightLG:n,controlHeightSM:r,controlHeight:i,controlHeightXS:o,borderRadius:a,borderRadiusSM:s,borderRadiusXS:l,borderRadiusLG:c,fontSizeLG:u}=e;return{[`&${t}-lg`]:{minWidth:n,minHeight:n,borderRadius:c,[`${t}-color-block, ${t}-clear`]:{width:i,height:i,borderRadius:a},[`${t}-trigger-text`]:{fontSize:u}},[`&${t}-sm`]:{minWidth:r,minHeight:r,borderRadius:s,[`${t}-color-block, ${t}-clear`]:{width:o,height:o,borderRadius:l},[`${t}-trigger-text`]:{lineHeight:je(o)}}}},Lrt=e=>{const{antCls:t,componentCls:n,colorPickerWidth:r,colorPrimary:i,motionDurationMid:o,colorBgElevated:a,colorTextDisabled:s,colorText:l,colorBgContainerDisabled:c,borderRadius:u,marginXS:d,marginSM:h,controlHeight:p,controlHeightSM:m,colorBgTextActive:v,colorPickerPresetColorSize:y,colorPickerPreviewSize:S,lineWidth:b,colorBorder:C,paddingXXS:_,fontSize:T,colorPrimaryHover:x,controlOutline:E}=e;return[{[n]:Object.assign({[`${n}-inner`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"&-content":{display:"flex",flexDirection:"column",width:r,[`& > ${t}-divider`]:{margin:`${je(h)} 0 ${je(d)}`}},[`${n}-panel`]:Object.assign({},Irt(e))},Rrt(e)),hte(e,S)),Mrt(e)),$rt(e)),pte(e,y,{marginInlineStart:"auto"})),{[`${n}-operation`]:{display:"flex",justifyContent:"space-between",marginBottom:d}}),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:p,minHeight:p,borderRadius:u,border:`${je(b)} solid ${C}`,cursor:"pointer",display:"inline-flex",alignItems:"flex-start",justifyContent:"center",transition:`all ${o}`,background:a,padding:e.calc(_).sub(b).equal(),[`${n}-trigger-text`]:{marginInlineStart:d,marginInlineEnd:e.calc(d).sub(e.calc(_).sub(b)).equal(),fontSize:T,color:l,alignSelf:"center","&-cell":{"&:not(:last-child):after":{content:'", "'},"&-inactive":{color:s}}},"&:hover":{borderColor:x},[`&${n}-trigger-active`]:Object.assign({},oj(e,i,E)),"&-disabled":{color:s,background:c,cursor:"not-allowed","&:hover":{borderColor:v},[`${n}-trigger-text`]:{color:s}}},pte(e,m)),hte(e,m)),Nrt(e)),Drt(e))},Art(e))},Yv(e,{focusElCls:`${n}-trigger-active`})]},Frt=Tr("ColorPicker",e=>{const{colorTextQuaternary:t,marginSM:n}=e,r=8,i=ur(e,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:24,colorPickerInsetShadow:`inset 0 0 1px 0 ${t}`,colorPickerSliderHeight:r,colorPickerPreviewSize:e.calc(r).mul(2).add(n).equal()});return[Lrt(i)]});var jrt=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 qW=e=>{const{mode:t,value:n,defaultValue:r,format:i,defaultFormat:o,allowClear:a=!1,presets:s,children:l,trigger:c="click",open:u,disabled:d,placement:h="bottomLeft",arrow:p=!0,panelRender:m,showText:v,style:y,className:S,size:b,rootClassName:C,prefixCls:_,styles:T,disabledAlpha:x=!1,onFormatChange:E,onChange:k,onClear:M,onOpenChange:P,onChangeComplete:D,getPopupContainer:R,autoAdjustOverflow:A=!0,destroyTooltipOnHide:H,disabledFormat:F}=e,z=jrt(e,["mode","value","defaultValue","format","defaultFormat","allowClear","presets","children","trigger","open","disabled","placement","arrow","panelRender","showText","style","className","size","rootClassName","prefixCls","styles","disabledAlpha","onFormatChange","onChange","onClear","onOpenChange","onChangeComplete","getPopupContainer","autoAdjustOverflow","destroyTooltipOnHide","disabledFormat"]),{getPrefixCls:W,direction:q,colorPicker:Z}=f.useContext(hn),N=f.useContext(ea),B=d??N,[V,Y]=Jn(!1,{value:u,postState:Ye=>!B&&Ye,onChange:P}),[ie,ce]=Jn(i,{value:i,defaultValue:o,onChange:E}),fe=W("color-picker",_),[ee,ne,ue,ye,me]=Prt(r,n,t),pe=f.useMemo(()=>qU(ee)<100,[ee]),[he,_e]=ge.useState(null),le=Ye=>{if(D){let Ue=Ks(Ye);x&&pe&&(Ue=F3(Ye)),D(Ue)}},xe=(Ye,Ue)=>{let Je=Ks(Ye);x&&pe&&(Je=F3(Je)),ne(Je),_e(null),k&&k(Je,Je.toCssString()),Ue||le(Je)},[we,De]=ge.useState(0),[Fe,Ce]=ge.useState(!1),Te=Ye=>{if(ye(Ye),Ye==="single"&&ee.isGradient())De(0),xe(new Ec(ee.getColors()[0].color)),_e(ee);else if(Ye==="gradient"&&!ee.isGradient()){const Ue=pe?F3(ee):ee;xe(new Ec(he||[{percent:0,color:Ue},{percent:100,color:Ue}]))}},{status:ke}=ge.useContext(pa),{compactSize:Pe,compactItemClassnames:Ne}=Zd(fe,q),We=Ro(Ye=>{var Ue;return(Ue=b??Pe)!==null&&Ue!==void 0?Ue:Ye}),Q=_i(fe),[K,J,be]=Frt(fe,Q),Oe={[`${fe}-rtl`]:q},Se=Re(C,be,Q,Oe),Ke=Re(Ud(fe,ke),{[`${fe}-sm`]:We==="small",[`${fe}-lg`]:We==="large"},Ne,Z==null?void 0:Z.className,Se,S,J),tt=Re(fe,Se),se={open:V,trigger:c,placement:h,arrow:p,rootClassName:C,getPopupContainer:R,autoAdjustOverflow:A,destroyTooltipOnHide:H},ze=Object.assign(Object.assign({},Z==null?void 0:Z.style),y);return K(ge.createElement(Ou,Object.assign({style:T==null?void 0:T.popup,styles:{body:T==null?void 0:T.popupOverlayInner},onOpenChange:Ye=>{(!Ye||!B)&&Y(Ye)},content:ge.createElement(zd,{form:!0},ge.createElement(Trt,{mode:ue,onModeChange:Te,modeOptions:me,prefixCls:fe,value:ee,allowClear:a,disabled:B,disabledAlpha:x,presets:s,panelRender:m,format:ie,onFormatChange:ce,onChange:xe,onChangeComplete:le,onClear:M,activeIndex:we,onActive:De,gradientDragging:Fe,onGradientDragging:Ce,disabledFormat:F})),classNames:{root:tt}},se),l||ge.createElement(Ort,Object.assign({activeIndex:V?we:-1,open:V,className:Ke,style:ze,prefixCls:fe,disabled:B,showText:v,format:ie},z,{color:ee}))))},Brt=vg(qW,void 0,e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1}),"color-picker",e=>e);qW._InternalPanelDoNotUseOrYouWillBeFired=Brt;var Hrt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},zrt=function(t,n){return f.createElement(wr,ut({},t,{ref:n,icon:Hrt}))},cSe=f.forwardRef(zrt),Urt={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:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},Wrt=function(t,n){return f.createElement(wr,ut({},t,{ref:n,icon:Urt}))},uSe=f.forwardRef(Wrt),Vrt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},Krt=function(t,n){return f.createElement(wr,ut({},t,{ref:n,icon:Vrt}))},qrt=f.forwardRef(Krt);function Grt(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function Yrt(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function dSe(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:i}=QO(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[f.useMemo(()=>n===!1?!1:Object.assign({clearIcon:r},n===!0?{}:n),[n,r]),i]}const[Xrt,Qrt]=["week","WeekPicker"],[Zrt,Jrt]=["month","MonthPicker"],[eit,tit]=["year","YearPicker"],[nit,rit]=["quarter","QuarterPicker"],[fSe,mte]=["time","TimePicker"],iit=e=>f.createElement(hr,Object.assign({size:"small",type:"primary"},e));function hSe(e){return f.useMemo(()=>Object.assign({button:iit},e),[e])}var oit=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 ait=e=>f.forwardRef((n,r)=>{var i;const{prefixCls:o,getPopupContainer:a,components:s,className:l,style:c,placement:u,size:d,disabled:h,bordered:p=!0,placeholder:m,popupClassName:v,dropdownClassName:y,status:S,rootClassName:b,variant:C,picker:_}=n,T=oit(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant","picker"]),x=f.useRef(null),{getPrefixCls:E,direction:k,getPopupContainer:M,rangePicker:P}=f.useContext(hn),D=E("picker",o),{compactSize:R,compactItemClassnames:A}=Zd(D,k),H=E(),[F,z]=Pp("rangePicker",C,p),W=_i(D),[q,Z,N]=hbe(D,W),[B]=dSe(n,D),V=hSe(s),Y=Ro(_e=>{var le;return(le=d??R)!==null&&le!==void 0?le:_e}),ie=f.useContext(ea),ce=h??ie,fe=f.useContext(pa),{hasFeedback:ee,status:ne,feedbackIcon:ue}=fe,ye=f.createElement(f.Fragment,null,_===fSe?f.createElement(uSe,null):f.createElement(cSe,null),ee&&ue);f.useImperativeHandle(r,()=>x.current);const[me]=Os("Calendar",m9),pe=Object.assign(Object.assign({},me),n.locale),[he]=Du("DatePicker",(i=n.popupStyle)===null||i===void 0?void 0:i.zIndex);return q(f.createElement(zd,{space:!0},f.createElement(JZe,Object.assign({separator:f.createElement("span",{"aria-label":"to",className:`${D}-separator`},f.createElement(qrt,null)),disabled:ce,ref:x,placement:u,placeholder:Yrt(pe,_,m),suffixIcon:ye,prevIcon:f.createElement("span",{className:`${D}-prev-icon`}),nextIcon:f.createElement("span",{className:`${D}-next-icon`}),superPrevIcon:f.createElement("span",{className:`${D}-super-prev-icon`}),superNextIcon:f.createElement("span",{className:`${D}-super-next-icon`}),transitionName:`${H}-slide-up`,picker:_},T,{className:Re({[`${D}-${Y}`]:Y,[`${D}-${F}`]:z},Ud(D,Op(ne,S),ee),Z,A,l,P==null?void 0:P.className,N,W,b),style:Object.assign(Object.assign({},P==null?void 0:P.style),c),locale:pe.lang,prefixCls:D,getPopupContainer:a||M,generateConfig:e,components:V,direction:k,classNames:{popup:Re(Z,v||y,N,W,b)},styles:{popup:Object.assign(Object.assign({},n.popupStyle),{zIndex:he})},allowClear:B}))))});var sit=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 lit=e=>{const t=(l,c)=>{const u=c===mte?"timePicker":"datePicker";return f.forwardRef((h,p)=>{var m;const{prefixCls:v,getPopupContainer:y,components:S,style:b,className:C,rootClassName:_,size:T,bordered:x,placement:E,placeholder:k,popupClassName:M,dropdownClassName:P,disabled:D,status:R,variant:A,onCalendarChange:H}=h,F=sit(h,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:z,direction:W,getPopupContainer:q,[u]:Z}=f.useContext(hn),N=z("picker",v),{compactSize:B,compactItemClassnames:V}=Zd(N,W),Y=f.useRef(null),[ie,ce]=Pp("datePicker",A,x),fe=_i(N),[ee,ne,ue]=hbe(N,fe);f.useImperativeHandle(p,()=>Y.current);const ye={showToday:!0},me=l||h.picker,pe=z(),{onSelect:he,multiple:_e}=F,le=he&&l==="time"&&!_e,xe=(Se,Ke,tt)=>{H==null||H(Se,Ke,tt),le&&he(Se)},[we,De]=dSe(h,N),Fe=hSe(S),Ce=Ro(Se=>{var Ke;return(Ke=T??B)!==null&&Ke!==void 0?Ke:Se}),Te=f.useContext(ea),ke=D??Te,Pe=f.useContext(pa),{hasFeedback:Ne,status:We,feedbackIcon:Q}=Pe,K=f.createElement(f.Fragment,null,me==="time"?f.createElement(uSe,null):f.createElement(cSe,null),Ne&&Q),[J]=Os("DatePicker",m9),be=Object.assign(Object.assign({},J),h.locale),[Oe]=Du("DatePicker",(m=h.popupStyle)===null||m===void 0?void 0:m.zIndex);return ee(f.createElement(zd,{space:!0},f.createElement(oJe,Object.assign({ref:Y,placeholder:Grt(be,me,k),suffixIcon:K,placement:E,prevIcon:f.createElement("span",{className:`${N}-prev-icon`}),nextIcon:f.createElement("span",{className:`${N}-next-icon`}),superPrevIcon:f.createElement("span",{className:`${N}-super-prev-icon`}),superNextIcon:f.createElement("span",{className:`${N}-super-next-icon`}),transitionName:`${pe}-slide-up`,picker:l,onCalendarChange:xe},ye,F,{locale:be.lang,className:Re({[`${N}-${Ce}`]:Ce,[`${N}-${ie}`]:ce},Ud(N,Op(We,R),Ne),ne,V,Z==null?void 0:Z.className,C,ue,fe,_),style:Object.assign(Object.assign({},Z==null?void 0:Z.style),b),prefixCls:N,getPopupContainer:y||q,generateConfig:e,components:Fe,direction:W,disabled:ke,classNames:{popup:Re(ne,ue,fe,_,M||P)},styles:{popup:Object.assign(Object.assign({},h.popupStyle),{zIndex:Oe})},allowClear:we,removeIcon:De}))))})},n=t(),r=t(Xrt,Qrt),i=t(Zrt,Jrt),o=t(eit,tit),a=t(nit,rit),s=t(fSe,mte);return{DatePicker:n,WeekPicker:r,MonthPicker:i,YearPicker:o,TimePicker:s,QuarterPicker:a}},pSe=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:i,TimePicker:o,QuarterPicker:a}=lit(e),s=ait(e),l=t;return l.WeekPicker=n,l.MonthPicker=r,l.YearPicker=i,l.RangePicker=s,l.TimePicker=o,l.QuarterPicker=a,l},Pu=pSe(sZe),cit=vg(Pu,"popupAlign",void 0,"picker");Pu._InternalPanelDoNotUseOrYouWillBeFired=cit;const uit=vg(Pu.RangePicker,"popupAlign",void 0,"picker");Pu._InternalRangePanelDoNotUseOrYouWillBeFired=uit;Pu.generatePicker=pSe;var gte=f.createContext(null),mSe=f.createContext({}),dit=["prefixCls","className","containerRef"],fit=function(t){var n=t.prefixCls,r=t.className,i=t.containerRef,o=tn(t,dit),a=f.useContext(mSe),s=a.panel,l=Qd(s,i);return f.createElement("div",ut({className:Re("".concat(n,"-content"),r),role:"dialog",ref:l},Hi(t,{aria:!0}),{"aria-modal":"true"},o))};function vte(e){return typeof e=="string"&&String(Number(e))===e?(fi(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var yte={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function hit(e,t){var n,r,i,o=e.prefixCls,a=e.open,s=e.placement,l=e.inline,c=e.push,u=e.forceRender,d=e.autoFocus,h=e.keyboard,p=e.classNames,m=e.rootClassName,v=e.rootStyle,y=e.zIndex,S=e.className,b=e.id,C=e.style,_=e.motion,T=e.width,x=e.height,E=e.children,k=e.mask,M=e.maskClosable,P=e.maskMotion,D=e.maskClassName,R=e.maskStyle,A=e.afterOpenChange,H=e.onClose,F=e.onMouseEnter,z=e.onMouseOver,W=e.onMouseLeave,q=e.onClick,Z=e.onKeyDown,N=e.onKeyUp,B=e.styles,V=e.drawerRender,Y=f.useRef(),ie=f.useRef(),ce=f.useRef();f.useImperativeHandle(t,function(){return Y.current});var fe=function(ke){var Pe=ke.keyCode,Ne=ke.shiftKey;switch(Pe){case Pt.TAB:{if(Pe===Pt.TAB){if(!Ne&&document.activeElement===ce.current){var We;(We=ie.current)===null||We===void 0||We.focus({preventScroll:!0})}else if(Ne&&document.activeElement===ie.current){var Q;(Q=ce.current)===null||Q===void 0||Q.focus({preventScroll:!0})}}break}case Pt.ESC:{H&&h&&(ke.stopPropagation(),H(ke));break}}};f.useEffect(function(){if(a&&d){var Te;(Te=Y.current)===null||Te===void 0||Te.focus({preventScroll:!0})}},[a]);var ee=f.useState(!1),ne=Le(ee,2),ue=ne[0],ye=ne[1],me=f.useContext(gte),pe;typeof c=="boolean"?pe=c?{}:{distance:0}:pe=c||{};var he=(n=(r=(i=pe)===null||i===void 0?void 0:i.distance)!==null&&r!==void 0?r:me==null?void 0:me.pushDistance)!==null&&n!==void 0?n:180,_e=f.useMemo(function(){return{pushDistance:he,push:function(){ye(!0)},pull:function(){ye(!1)}}},[he]);f.useEffect(function(){if(a){var Te;me==null||(Te=me.push)===null||Te===void 0||Te.call(me)}else{var ke;me==null||(ke=me.pull)===null||ke===void 0||ke.call(me)}},[a]),f.useEffect(function(){return function(){var Te;me==null||(Te=me.pull)===null||Te===void 0||Te.call(me)}},[]);var le=k&&f.createElement(ha,ut({key:"mask"},P,{visible:a}),function(Te,ke){var Pe=Te.className,Ne=Te.style;return f.createElement("div",{className:Re("".concat(o,"-mask"),Pe,p==null?void 0:p.mask,D),style:G(G(G({},Ne),R),B==null?void 0:B.mask),onClick:M&&a?H:void 0,ref:ke})}),xe=typeof _=="function"?_(s):_,we={};if(ue&&he)switch(s){case"top":we.transform="translateY(".concat(he,"px)");break;case"bottom":we.transform="translateY(".concat(-he,"px)");break;case"left":we.transform="translateX(".concat(he,"px)");break;default:we.transform="translateX(".concat(-he,"px)");break}s==="left"||s==="right"?we.width=vte(T):we.height=vte(x);var De={onMouseEnter:F,onMouseOver:z,onMouseLeave:W,onClick:q,onKeyDown:Z,onKeyUp:N},Fe=f.createElement(ha,ut({key:"panel"},xe,{visible:a,forceRender:u,onVisibleChanged:function(ke){A==null||A(ke)},removeOnLeave:!1,leavedClassName:"".concat(o,"-content-wrapper-hidden")}),function(Te,ke){var Pe=Te.className,Ne=Te.style,We=f.createElement(fit,ut({id:b,containerRef:ke,prefixCls:o,className:Re(S,p==null?void 0:p.content),style:G(G({},C),B==null?void 0:B.content)},Hi(e,{aria:!0}),De),E);return f.createElement("div",ut({className:Re("".concat(o,"-content-wrapper"),p==null?void 0:p.wrapper,Pe),style:G(G(G({},we),Ne),B==null?void 0:B.wrapper)},Hi(e,{data:!0})),V?V(We):We)}),Ce=G({},v);return y&&(Ce.zIndex=y),f.createElement(gte.Provider,{value:_e},f.createElement("div",{className:Re(o,"".concat(o,"-").concat(s),m,ae(ae({},"".concat(o,"-open"),a),"".concat(o,"-inline"),l)),style:Ce,tabIndex:-1,ref:Y,onKeyDown:fe},le,f.createElement("div",{tabIndex:0,ref:ie,style:yte,"aria-hidden":"true","data-sentinel":"start"}),Fe,f.createElement("div",{tabIndex:0,ref:ce,style:yte,"aria-hidden":"true","data-sentinel":"end"})))}var pit=f.forwardRef(hit),mit=function(t){var n=t.open,r=n===void 0?!1:n,i=t.prefixCls,o=i===void 0?"rc-drawer":i,a=t.placement,s=a===void 0?"right":a,l=t.autoFocus,c=l===void 0?!0:l,u=t.keyboard,d=u===void 0?!0:u,h=t.width,p=h===void 0?378:h,m=t.mask,v=m===void 0?!0:m,y=t.maskClosable,S=y===void 0?!0:y,b=t.getContainer,C=t.forceRender,_=t.afterOpenChange,T=t.destroyOnClose,x=t.onMouseEnter,E=t.onMouseOver,k=t.onMouseLeave,M=t.onClick,P=t.onKeyDown,D=t.onKeyUp,R=t.panelRef,A=f.useState(!1),H=Le(A,2),F=H[0],z=H[1],W=f.useState(!1),q=Le(W,2),Z=q[0],N=q[1];Er(function(){N(!0)},[]);var B=Z?r:!1,V=f.useRef(),Y=f.useRef();Er(function(){B&&(Y.current=document.activeElement)},[B]);var ie=function(ue){var ye;if(z(ue),_==null||_(ue),!ue&&Y.current&&!((ye=V.current)!==null&&ye!==void 0&&ye.contains(Y.current))){var me;(me=Y.current)===null||me===void 0||me.focus({preventScroll:!0})}},ce=f.useMemo(function(){return{panel:R}},[R]);if(!C&&!F&&!B&&T)return null;var fe={onMouseEnter:x,onMouseOver:E,onMouseLeave:k,onClick:M,onKeyDown:P,onKeyUp:D},ee=G(G({},t),{},{open:B,prefixCls:o,placement:s,autoFocus:c,keyboard:d,width:p,mask:v,maskClosable:S,inline:b===!1,afterOpenChange:ie,ref:V},fe);return f.createElement(mSe.Provider,{value:ce},f.createElement(CE,{open:B||C||F,autoDestroy:!1,getContainer:b,autoLock:v&&(B||F)},f.createElement(pit,ee)))};const gSe=e=>{var t,n;const{prefixCls:r,title:i,footer:o,extra:a,loading:s,onClose:l,headerStyle:c,bodyStyle:u,footerStyle:d,children:h,classNames:p,styles:m}=e,{drawer:v}=f.useContext(hn),y=f.useCallback(T=>f.createElement("button",{type:"button",onClick:l,"aria-label":"Close",className:`${r}-close`},T),[l]),[S,b]=nW(Zb(e),Zb(v),{closable:!0,closeIconRender:y}),C=f.useMemo(()=>{var T,x;return!i&&!S?null:f.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(T=v==null?void 0:v.styles)===null||T===void 0?void 0:T.header),c),m==null?void 0:m.header),className:Re(`${r}-header`,{[`${r}-header-close-only`]:S&&!i&&!a},(x=v==null?void 0:v.classNames)===null||x===void 0?void 0:x.header,p==null?void 0:p.header)},f.createElement("div",{className:`${r}-header-title`},b,i&&f.createElement("div",{className:`${r}-title`},i)),a&&f.createElement("div",{className:`${r}-extra`},a))},[S,b,a,c,r,i]),_=f.useMemo(()=>{var T,x;if(!o)return null;const E=`${r}-footer`;return f.createElement("div",{className:Re(E,(T=v==null?void 0:v.classNames)===null||T===void 0?void 0:T.footer,p==null?void 0:p.footer),style:Object.assign(Object.assign(Object.assign({},(x=v==null?void 0:v.styles)===null||x===void 0?void 0:x.footer),d),m==null?void 0:m.footer)},o)},[o,d,r]);return f.createElement(f.Fragment,null,C,f.createElement("div",{className:Re(`${r}-body`,p==null?void 0:p.body,(t=v==null?void 0:v.classNames)===null||t===void 0?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},(n=v==null?void 0:v.styles)===null||n===void 0?void 0:n.body),u),m==null?void 0:m.body)},s?f.createElement(kp,{active:!0,title:!1,paragraph:{rows:5},className:`${r}-body-skeleton`}):h),_)},git=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},vSe=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),ySe=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},vSe({opacity:e},{opacity:1})),vit=(e,t)=>[ySe(.7,t),vSe({transform:git(e)},{transform:"none"})],yit=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:ySe(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((r,i)=>Object.assign(Object.assign({},r),{[`&-${i}`]:vit(i,n)}),{})}}},bit=e=>{const{borderRadiusSM:t,componentCls:n,zIndexPopup:r,colorBgMask:i,colorBgElevated:o,motionDurationSlow:a,motionDurationMid:s,paddingXS:l,padding:c,paddingLG:u,fontSizeLG:d,lineHeightLG:h,lineWidth:p,lineType:m,colorSplit:v,marginXS:y,colorIcon:S,colorIconHover:b,colorBgTextHover:C,colorBgTextActive:_,colorText:T,fontWeightStrong:x,footerPaddingBlock:E,footerPaddingInline:k,calc:M}=e,P=`${n}-content-wrapper`;return{[n]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none",color:T,"&-pure":{position:"relative",background:o,display:"flex",flexDirection:"column",[`&${n}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${n}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${n}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${n}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${n}-mask`]:{position:"absolute",inset:0,zIndex:r,background:i,pointerEvents:"auto"},[P]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${a}`,"&-hidden":{display:"none"}},[`&-left > ${P}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${P}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${P}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${P}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${n}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:o,pointerEvents:"auto"},[`${n}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${je(c)} ${je(u)}`,fontSize:d,lineHeight:h,borderBottom:`${je(p)} ${m} ${v}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:"none"},[`${n}-close`]:Object.assign({display:"inline-flex",width:M(d).add(l).equal(),height:M(d).add(l).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",marginInlineEnd:y,color:S,fontWeight:x,fontSize:d,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${s}`,textRendering:"auto","&:hover":{color:b,backgroundColor:C,textDecoration:"none"},"&:active":{backgroundColor:_}},gl(e)),[`${n}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:d,lineHeight:h},[`${n}-body`]:{flex:1,minWidth:0,minHeight:0,padding:u,overflow:"auto",[`${n}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${n}-footer`]:{flexShrink:0,padding:`${je(E)} ${je(k)}`,borderTop:`${je(p)} ${m} ${v}`},"&-rtl":{direction:"rtl"}}}},Sit=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}),bSe=Tr("Drawer",e=>{const t=ur(e,{});return[bit(t),yit(t)]},Sit);var SSe=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 Cit={distance:180},CSe=e=>{const{rootClassName:t,width:n,height:r,size:i="default",mask:o=!0,push:a=Cit,open:s,afterOpenChange:l,onClose:c,prefixCls:u,getContainer:d,style:h,className:p,visible:m,afterVisibleChange:v,maskStyle:y,drawerStyle:S,contentWrapperStyle:b}=e,C=SSe(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:_,getPrefixCls:T,direction:x,drawer:E}=f.useContext(hn),k=T("drawer",u),[M,P,D]=bSe(k),R=d===void 0&&_?()=>_(document.body):d,A=Re({"no-mask":!o,[`${k}-rtl`]:x==="rtl"},t,P,D),H=f.useMemo(()=>n??(i==="large"?736:378),[n,i]),F=f.useMemo(()=>r??(i==="large"?736:378),[r,i]),z={motionName:as(k,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},W=ce=>({motionName:as(k,`panel-motion-${ce}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),q=zve(),[Z,N]=Du("Drawer",C.zIndex),{classNames:B={},styles:V={}}=C,{classNames:Y={},styles:ie={}}=E||{};return M(f.createElement(zd,{form:!0,space:!0},f.createElement(gE.Provider,{value:N},f.createElement(mit,Object.assign({prefixCls:k,onClose:c,maskMotion:z,motion:W},C,{classNames:{mask:Re(B.mask,Y.mask),content:Re(B.content,Y.content),wrapper:Re(B.wrapper,Y.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},V.mask),y),ie.mask),content:Object.assign(Object.assign(Object.assign({},V.content),S),ie.content),wrapper:Object.assign(Object.assign(Object.assign({},V.wrapper),b),ie.wrapper)},open:s??m,mask:o,push:a,width:H,height:F,style:Object.assign(Object.assign({},E==null?void 0:E.style),h),className:Re(E==null?void 0:E.className,p),rootClassName:A,getContainer:R,afterOpenChange:l??v,panelRef:q,zIndex:Z}),f.createElement(gSe,Object.assign({prefixCls:k},C,{onClose:c}))))))},xit=e=>{const{prefixCls:t,style:n,className:r,placement:i="right"}=e,o=SSe(e,["prefixCls","style","className","placement"]),{getPrefixCls:a}=f.useContext(hn),s=a("drawer",t),[l,c,u]=bSe(s),d=Re(s,`${s}-pure`,`${s}-${i}`,c,u,r);return l(f.createElement("div",{className:d,style:n},f.createElement(gSe,Object.assign({prefixCls:s},o))))};CSe._InternalPanelDoNotUseOrYouWillBeFired=xit;function bte(e){return["small","middle","large"].includes(e)}function Ste(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const xSe=ge.createContext({latestIndex:0}),wit=xSe.Provider,_it=e=>{let{className:t,index:n,children:r,split:i,style:o}=e;const{latestIndex:a}=f.useContext(xSe);return r==null?null:f.createElement(f.Fragment,null,f.createElement("div",{className:t,style:o},r),n<a&&i&&f.createElement("span",{className:`${t}-split`},i))};var Eit=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 Tit=f.forwardRef((e,t)=>{var n,r,i;const{getPrefixCls:o,space:a,direction:s}=f.useContext(hn),{size:l=(n=a==null?void 0:a.size)!==null&&n!==void 0?n:"small",align:c,className:u,rootClassName:d,children:h,direction:p="horizontal",prefixCls:m,split:v,style:y,wrap:S=!1,classNames:b,styles:C}=e,_=Eit(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[T,x]=Array.isArray(l)?l:[l,l],E=bte(x),k=bte(T),M=Ste(x),P=Ste(T),D=Uo(h,{keepEmpty:!0}),R=c===void 0&&p==="horizontal"?"center":c,A=o("space",m),[H,F,z]=cve(A),W=Re(A,a==null?void 0:a.className,F,`${A}-${p}`,{[`${A}-rtl`]:s==="rtl",[`${A}-align-${R}`]:R,[`${A}-gap-row-${x}`]:E,[`${A}-gap-col-${T}`]:k},u,d,z),q=Re(`${A}-item`,(r=b==null?void 0:b.item)!==null&&r!==void 0?r:(i=a==null?void 0:a.classNames)===null||i===void 0?void 0:i.item);let Z=0;const N=D.map((Y,ie)=>{var ce,fe;Y!=null&&(Z=ie);const ee=(Y==null?void 0:Y.key)||`${q}-${ie}`;return f.createElement(_it,{className:q,key:ee,index:ie,split:v,style:(ce=C==null?void 0:C.item)!==null&&ce!==void 0?ce:(fe=a==null?void 0:a.styles)===null||fe===void 0?void 0:fe.item},Y)}),B=f.useMemo(()=>({latestIndex:Z}),[Z]);if(D.length===0)return null;const V={};return S&&(V.flexWrap="wrap"),!k&&P&&(V.columnGap=T),!E&&M&&(V.rowGap=x),H(f.createElement("div",Object.assign({ref:t,className:W,style:Object.assign(Object.assign(Object.assign({},V),a==null?void 0:a.style),y)},_),f.createElement(wit,{value:B},N)))}),ma=Tit;ma.Compact=yUe;var kit=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 wSe=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=f.useContext(hn),{prefixCls:i,type:o="default",danger:a,disabled:s,loading:l,onClick:c,htmlType:u,children:d,className:h,menu:p,arrow:m,autoFocus:v,overlay:y,trigger:S,align:b,open:C,onOpenChange:_,placement:T,getPopupContainer:x,href:E,icon:k=f.createElement(_W,null),title:M,buttonsRender:P=ne=>ne,mouseEnterDelay:D,mouseLeaveDelay:R,overlayClassName:A,overlayStyle:H,destroyPopupOnHide:F,dropdownRender:z}=e,W=kit(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"]),q=n("dropdown",i),Z=`${q}-button`,N={menu:p,arrow:m,autoFocus:v,align:b,disabled:s,trigger:s?[]:S,onOpenChange:_,getPopupContainer:x||t,mouseEnterDelay:D,mouseLeaveDelay:R,overlayClassName:A,overlayStyle:H,destroyPopupOnHide:F,dropdownRender:z},{compactSize:B,compactItemClassnames:V}=Zd(q,r),Y=Re(Z,V,h);"overlay"in e&&(N.overlay=y),"open"in e&&(N.open=C),"placement"in e?N.placement=T:N.placement=r==="rtl"?"bottomLeft":"bottomRight";const ie=f.createElement(hr,{type:o,danger:a,disabled:s,loading:l,onClick:c,htmlType:u,href:E,title:M},d),ce=f.createElement(hr,{type:o,danger:a,icon:k}),[fe,ee]=P([ie,ce]);return f.createElement(ma.Compact,Object.assign({className:Y,size:B,block:!0},W),fe,f.createElement(OE,Object.assign({},N),ee))};wSe.__ANT_BUTTON=!0;const yP=OE;yP.Button=wSe;var Oit={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"};function X9(e){const[t,n]=f.useState(e);return f.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const Pit=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)"}}}}},Mit=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${je(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 ${je(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),Cte=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},Iit=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},$r(e)),Mit(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},Cte(e,e.controlHeightSM)),"&-large":Object.assign({},Cte(e,e.controlHeightLG))})}},$it=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:i,antCls:o,labelRequiredMarkColor:a,labelColor:s,labelFontSize:l,labelHeight:c,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:d,itemMarginBottom:h}=e;return{[t]:Object.assign(Object.assign({},$r(e)),{marginBottom:h,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:c,color:s,fontSize:l,[`> ${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:u,marginInlineEnd:d},[`&${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:KU,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},xte=(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"}}}}},Rit=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"}}}}},vd=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),_Se=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:vd(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Ait=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`]:vd(e)}},[`@media (max-width: ${je(e.screenXSMax)})`]:[_Se(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:vd(e)}}}],[`@media (max-width: ${je(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:vd(e)}}},[`@media (max-width: ${je(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:vd(e)}}},[`@media (max-width: ${je(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:vd(e)}}}}},Nit=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`]:vd(e),[`@media (max-width: ${je(e.screenXSMax)})`]:[_Se(e),{[t]:{[`${n}-col-xs-24${t}-label`]:vd(e)}}],[`@media (max-width: ${je(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:vd(e)}},[`@media (max-width: ${je(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:vd(e)}},[`@media (max-width: ${je(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:vd(e)}}}},Dit=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}),ESe=(e,t)=>ur(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),GW=Tr("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=ESe(e,n);return[Iit(r),$it(r),Pit(r),xte(r,r.componentCls),xte(r,r.formItemCls),Rit(r),Ait(r),Nit(r),bE(r),KU]},Dit,{order:-1e3}),wte=[];function XR(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 TSe=e=>{let{help:t,helpStatus:n,errors:r=wte,warnings:i=wte,className:o,fieldId:a,onVisibleChanged:s}=e;const{prefixCls:l}=f.useContext(tW),c=`${l}-item-explain`,u=_i(l),[d,h,p]=GW(l,u),m=f.useMemo(()=>Xb(l),[l]),v=X9(r),y=X9(i),S=f.useMemo(()=>t!=null?[XR(t,"help",n)]:[].concat(pt(v.map((_,T)=>XR(_,"error","error",T))),pt(y.map((_,T)=>XR(_,"warning","warning",T)))),[t,n,v,y]),b=f.useMemo(()=>{const _={};return S.forEach(T=>{let{key:x}=T;_[x]=(_[x]||0)+1}),S.map((T,x)=>Object.assign(Object.assign({},T),{key:_[T.key]>1?`${T.key}-fallback-${x}`:T.key}))},[S]),C={};return a&&(C.id=`${a}_help`),d(f.createElement(ha,{motionDeadline:m.motionDeadline,motionName:`${l}-show-help`,visible:!!b.length,onVisibleChanged:s},_=>{const{className:T,style:x}=_;return f.createElement("div",Object.assign({},C,{className:Re(c,T,p,u,o,h),style:x,role:"alert"}),f.createElement(OO,Object.assign({keys:b},Xb(l),{motionName:`${l}-show-help-item`,component:!1}),E=>{const{key:k,error:M,errorStatus:P,className:D,style:R}=E;return f.createElement("div",{key:k,className:Re(D,{[`${c}-${P}`]:P}),style:R},M)}))}))},Lit=["parentNode"],Fit="form_item";function iw(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function kSe(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:Lit.includes(n)?`${Fit}_${n}`:n}function OSe(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 _te(e){return iw(e).join("_")}function Ete(e,t){const n=t.getFieldInstance(e),r=aO(n);if(r)return r;const i=kSe(iw(e),t.__INTERNAL__.name);if(i)return document.getElementById(i)}function PSe(e){const[t]=eW(),n=f.useRef({}),r=f.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:i=>o=>{const a=_te(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=Ete(i,r);a&&Sze(a,Object.assign({scrollMode:"if-needed",block:"nearest"},o))},focusField:i=>{var o;const a=Ete(i,r);a&&((o=a.focus)===null||o===void 0||o.call(a))},getFieldInstance:i=>{const o=_te(i);return n.current[o]}}),[e,t]);return[r]}var jit=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 Bit=(e,t)=>{const n=f.useContext(ea),{getPrefixCls:r,direction:i,form:o}=f.useContext(hn),{prefixCls:a,className:s,rootClassName:l,size:c,disabled:u=n,form:d,colon:h,labelAlign:p,labelWrap:m,labelCol:v,wrapperCol:y,hideRequiredMark:S,layout:b="horizontal",scrollToFirstError:C,requiredMark:_,onFinishFailed:T,name:x,style:E,feedbackIcons:k,variant:M}=e,P=jit(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),D=Ro(c),R=f.useContext(s1e),A=f.useMemo(()=>_!==void 0?_:S?!1:o&&o.requiredMark!==void 0?o.requiredMark:!0,[S,_,o]),H=h??(o==null?void 0:o.colon),F=r("form",a),z=_i(F),[W,q,Z]=GW(F,z),N=Re(F,`${F}-${b}`,{[`${F}-hide-required-mark`]:A===!1,[`${F}-rtl`]:i==="rtl",[`${F}-${D}`]:D},Z,z,q,o==null?void 0:o.className,s,l),[B]=PSe(d),{__INTERNAL__:V}=B;V.name=x;const Y=f.useMemo(()=>({name:x,labelAlign:p,labelCol:v,labelWrap:m,wrapperCol:y,vertical:b==="vertical",colon:H,requiredMark:A,itemRef:V.itemRef,form:B,feedbackIcons:k}),[x,p,v,y,b,H,A,B,k]),ie=f.useRef(null);f.useImperativeHandle(t,()=>{var ee;return Object.assign(Object.assign({},B),{nativeElement:(ee=ie.current)===null||ee===void 0?void 0:ee.nativeElement})});const ce=(ee,ne)=>{if(ee){let ue={block:"nearest"};typeof ee=="object"&&(ue=Object.assign(Object.assign({},ue),ee)),B.scrollToField(ne,ue),ue.focus&&B.focusField(ne)}},fe=ee=>{if(T==null||T(ee),ee.errorFields.length){const ne=ee.errorFields[0].name;if(C!==void 0){ce(C,ne);return}o&&o.scrollToFirstError!==void 0&&ce(o.scrollToFirstError,ne)}};return W(f.createElement(Bve.Provider,{value:M},f.createElement(AU,{disabled:u},f.createElement(Sv.Provider,{value:D},f.createElement(jve,{validateMessages:R},f.createElement(pp.Provider,{value:Y},f.createElement(XS,Object.assign({id:x},P,{name:x,onFinishFailed:fe,form:B,ref:ie,style:Object.assign(Object.assign({},o==null?void 0:o.style),E),className:N}))))))))},Hit=f.forwardRef(Bit);function zit(e){if(typeof e=="function")return e;const t=Uo(e);return t.length<=1?t[0]:t}const MSe=()=>{const{status:e,errors:t=[],warnings:n=[]}=f.useContext(pa);return{status:e,errors:t,warnings:n}};MSe.Context=pa;function Uit(e){const[t,n]=f.useState(e),r=f.useRef(null),i=f.useRef([]),o=f.useRef(!1);f.useEffect(()=>(o.current=!1,()=>{o.current=!0,Sr.cancel(r.current),r.current=null}),[]);function a(s){o.current||(r.current===null&&(i.current=[],r.current=Sr(()=>{r.current=null,n(l=>{let c=l;return i.current.forEach(u=>{c=u(c)}),c})})),i.current.push(s))}return[t,a]}function Wit(){const{itemRef:e}=f.useContext(pp),t=f.useRef({});function n(r,i){const o=i&&typeof i=="object"&&mg(i),a=r.join("_");return(t.current.name!==a||t.current.originRef!==o)&&(t.current.name=a,t.current.originRef=o,t.current.ref=va(e(r),o)),t.current.ref}return n}const Vit=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},Kit=KS(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=ESe(e,n);return[Vit(r)]});var qit=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 Git=24,Yit=e=>{const{prefixCls:t,status:n,labelCol:r,wrapperCol:i,children:o,errors:a,warnings:s,_internalItemRender:l,extra:c,help:u,fieldId:d,marginBottom:h,onErrorVisibleChanged:p,label:m}=e,v=`${t}-item`,y=f.useContext(pp),S=f.useMemo(()=>{let H=Object.assign({},i||y.wrapperCol||{});return m===null&&!r&&!i&&y.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(z=>{const W=z?[z]:[],q=Bo(y.labelCol,W),Z=typeof q=="object"?q:{},N=Bo(H,W),B=typeof N=="object"?N:{};"span"in Z&&!("offset"in B)&&Z.span<Git&&(H=ua(H,[].concat(W,["offset"]),Z.span))}),H},[i,y]),b=Re(`${v}-control`,S.className),C=f.useMemo(()=>qit(y,["labelCol","wrapperCol"]),[y]),_=f.useRef(null),[T,x]=f.useState(0);Er(()=>{c&&_.current?x(_.current.clientHeight):x(0)},[c]);const E=f.createElement("div",{className:`${v}-control-input`},f.createElement("div",{className:`${v}-control-input-content`},o)),k=f.useMemo(()=>({prefixCls:t,status:n}),[t,n]),M=h!==null||a.length||s.length?f.createElement(tW.Provider,{value:k},f.createElement(TSe,{fieldId:d,errors:a,warnings:s,help:u,helpStatus:n,className:`${v}-explain-connected`,onVisibleChanged:p})):null,P={};d&&(P.id=`${d}_extra`);const D=c?f.createElement("div",Object.assign({},P,{className:`${v}-extra`,ref:_}),c):null,R=M||D?f.createElement("div",{className:`${v}-additional`,style:h?{minHeight:h+T}:{}},M,D):null,A=l&&l.mark==="pro_table_render"&&l.render?l.render(e,{input:E,errorList:M,extra:D}):f.createElement(f.Fragment,null,E,R);return f.createElement(pp.Provider,{value:C},f.createElement(_v,Object.assign({},S,{className:b}),A),f.createElement(Kit,{prefixCls:t}))};var Xit={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"},Qit=function(t,n){return f.createElement(wr,ut({},t,{ref:n,icon:Xit}))},Zit=f.forwardRef(Qit),Jit=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 eot(e){return e?typeof e=="object"&&!f.isValidElement(e)?e:{title:e}:null}const tot=e=>{let{prefixCls:t,label:n,htmlFor:r,labelCol:i,labelAlign:o,colon:a,required:s,requiredMark:l,tooltip:c,vertical:u}=e;var d;const[h]=Os("Form"),{labelAlign:p,labelCol:m,labelWrap:v,colon:y}=f.useContext(pp);if(!n)return null;const S=i||m||{},b=o||p,C=`${t}-item-label`,_=Re(C,b==="left"&&`${C}-left`,S.className,{[`${C}-wrap`]:!!v});let T=n;const x=a===!0||y!==!1&&a!==!1;x&&!u&&typeof n=="string"&&n.trim()&&(T=n.replace(/[:|:]\s*$/,""));const k=eot(c);if(k){const{icon:R=f.createElement(Zit,null)}=k,A=Jit(k,["icon"]),H=f.createElement(ta,Object.assign({},A),f.cloneElement(R,{className:`${t}-item-tooltip`,title:"",onClick:F=>{F.preventDefault()},tabIndex:null}));T=f.createElement(f.Fragment,null,T,H)}const M=l==="optional",P=typeof l=="function";P?T=l(T,{required:!!s}):M&&!s&&(T=f.createElement(f.Fragment,null,T,f.createElement("span",{className:`${t}-item-optional`,title:""},(h==null?void 0:h.optional)||((d=Fc.Form)===null||d===void 0?void 0:d.optional))));const D=Re({[`${t}-item-required`]:s,[`${t}-item-required-mark-optional`]:M||P,[`${t}-item-no-colon`]:!x});return f.createElement(_v,Object.assign({},S,{className:_}),f.createElement("label",{htmlFor:r,className:D,title:typeof n=="string"?n:""},T))},not={success:Gv,warning:gg,error:th,validating:Bd};function ISe(e){let{children:t,errors:n,warnings:r,hasFeedback:i,validateStatus:o,prefixCls:a,meta:s,noStyle:l}=e;const c=`${a}-item`,{feedbackIcons:u}=f.useContext(pp),d=OSe(n,r,s,null,!!i,o),{isFormItemInput:h,status:p,hasFeedback:m,feedbackIcon:v}=f.useContext(pa),y=f.useMemo(()=>{var S;let b;if(i){const _=i!==!0&&i.icons||u,T=d&&((S=_==null?void 0:_({status:d,errors:n,warnings:r}))===null||S===void 0?void 0:S[d]),x=d&¬[d];b=T!==!1&&x?f.createElement("span",{className:Re(`${c}-feedback-icon`,`${c}-feedback-icon-${d}`)},T||f.createElement(x,null)):null}const C={status:d||"",errors:n,warnings:r,hasFeedback:!!i,feedbackIcon:b,isFormItemInput:!0};return l&&(C.status=(d??p)||"",C.isFormItemInput=h,C.hasFeedback=!!(i??m),C.feedbackIcon=i!==void 0?C.feedbackIcon:v),C},[d,i,l,h,p]);return f.createElement(pa.Provider,{value:y},t)}var rot=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 iot(e){const{prefixCls:t,className:n,rootClassName:r,style:i,help:o,errors:a,warnings:s,validateStatus:l,meta:c,hasFeedback:u,hidden:d,children:h,fieldId:p,required:m,isRequired:v,onSubItemMetaChange:y,layout:S}=e,b=rot(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),C=`${t}-item`,{requiredMark:_,vertical:T}=f.useContext(pp),x=T||S==="vertical",E=f.useRef(null),k=X9(a),M=X9(s),P=o!=null,D=!!(P||a.length||s.length),R=!!E.current&&GS(E.current),[A,H]=f.useState(null);Er(()=>{if(D&&E.current){const Z=getComputedStyle(E.current);H(parseInt(Z.marginBottom,10))}},[D,R]);const F=Z=>{Z||H(null)},W=function(){let Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const N=Z?k:c.errors,B=Z?M:c.warnings;return OSe(N,B,c,"",!!u,l)}(),q=Re(C,n,r,{[`${C}-with-help`]:P||k.length||M.length,[`${C}-has-feedback`]:W&&u,[`${C}-has-success`]:W==="success",[`${C}-has-warning`]:W==="warning",[`${C}-has-error`]:W==="error",[`${C}-is-validating`]:W==="validating",[`${C}-hidden`]:d,[`${C}-${S}`]:S});return f.createElement("div",{className:q,style:i,ref:E},f.createElement(DE,Object.assign({className:`${C}-row`},Pr(b,["_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"])),f.createElement(tot,Object.assign({htmlFor:p},e,{requiredMark:_,required:m??v,prefixCls:t,vertical:x})),f.createElement(Yit,Object.assign({},e,c,{errors:k,warnings:M,prefixCls:t,status:W,help:o,marginBottom:A,onErrorVisibleChanged:F}),f.createElement(Fve.Provider,{value:y},f.createElement(ISe,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:u,validateStatus:W},h)))),!!A&&f.createElement("div",{className:`${C}-margin-offset`,style:{marginBottom:-A}}))}const oot="__SPLIT__";function aot(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 sot=f.memo(e=>{let{children:t}=e;return t},(e,t)=>aot(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function Tte(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function lot(e){const{name:t,noStyle:n,className:r,dependencies:i,prefixCls:o,shouldUpdate:a,rules:s,children:l,required:c,label:u,messageVariables:d,trigger:h="onChange",validateTrigger:p,hidden:m,help:v,layout:y}=e,{getPrefixCls:S}=f.useContext(hn),{name:b}=f.useContext(pp),C=zit(l),_=typeof C=="function",T=f.useContext(Fve),{validateTrigger:x}=f.useContext(rg),E=p!==void 0?p:x,k=t!=null,M=S("form",o),P=_i(M),[D,R,A]=GW(M,P);eh();const H=f.useContext(m_),F=f.useRef(null),[z,W]=Uit({}),[q,Z]=Cv(()=>Tte()),N=ee=>{const ne=H==null?void 0:H.getKey(ee.name);if(Z(ee.destroy?Tte():ee,!0),n&&v!==!1&&T){let ue=ee.name;if(ee.destroy)ue=F.current||ue;else if(ne!==void 0){const[ye,me]=ne;ue=[ye].concat(pt(me)),F.current=ue}T(ee,ue)}},B=(ee,ne)=>{W(ue=>{const ye=Object.assign({},ue),pe=[].concat(pt(ee.name.slice(0,-1)),pt(ne)).join(oot);return ee.destroy?delete ye[pe]:ye[pe]=ee,ye})},[V,Y]=f.useMemo(()=>{const ee=pt(q.errors),ne=pt(q.warnings);return Object.values(z).forEach(ue=>{ee.push.apply(ee,pt(ue.errors||[])),ne.push.apply(ne,pt(ue.warnings||[]))}),[ee,ne]},[z,q.errors,q.warnings]),ie=Wit();function ce(ee,ne,ue){return n&&!m?f.createElement(ISe,{prefixCls:M,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:q,errors:V,warnings:Y,noStyle:!0},ee):f.createElement(iot,Object.assign({key:"row"},e,{className:Re(r,A,P,R),prefixCls:M,fieldId:ne,isRequired:ue,errors:V,warnings:Y,meta:q,onSubItemMetaChange:B,layout:y}),ee)}if(!k&&!_&&!i)return D(ce(C));let fe={};return typeof u=="string"?fe.label=u:t&&(fe.label=String(t)),d&&(fe=Object.assign(Object.assign({},fe),d)),D(f.createElement(JU,Object.assign({},e,{messageVariables:fe,trigger:h,validateTrigger:E,onMetaChange:N}),(ee,ne,ue)=>{const ye=iw(t).length&&ne?ne.name:[],me=kSe(ye,b),pe=c!==void 0?c:!!(s!=null&&s.some(le=>{if(le&&typeof le=="object"&&le.required&&!le.warningOnly)return!0;if(typeof le=="function"){const xe=le(ue);return(xe==null?void 0:xe.required)&&!(xe!=null&&xe.warningOnly)}return!1})),he=Object.assign({},ee);let _e=null;if(Array.isArray(C)&&k)_e=C;else if(!(_&&(!(a||i)||k))){if(!(i&&!_&&!k))if(f.isValidElement(C)){const le=Object.assign(Object.assign({},C.props),he);if(le.id||(le.id=me),v||V.length>0||Y.length>0||e.extra){const De=[];(v||V.length>0)&&De.push(`${me}_help`),e.extra&&De.push(`${me}_extra`),le["aria-describedby"]=De.join(" ")}V.length>0&&(le["aria-invalid"]="true"),pe&&(le["aria-required"]="true"),Ld(C)&&(le.ref=ie(ye,C)),new Set([].concat(pt(iw(h)),pt(iw(E)))).forEach(De=>{le[De]=function(){for(var Fe,Ce,Te,ke,Pe,Ne=arguments.length,We=new Array(Ne),Q=0;Q<Ne;Q++)We[Q]=arguments[Q];(Te=he[De])===null||Te===void 0||(Fe=Te).call.apply(Fe,[he].concat(We)),(Pe=(ke=C.props)[De])===null||Pe===void 0||(Ce=Pe).call.apply(Ce,[ke].concat(We))}});const we=[le["aria-required"],le["aria-invalid"],le["aria-describedby"]];_e=f.createElement(sot,{control:he,update:C,childProps:we},$o(C,le))}else _&&(a||i)&&!k?_e=C(ue):_e=C}return ce(_e,me,pe)}))}const $Se=lot;$Se.useStatus=MSe;var cot=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 uot=e=>{var{prefixCls:t,children:n}=e,r=cot(e,["prefixCls","children"]);const{getPrefixCls:i}=f.useContext(hn),o=i("form",t),a=f.useMemo(()=>({prefixCls:o,status:"error"}),[o]);return f.createElement(Ave,Object.assign({},r),(s,l,c)=>f.createElement(tW.Provider,{value:a},n(s.map(u=>Object.assign(Object.assign({},u),{fieldKey:u.key})),l,{errors:c.errors,warnings:c.warnings})))};function dot(){const{form:e}=f.useContext(pp);return e}const Or=Hit;Or.Item=$Se;Or.List=uot;Or.ErrorList=TSe;Or.useForm=PSe;Or.useFormInstance=dot;Or.useWatch=Lve;Or.Provider=jve;Or.create=()=>{};function RSe(){var e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function fot(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 Rf(e,t,n,r){var i=Uw.unstable_batchedUpdates?function(a){Uw.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)}}}var LE=f.createContext(null),hot=function(t){var n=t.visible,r=t.maskTransitionName,i=t.getContainer,o=t.prefixCls,a=t.rootClassName,s=t.icons,l=t.countRender,c=t.showSwitch,u=t.showProgress,d=t.current,h=t.transform,p=t.count,m=t.scale,v=t.minScale,y=t.maxScale,S=t.closeIcon,b=t.onActive,C=t.onClose,_=t.onZoomIn,T=t.onZoomOut,x=t.onRotateRight,E=t.onRotateLeft,k=t.onFlipX,M=t.onFlipY,P=t.onReset,D=t.toolbarRender,R=t.zIndex,A=t.image,H=f.useContext(LE),F=s.rotateLeft,z=s.rotateRight,W=s.zoomIn,q=s.zoomOut,Z=s.close,N=s.left,B=s.right,V=s.flipX,Y=s.flipY,ie="".concat(o,"-operations-operation");f.useEffect(function(){var xe=function(De){De.keyCode===Pt.ESC&&C()};return n&&window.addEventListener("keydown",xe),function(){window.removeEventListener("keydown",xe)}},[n]);var ce=function(we,De){we.preventDefault(),we.stopPropagation(),b(De)},fe=f.useCallback(function(xe){var we=xe.type,De=xe.disabled,Fe=xe.onClick,Ce=xe.icon;return f.createElement("div",{key:we,className:Re(ie,"".concat(o,"-operations-operation-").concat(we),ae({},"".concat(o,"-operations-operation-disabled"),!!De)),onClick:Fe},Ce)},[ie,o]),ee=c?fe({icon:N,onClick:function(we){return ce(we,-1)},type:"prev",disabled:d===0}):void 0,ne=c?fe({icon:B,onClick:function(we){return ce(we,1)},type:"next",disabled:d===p-1}):void 0,ue=fe({icon:Y,onClick:M,type:"flipY"}),ye=fe({icon:V,onClick:k,type:"flipX"}),me=fe({icon:F,onClick:E,type:"rotateLeft"}),pe=fe({icon:z,onClick:x,type:"rotateRight"}),he=fe({icon:q,onClick:T,type:"zoomOut",disabled:m<=v}),_e=fe({icon:W,onClick:_,type:"zoomIn",disabled:m===y}),le=f.createElement("div",{className:"".concat(o,"-operations")},ue,ye,me,pe,he,_e);return f.createElement(ha,{visible:n,motionName:r},function(xe){var we=xe.className,De=xe.style;return f.createElement(CE,{open:!0,getContainer:i??document.body},f.createElement("div",{className:Re("".concat(o,"-operations-wrapper"),we,a),style:G(G({},De),{},{zIndex:R})},S===null?null:f.createElement("button",{className:"".concat(o,"-close"),onClick:C},S||Z),c&&f.createElement(f.Fragment,null,f.createElement("div",{className:Re("".concat(o,"-switch-left"),ae({},"".concat(o,"-switch-left-disabled"),d===0)),onClick:function(Ce){return ce(Ce,-1)}},N),f.createElement("div",{className:Re("".concat(o,"-switch-right"),ae({},"".concat(o,"-switch-right-disabled"),d===p-1)),onClick:function(Ce){return ce(Ce,1)}},B)),f.createElement("div",{className:"".concat(o,"-footer")},u&&f.createElement("div",{className:"".concat(o,"-progress")},l?l(d+1,p):"".concat(d+1," / ").concat(p)),D?D(le,G(G({icons:{prevIcon:ee,nextIcon:ne,flipYIcon:ue,flipXIcon:ye,rotateLeftIcon:me,rotateRightIcon:pe,zoomOutIcon:he,zoomInIcon:_e},actions:{onActive:b,onFlipY:M,onFlipX:k,onRotateLeft:E,onRotateRight:x,onZoomOut:T,onZoomIn:_,onReset:P,onClose:C},transform:h},H?{current:d,total:p}:{}),{},{image:A})):le)))})},n5={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function pot(e,t,n,r){var i=f.useRef(null),o=f.useRef([]),a=f.useState(n5),s=Le(a,2),l=s[0],c=s[1],u=function(m){c(n5),ku(n5,l)||r==null||r({transform:n5,action:m})},d=function(m,v){i.current===null&&(o.current=[],i.current=Sr(function(){c(function(y){var S=y;return o.current.forEach(function(b){S=G(G({},S),b)}),i.current=null,r==null||r({transform:S,action:v}),S})})),o.current.push(G(G({},l),m))},h=function(m,v,y,S,b){var C=e.current,_=C.width,T=C.height,x=C.offsetWidth,E=C.offsetHeight,k=C.offsetLeft,M=C.offsetTop,P=m,D=l.scale*m;D>n?(D=n,P=n/l.scale):D<t&&(D=b?D:t,P=D/l.scale);var R=y??innerWidth/2,A=S??innerHeight/2,H=P-1,F=H*_*.5,z=H*T*.5,W=H*(R-l.x-k),q=H*(A-l.y-M),Z=l.x-(W-F),N=l.y-(q-z);if(m<1&&D===1){var B=x*D,V=E*D,Y=RSe(),ie=Y.width,ce=Y.height;B<=ie&&V<=ce&&(Z=0,N=0)}d({x:Z,y:N,scale:D},v)};return{transform:l,resetTransform:u,updateTransform:d,dispatchZoomChange:h}}function kte(e,t,n,r){var i=t+n,o=(n-r)/2;if(n>r){if(t>0)return ae({},e,o);if(t<0&&i<r)return ae({},e,-o)}else if(t<0||i>r)return ae({},e,t<0?o:-o);return{}}function ASe(e,t,n,r){var i=RSe(),o=i.width,a=i.height,s=null;return e<=o&&t<=a?s={x:0,y:0}:(e>o||t>a)&&(s=G(G({},kte("x",n,e,o)),kte("y",r,t,a))),s}var Ky=1,mot=1;function got(e,t,n,r,i,o,a){var s=i.rotate,l=i.scale,c=i.x,u=i.y,d=f.useState(!1),h=Le(d,2),p=h[0],m=h[1],v=f.useRef({diffX:0,diffY:0,transformX:0,transformY:0}),y=function(T){!t||T.button!==0||(T.preventDefault(),T.stopPropagation(),v.current={diffX:T.pageX-c,diffY:T.pageY-u,transformX:c,transformY:u},m(!0))},S=function(T){n&&p&&o({x:T.pageX-v.current.diffX,y:T.pageY-v.current.diffY},"move")},b=function(){if(n&&p){m(!1);var T=v.current,x=T.transformX,E=T.transformY,k=c!==x&&u!==E;if(!k)return;var M=e.current.offsetWidth*l,P=e.current.offsetHeight*l,D=e.current.getBoundingClientRect(),R=D.left,A=D.top,H=s%180!==0,F=ASe(H?P:M,H?M:P,R,A);F&&o(G({},F),"dragRebound")}},C=function(T){if(!(!n||T.deltaY==0)){var x=Math.abs(T.deltaY/100),E=Math.min(x,mot),k=Ky+E*r;T.deltaY>0&&(k=Ky/k),a(k,"wheel",T.clientX,T.clientY)}};return f.useEffect(function(){var _,T,x,E;if(t){x=Rf(window,"mouseup",b,!1),E=Rf(window,"mousemove",S,!1);try{window.top!==window.self&&(_=Rf(window.top,"mouseup",b,!1),T=Rf(window.top,"mousemove",S,!1))}catch{}}return function(){var k,M,P,D;(k=x)===null||k===void 0||k.remove(),(M=E)===null||M===void 0||M.remove(),(P=_)===null||P===void 0||P.remove(),(D=T)===null||D===void 0||D.remove()}},[n,p,c,u,s,t]),{isMoving:p,onMouseDown:y,onMouseMove:S,onMouseUp:b,onWheel:C}}function vot(e){return new Promise(function(t){var n=document.createElement("img");n.onerror=function(){return t(!1)},n.onload=function(){return t(!0)},n.src=e})}function NSe(e){var t=e.src,n=e.isCustomPlaceholder,r=e.fallback,i=f.useState(n?"loading":"normal"),o=Le(i,2),a=o[0],s=o[1],l=f.useRef(!1),c=a==="error";f.useEffect(function(){var p=!0;return vot(t).then(function(m){!m&&p&&s("error")}),function(){p=!1}},[t]),f.useEffect(function(){n&&!l.current?s("loading"):c&&s("normal")},[t]);var u=function(){s("normal")},d=function(m){l.current=!1,a==="loading"&&m!==null&&m!==void 0&&m.complete&&(m.naturalWidth||m.naturalHeight)&&(l.current=!0,u())},h=c&&r?{src:r}:{onLoad:u,src:t};return[d,h,a]}function Q9(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}function yot(e,t,n,r){var i=Q9(e,n),o=Q9(t,r);if(i===0&&o===0)return[e.x,e.y];var a=i/(i+o),s=e.x+a*(t.x-e.x),l=e.y+a*(t.y-e.y);return[s,l]}function bot(e,t,n,r,i,o,a){var s=i.rotate,l=i.scale,c=i.x,u=i.y,d=f.useState(!1),h=Le(d,2),p=h[0],m=h[1],v=f.useRef({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),y=function(T){v.current=G(G({},v.current),T)},S=function(T){if(t){T.stopPropagation(),m(!0);var x=T.touches,E=x===void 0?[]:x;E.length>1?y({point1:{x:E[0].clientX,y:E[0].clientY},point2:{x:E[1].clientX,y:E[1].clientY},eventType:"touchZoom"}):y({point1:{x:E[0].clientX-c,y:E[0].clientY-u},eventType:"move"})}},b=function(T){var x=T.touches,E=x===void 0?[]:x,k=v.current,M=k.point1,P=k.point2,D=k.eventType;if(E.length>1&&D==="touchZoom"){var R={x:E[0].clientX,y:E[0].clientY},A={x:E[1].clientX,y:E[1].clientY},H=yot(M,P,R,A),F=Le(H,2),z=F[0],W=F[1],q=Q9(R,A)/Q9(M,P);a(q,"touchZoom",z,W,!0),y({point1:R,point2:A,eventType:"touchZoom"})}else D==="move"&&(o({x:E[0].clientX-M.x,y:E[0].clientY-M.y},"move"),y({eventType:"move"}))},C=function(){if(n){if(p&&m(!1),y({eventType:"none"}),r>l)return o({x:0,y:0,scale:r},"touchZoom");var T=e.current.offsetWidth*l,x=e.current.offsetHeight*l,E=e.current.getBoundingClientRect(),k=E.left,M=E.top,P=s%180!==0,D=ASe(P?x:T,P?T:x,k,M);D&&o(G({},D),"dragRebound")}};return f.useEffect(function(){var _;return n&&t&&(_=Rf(window,"touchmove",function(T){return T.preventDefault()},{passive:!1})),function(){var T;(T=_)===null||T===void 0||T.remove()}},[n,t]),{isTouching:p,onTouchStart:S,onTouchMove:b,onTouchEnd:C}}var Sot=["fallback","src","imgRef"],Cot=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],xot=function(t){var n=t.fallback,r=t.src,i=t.imgRef,o=tn(t,Sot),a=NSe({src:r,fallback:n}),s=Le(a,2),l=s[0],c=s[1];return ge.createElement("img",ut({ref:function(d){i.current=d,l(d)}},o,c))},DSe=function(t){var n=t.prefixCls,r=t.src,i=t.alt,o=t.imageInfo,a=t.fallback,s=t.movable,l=s===void 0?!0:s,c=t.onClose,u=t.visible,d=t.icons,h=d===void 0?{}:d,p=t.rootClassName,m=t.closeIcon,v=t.getContainer,y=t.current,S=y===void 0?0:y,b=t.count,C=b===void 0?1:b,_=t.countRender,T=t.scaleStep,x=T===void 0?.5:T,E=t.minScale,k=E===void 0?1:E,M=t.maxScale,P=M===void 0?50:M,D=t.transitionName,R=D===void 0?"zoom":D,A=t.maskTransitionName,H=A===void 0?"fade":A,F=t.imageRender,z=t.imgCommonProps,W=t.toolbarRender,q=t.onTransform,Z=t.onChange,N=tn(t,Cot),B=f.useRef(),V=f.useContext(LE),Y=V&&C>1,ie=V&&C>=1,ce=f.useState(!0),fe=Le(ce,2),ee=fe[0],ne=fe[1],ue=pot(B,k,P,q),ye=ue.transform,me=ue.resetTransform,pe=ue.updateTransform,he=ue.dispatchZoomChange,_e=got(B,l,u,x,ye,pe,he),le=_e.isMoving,xe=_e.onMouseDown,we=_e.onWheel,De=bot(B,l,u,k,ye,pe,he),Fe=De.isTouching,Ce=De.onTouchStart,Te=De.onTouchMove,ke=De.onTouchEnd,Pe=ye.rotate,Ne=ye.scale,We=Re(ae({},"".concat(n,"-moving"),le));f.useEffect(function(){ee||ne(!0)},[ee]);var Q=function(){me("close")},K=function(){he(Ky+x,"zoomIn")},J=function(){he(Ky/(Ky+x),"zoomOut")},be=function(){pe({rotate:Pe+90},"rotateRight")},Oe=function(){pe({rotate:Pe-90},"rotateLeft")},Se=function(){pe({flipX:!ye.flipX},"flipX")},Ke=function(){pe({flipY:!ye.flipY},"flipY")},tt=function(){me("reset")},se=function(rt){var qt=S+rt;!Number.isInteger(qt)||qt<0||qt>C-1||(ne(!1),me(rt<0?"prev":"next"),Z==null||Z(qt,S))},ze=function(rt){!u||!Y||(rt.keyCode===Pt.LEFT?se(-1):rt.keyCode===Pt.RIGHT&&se(1))},Ye=function(rt){u&&(Ne!==1?pe({x:0,y:0,scale:1},"doubleClick"):he(Ky+x,"doubleClick",rt.clientX,rt.clientY))};f.useEffect(function(){var Ze=Rf(window,"keydown",ze,!1);return function(){Ze.remove()}},[u,Y,S]);var Ue=ge.createElement(xot,ut({},z,{width:t.width,height:t.height,imgRef:B,className:"".concat(n,"-img"),alt:i,style:{transform:"translate3d(".concat(ye.x,"px, ").concat(ye.y,"px, 0) scale3d(").concat(ye.flipX?"-":"").concat(Ne,", ").concat(ye.flipY?"-":"").concat(Ne,", 1) rotate(").concat(Pe,"deg)"),transitionDuration:(!ee||Fe)&&"0s"},fallback:a,src:r,onWheel:we,onMouseDown:xe,onDoubleClick:Ye,onTouchStart:Ce,onTouchMove:Te,onTouchEnd:ke,onTouchCancel:ke})),Je=G({url:r,alt:i},o);return ge.createElement(ge.Fragment,null,ge.createElement(QU,ut({transitionName:R,maskTransitionName:H,closable:!1,keyboard:!0,prefixCls:n,onClose:c,visible:u,classNames:{wrapper:We},rootClassName:p,getContainer:v},N,{afterClose:Q}),ge.createElement("div",{className:"".concat(n,"-img-wrapper")},F?F(Ue,G({transform:ye,image:Je},V?{current:S}:{})):Ue)),ge.createElement(hot,{visible:u,transform:ye,maskTransitionName:H,closeIcon:m,getContainer:v,prefixCls:n,rootClassName:p,icons:h,countRender:_,showSwitch:Y,showProgress:ie,current:S,count:C,scale:Ne,minScale:k,maxScale:P,toolbarRender:W,onActive:se,onZoomIn:K,onZoomOut:J,onRotateRight:be,onRotateLeft:Oe,onFlipX:Se,onFlipY:Ke,onClose:c,onReset:tt,zIndex:N.zIndex!==void 0?N.zIndex+1:void 0,image:Je}))},aj=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function wot(e){var t=f.useState({}),n=Le(t,2),r=n[0],i=n[1],o=f.useCallback(function(s,l){return i(function(c){return G(G({},c),{},ae({},s,l))}),function(){i(function(c){var u=G({},c);return delete u[s],u})}},[]),a=f.useMemo(function(){return e?e.map(function(s){if(typeof s=="string")return{data:{src:s}};var l={};return Object.keys(s).forEach(function(c){["src"].concat(pt(aj)).includes(c)&&(l[c]=s[c])}),{data:l}}):Object.keys(r).reduce(function(s,l){var c=r[l],u=c.canPreview,d=c.data;return u&&s.push({data:d,id:l}),s},[])},[e,r]);return[a,o,!!e]}var _ot=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],Eot=["src"],Tot=function(t){var n,r=t.previewPrefixCls,i=r===void 0?"rc-image-preview":r,o=t.children,a=t.icons,s=a===void 0?{}:a,l=t.items,c=t.preview,u=t.fallback,d=ln(c)==="object"?c:{},h=d.visible,p=d.onVisibleChange,m=d.getContainer,v=d.current,y=d.movable,S=d.minScale,b=d.maxScale,C=d.countRender,_=d.closeIcon,T=d.onChange,x=d.onTransform,E=d.toolbarRender,k=d.imageRender,M=tn(d,_ot),P=wot(l),D=Le(P,3),R=D[0],A=D[1],H=D[2],F=Jn(0,{value:v}),z=Le(F,2),W=z[0],q=z[1],Z=f.useState(!1),N=Le(Z,2),B=N[0],V=N[1],Y=((n=R[W])===null||n===void 0?void 0:n.data)||{},ie=Y.src,ce=tn(Y,Eot),fe=Jn(!!h,{value:h,onChange:function(Fe,Ce){p==null||p(Fe,Ce,W)}}),ee=Le(fe,2),ne=ee[0],ue=ee[1],ye=f.useState(null),me=Le(ye,2),pe=me[0],he=me[1],_e=f.useCallback(function(De,Fe,Ce,Te){var ke=H?R.findIndex(function(Pe){return Pe.data.src===Fe}):R.findIndex(function(Pe){return Pe.id===De});q(ke<0?0:ke),ue(!0),he({x:Ce,y:Te}),V(!0)},[R,H]);f.useEffect(function(){ne?B||q(0):V(!1)},[ne]);var le=function(Fe,Ce){q(Fe),T==null||T(Fe,Ce)},xe=function(){ue(!1),he(null)},we=f.useMemo(function(){return{register:A,onPreview:_e}},[A,_e]);return f.createElement(LE.Provider,{value:we},o,f.createElement(DSe,ut({"aria-hidden":!ne,movable:y,visible:ne,prefixCls:i,closeIcon:_,onClose:xe,mousePosition:pe,imgCommonProps:ce,src:ie,fallback:u,icons:s,minScale:S,maxScale:b,getContainer:m,current:W,count:R.length,countRender:C,onTransform:x,toolbarRender:E,imageRender:k,onChange:le},M)))},Ote=0;function kot(e,t){var n=f.useState(function(){return Ote+=1,String(Ote)}),r=Le(n,1),i=r[0],o=f.useContext(LE),a={data:t,canPreview:e};return f.useEffect(function(){if(o)return o.register(i,a)},[]),f.useEffect(function(){o&&o.register(i,a)},[e,t]),i}var Oot=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],Pot=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],YW=function(t){var n=t.src,r=t.alt,i=t.onPreviewClose,o=t.prefixCls,a=o===void 0?"rc-image":o,s=t.previewPrefixCls,l=s===void 0?"".concat(a,"-preview"):s,c=t.placeholder,u=t.fallback,d=t.width,h=t.height,p=t.style,m=t.preview,v=m===void 0?!0:m,y=t.className,S=t.onClick,b=t.onError,C=t.wrapperClassName,_=t.wrapperStyle,T=t.rootClassName,x=tn(t,Oot),E=c&&c!==!0,k=ln(v)==="object"?v:{},M=k.src,P=k.visible,D=P===void 0?void 0:P,R=k.onVisibleChange,A=R===void 0?i:R,H=k.getContainer,F=H===void 0?void 0:H,z=k.mask,W=k.maskClassName,q=k.movable,Z=k.icons,N=k.scaleStep,B=k.minScale,V=k.maxScale,Y=k.imageRender,ie=k.toolbarRender,ce=tn(k,Pot),fe=M??n,ee=Jn(!!D,{value:D,onChange:A}),ne=Le(ee,2),ue=ne[0],ye=ne[1],me=NSe({src:n,isCustomPlaceholder:E,fallback:u}),pe=Le(me,3),he=pe[0],_e=pe[1],le=pe[2],xe=f.useState(null),we=Le(xe,2),De=we[0],Fe=we[1],Ce=f.useContext(LE),Te=!!v,ke=function(){ye(!1),Fe(null)},Pe=Re(a,C,T,ae({},"".concat(a,"-error"),le==="error")),Ne=f.useMemo(function(){var J={};return aj.forEach(function(be){t[be]!==void 0&&(J[be]=t[be])}),J},aj.map(function(J){return t[J]})),We=f.useMemo(function(){return G(G({},Ne),{},{src:fe})},[fe,Ne]),Q=kot(Te,We),K=function(be){var Oe=fot(be.target),Se=Oe.left,Ke=Oe.top;Ce?Ce.onPreview(Q,fe,Se,Ke):(Fe({x:Se,y:Ke}),ye(!0)),S==null||S(be)};return f.createElement(f.Fragment,null,f.createElement("div",ut({},x,{className:Pe,onClick:Te?K:S,style:G({width:d,height:h},_)}),f.createElement("img",ut({},Ne,{className:Re("".concat(a,"-img"),ae({},"".concat(a,"-img-placeholder"),c===!0),y),style:G({height:h},p),ref:he},_e,{width:d,height:h,onError:b})),le==="loading"&&f.createElement("div",{"aria-hidden":"true",className:"".concat(a,"-placeholder")},c),z&&Te&&f.createElement("div",{className:Re("".concat(a,"-mask"),W),style:{display:(p==null?void 0:p.display)==="none"?"none":void 0}},z)),!Ce&&Te&&f.createElement(DSe,ut({"aria-hidden":!ue,visible:ue,prefixCls:l,onClose:ke,mousePosition:De,src:fe,alt:r,imageInfo:{width:d,height:h},fallback:u,getContainer:F,icons:Z,movable:q,scaleStep:N,minScale:B,maxScale:V,rootClassName:T,imageRender:Y,imgCommonProps:Ne,toolbarRender:ie},ce)))};YW.PreviewGroup=Tot;var Mot={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},Iot=function(t,n){return f.createElement(wr,ut({},t,{ref:n,icon:Mot}))},$ot=f.forwardRef(Iot),Rot={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},Aot=function(t,n){return f.createElement(wr,ut({},t,{ref:n,icon:Rot}))},Not=f.forwardRef(Aot),Dot={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},Lot=function(t,n){return f.createElement(wr,ut({},t,{ref:n,icon:Dot}))},Pte=f.forwardRef(Lot),Fot={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},jot=function(t,n){return f.createElement(wr,ut({},t,{ref:n,icon:Fot}))},Bot=f.forwardRef(jot),Hot={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},zot=function(t,n){return f.createElement(wr,ut({},t,{ref:n,icon:Hot}))},Uot=f.forwardRef(zot);const sj=e=>({position:e||"absolute",inset:0}),Wot=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:i,prefixCls:o,colorTextLightSolid:a}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:a,background:new Cr("#000").setA(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${o}-mask-info`]:Object.assign(Object.assign({},Yl),{padding:`0 ${je(r)}`,[t]:{marginInlineEnd:i,svg:{verticalAlign:"baseline"}}})}},Vot=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:r,marginXL:i,margin:o,paddingLG:a,previewOperationColorDisabled:s,previewOperationHoverColor:l,motionDurationSlow:c,iconCls:u,colorTextLightSolid:d}=e,h=new Cr(n).setA(.1),p=h.clone().setA(.2);return{[`${t}-footer`]:{position:"fixed",bottom:i,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor,transform:"translateX(-50%)"},[`${t}-progress`]:{marginBottom:o},[`${t}-close`]:{position:"fixed",top:i,right:{_skip_check_:!0,value:i},display:"flex",color:d,backgroundColor:h.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${c}`,"&:hover":{backgroundColor:p.toRgbString()},[`& > ${u}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${je(a)}`,backgroundColor:h.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${c}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${u}`]:{color:l},"&-disabled":{color:s,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${u}`]:{fontSize:e.previewOperationSize}}}}},Kot=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:i,zIndexPopup:o,motionDurationSlow:a}=e,s=new Cr(t).setA(.1),l=s.clone().setA(.2);return{[`${i}-switch-left, ${i}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(o).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:s.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${a}`,userSelect:"none","&:hover":{background:l.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${i}-switch-left`]:{insetInlineStart:e.marginSM},[`${i}-switch-right`]:{insetInlineEnd:e.marginSM}}},qot=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:i}=e;return[{[`${i}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},sj()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},sj()),{transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${i}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${i}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal()},"&":[Vot(e),Kot(e)]}]},Got=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},Wot(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},sj())}}},Yot=e=>{const{previewCls:t}=e;return{[`${t}-root`]:YS(e,"zoom"),"&":VU(e,!0)}},Xot=e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new Cr(e.colorTextLightSolid).setA(.65).toRgbString(),previewOperationHoverColor:new Cr(e.colorTextLightSolid).setA(.85).toRgbString(),previewOperationColorDisabled:new Cr(e.colorTextLightSolid).setA(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5}),LSe=Tr("Image",e=>{const t=`${e.componentCls}-preview`,n=ur(e,{previewCls:t,modalMaskBg:new Cr("#000").setA(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[Got(n),qot(n),Kve(ur(n,{componentCls:t})),Yot(n)]},Xot);var Qot=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={rotateLeft:f.createElement($ot,null),rotateRight:f.createElement(Not,null),zoomIn:f.createElement(Bot,null),zoomOut:f.createElement(Uot,null),close:f.createElement(nh,null),left:f.createElement(eS,null),right:f.createElement(hp,null),flipX:f.createElement(Pte,null),flipY:f.createElement(Pte,{rotate:90})},Zot=e=>{var{previewPrefixCls:t,preview:n}=e,r=Qot(e,["previewPrefixCls","preview"]);const{getPrefixCls:i}=f.useContext(hn),o=i("image",t),a=`${o}-preview`,s=i(),l=_i(o),[c,u,d]=LSe(o,l),[h]=Du("ImagePreview",typeof n=="object"?n.zIndex:void 0),p=f.useMemo(()=>{var m;if(n===!1)return n;const v=typeof n=="object"?n:{},y=Re(u,d,l,(m=v.rootClassName)!==null&&m!==void 0?m:"");return Object.assign(Object.assign({},v),{transitionName:as(s,"zoom",v.transitionName),maskTransitionName:as(s,"fade",v.maskTransitionName),rootClassName:y,zIndex:h})},[n]);return c(f.createElement(YW.PreviewGroup,Object.assign({preview:p,previewPrefixCls:a,icons:FSe},r)))};var Mte=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 jSe=e=>{var t;const{prefixCls:n,preview:r,className:i,rootClassName:o,style:a}=e,s=Mte(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:l,locale:c=Fc,getPopupContainer:u,image:d}=f.useContext(hn),h=l("image",n),p=l(),m=c.Image||Fc.Image,v=_i(h),[y,S,b]=LSe(h,v),C=Re(o,S,b,v),_=Re(i,S,d==null?void 0:d.className),[T]=Du("ImagePreview",typeof r=="object"?r.zIndex:void 0),x=f.useMemo(()=>{var k;if(r===!1)return r;const M=typeof r=="object"?r:{},{getContainer:P,closeIcon:D,rootClassName:R}=M,A=Mte(M,["getContainer","closeIcon","rootClassName"]);return Object.assign(Object.assign({mask:f.createElement("div",{className:`${h}-mask-info`},f.createElement(vP,null),m==null?void 0:m.preview),icons:FSe},A),{rootClassName:Re(C,R),getContainer:P??u,transitionName:as(p,"zoom",M.transitionName),maskTransitionName:as(p,"fade",M.maskTransitionName),zIndex:T,closeIcon:D??((k=d==null?void 0:d.preview)===null||k===void 0?void 0:k.closeIcon)})},[r,m,(t=d==null?void 0:d.preview)===null||t===void 0?void 0:t.closeIcon]),E=Object.assign(Object.assign({},d==null?void 0:d.style),a);return y(f.createElement(YW,Object.assign({prefixCls:h,preview:x,rootClassName:C,className:_,style:E},s)))};jSe.PreviewGroup=Zot;function Jot(e,t,n){return typeof n=="boolean"?n:e.length?!0:Uo(t).some(i=>i.type===aye)}var BSe=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 bP(e){let{suffixCls:t,tagName:n,displayName:r}=e;return i=>f.forwardRef((a,s)=>f.createElement(i,Object.assign({ref:s,suffixCls:t,tagName:n},a)))}const XW=f.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:i,tagName:o}=e,a=BSe(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=f.useContext(hn),l=s("layout",n),[c,u,d]=oye(l),h=r?`${l}-${r}`:l;return c(f.createElement(o,Object.assign({className:Re(n||h,i,u,d),ref:t},a)))}),eat=f.forwardRef((e,t)=>{const{direction:n}=f.useContext(hn),[r,i]=f.useState([]),{prefixCls:o,className:a,rootClassName:s,children:l,hasSider:c,tagName:u,style:d}=e,h=BSe(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),p=Pr(h,["suffixCls"]),{getPrefixCls:m,layout:v}=f.useContext(hn),y=m("layout",o),S=Jot(r,l,c),[b,C,_]=oye(y),T=Re(y,{[`${y}-has-sider`]:S,[`${y}-rtl`]:n==="rtl"},v==null?void 0:v.className,a,s,C,_),x=f.useMemo(()=>({siderHook:{addSider:E=>{i(k=>[].concat(pt(k),[E]))},removeSider:E=>{i(k=>k.filter(M=>M!==E))}}}),[]);return b(f.createElement(nye.Provider,{value:x},f.createElement(u,Object.assign({ref:t,className:T,style:Object.assign(Object.assign({},v==null?void 0:v.style),d)},p),l)))}),tat=bP({tagName:"div",displayName:"Layout"})(eat),Z9=bP({suffixCls:"header",tagName:"header",displayName:"Header"})(XW),nat=bP({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(XW),rat=bP({suffixCls:"content",tagName:"main",displayName:"Content"})(XW),xo=tat;xo.Header=Z9;xo.Footer=nat;xo.Content=rat;xo.Sider=aye;xo._InternalSiderContext=iP;const QW=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 iat={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"},oat=function(t,n){return f.createElement(wr,ut({},t,{ref:n,icon:iat}))},Ite=f.forwardRef(oat),aat={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"},sat=function(t,n){return f.createElement(wr,ut({},t,{ref:n,icon:aat}))},$te=f.forwardRef(sat),HSe={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:"页码"},lat=[10,20,50,100],cat=function(t){var n=t.pageSizeOptions,r=n===void 0?lat:n,i=t.locale,o=t.changeSize,a=t.pageSize,s=t.goButton,l=t.quickGo,c=t.rootPrefixCls,u=t.disabled,d=t.buildOptionText,h=t.showSizeChanger,p=t.sizeChangerRender,m=ge.useState(""),v=Le(m,2),y=v[0],S=v[1],b=function(){return!y||Number.isNaN(y)?void 0:Number(y)},C=typeof d=="function"?d:function(R){return"".concat(R," ").concat(i.items_per_page)},_=function(A){S(A.target.value)},T=function(A){s||y===""||(S(""),!(A.relatedTarget&&(A.relatedTarget.className.indexOf("".concat(c,"-item-link"))>=0||A.relatedTarget.className.indexOf("".concat(c,"-item"))>=0))&&(l==null||l(b())))},x=function(A){y!==""&&(A.keyCode===Pt.ENTER||A.type==="click")&&(S(""),l==null||l(b()))},E=function(){return r.some(function(A){return A.toString()===a.toString()})?r:r.concat([a]).sort(function(A,H){var F=Number.isNaN(Number(A))?0:Number(A),z=Number.isNaN(Number(H))?0:Number(H);return F-z})},k="".concat(c,"-options");if(!h&&!l)return null;var M=null,P=null,D=null;return h&&p&&(M=p({disabled:u,size:a,onSizeChange:function(A){o==null||o(Number(A))},"aria-label":i.page_size,className:"".concat(k,"-size-changer"),options:E().map(function(R){return{label:C(R),value:R}})})),l&&(s&&(D=typeof s=="boolean"?ge.createElement("button",{type:"button",onClick:x,onKeyUp:x,disabled:u,className:"".concat(k,"-quick-jumper-button")},i.jump_to_confirm):ge.createElement("span",{onClick:x,onKeyUp:x},s)),P=ge.createElement("div",{className:"".concat(k,"-quick-jumper")},i.jump_to,ge.createElement("input",{disabled:u,type:"text",value:y,onChange:_,onKeyUp:x,onBlur:T,"aria-label":i.page}),i.page,D)),ge.createElement("li",{className:k},M,P)},zx=function(t){var n,r=t.rootPrefixCls,i=t.page,o=t.active,a=t.className,s=t.showTitle,l=t.onClick,c=t.onKeyPress,u=t.itemRender,d="".concat(r,"-item"),h=Re(d,"".concat(d,"-").concat(i),(n={},ae(n,"".concat(d,"-active"),o),ae(n,"".concat(d,"-disabled"),!i),n),a),p=function(){l(i)},m=function(S){c(S,l,i)},v=u(i,"page",ge.createElement("a",{rel:"nofollow"},i));return v?ge.createElement("li",{title:s?String(i):null,className:h,onClick:p,onKeyDown:m,tabIndex:0},v):null},uat=function(t,n,r){return r};function Rte(){}function Ate(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Yg(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var dat=function(t){var n,r=t.prefixCls,i=r===void 0?"rc-pagination":r,o=t.selectPrefixCls,a=o===void 0?"rc-select":o,s=t.className,l=t.current,c=t.defaultCurrent,u=c===void 0?1:c,d=t.total,h=d===void 0?0:d,p=t.pageSize,m=t.defaultPageSize,v=m===void 0?10:m,y=t.onChange,S=y===void 0?Rte:y,b=t.hideOnSinglePage,C=t.align,_=t.showPrevNextJumpers,T=_===void 0?!0:_,x=t.showQuickJumper,E=t.showLessItems,k=t.showTitle,M=k===void 0?!0:k,P=t.onShowSizeChange,D=P===void 0?Rte:P,R=t.locale,A=R===void 0?HSe:R,H=t.style,F=t.totalBoundaryShowSizeChanger,z=F===void 0?50:F,W=t.disabled,q=t.simple,Z=t.showTotal,N=t.showSizeChanger,B=N===void 0?h>z:N,V=t.sizeChangerRender,Y=t.pageSizeOptions,ie=t.itemRender,ce=ie===void 0?uat:ie,fe=t.jumpPrevIcon,ee=t.jumpNextIcon,ne=t.prevIcon,ue=t.nextIcon,ye=ge.useRef(null),me=Jn(10,{value:p,defaultValue:v}),pe=Le(me,2),he=pe[0],_e=pe[1],le=Jn(1,{value:l,defaultValue:u,postState:function(oe){return Math.max(1,Math.min(oe,Yg(void 0,he,h)))}}),xe=Le(le,2),we=xe[0],De=xe[1],Fe=ge.useState(we),Ce=Le(Fe,2),Te=Ce[0],ke=Ce[1];f.useEffect(function(){ke(we)},[we]);var Pe=Math.max(1,we-(E?3:5)),Ne=Math.min(Yg(void 0,he,h),we+(E?3:5));function We(j,oe){var Ae=j||ge.createElement("button",{type:"button","aria-label":oe,className:"".concat(i,"-item-link")});return typeof j=="function"&&(Ae=ge.createElement(j,G({},t))),Ae}function Q(j){var oe=j.target.value,Ae=Yg(void 0,he,h),Ge;return oe===""?Ge=oe:Number.isNaN(Number(oe))?Ge=Te:oe>=Ae?Ge=Ae:Ge=Number(oe),Ge}function K(j){return Ate(j)&&j!==we&&Ate(h)&&h>0}var J=h>he?x:!1;function be(j){(j.keyCode===Pt.UP||j.keyCode===Pt.DOWN)&&j.preventDefault()}function Oe(j){var oe=Q(j);switch(oe!==Te&&ke(oe),j.keyCode){case Pt.ENTER:tt(oe);break;case Pt.UP:tt(oe-1);break;case Pt.DOWN:tt(oe+1);break}}function Se(j){tt(Q(j))}function Ke(j){var oe=Yg(j,he,h),Ae=we>oe&&oe!==0?oe:we;_e(j),ke(Ae),D==null||D(we,j),De(Ae),S==null||S(Ae,j)}function tt(j){if(K(j)&&!W){var oe=Yg(void 0,he,h),Ae=j;return j>oe?Ae=oe:j<1&&(Ae=1),Ae!==Te&&ke(Ae),De(Ae),S==null||S(Ae,he),Ae}return we}var se=we>1,ze=we<Yg(void 0,he,h);function Ye(){se&&tt(we-1)}function Ue(){ze&&tt(we+1)}function Je(){tt(Pe)}function Ze(){tt(Ne)}function rt(j,oe){if(j.key==="Enter"||j.charCode===Pt.ENTER||j.keyCode===Pt.ENTER){for(var Ae=arguments.length,Ge=new Array(Ae>2?Ae-2:0),ft=2;ft<Ae;ft++)Ge[ft-2]=arguments[ft];oe.apply(void 0,Ge)}}function qt(j){rt(j,Ye)}function St(j){rt(j,Ue)}function Ot(j){rt(j,Je)}function Bt(j){rt(j,Ze)}function Dt(j){var oe=ce(j,"prev",We(ne,"prev page"));return ge.isValidElement(oe)?ge.cloneElement(oe,{disabled:!se}):oe}function an(j){var oe=ce(j,"next",We(ue,"next page"));return ge.isValidElement(oe)?ge.cloneElement(oe,{disabled:!ze}):oe}function Vt(j){(j.type==="click"||j.keyCode===Pt.ENTER)&&tt(Te)}var Kt=null,Qt=Hi(t,{aria:!0,data:!0}),et=Z&&ge.createElement("li",{className:"".concat(i,"-total-text")},Z(h,[h===0?0:(we-1)*he+1,we*he>h?h:we*he])),ot=null,Qe=Yg(void 0,he,h);if(b&&h<=he)return null;var ct=[],Nt={rootPrefixCls:i,onClick:tt,onKeyPress:rt,showTitle:M,itemRender:ce,page:-1},Lt=we-1>0?we-1:0,Zt=we+1<Qe?we+1:Qe,Wt=x&&x.goButton,At=ln(q)==="object"?q.readOnly:!q,$t=Wt,Gt=null;q&&(Wt&&(typeof Wt=="boolean"?$t=ge.createElement("button",{type:"button",onClick:Vt,onKeyUp:Vt},A.jump_to_confirm):$t=ge.createElement("span",{onClick:Vt,onKeyUp:Vt},Wt),$t=ge.createElement("li",{title:M?"".concat(A.jump_to).concat(we,"/").concat(Qe):null,className:"".concat(i,"-simple-pager")},$t)),Gt=ge.createElement("li",{title:M?"".concat(we,"/").concat(Qe):null,className:"".concat(i,"-simple-pager")},At?Te:ge.createElement("input",{type:"text",value:Te,disabled:W,onKeyDown:be,onKeyUp:Oe,onChange:Oe,onBlur:Se,size:3}),ge.createElement("span",{className:"".concat(i,"-slash")},"/"),Qe));var Ft=E?1:2;if(Qe<=3+Ft*2){Qe||ct.push(ge.createElement(zx,ut({},Nt,{key:"noPager",page:1,className:"".concat(i,"-item-disabled")})));for(var cn=1;cn<=Qe;cn+=1)ct.push(ge.createElement(zx,ut({},Nt,{key:cn,page:cn,active:we===cn})))}else{var _t=E?A.prev_3:A.prev_5,jt=E?A.next_3:A.next_5,nn=ce(Pe,"jump-prev",We(fe,"prev page")),Ht=ce(Ne,"jump-next",We(ee,"next page"));T&&(Kt=nn?ge.createElement("li",{title:M?_t:null,key:"prev",onClick:Je,tabIndex:0,onKeyDown:Ot,className:Re("".concat(i,"-jump-prev"),ae({},"".concat(i,"-jump-prev-custom-icon"),!!fe))},nn):null,ot=Ht?ge.createElement("li",{title:M?jt:null,key:"next",onClick:Ze,tabIndex:0,onKeyDown:Bt,className:Re("".concat(i,"-jump-next"),ae({},"".concat(i,"-jump-next-custom-icon"),!!ee))},Ht):null);var Tt=Math.max(1,we-Ft),gt=Math.min(we+Ft,Qe);we-1<=Ft&&(gt=1+Ft*2),Qe-we<=Ft&&(Tt=Qe-Ft*2);for(var Ve=Tt;Ve<=gt;Ve+=1)ct.push(ge.createElement(zx,ut({},Nt,{key:Ve,page:Ve,active:we===Ve})));if(we-1>=Ft*2&&we!==3&&(ct[0]=ge.cloneElement(ct[0],{className:Re("".concat(i,"-item-after-jump-prev"),ct[0].props.className)}),ct.unshift(Kt)),Qe-we>=Ft*2&&we!==Qe-2){var Yt=ct[ct.length-1];ct[ct.length-1]=ge.cloneElement(Yt,{className:Re("".concat(i,"-item-before-jump-next"),Yt.props.className)}),ct.push(ot)}Tt!==1&&ct.unshift(ge.createElement(zx,ut({},Nt,{key:1,page:1}))),gt!==Qe&&ct.push(ge.createElement(zx,ut({},Nt,{key:Qe,page:Qe})))}var mt=Dt(Lt);if(mt){var Mt=!se||!Qe;mt=ge.createElement("li",{title:M?A.prev_page:null,onClick:Ye,tabIndex:Mt?null:0,onKeyDown:qt,className:Re("".concat(i,"-prev"),ae({},"".concat(i,"-disabled"),Mt)),"aria-disabled":Mt},mt)}var zt=an(Zt);if(zt){var Dn,Xn;q?(Dn=!ze,Xn=se?0:null):(Dn=!ze||!Qe,Xn=Dn?null:0),zt=ge.createElement("li",{title:M?A.next_page:null,onClick:Ue,tabIndex:Xn,onKeyDown:St,className:Re("".concat(i,"-next"),ae({},"".concat(i,"-disabled"),Dn)),"aria-disabled":Dn},zt)}var O=Re(i,s,(n={},ae(n,"".concat(i,"-start"),C==="start"),ae(n,"".concat(i,"-center"),C==="center"),ae(n,"".concat(i,"-end"),C==="end"),ae(n,"".concat(i,"-simple"),q),ae(n,"".concat(i,"-disabled"),W),n));return ge.createElement("ul",ut({className:O,style:H,ref:ye},Qt),et,mt,q?Gt:ct,zt,ge.createElement(cat,{locale:A,rootPrefixCls:i,disabled:W,selectPrefixCls:a,changeSize:Ke,pageSize:he,pageSizeOptions:Y,quickGo:J?tt:null,goButton:$t,showSizeChanger:B,sizeChangerRender:V}))};const fat=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"}}}}}},hat=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:je(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:je(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:je(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:je(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:je(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:je(e.itemSizeSM),input:Object.assign(Object.assign({},FW(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},pat=e=>{const{componentCls:t}=e;return{[`
|
||
&${t}-simple ${t}-prev,
|
||
&${t}-simple ${t}-next
|
||
`]:{height:e.itemSizeSM,lineHeight:je(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:je(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${je(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${je(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:`${je(e.inputOutlineOffset)} 0 ${je(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},mat=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:je(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:`${je(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:je(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},$E(e)),RW(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},fP(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},gat=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:je(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${je(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${je(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}}}}},vat=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},$r(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:je(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),gat(e)),mat(e)),pat(e)),hat(e)),fat(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"}}},yat=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},gl(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},jd(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},jd(e))}}}},zSe=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},IE(e)),USe=e=>ur(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"},ME(e)),bat=Tr("Pagination",e=>{const t=USe(e);return[vat(t),yat(t)]},zSe),Sat=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:`${je(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}}}}},Cat=KS(["Pagination","bordered"],e=>{const t=USe(e);return[Sat(t)]},zSe);function Nte(e){return f.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}var xat=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 WSe=e=>{const{align:t,prefixCls:n,selectPrefixCls:r,className:i,rootClassName:o,style:a,size:s,locale:l,responsive:c,showSizeChanger:u,selectComponentClass:d,pageSizeOptions:h}=e,p=xat(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:m}=ZO(c),[,v]=na(),{getPrefixCls:y,direction:S,pagination:b={}}=f.useContext(hn),C=y("pagination",n),[_,T,x]=bat(C),E=Ro(s),k=E==="small"||!!(m&&!E&&c),[M]=Os("Pagination",l1e),P=Object.assign(Object.assign({},M),l),[D,R]=Nte(u),[A,H]=Nte(b.showSizeChanger),F=D??A,z=R??H,W=d||bs,q=f.useMemo(()=>h?h.map(ie=>Number(ie)):void 0,[h]),Z=ie=>{var ce;const{disabled:fe,size:ee,onSizeChange:ne,"aria-label":ue,className:ye,options:me}=ie,{className:pe,onChange:he}=z||{},_e=(ce=me.find(le=>String(le.value)===String(ee)))===null||ce===void 0?void 0:ce.value;return f.createElement(W,Object.assign({disabled:fe,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:le=>le.parentNode,"aria-label":ue,options:me},z,{value:_e,onChange:(le,xe)=>{ne==null||ne(le),he==null||he(le,xe)},size:k?"small":"middle",className:Re(ye,pe)}))},N=f.useMemo(()=>{const ie=f.createElement("span",{className:`${C}-item-ellipsis`},"•••"),ce=f.createElement("button",{className:`${C}-item-link`,type:"button",tabIndex:-1},S==="rtl"?f.createElement(hp,null):f.createElement(eS,null)),fe=f.createElement("button",{className:`${C}-item-link`,type:"button",tabIndex:-1},S==="rtl"?f.createElement(eS,null):f.createElement(hp,null)),ee=f.createElement("a",{className:`${C}-item-link`},f.createElement("div",{className:`${C}-item-container`},S==="rtl"?f.createElement($te,{className:`${C}-item-link-icon`}):f.createElement(Ite,{className:`${C}-item-link-icon`}),ie)),ne=f.createElement("a",{className:`${C}-item-link`},f.createElement("div",{className:`${C}-item-container`},S==="rtl"?f.createElement(Ite,{className:`${C}-item-link-icon`}):f.createElement($te,{className:`${C}-item-link-icon`}),ie));return{prevIcon:ce,nextIcon:fe,jumpPrevIcon:ee,jumpNextIcon:ne}},[S,C]),B=y("select",r),V=Re({[`${C}-${t}`]:!!t,[`${C}-mini`]:k,[`${C}-rtl`]:S==="rtl",[`${C}-bordered`]:v.wireframe},b==null?void 0:b.className,i,o,T,x),Y=Object.assign(Object.assign({},b==null?void 0:b.style),a);return _(f.createElement(f.Fragment,null,v.wireframe&&f.createElement(Cat,{prefixCls:C}),f.createElement(dat,Object.assign({},N,p,{style:Y,prefixCls:C,selectPrefixCls:B,className:V,locale:P,pageSizeOptions:q,showSizeChanger:F,sizeChangerRender:Z}))))},J9=100,VSe=J9/5,KSe=J9/2-VSe/2,QR=KSe*2*Math.PI,Dte=50,Lte=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return f.createElement("circle",{className:Re(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:KSe,cx:Dte,cy:Dte,strokeWidth:VSe,style:n})},wat=e=>{let{percent:t,prefixCls:n}=e;const r=`${n}-dot`,i=`${r}-holder`,o=`${i}-hidden`,[a,s]=f.useState(!1);Er(()=>{t!==0&&s(!0)},[t!==0]);const l=Math.max(Math.min(t,100),0);if(!a)return null;const c={strokeDashoffset:`${QR/4}`,strokeDasharray:`${QR*l/100} ${QR*(100-l)/100}`};return f.createElement("span",{className:Re(i,`${r}-progress`,l<=0&&o)},f.createElement("svg",{viewBox:`0 0 ${J9} ${J9}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":l},f.createElement(Lte,{dotClassName:r,hasCircleCls:!0}),f.createElement(Lte,{dotClassName:r,style:c})))};function _at(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,i=`${r}-holder`,o=`${i}-hidden`;return f.createElement(f.Fragment,null,f.createElement("span",{className:Re(i,n>0&&o)},f.createElement("span",{className:Re(r,`${t}-dot-spin`)},[1,2,3,4].map(a=>f.createElement("i",{className:`${t}-dot-item`,key:a})))),f.createElement(wat,{prefixCls:t,percent:n}))}function Eat(e){const{prefixCls:t,indicator:n,percent:r}=e,i=`${t}-dot`;return n&&f.isValidElement(n)?$o(n,{className:Re(n.props.className,i),percent:r}):f.createElement(_at,{prefixCls:t,percent:r})}const Tat=new Mr("antSpinMove",{to:{opacity:1}}),kat=new Mr("antRotate",{to:{transform:"rotate(405deg)"}}),Oat=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},$r(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:Tat,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:kat,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"}})}},Pat=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},Mat=Tr("Spin",e=>{const t=ur(e,{spinDotDefault:e.colorTextDescription});return[Oat(t)]},Pat),Iat=200,Fte=[[30,.05],[70,.03],[96,.01]];function $at(e,t){const[n,r]=f.useState(0),i=f.useRef(null),o=t==="auto";return f.useEffect(()=>(o&&e&&(r(0),i.current=setInterval(()=>{r(a=>{const s=100-a;for(let l=0;l<Fte.length;l+=1){const[c,u]=Fte[l];if(a<=c)return a+s*u}return a})},Iat)),()=>{clearInterval(i.current)}),[o,e]),o?n:t}var Rat=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 qSe;function Aat(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}const Cl=e=>{var t;const{prefixCls:n,spinning:r=!0,delay:i=0,className:o,rootClassName:a,size:s="default",tip:l,wrapperClassName:c,style:u,children:d,fullscreen:h=!1,indicator:p,percent:m}=e,v=Rat(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:y,direction:S,spin:b}=f.useContext(hn),C=y("spin",n),[_,T,x]=Mat(C),[E,k]=f.useState(()=>r&&!Aat(r,i)),M=$at(E,m);f.useEffect(()=>{if(r){const z=Bet(i,()=>{k(!0)});return z(),()=>{var W;(W=z==null?void 0:z.cancel)===null||W===void 0||W.call(z)}}k(!1)},[i,r]);const P=f.useMemo(()=>typeof d<"u"&&!h,[d,h]),D=Re(C,b==null?void 0:b.className,{[`${C}-sm`]:s==="small",[`${C}-lg`]:s==="large",[`${C}-spinning`]:E,[`${C}-show-text`]:!!l,[`${C}-rtl`]:S==="rtl"},o,!h&&a,T,x),R=Re(`${C}-container`,{[`${C}-blur`]:E}),A=(t=p??(b==null?void 0:b.indicator))!==null&&t!==void 0?t:qSe,H=Object.assign(Object.assign({},b==null?void 0:b.style),u),F=f.createElement("div",Object.assign({},v,{style:H,className:D,"aria-live":"polite","aria-busy":E}),f.createElement(Eat,{prefixCls:C,indicator:A,percent:M}),l&&(P||h)?f.createElement("div",{className:`${C}-text`},l):null);return _(P?f.createElement("div",Object.assign({},v,{className:Re(`${C}-nested-loading`,c,T,x)}),E&&f.createElement("div",{key:"loading"},F),f.createElement("div",{className:R,key:"container"},d)):h?f.createElement("div",{className:Re(`${C}-fullscreen`,{[`${C}-fullscreen-show`]:E},a,T,x)},F):F)};Cl.setDefaultIndicator=e=>{qSe=e};const ZW=ge.createContext({});ZW.Consumer;var GSe=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 Nat=e=>{var{prefixCls:t,className:n,avatar:r,title:i,description:o}=e,a=GSe(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:s}=f.useContext(hn),l=s("list",t),c=Re(`${l}-item-meta`,n),u=ge.createElement("div",{className:`${l}-item-meta-content`},i&&ge.createElement("h4",{className:`${l}-item-meta-title`},i),o&&ge.createElement("div",{className:`${l}-item-meta-description`},o));return ge.createElement("div",Object.assign({},a,{className:c}),r&&ge.createElement("div",{className:`${l}-item-meta-avatar`},r),(i||o)&&u)},Dat=ge.forwardRef((e,t)=>{const{prefixCls:n,children:r,actions:i,extra:o,styles:a,className:s,classNames:l,colStyle:c}=e,u=GSe(e,["prefixCls","children","actions","extra","styles","className","classNames","colStyle"]),{grid:d,itemLayout:h}=f.useContext(ZW),{getPrefixCls:p,list:m}=f.useContext(hn),v=E=>{var k,M;return Re((M=(k=m==null?void 0:m.item)===null||k===void 0?void 0:k.classNames)===null||M===void 0?void 0:M[E],l==null?void 0:l[E])},y=E=>{var k,M;return Object.assign(Object.assign({},(M=(k=m==null?void 0:m.item)===null||k===void 0?void 0:k.styles)===null||M===void 0?void 0:M[E]),a==null?void 0:a[E])},S=()=>{let E=!1;return f.Children.forEach(r,k=>{typeof k=="string"&&(E=!0)}),E&&f.Children.count(r)>1},b=()=>h==="vertical"?!!o:!S(),C=p("list",n),_=i&&i.length>0&&ge.createElement("ul",{className:Re(`${C}-item-action`,v("actions")),key:"actions",style:y("actions")},i.map((E,k)=>ge.createElement("li",{key:`${C}-item-action-${k}`},E,k!==i.length-1&&ge.createElement("em",{className:`${C}-item-action-split`})))),T=d?"div":"li",x=ge.createElement(T,Object.assign({},u,d?{}:{ref:t},{className:Re(`${C}-item`,{[`${C}-item-no-flex`]:!b()},s)}),h==="vertical"&&o?[ge.createElement("div",{className:`${C}-item-main`,key:"content"},r,_),ge.createElement("div",{className:Re(`${C}-item-extra`,v("extra")),key:"extra",style:y("extra")},o)]:[r,_,$o(o,{key:"extra"})]);return d?ge.createElement(_v,{ref:t,flex:1,style:c},x):x}),YSe=Dat;YSe.Meta=Nat;const Lat=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:i,itemPaddingSM:o,itemPaddingLG:a,marginLG:s,borderRadiusLG:l}=e;return{[t]:{border:`${je(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:l,[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${je(i)} ${je(s)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:o}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:a}}}},Fat=e=>{const{componentCls:t,screenSM:n,screenMD:r,marginLG:i,marginSM:o,margin:a}=e;return{[`@media screen and (max-width:${r}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:i}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:i}}}},[`@media screen and (max-width: ${n}px)`]:{[t]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:o}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${je(a)}`}}}}}},jat=e=>{const{componentCls:t,antCls:n,controlHeight:r,minHeight:i,paddingSM:o,marginLG:a,padding:s,itemPadding:l,colorPrimary:c,itemPaddingSM:u,itemPaddingLG:d,paddingXS:h,margin:p,colorText:m,colorTextDescription:v,motionDurationSlow:y,lineWidth:S,headerBg:b,footerBg:C,emptyTextPadding:_,metaMarginBottom:T,avatarMarginRight:x,titleMarginBottom:E,descriptionFontSize:k}=e;return{[t]:Object.assign(Object.assign({},$r(e)),{position:"relative","*":{outline:"none"},[`${t}-header`]:{background:b},[`${t}-footer`]:{background:C},[`${t}-header, ${t}-footer`]:{paddingBlock:o},[`${t}-pagination`]:{marginBlockStart:a,[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:i,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:l,color:m,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:x},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:m},[`${t}-item-meta-title`]:{margin:`0 0 ${je(e.marginXXS)} 0`,color:m,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:m,transition:`all ${y}`,"&:hover":{color:c}}},[`${t}-item-meta-description`]:{color:v,fontSize:k,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${je(h)}`,color:v,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:S,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${je(s)} 0`,color:v,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:_,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:p,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:a},[`${t}-item-meta`]:{marginBlockEnd:T,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:E,color:m,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:s,marginInlineStart:"auto","> li":{padding:`0 ${je(s)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${je(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${je(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${je(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:r},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${je(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:d},[`${t}-sm ${t}-item`]:{padding:u},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},Bat=e=>({contentWidth:220,itemPadding:`${je(e.paddingContentVertical)} 0`,itemPaddingSM:`${je(e.paddingContentVerticalSM)} ${je(e.paddingContentHorizontal)}`,itemPaddingLG:`${je(e.paddingContentVerticalLG)} ${je(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),Hat=Tr("List",e=>{const t=ur(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[jat(t),Lat(t),Fat(t)]},Bat);var zat=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 Uat(e,t){var{pagination:n=!1,prefixCls:r,bordered:i=!1,split:o=!0,className:a,rootClassName:s,style:l,children:c,itemLayout:u,loadMore:d,grid:h,dataSource:p=[],size:m,header:v,footer:y,loading:S=!1,rowKey:b,renderItem:C,locale:_}=e,T=zat(e,["pagination","prefixCls","bordered","split","className","rootClassName","style","children","itemLayout","loadMore","grid","dataSource","size","header","footer","loading","rowKey","renderItem","locale"]);const x=n&&typeof n=="object"?n:{},[E,k]=f.useState(x.defaultCurrent||1),[M,P]=f.useState(x.defaultPageSize||10),{getPrefixCls:D,renderEmpty:R,direction:A,list:H}=f.useContext(hn),F={current:1,total:0},z=Te=>(ke,Pe)=>{var Ne;k(ke),P(Pe),n&&((Ne=n==null?void 0:n[Te])===null||Ne===void 0||Ne.call(n,ke,Pe))},W=z("onChange"),q=z("onShowSizeChange"),Z=(Te,ke)=>{if(!C)return null;let Pe;return typeof b=="function"?Pe=b(Te):b?Pe=Te[b]:Pe=Te.key,Pe||(Pe=`list-item-${ke}`),f.createElement(f.Fragment,{key:Pe},C(Te,ke))},N=()=>!!(d||n||y),B=D("list",r),[V,Y,ie]=Hat(B);let ce=S;typeof ce=="boolean"&&(ce={spinning:ce});const fe=!!(ce!=null&&ce.spinning),ee=Ro(m);let ne="";switch(ee){case"large":ne="lg";break;case"small":ne="sm";break}const ue=Re(B,{[`${B}-vertical`]:u==="vertical",[`${B}-${ne}`]:ne,[`${B}-split`]:o,[`${B}-bordered`]:i,[`${B}-loading`]:fe,[`${B}-grid`]:!!h,[`${B}-something-after-last-item`]:N(),[`${B}-rtl`]:A==="rtl"},H==null?void 0:H.className,a,s,Y,ie),ye=QW(F,{total:p.length,current:E,pageSize:M},n||{}),me=Math.ceil(ye.total/ye.pageSize);ye.current>me&&(ye.current=me);const pe=n&&f.createElement("div",{className:Re(`${B}-pagination`)},f.createElement(WSe,Object.assign({align:"end"},ye,{onChange:W,onShowSizeChange:q})));let he=pt(p);n&&p.length>(ye.current-1)*ye.pageSize&&(he=pt(p).splice((ye.current-1)*ye.pageSize,ye.pageSize));const _e=Object.keys(h||{}).some(Te=>["xs","sm","md","lg","xl","xxl"].includes(Te)),le=ZO(_e),xe=f.useMemo(()=>{for(let Te=0;Te<ig.length;Te+=1){const ke=ig[Te];if(le[ke])return ke}},[le]),we=f.useMemo(()=>{if(!h)return;const Te=xe&&h[xe]?h[xe]:h.column;if(Te)return{width:`${100/Te}%`,maxWidth:`${100/Te}%`}},[JSON.stringify(h),xe]);let De=fe&&f.createElement("div",{style:{minHeight:53}});if(he.length>0){const Te=he.map((ke,Pe)=>Z(ke,Pe));De=h?f.createElement(DE,{gutter:h.gutter},f.Children.map(Te,ke=>f.createElement("div",{key:ke==null?void 0:ke.key,style:we},ke))):f.createElement("ul",{className:`${B}-items`},Te)}else!c&&!fe&&(De=f.createElement("div",{className:`${B}-empty-text`},(_==null?void 0:_.emptyText)||(R==null?void 0:R("List"))||f.createElement(ZS,{componentName:"List"})));const Fe=ye.position||"bottom",Ce=f.useMemo(()=>({grid:h,itemLayout:u}),[JSON.stringify(h),u]);return V(f.createElement(ZW.Provider,{value:Ce},f.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},H==null?void 0:H.style),l),className:ue},T),(Fe==="top"||Fe==="both")&&pe,v&&f.createElement("div",{className:`${B}-header`},v),f.createElement(Cl,Object.assign({},ce),De,c),y&&f.createElement("div",{className:`${B}-footer`},y),d||(Fe==="bottom"||Fe==="both")&&pe)))}const Wat=f.forwardRef(Uat),lj=Wat;lj.Item=YSe;function Vat(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)&&e==null?[]:Array.isArray(e)?e:[e]}let su=null,P1=e=>e(),y_=[],b_={};function jte(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:i}=b_,o=(e==null?void 0:e())||document.body;return{getContainer:()=>o,duration:t,rtl:n,maxCount:r,top:i}}const Kat=ge.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:i}=f.useContext(hn),o=b_.prefixCls||i("message"),a=f.useContext(HF),[s,l]=sve(Object.assign(Object.assign(Object.assign({},n),{prefixCls:o}),a.message));return ge.useImperativeHandle(t,()=>{const c=Object.assign({},s);return Object.keys(c).forEach(u=>{c[u]=function(){return r(),s[u].apply(s,arguments)}}),{instance:c,sync:r}}),l}),qat=ge.forwardRef((e,t)=>{const[n,r]=ge.useState(jte),i=()=>{r(jte)};ge.useEffect(i,[]);const o=V1e(),a=o.getRootPrefixCls(),s=o.getIconPrefixCls(),l=o.getTheme(),c=ge.createElement(Kat,{ref:t,sync:i,messageConfig:n});return ge.createElement(or,{prefixCls:a,iconPrefixCls:s,theme:l},o.holderRender?o.holderRender(c):c)});function SP(){if(!su){const e=document.createDocumentFragment(),t={fragment:e};su=t,P1(()=>{HU()(ge.createElement(qat,{ref:r=>{const{instance:i,sync:o}=r||{};Promise.resolve().then(()=>{!t.instance&&i&&(t.instance=i,t.sync=o,SP())})}}),e)});return}su.instance&&(y_.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{P1(()=>{const r=su.instance.open(Object.assign(Object.assign({},b_),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":P1(()=>{su==null||su.instance.destroy(e.key)});break;default:P1(()=>{var r;const i=(r=su.instance)[t].apply(r,pt(e.args));i==null||i.then(e.resolve),e.setCloseFn(i)})}}),y_=[])}function Gat(e){b_=Object.assign(Object.assign({},b_),e),P1(()=>{var t;(t=su==null?void 0:su.sync)===null||t===void 0||t.call(su)})}function Yat(e){const t=BU(n=>{let r;const i={type:"open",config:e,resolve:n,setCloseFn:o=>{r=o}};return y_.push(i),()=>{r?P1(()=>{r()}):i.skipped=!0}});return SP(),t}function Xat(e,t){const n=BU(r=>{let i;const o={type:e,args:t,resolve:r,setCloseFn:a=>{i=a}};return y_.push(o),()=>{i?P1(()=>{i()}):o.skipped=!0}});return SP(),n}const Qat=e=>{y_.push({type:"destroy",key:e}),SP()},Zat=["success","info","warning","error","loading"],Jat={open:Yat,destroy:Qat,config:Gat,useMessage:lve,_InternalPanelDoNotUseOrYouWillBeFired:Bze},ws=Jat;Zat.forEach(e=>{ws[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Xat(e,n)}});var est=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 tst=e=>{const{prefixCls:t,className:n,closeIcon:r,closable:i,type:o,title:a,children:s,footer:l}=e,c=est(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:u}=f.useContext(hn),d=u(),h=t||u("modal"),p=_i(d),[m,v,y]=Yve(h,p),S=`${h}-confirm`;let b={};return o?b={closable:i??!1,title:"",footer:"",children:f.createElement(Qve,Object.assign({},e,{prefixCls:h,confirmPrefixCls:S,rootPrefixCls:d,content:s}))}:b={closable:i??!0,title:a,footer:l!==null&&f.createElement(Wve,Object.assign({},e)),children:s},m(f.createElement(Pve,Object.assign({prefixCls:h,className:Re(v,`${h}-pure-panel`,o&&S,o&&`${S}-${o}`,n,y,p)},c,{closeIcon:Uve(h,r),closable:i},b)))},nst=c0e(tst);function XSe(e){return wE(t0e(e))}const Ia=Xve;Ia.useModal=a0e;Ia.info=function(t){return wE(n0e(t))};Ia.success=function(t){return wE(r0e(t))};Ia.error=function(t){return wE(i0e(t))};Ia.warning=XSe;Ia.warn=XSe;Ia.confirm=function(t){return wE(o0e(t))};Ia.destroyAll=function(){for(;k1.length;){const t=k1.pop();t&&t()}};Ia.config=JKe;Ia._InternalPanelDoNotUseOrYouWillBeFired=nst;const rst=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:i,colorText:o,colorWarning:a,marginXXS:s,marginXS:l,fontSize:c,fontWeightStrong:u,colorTextHeading:d}=e;return{[t]:{zIndex:i,[`&${r}-popover`]:{fontSize:c},[`${t}-message`]:{marginBottom:l,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:a,fontSize:c,lineHeight:1,marginInlineEnd:l},[`${t}-title`]:{fontWeight:u,color:d,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:s,color:o}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:l}}}}},ist=e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},QSe=Tr("Popconfirm",e=>rst(e),ist,{resetStyle:!1});var ost=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 ZSe=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:i,description:o,cancelText:a,okText:s,okType:l="primary",icon:c=f.createElement(gg,null),showCancel:u=!0,close:d,onConfirm:h,onCancel:p,onPopupClick:m}=e,{getPrefixCls:v}=f.useContext(hn),[y]=Os("Popconfirm",Fc.Popconfirm),S=Jb(i),b=Jb(o);return f.createElement("div",{className:`${t}-inner-content`,onClick:m},f.createElement("div",{className:`${t}-message`},c&&f.createElement("span",{className:`${t}-message-icon`},c),f.createElement("div",{className:`${t}-message-text`},S&&f.createElement("div",{className:`${t}-title`},S),b&&f.createElement("div",{className:`${t}-description`},b))),f.createElement("div",{className:`${t}-buttons`},u&&f.createElement(hr,Object.assign({onClick:p,size:"small"},r),a||(y==null?void 0:y.cancelText)),f.createElement(XU,{buttonProps:Object.assign(Object.assign({size:"small"},zU(l)),n),actionFn:h,close:d,prefixCls:v("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s||(y==null?void 0:y.okText))))},ast=e=>{const{prefixCls:t,placement:n,className:r,style:i}=e,o=ost(e,["prefixCls","placement","className","style"]),{getPrefixCls:a}=f.useContext(hn),s=a("popconfirm",t),[l]=QSe(s);return l(f.createElement(B0e,{placement:n,className:Re(s,r),style:i,content:f.createElement(ZSe,Object.assign({prefixCls:s},o))}))};var sst=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 lst=f.forwardRef((e,t)=>{var n,r,i,o,a,s;const{prefixCls:l,placement:c="top",trigger:u="click",okType:d="primary",icon:h=f.createElement(gg,null),children:p,overlayClassName:m,onOpenChange:v,onVisibleChange:y,overlayStyle:S,styles:b,classNames:C}=e,_=sst(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange","overlayStyle","styles","classNames"]),{getPrefixCls:T,popconfirm:x}=f.useContext(hn),[E,k]=Jn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),M=(q,Z)=>{k(q,!0),y==null||y(q),v==null||v(q,Z)},P=q=>{M(!1,q)},D=q=>{var Z;return(Z=e.onConfirm)===null||Z===void 0?void 0:Z.call(void 0,q)},R=q=>{var Z;M(!1,q),(Z=e.onCancel)===null||Z===void 0||Z.call(void 0,q)},A=(q,Z)=>{const{disabled:N=!1}=e;N||M(q,Z)},H=T("popconfirm",l),F=Re(H,m,(i=x==null?void 0:x.classNames)===null||i===void 0?void 0:i.root,C==null?void 0:C.root),z=Re((o=x==null?void 0:x.classNames)===null||o===void 0?void 0:o.body,C==null?void 0:C.body),[W]=QSe(H);return W(f.createElement(Ou,Object.assign({},Pr(_,["title"]),{trigger:u,placement:c,onOpenChange:A,open:E,ref:t,classNames:{root:F,body:z},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},(a=x==null?void 0:x.styles)===null||a===void 0?void 0:a.root),x==null?void 0:x.style),S),b==null?void 0:b.root),body:Object.assign(Object.assign({},(s=x==null?void 0:x.styles)===null||s===void 0?void 0:s.body),b==null?void 0:b.body)},content:f.createElement(ZSe,Object.assign({okType:d,icon:h},e,{prefixCls:H,close:P,onConfirm:D,onCancel:R})),"data-popover-inject":!0}),p))}),JSe=lst;JSe._InternalPanelDoNotUseOrYouWillBeFired=ast;var cst={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ust=function(){var t=f.useRef([]),n=f.useRef(null);return f.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},Bte=0,dst=ml();function fst(){var e;return dst?(e=Bte,Bte+=1):e="TEST_OR_SSR",e}const hst=function(e){var t=f.useState(),n=Le(t,2),r=n[0],i=n[1];return f.useEffect(function(){i("rc_progress_".concat(fst()))},[]),e||r};var Hte=function(t){var n=t.bg,r=t.children;return f.createElement("div",{style:{width:"100%",height:"100%",background:n}},r)};function zte(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 pst=f.forwardRef(function(e,t){var n=e.prefixCls,r=e.color,i=e.gradientId,o=e.radius,a=e.style,s=e.ptg,l=e.strokeLinecap,c=e.strokeWidth,u=e.size,d=e.gapDegree,h=r&&ln(r)==="object",p=h?"#FFF":void 0,m=u/2,v=f.createElement("circle",{className:"".concat(n,"-circle-path"),r:o,cx:m,cy:m,stroke:p,strokeLinecap:l,strokeWidth:c,opacity:s===0?0:1,style:a,ref:t});if(!h)return v;var y="".concat(i,"-conic"),S=d?"".concat(180+d/2,"deg"):"0deg",b=zte(r,(360-d)/360),C=zte(r,1),_="conic-gradient(from ".concat(S,", ").concat(b.join(", "),")"),T="linear-gradient(to ".concat(d?"bottom":"top",", ").concat(C.join(", "),")");return f.createElement(f.Fragment,null,f.createElement("mask",{id:y},v),f.createElement("foreignObject",{x:0,y:0,width:u,height:u,mask:"url(#".concat(y,")")},f.createElement(Hte,{bg:T},f.createElement(Hte,{bg:_}))))}),k2=100,ZR=function(t,n,r,i,o,a,s,l,c,u){var d=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,h=r/100*360*((360-a)/360),p=a===0?0:{bottom:0,top:180,left:90,right:-90}[s],m=(100-i)/100*n;c==="round"&&i!==100&&(m+=u/2,m>=n&&(m=n-.01));var v=k2/2;return{stroke:typeof l=="string"?l:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:m+d,transform:"rotate(".concat(o+h+p,"deg)"),transformOrigin:"".concat(v,"px ").concat(v,"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}},mst=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Ute(e){var t=e??[];return Array.isArray(t)?t:[t]}var gst=function(t){var n=G(G({},cst),t),r=n.id,i=n.prefixCls,o=n.steps,a=n.strokeWidth,s=n.trailWidth,l=n.gapDegree,c=l===void 0?0:l,u=n.gapPosition,d=n.trailColor,h=n.strokeLinecap,p=n.style,m=n.className,v=n.strokeColor,y=n.percent,S=tn(n,mst),b=k2/2,C=hst(r),_="".concat(C,"-gradient"),T=b-a/2,x=Math.PI*2*T,E=c>0?90+c/2:-90,k=x*((360-c)/360),M=ln(o)==="object"?o:{count:o,gap:2},P=M.count,D=M.gap,R=Ute(y),A=Ute(v),H=A.find(function(B){return B&&ln(B)==="object"}),F=H&&ln(H)==="object",z=F?"butt":h,W=ZR(x,k,0,100,E,c,u,d,z,a),q=ust(),Z=function(){var V=0;return R.map(function(Y,ie){var ce=A[ie]||A[A.length-1],fe=ZR(x,k,V,Y,E,c,u,ce,z,a);return V+=Y,f.createElement(pst,{key:ie,color:ce,ptg:Y,radius:T,prefixCls:i,gradientId:_,style:fe,strokeLinecap:z,strokeWidth:a,gapDegree:c,ref:function(ne){q[ie]=ne},size:k2})}).reverse()},N=function(){var V=Math.round(P*(R[0]/100)),Y=100/P,ie=0;return new Array(P).fill(null).map(function(ce,fe){var ee=fe<=V-1?A[0]:d,ne=ee&&ln(ee)==="object"?"url(#".concat(_,")"):void 0,ue=ZR(x,k,ie,Y,E,c,u,ee,"butt",a,D);return ie+=(k-ue.strokeDashoffset+D)*100/k,f.createElement("circle",{key:fe,className:"".concat(i,"-circle-path"),r:T,cx:b,cy:b,stroke:ne,strokeWidth:a,opacity:1,style:ue,ref:function(me){q[fe]=me}})})};return f.createElement("svg",ut({className:Re("".concat(i,"-circle"),m),viewBox:"0 0 ".concat(k2," ").concat(k2),style:p,id:r,role:"presentation"},S),!P&&f.createElement("circle",{className:"".concat(i,"-circle-trail"),r:T,cx:b,cy:b,stroke:d,strokeLinecap:z,strokeWidth:s||a,style:W}),P?N():Z())};function Xm(e){return!e||e<0?0:e>100?100:e}function ek(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 vst=e=>{let{percent:t,success:n,successPercent:r}=e;const i=Xm(ek({success:n,successPercent:r}));return[i,Xm(Xm(t)-i)]},yst=e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||Y1.green,n||null]},CP=(e,t,n)=>{var r,i,o,a;let s=-1,l=-1;if(t==="step"){const c=n.steps,u=n.strokeWidth;typeof e=="string"||typeof e>"u"?(s=e==="small"?2:14,l=u??8):typeof e=="number"?[s,l]=[e,e]:[s=14,l=8]=Array.isArray(e)?e:[e.width,e.height],s*=c}else if(t==="line"){const c=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?l=c||(e==="small"?6:8):typeof e=="number"?[s,l]=[e,e]:[s=-1,l=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[s,l]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[s,l]=[e,e]:Array.isArray(e)&&(s=(i=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&i!==void 0?i:120,l=(a=(o=e[0])!==null&&o!==void 0?o:e[1])!==null&&a!==void 0?a:120));return[s,l]},bst=3,Sst=e=>bst/e*100,Cst=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:i,gapDegree:o,width:a=120,type:s,children:l,success:c,size:u=a,steps:d}=e,[h,p]=CP(u,"circle");let{strokeWidth:m}=e;m===void 0&&(m=Math.max(Sst(h),6));const v={width:h,height:p,fontSize:h*.15+6},y=f.useMemo(()=>{if(o||o===0)return o;if(s==="dashboard")return 75},[o,s]),S=vst(e),b=i||s==="dashboard"&&"bottom"||void 0,C=Object.prototype.toString.call(e.strokeColor)==="[object Object]",_=yst({success:c,strokeColor:e.strokeColor}),T=Re(`${t}-inner`,{[`${t}-circle-gradient`]:C}),x=f.createElement(gst,{steps:d,percent:d?S[1]:S,strokeWidth:m,trailWidth:m,strokeColor:d?_[1]:_,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:y,gapPosition:b}),E=h<=20,k=f.createElement("div",{className:T,style:v},x,!E&&l);return E?f.createElement(ta,{title:l},k):k},tk="--progress-line-stroke-color",eCe="--progress-percent",Wte=e=>{const t=e?"100%":"-100%";return new Mr(`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}})},xst=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},$r(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(${tk})`]},height:"100%",width:`calc(1 / var(${eCe}) * 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 ${je(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:Wte(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:Wte(!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}}})}},wst=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"}}}},_st=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}}}}}},Est=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},Tst=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),kst=Tr("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=ur(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[xst(n),wst(n),_st(n),Est(n)]},Tst);var Ost=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 Pst=e=>{let t=[];return Object.keys(e).forEach(n=>{const r=parseFloat(n.replace(/%/g,""));Number.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(", ")},Mst=(e,t)=>{const{from:n=Y1.blue,to:r=Y1.blue,direction:i=t==="rtl"?"to left":"to right"}=e,o=Ost(e,["from","to","direction"]);if(Object.keys(o).length!==0){const s=Pst(o),l=`linear-gradient(${i}, ${s})`;return{background:l,[tk]:l}}const a=`linear-gradient(${i}, ${n}, ${r})`;return{background:a,[tk]:a}},Ist=e=>{const{prefixCls:t,direction:n,percent:r,size:i,strokeWidth:o,strokeColor:a,strokeLinecap:s="round",children:l,trailColor:c=null,percentPosition:u,success:d}=e,{align:h,type:p}=u,m=a&&typeof a!="string"?Mst(a,n):{[tk]:a,background:a},v=s==="square"||s==="butt"?0:void 0,y=i??[-1,o||(i==="small"?6:8)],[S,b]=CP(y,"line",{strokeWidth:o}),C={backgroundColor:c||void 0,borderRadius:v},_=Object.assign(Object.assign({width:`${Xm(r)}%`,height:b,borderRadius:v},m),{[eCe]:Xm(r)/100}),T=ek(e),x={width:`${Xm(T)}%`,height:b,borderRadius:v,backgroundColor:d==null?void 0:d.strokeColor},E={width:S<0?"100%":S},k=f.createElement("div",{className:`${t}-inner`,style:C},f.createElement("div",{className:Re(`${t}-bg`,`${t}-bg-${p}`),style:_},p==="inner"&&l),T!==void 0&&f.createElement("div",{className:`${t}-success-bg`,style:x})),M=p==="outer"&&h==="start",P=p==="outer"&&h==="end";return p==="outer"&&h==="center"?f.createElement("div",{className:`${t}-layout-bottom`},k,l):f.createElement("div",{className:`${t}-outer`,style:E},M&&l,k,P&&l)},$st=e=>{const{size:t,steps:n,percent:r=0,strokeWidth:i=8,strokeColor:o,trailColor:a=null,prefixCls:s,children:l}=e,c=Math.round(n*(r/100)),d=t??[t==="small"?2:14,i],[h,p]=CP(d,"step",{steps:n,strokeWidth:i}),m=h/n,v=new Array(n);for(let y=0;y<n;y++){const S=Array.isArray(o)?o[y]:o;v[y]=f.createElement("div",{key:y,className:Re(`${s}-steps-item`,{[`${s}-steps-item-active`]:y<=c-1}),style:{backgroundColor:y<=c-1?S:a,width:m,height:p}})}return f.createElement("div",{className:`${s}-steps-outer`},v,l)};var Rst=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 Ast=["normal","exception","active","success"],tCe=f.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,steps:o,strokeColor:a,percent:s=0,size:l="default",showInfo:c=!0,type:u="line",status:d,format:h,style:p,percentPosition:m={}}=e,v=Rst(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:y="end",type:S="outer"}=m,b=Array.isArray(a)?a[0]:a,C=typeof a=="string"||Array.isArray(a)?a:void 0,_=f.useMemo(()=>{if(b){const Z=typeof b=="string"?b:Object.values(b)[0];return new Cr(Z).isLight()}return!1},[a]),T=f.useMemo(()=>{var Z,N;const B=ek(e);return parseInt(B!==void 0?(Z=B??0)===null||Z===void 0?void 0:Z.toString():(N=s??0)===null||N===void 0?void 0:N.toString(),10)},[s,e.success,e.successPercent]),x=f.useMemo(()=>!Ast.includes(d)&&T>=100?"success":d||"normal",[d,T]),{getPrefixCls:E,direction:k,progress:M}=f.useContext(hn),P=E("progress",n),[D,R,A]=kst(P),H=u==="line",F=H&&!o,z=f.useMemo(()=>{if(!c)return null;const Z=ek(e);let N;const B=h||(Y=>`${Y}%`),V=H&&_&&S==="inner";return S==="inner"||h||x!=="exception"&&x!=="success"?N=B(Xm(s),Xm(Z)):x==="exception"?N=H?f.createElement(th,null):f.createElement(nh,null):x==="success"&&(N=H?f.createElement(Gv,null):f.createElement(fW,null)),f.createElement("span",{className:Re(`${P}-text`,{[`${P}-text-bright`]:V,[`${P}-text-${y}`]:F,[`${P}-text-${S}`]:F}),title:typeof N=="string"?N:void 0},N)},[c,s,T,x,u,P,h]);let W;u==="line"?W=o?f.createElement($st,Object.assign({},e,{strokeColor:C,prefixCls:P,steps:typeof o=="object"?o.count:o}),z):f.createElement(Ist,Object.assign({},e,{strokeColor:b,prefixCls:P,direction:k,percentPosition:{align:y,type:S}}),z):(u==="circle"||u==="dashboard")&&(W=f.createElement(Cst,Object.assign({},e,{strokeColor:b,prefixCls:P,progressStatus:x}),z));const q=Re(P,`${P}-status-${x}`,{[`${P}-${u==="dashboard"&&"circle"||u}`]:u!=="line",[`${P}-inline-circle`]:u==="circle"&&CP(l,"circle")[0]<=20,[`${P}-line`]:F,[`${P}-line-align-${y}`]:F,[`${P}-line-position-${S}`]:F,[`${P}-steps`]:o,[`${P}-show-info`]:c,[`${P}-${l}`]:typeof l=="string",[`${P}-rtl`]:k==="rtl"},M==null?void 0:M.className,r,i,R,A);return D(f.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},M==null?void 0:M.style),p),className:q,role:"progressbar","aria-valuenow":T,"aria-valuemin":0,"aria-valuemax":100},Pr(v,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),W))});function Af(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=bO(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return a=c.done,c},e:function(c){s=!0,o=c},f:function(){try{a||n.return==null||n.return()}finally{if(s)throw o}}}}var aC,FE;function Ll(e,t,n){if(t<0||t>31||e>>>t)throw new RangeError("Value out of range");for(var r=t-1;r>=0;r--)n.push(e>>>r&1)}function bh(e,t){return(e>>>t&1)!=0}function cc(e){if(!e)throw new Error("Assertion error")}var Nf=function(){function e(t,n){pi(this,e),ae(this,"modeBits",void 0),ae(this,"numBitsCharCount",void 0),this.modeBits=t,this.numBitsCharCount=n}return mi(e,[{key:"numCharCountBits",value:function(n){return this.numBitsCharCount[Math.floor((n+7)/17)]}}]),e}();aC=Nf;ae(Nf,"NUMERIC",new aC(1,[10,12,14]));ae(Nf,"ALPHANUMERIC",new aC(2,[9,11,13]));ae(Nf,"BYTE",new aC(4,[8,16,16]));ae(Nf,"KANJI",new aC(8,[8,10,12]));ae(Nf,"ECI",new aC(7,[0,0,0]));var vu=mi(function e(t,n){pi(this,e),ae(this,"ordinal",void 0),ae(this,"formatBits",void 0),this.ordinal=t,this.formatBits=n});FE=vu;ae(vu,"LOW",new FE(0,1));ae(vu,"MEDIUM",new FE(1,0));ae(vu,"QUARTILE",new FE(2,3));ae(vu,"HIGH",new FE(3,2));var J1=function(){function e(t,n,r){if(pi(this,e),ae(this,"mode",void 0),ae(this,"numChars",void 0),ae(this,"bitData",void 0),this.mode=t,this.numChars=n,this.bitData=r,n<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}return mi(e,[{key:"getData",value:function(){return this.bitData.slice()}}],[{key:"makeBytes",value:function(n){var r=[],i=Af(n),o;try{for(i.s();!(o=i.n()).done;){var a=o.value;Ll(a,8,r)}}catch(s){i.e(s)}finally{i.f()}return new e(Nf.BYTE,n.length,r)}},{key:"makeNumeric",value:function(n){if(!e.isNumeric(n))throw new RangeError("String contains non-numeric characters");for(var r=[],i=0;i<n.length;){var o=Math.min(n.length-i,3);Ll(parseInt(n.substring(i,i+o),10),o*3+1,r),i+=o}return new e(Nf.NUMERIC,n.length,r)}},{key:"makeAlphanumeric",value:function(n){if(!e.isAlphanumeric(n))throw new RangeError("String contains unencodable characters in alphanumeric mode");var r=[],i;for(i=0;i+2<=n.length;i+=2){var o=e.ALPHANUMERIC_CHARSET.indexOf(n.charAt(i))*45;o+=e.ALPHANUMERIC_CHARSET.indexOf(n.charAt(i+1)),Ll(o,11,r)}return i<n.length&&Ll(e.ALPHANUMERIC_CHARSET.indexOf(n.charAt(i)),6,r),new e(Nf.ALPHANUMERIC,n.length,r)}},{key:"makeSegments",value:function(n){return n==""?[]:e.isNumeric(n)?[e.makeNumeric(n)]:e.isAlphanumeric(n)?[e.makeAlphanumeric(n)]:[e.makeBytes(e.toUtf8ByteArray(n))]}},{key:"makeEci",value:function(n){var r=[];if(n<0)throw new RangeError("ECI assignment value out of range");if(n<128)Ll(n,8,r);else if(n<16384)Ll(2,2,r),Ll(n,14,r);else if(n<1e6)Ll(6,3,r),Ll(n,21,r);else throw new RangeError("ECI assignment value out of range");return new e(Nf.ECI,0,r)}},{key:"isNumeric",value:function(n){return e.NUMERIC_REGEX.test(n)}},{key:"isAlphanumeric",value:function(n){return e.ALPHANUMERIC_REGEX.test(n)}},{key:"getTotalBits",value:function(n,r){var i=0,o=Af(n),a;try{for(o.s();!(a=o.n()).done;){var s=a.value,l=s.mode.numCharCountBits(r);if(s.numChars>=1<<l)return 1/0;i+=4+l+s.bitData.length}}catch(c){o.e(c)}finally{o.f()}return i}},{key:"toUtf8ByteArray",value:function(n){for(var r=encodeURI(n),i=[],o=0;o<r.length;o++)r.charAt(o)!="%"?i.push(r.charCodeAt(o)):(i.push(parseInt(r.substring(o+1,o+3),16)),o+=2);return i}}]),e}();ae(J1,"NUMERIC_REGEX",/^[0-9]*$/);ae(J1,"ALPHANUMERIC_REGEX",/^[A-Z0-9 $%*+.\/:-]*$/);ae(J1,"ALPHANUMERIC_CHARSET","0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:");var Mp=function(){function e(t,n,r,i){pi(this,e),ae(this,"size",void 0),ae(this,"mask",void 0),ae(this,"modules",[]),ae(this,"isFunction",[]),ae(this,"version",void 0),ae(this,"errorCorrectionLevel",void 0);var o=i;if(this.version=t,this.errorCorrectionLevel=n,t<e.MIN_VERSION||t>e.MAX_VERSION)throw new RangeError("Version value out of range");if(o<-1||o>7)throw new RangeError("Mask value out of range");this.size=t*4+17;for(var a=[],s=0;s<this.size;s++)a.push(!1);for(var l=0;l<this.size;l++)this.modules.push(a.slice()),this.isFunction.push(a.slice());this.drawFunctionPatterns();var c=this.addEccAndInterleave(r);if(this.drawCodewords(c),o==-1)for(var u=1e9,d=0;d<8;d++){this.applyMask(d),this.drawFormatBits(d);var h=this.getPenaltyScore();h<u&&(o=d,u=h),this.applyMask(d)}cc(0<=o&&o<=7),this.mask=o,this.applyMask(o),this.drawFormatBits(o),this.isFunction=[]}return mi(e,[{key:"getModule",value:function(n,r){return 0<=n&&n<this.size&&0<=r&&r<this.size&&this.modules[r][n]}},{key:"getModules",value:function(){return this.modules}},{key:"drawFunctionPatterns",value:function(){for(var n=0;n<this.size;n++)this.setFunctionModule(6,n,n%2==0),this.setFunctionModule(n,6,n%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);for(var r=this.getAlignmentPatternPositions(),i=r.length,o=0;o<i;o++)for(var a=0;a<i;a++)o==0&&a==0||o==0&&a==i-1||o==i-1&&a==0||this.drawAlignmentPattern(r[o],r[a]);this.drawFormatBits(0),this.drawVersion()}},{key:"drawFormatBits",value:function(n){for(var r=this.errorCorrectionLevel.formatBits<<3|n,i=r,o=0;o<10;o++)i=i<<1^(i>>>9)*1335;var a=(r<<10|i)^21522;cc(a>>>15==0);for(var s=0;s<=5;s++)this.setFunctionModule(8,s,bh(a,s));this.setFunctionModule(8,7,bh(a,6)),this.setFunctionModule(8,8,bh(a,7)),this.setFunctionModule(7,8,bh(a,8));for(var l=9;l<15;l++)this.setFunctionModule(14-l,8,bh(a,l));for(var c=0;c<8;c++)this.setFunctionModule(this.size-1-c,8,bh(a,c));for(var u=8;u<15;u++)this.setFunctionModule(8,this.size-15+u,bh(a,u));this.setFunctionModule(8,this.size-8,!0)}},{key:"drawVersion",value:function(){if(!(this.version<7)){for(var n=this.version,r=0;r<12;r++)n=n<<1^(n>>>11)*7973;var i=this.version<<12|n;cc(i>>>18==0);for(var o=0;o<18;o++){var a=bh(i,o),s=this.size-11+o%3,l=Math.floor(o/3);this.setFunctionModule(s,l,a),this.setFunctionModule(l,s,a)}}}},{key:"drawFinderPattern",value:function(n,r){for(var i=-4;i<=4;i++)for(var o=-4;o<=4;o++){var a=Math.max(Math.abs(o),Math.abs(i)),s=n+o,l=r+i;0<=s&&s<this.size&&0<=l&&l<this.size&&this.setFunctionModule(s,l,a!=2&&a!=4)}}},{key:"drawAlignmentPattern",value:function(n,r){for(var i=-2;i<=2;i++)for(var o=-2;o<=2;o++)this.setFunctionModule(n+o,r+i,Math.max(Math.abs(o),Math.abs(i))!=1)}},{key:"setFunctionModule",value:function(n,r,i){this.modules[r][n]=i,this.isFunction[r][n]=!0}},{key:"addEccAndInterleave",value:function(n){var r=this.version,i=this.errorCorrectionLevel;if(n.length!=e.getNumDataCodewords(r,i))throw new RangeError("Invalid argument");for(var o=e.NUM_ERROR_CORRECTION_BLOCKS[i.ordinal][r],a=e.ECC_CODEWORDS_PER_BLOCK[i.ordinal][r],s=Math.floor(e.getNumRawDataModules(r)/8),l=o-s%o,c=Math.floor(s/o),u=[],d=e.reedSolomonComputeDivisor(a),h=0,p=0;h<o;h++){var m=n.slice(p,p+c-a+(h<l?0:1));p+=m.length;var v=e.reedSolomonComputeRemainder(m,d);h<l&&m.push(0),u.push(m.concat(v))}for(var y=[],S=function(_){u.forEach(function(T,x){(_!=c-a||x>=l)&&y.push(T[_])})},b=0;b<u[0].length;b++)S(b);return cc(y.length==s),y}},{key:"drawCodewords",value:function(n){if(n.length!=Math.floor(e.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");for(var r=0,i=this.size-1;i>=1;i-=2){i==6&&(i=5);for(var o=0;o<this.size;o++)for(var a=0;a<2;a++){var s=i-a,l=(i+1&2)==0,c=l?this.size-1-o:o;!this.isFunction[c][s]&&r<n.length*8&&(this.modules[c][s]=bh(n[r>>>3],7-(r&7)),r++)}}cc(r==n.length*8)}},{key:"applyMask",value:function(n){if(n<0||n>7)throw new RangeError("Mask value out of range");for(var r=0;r<this.size;r++)for(var i=0;i<this.size;i++){var o=void 0;switch(n){case 0:o=(i+r)%2==0;break;case 1:o=r%2==0;break;case 2:o=i%3==0;break;case 3:o=(i+r)%3==0;break;case 4:o=(Math.floor(i/3)+Math.floor(r/2))%2==0;break;case 5:o=i*r%2+i*r%3==0;break;case 6:o=(i*r%2+i*r%3)%2==0;break;case 7:o=((i+r)%2+i*r%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[r][i]&&o&&(this.modules[r][i]=!this.modules[r][i])}}},{key:"getPenaltyScore",value:function(){for(var n=0,r=0;r<this.size;r++){for(var i=!1,o=0,a=[0,0,0,0,0,0,0],s=0;s<this.size;s++)this.modules[r][s]==i?(o++,o==5?n+=e.PENALTY_N1:o>5&&n++):(this.finderPenaltyAddHistory(o,a),i||(n+=this.finderPenaltyCountPatterns(a)*e.PENALTY_N3),i=this.modules[r][s],o=1);n+=this.finderPenaltyTerminateAndCount(i,o,a)*e.PENALTY_N3}for(var l=0;l<this.size;l++){for(var c=!1,u=0,d=[0,0,0,0,0,0,0],h=0;h<this.size;h++)this.modules[h][l]==c?(u++,u==5?n+=e.PENALTY_N1:u>5&&n++):(this.finderPenaltyAddHistory(u,d),c||(n+=this.finderPenaltyCountPatterns(d)*e.PENALTY_N3),c=this.modules[h][l],u=1);n+=this.finderPenaltyTerminateAndCount(c,u,d)*e.PENALTY_N3}for(var p=0;p<this.size-1;p++)for(var m=0;m<this.size-1;m++){var v=this.modules[p][m];v==this.modules[p][m+1]&&v==this.modules[p+1][m]&&v==this.modules[p+1][m+1]&&(n+=e.PENALTY_N2)}var y=0,S=Af(this.modules),b;try{for(S.s();!(b=S.n()).done;){var C=b.value;y=C.reduce(function(x,E){return x+(E?1:0)},y)}}catch(x){S.e(x)}finally{S.f()}var _=this.size*this.size,T=Math.ceil(Math.abs(y*20-_*10)/_)-1;return cc(0<=T&&T<=9),n+=T*e.PENALTY_N4,cc(0<=n&&n<=2568888),n}},{key:"getAlignmentPatternPositions",value:function(){if(this.version==1)return[];for(var n=Math.floor(this.version/7)+2,r=this.version==32?26:Math.ceil((this.version*4+4)/(n*2-2))*2,i=[6],o=this.size-7;i.length<n;o-=r)i.splice(1,0,o);return i}},{key:"finderPenaltyCountPatterns",value:function(n){var r=n[1];cc(r<=this.size*3);var i=r>0&&n[2]==r&&n[3]==r*3&&n[4]==r&&n[5]==r;return(i&&n[0]>=r*4&&n[6]>=r?1:0)+(i&&n[6]>=r*4&&n[0]>=r?1:0)}},{key:"finderPenaltyTerminateAndCount",value:function(n,r,i){var o=r;return n&&(this.finderPenaltyAddHistory(o,i),o=0),o+=this.size,this.finderPenaltyAddHistory(o,i),this.finderPenaltyCountPatterns(i)}},{key:"finderPenaltyAddHistory",value:function(n,r){var i=n;r[0]==0&&(i+=this.size),r.pop(),r.unshift(i)}}],[{key:"encodeText",value:function(n,r){var i=J1.makeSegments(n);return e.encodeSegments(i,r)}},{key:"encodeBinary",value:function(n,r){var i=J1.makeBytes(n);return e.encodeSegments([i],r)}},{key:"encodeSegments",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:40,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;if(!(e.MIN_VERSION<=i&&i<=o&&o<=e.MAX_VERSION)||a<-1||a>7)throw new RangeError("Invalid value");var l,c;for(l=i;;l++){var u=e.getNumDataCodewords(l,r)*8,d=J1.getTotalBits(n,l);if(d<=u){c=d;break}if(l>=o)throw new RangeError("Data too long")}for(var h=r,p=0,m=[vu.MEDIUM,vu.QUARTILE,vu.HIGH];p<m.length;p++){var v=m[p];s&&c<=e.getNumDataCodewords(l,v)*8&&(h=v)}var y=[],S=Af(n),b;try{for(S.s();!(b=S.n()).done;){var C=b.value;Ll(C.mode.modeBits,4,y),Ll(C.numChars,C.mode.numCharCountBits(l),y);var _=Af(C.getData()),T;try{for(_.s();!(T=_.n()).done;){var x=T.value;y.push(x)}}catch(P){_.e(P)}finally{_.f()}}}catch(P){S.e(P)}finally{S.f()}cc(y.length==c);var E=e.getNumDataCodewords(l,h)*8;cc(y.length<=E),Ll(0,Math.min(4,E-y.length),y),Ll(0,(8-y.length%8)%8,y),cc(y.length%8==0);for(var k=236;y.length<E;k^=253)Ll(k,8,y);for(var M=[];M.length*8<y.length;)M.push(0);return y.forEach(function(P,D){return M[D>>>3]|=P<<7-(D&7)}),new e(l,h,M,a)}},{key:"getNumRawDataModules",value:function(n){if(n<e.MIN_VERSION||n>e.MAX_VERSION)throw new RangeError("Version number out of range");var r=(16*n+128)*n+64;if(n>=2){var i=Math.floor(n/7)+2;r-=(25*i-10)*i-55,n>=7&&(r-=36)}return cc(208<=r&&r<=29648),r}},{key:"getNumDataCodewords",value:function(n,r){return Math.floor(e.getNumRawDataModules(n)/8)-e.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n]*e.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n]}},{key:"reedSolomonComputeDivisor",value:function(n){if(n<1||n>255)throw new RangeError("Degree out of range");for(var r=[],i=0;i<n-1;i++)r.push(0);r.push(1);for(var o=1,a=0;a<n;a++){for(var s=0;s<r.length;s++)r[s]=e.reedSolomonMultiply(r[s],o),s+1<r.length&&(r[s]^=r[s+1]);o=e.reedSolomonMultiply(o,2)}return r}},{key:"reedSolomonComputeRemainder",value:function(n,r){var i=r.map(function(){return 0}),o=Af(n),a;try{var s=function(){var c=a.value,u=c^i.shift();i.push(0),r.forEach(function(d,h){return i[h]^=e.reedSolomonMultiply(d,u)})};for(o.s();!(a=o.n()).done;)s()}catch(l){o.e(l)}finally{o.f()}return i}},{key:"reedSolomonMultiply",value:function(n,r){if(n>>>8||r>>>8)throw new RangeError("Byte out of range");for(var i=0,o=7;o>=0;o--)i=i<<1^(i>>>7)*285,i^=(r>>>o&1)*n;return cc(i>>>8==0),i}}]),e}();ae(Mp,"MIN_VERSION",1);ae(Mp,"MAX_VERSION",40);ae(Mp,"PENALTY_N1",3);ae(Mp,"PENALTY_N2",3);ae(Mp,"PENALTY_N3",40);ae(Mp,"PENALTY_N4",10);ae(Mp,"ECC_CODEWORDS_PER_BLOCK",[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]]);ae(Mp,"NUM_ERROR_CORRECTION_BLOCKS",[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]]);var Nst={L:vu.LOW,M:vu.MEDIUM,Q:vu.QUARTILE,H:vu.HIGH},nCe=128,rCe="L",iCe="#FFFFFF",oCe="#000000",aCe=!1,sCe=1,Dst=4,Lst=0,Fst=.1;function lCe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=[];return e.forEach(function(r,i){var o=null;r.forEach(function(a,s){if(!a&&o!==null){n.push("M".concat(o+t," ").concat(i+t,"h").concat(s-o,"v1H").concat(o+t,"z")),o=null;return}if(s===r.length-1){if(!a)return;o===null?n.push("M".concat(s+t,",").concat(i+t," h1v1H").concat(s+t,"z")):n.push("M".concat(o+t,",").concat(i+t," h").concat(s+1-o,"v1H").concat(o+t,"z"));return}a&&o===null&&(o=s)})}),n.join("")}function cCe(e,t){return e.slice().map(function(n,r){return r<t.y||r>=t.y+t.h?n:n.map(function(i,o){return o<t.x||o>=t.x+t.w?i:!1})})}function jst(e,t,n,r){if(r==null)return null;var i=e.length+n*2,o=Math.floor(t*Fst),a=i/t,s=(r.width||o)*a,l=(r.height||o)*a,c=r.x==null?e.length/2-s/2:r.x*a,u=r.y==null?e.length/2-l/2:r.y*a,d=r.opacity==null?1:r.opacity,h=null;if(r.excavate){var p=Math.floor(c),m=Math.floor(u),v=Math.ceil(s+c-p),y=Math.ceil(l+u-m);h={x:p,y:m,w:v,h:y}}var S=r.crossOrigin;return{x:c,y:u,h:l,w:s,excavation:h,opacity:d,crossOrigin:S}}function Bst(e,t){return t!=null?Math.floor(t):e?Dst:Lst}var Hst=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}();function uCe(e){var t=e.value,n=e.level,r=e.minVersion,i=e.includeMargin,o=e.marginSize,a=e.imageSettings,s=e.size,l=f.useMemo(function(){var m=J1.makeSegments(t);return Mp.encodeSegments(m,Nst[n],r)},[t,n,r]),c=f.useMemo(function(){var m=l.getModules(),v=Bst(i,o),y=m.length+v*2,S=jst(m,s,v,a);return{cells:m,margin:v,numCells:y,calculatedImageSettings:S}},[l,s,a,i,o]),u=c.cells,d=c.margin,h=c.numCells,p=c.calculatedImageSettings;return{qrcode:l,margin:d,cells:u,numCells:h,calculatedImageSettings:p}}var zst=["value","size","level","bgColor","fgColor","includeMargin","minVersion","marginSize","style","imageSettings"],dCe=ge.forwardRef(function(t,n){var r=t.value,i=t.size,o=i===void 0?nCe:i,a=t.level,s=a===void 0?rCe:a,l=t.bgColor,c=l===void 0?iCe:l,u=t.fgColor,d=u===void 0?oCe:u,h=t.includeMargin,p=h===void 0?aCe:h,m=t.minVersion,v=m===void 0?sCe:m,y=t.marginSize,S=t.style,b=t.imageSettings,C=tn(t,zst),_=b==null?void 0:b.src,T=f.useRef(null),x=f.useRef(null),E=f.useCallback(function(q){T.current=q,typeof n=="function"?n(q):n&&(n.current=q)},[n]),k=f.useState(!1),M=Le(k,2),P=M[1],D=uCe({value:r,level:s,minVersion:v,includeMargin:p,marginSize:y,imageSettings:b,size:o}),R=D.margin,A=D.cells,H=D.numCells,F=D.calculatedImageSettings;f.useEffect(function(){if(T.current!=null){var q=T.current,Z=q.getContext("2d");if(!Z)return;var N=A,B=x.current,V=F!=null&&B!==null&&B.complete&&B.naturalHeight!==0&&B.naturalWidth!==0;V&&F.excavation!=null&&(N=cCe(A,F.excavation));var Y=window.devicePixelRatio||1;q.height=q.width=o*Y;var ie=o/H*Y;Z.scale(ie,ie),Z.fillStyle=c,Z.fillRect(0,0,H,H),Z.fillStyle=d,Hst?Z.fill(new Path2D(lCe(N,R))):A.forEach(function(ce,fe){ce.forEach(function(ee,ne){ee&&Z.fillRect(ne+R,fe+R,1,1)})}),F&&(Z.globalAlpha=F.opacity),V&&Z.drawImage(B,F.x+R,F.y+R,F.w,F.h)}}),f.useEffect(function(){P(!1)},[_]);var z=G({height:o,width:o},S),W=null;return _!=null&&(W=ge.createElement("img",{src:_,key:_,style:{display:"none"},onLoad:function(){P(!0)},ref:x,crossOrigin:F==null?void 0:F.crossOrigin})),ge.createElement(ge.Fragment,null,ge.createElement("canvas",ut({style:z,height:o,width:o,ref:E,role:"img"},C)),W)});dCe.displayName="QRCodeCanvas";var Ust=["value","size","level","bgColor","fgColor","includeMargin","minVersion","title","marginSize","imageSettings"],fCe=ge.forwardRef(function(t,n){var r=t.value,i=t.size,o=i===void 0?nCe:i,a=t.level,s=a===void 0?rCe:a,l=t.bgColor,c=l===void 0?iCe:l,u=t.fgColor,d=u===void 0?oCe:u,h=t.includeMargin,p=h===void 0?aCe:h,m=t.minVersion,v=m===void 0?sCe:m,y=t.title,S=t.marginSize,b=t.imageSettings,C=tn(t,Ust),_=uCe({value:r,level:s,minVersion:v,includeMargin:p,marginSize:S,imageSettings:b,size:o}),T=_.margin,x=_.cells,E=_.numCells,k=_.calculatedImageSettings,M=x,P=null;b!=null&&k!=null&&(k.excavation!=null&&(M=cCe(x,k.excavation)),P=ge.createElement("image",{href:b.src,height:k.h,width:k.w,x:k.x+T,y:k.y+T,preserveAspectRatio:"none",opacity:k.opacity,crossOrigin:k.crossOrigin}));var D=lCe(M,T);return ge.createElement("svg",ut({height:o,width:o,viewBox:"0 0 ".concat(E," ").concat(E),ref:n,role:"img"},C),!!y&&ge.createElement("title",null,y),ge.createElement("path",{fill:c,d:"M0,0 h".concat(E,"v").concat(E,"H0z"),shapeRendering:"crispEdges"}),ge.createElement("path",{fill:d,d:D,shapeRendering:"crispEdges"}),P)});fCe.displayName="QRCodeSVG";var Wst={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"},Vst={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},Kst={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"},qst=function(t,n){return f.createElement(wr,ut({},t,{ref:n,icon:Kst}))},Gst=f.forwardRef(qst),Yst={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"},Xst=function(t,n){return f.createElement(wr,ut({},t,{ref:n,icon:Yst}))},Qst=f.forwardRef(Xst),Zst={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"},Jst=function(t,n){return f.createElement(wr,ut({},t,{ref:n,icon:Zst}))},elt=f.forwardRef(Jst),tlt={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"},nlt=function(t,n){return f.createElement(wr,ut({},t,{ref:n,icon:tlt}))},rlt=f.forwardRef(nlt),ilt={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 372zm5.6-532.7c53 0 89 33.8 93 83.4.3 4.2 3.8 7.4 8 7.4h56.7c2.6 0 4.7-2.1 4.7-4.7 0-86.7-68.4-147.4-162.7-147.4C407.4 290 344 364.2 344 486.8v52.3C344 660.8 407.4 734 517.3 734c94 0 162.7-58.8 162.7-141.4 0-2.6-2.1-4.7-4.7-4.7h-56.8c-4.2 0-7.6 3.2-8 7.3-4.2 46.1-40.1 77.8-93 77.8-65.3 0-102.1-47.9-102.1-133.6v-52.6c.1-87 37-135.5 102.2-135.5z"}}]},name:"copyright",theme:"outlined"},olt=function(t,n){return f.createElement(wr,ut({},t,{ref:n,icon:ilt}))},alt=f.forwardRef(olt),hCe={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"},slt=function(t,n){return f.createElement(wr,ut({},t,{ref:n,icon:hCe}))},llt=f.forwardRef(slt),clt={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"},ult=function(t,n){return f.createElement(wr,ut({},t,{ref:n,icon:clt}))},dlt=f.forwardRef(ult),pCe={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"},flt=function(t,n){return f.createElement(wr,ut({},t,{ref:n,icon:pCe}))},hlt=f.forwardRef(flt),plt={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"},mlt=function(t,n){return f.createElement(wr,ut({},t,{ref:n,icon:plt}))},glt=f.forwardRef(mlt),mCe={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"},vlt=function(t,n){return f.createElement(wr,ut({},t,{ref:n,icon:mCe}))},gCe=f.forwardRef(vlt),ylt={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"},blt=function(t,n){return f.createElement(wr,ut({},t,{ref:n,icon:ylt}))},Slt=f.forwardRef(blt),Clt={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"},xlt=function(t,n){return f.createElement(wr,ut({},t,{ref:n,icon:Clt}))},wlt=f.forwardRef(xlt),_lt={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"},Elt=function(t,n){return f.createElement(wr,ut({},t,{ref:n,icon:_lt}))},Tlt=f.forwardRef(Elt),klt={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"},Olt=function(t,n){return f.createElement(wr,ut({},t,{ref:n,icon:klt}))},Plt=f.forwardRef(Olt),Mlt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z"}}]},name:"global",theme:"outlined"},Ilt={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"},$lt=function(t,n){return f.createElement(wr,ut({},t,{ref:n,icon:Ilt}))},Rlt=f.forwardRef($lt),Alt={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:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},Nlt=function(t,n){return f.createElement(wr,ut({},t,{ref:n,icon:Alt}))},Dlt=f.forwardRef(Nlt),Llt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"},Flt={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"},jlt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"},Blt=function(t,n){return f.createElement(wr,ut({},t,{ref:n,icon:jlt}))},Hlt=f.forwardRef(Blt),zlt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 512a48 48 0 1096 0 48 48 0 10-96 0zm200 0a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0zm661.2-173.6c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z"}}]},name:"message",theme:"outlined"},Ult={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"},Wlt=function(t,n){return f.createElement(wr,ut({},t,{ref:n,icon:Ult}))},Vlt=f.forwardRef(Wlt),Klt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M744 62H280c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h464c35.3 0 64-28.7 64-64V126c0-35.3-28.7-64-64-64zm-8 824H288V134h448v752zM472 784a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"mobile",theme:"outlined"},qlt={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"},Glt={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"},Ylt=function(t,n){return f.createElement(wr,ut({},t,{ref:n,icon:Glt}))},Xlt=f.forwardRef(Ylt),Qlt={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"},Zlt=function(t,n){return f.createElement(wr,ut({},t,{ref:n,icon:Qlt}))},Jlt=f.forwardRef(Zlt),ect={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"},tct=function(t,n){return f.createElement(wr,ut({},t,{ref:n,icon:ect}))},nct=f.forwardRef(tct),rct={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 708c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm62.9-219.5a48.3 48.3 0 00-30.9 44.8V620c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-21.5c0-23.1 6.7-45.9 19.9-64.9 12.9-18.6 30.9-32.8 52.1-40.9 34-13.1 56-41.6 56-72.7 0-44.1-43.1-80-96-80s-96 35.9-96 80v7.6c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V420c0-39.3 17.2-76 48.4-103.3C430.4 290.4 470 276 512 276s81.6 14.5 111.6 40.7C654.8 344 672 380.7 672 420c0 57.8-38.1 109.8-97.1 132.5z"}}]},name:"question-circle",theme:"filled"},ict={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"},oct=function(t,n){return f.createElement(wr,ut({},t,{ref:n,icon:ict}))},act=f.forwardRef(oct),sct={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 328a60 60 0 10120 0 60 60 0 10-120 0zM852 64H172c-17.7 0-32 14.3-32 32v660c0 17.7 14.3 32 32 32h680c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-32 660H204V128h616v596zM604 328a60 60 0 10120 0 60 60 0 10-120 0zm250.2 556H169.8c-16.5 0-29.8 14.3-29.8 32v36c0 4.4 3.3 8 7.4 8h729.1c4.1 0 7.4-3.6 7.4-8v-36c.1-17.7-13.2-32-29.7-32zM664 508H360c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"robot",theme:"outlined"},lct={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"},cct={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"},uct={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"},dct={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"},vCe={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"},fct=function(t,n){return f.createElement(wr,ut({},t,{ref:n,icon:vCe}))},hct=f.forwardRef(fct),pct={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"},mct={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"},gct={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 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:"upload",theme:"outlined"},vct={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"},yct={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"},bct=function(t,n){return f.createElement(wr,ut({},t,{ref:n,icon:yct}))},Sct=f.forwardRef(bct),Cct=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],yCe=f.forwardRef(function(e,t){var n=e.className,r=e.component,i=e.viewBox,o=e.spin,a=e.rotate,s=e.tabIndex,l=e.onClick,c=e.children,u=tn(e,Cct),d=f.useRef(),h=Qd(d,t);SF(!!(r||c),"Should have `component` prop or `children`."),Y1e(d);var p=f.useContext(wO),m=p.prefixCls,v=m===void 0?"anticon":m,y=p.rootClassName,S=Re(y,v,ae({},"".concat(v,"-spin"),!!o&&!!r),n),b=Re(ae({},"".concat(v,"-spin"),!!o)),C=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,_=G(G({},HHe),{},{className:b,style:C,viewBox:i});i||delete _.viewBox;var T=function(){return r?f.createElement(r,_,c):c?(SF(!!i||f.Children.count(c)===1&&f.isValidElement(c)&&f.Children.only(c).type==="use","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),f.createElement("svg",ut({},_,{viewBox:i}),c)):null},x=s;return x===void 0&&l&&(x=-1),f.createElement("span",ut({role:"img"},u,{ref:h,tabIndex:x,onClick:l,className:S}),T())});yCe.displayName="AntdIcon";var xct=["type","children"],bCe=new Set;function wct(e){return!!(typeof e=="string"&&e.length&&!bCe.has(e))}function nk(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e[t];if(wct(n)){var r=document.createElement("script");r.setAttribute("src",n),r.setAttribute("data-namespace",n),e.length>t+1&&(r.onload=function(){nk(e,t+1)},r.onerror=function(){nk(e,t+1)}),bCe.add(n),document.body.appendChild(r)}}function SCe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.scriptUrl,n=e.extraCommonProps,r=n===void 0?{}:n;t&&typeof document<"u"&&typeof window<"u"&&typeof document.createElement=="function"&&(Array.isArray(t)?nk(t.reverse()):nk([t]));var i=f.forwardRef(function(o,a){var s=o.type,l=o.children,c=tn(o,xct),u=null;return o.type&&(u=f.createElement("use",{xlinkHref:"#".concat(s)})),l&&(u=l),f.createElement(yCe,ut({},r,c,{ref:a}),u)});return i.displayName="Iconfont",i}const _ct=ge.createElement(Cl,null);function Ect(e){let{prefixCls:t,locale:n,onRefresh:r,statusRender:i,status:o}=e;const a=ge.createElement(ge.Fragment,null,ge.createElement("p",{className:`${t}-expired`},n==null?void 0:n.expired),r&&ge.createElement(hr,{type:"link",icon:ge.createElement(act,null),onClick:r},n==null?void 0:n.refresh)),s=ge.createElement("p",{className:`${t}-scanned`},n==null?void 0:n.scanned),l={expired:a,loading:_ct,scanned:s};return(i??(d=>l[d.status]))({status:o,locale:n,onRefresh:r})}const Tct=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorSplit:i}=e;return{[t]:Object.assign(Object.assign({},$r(e)),{display:"flex",justifyContent:"center",alignItems:"center",padding:e.paddingSM,backgroundColor:e.colorWhite,borderRadius:e.borderRadiusLG,border:`${je(n)} ${r} ${i}`,position:"relative",overflow:"hidden",[`& > ${t}-mask`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:10,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",color:e.colorText,lineHeight:e.lineHeight,background:e.QRCodeMaskBackgroundColor,textAlign:"center",[`& > ${t}-expired, & > ${t}-scanned`]:{color:e.QRCodeTextColor}},"> canvas":{alignSelf:"stretch",flex:"auto",minWidth:0},"&-icon":{marginBlockEnd:e.marginXS,fontSize:e.controlHeight}}),[`${t}-borderless`]:{borderColor:"transparent",padding:0,borderRadius:0}}},kct=e=>({QRCodeMaskBackgroundColor:new Cr(e.colorBgContainer).setA(.96).toRgbString()}),Oct=Tr("QRCode",e=>{const t=ur(e,{QRCodeTextColor:e.colorText});return Tct(t)},kct);var Pct=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 CCe=e=>{var t,n,r,i;const[,o]=na(),{value:a,type:s="canvas",icon:l="",size:c=160,iconSize:u,color:d=o.colorText,errorLevel:h="M",status:p="active",bordered:m=!0,onRefresh:v,style:y,className:S,rootClassName:b,prefixCls:C,bgColor:_="transparent",statusRender:T}=e,x=Pct(e,["value","type","icon","size","iconSize","color","errorLevel","status","bordered","onRefresh","style","className","rootClassName","prefixCls","bgColor","statusRender"]),{getPrefixCls:E}=f.useContext(hn),k=E("qrcode",C),[M,P,D]=Oct(k),R={src:l,x:void 0,y:void 0,height:typeof u=="number"?u:(t=u==null?void 0:u.height)!==null&&t!==void 0?t:40,width:typeof u=="number"?u:(n=u==null?void 0:u.width)!==null&&n!==void 0?n:40,excavate:!0,crossOrigin:"anonymous"},A=Hi(x,!0),H=Pr(x,Object.keys(A)),F=Object.assign({value:a,size:c,level:h,bgColor:_,fgColor:d,style:{width:y==null?void 0:y.width,height:y==null?void 0:y.height},imageSettings:l?R:void 0},A),[z]=Os("QRCode");if(!a)return null;const W=Re(k,S,b,P,D,{[`${k}-borderless`]:!m}),q=Object.assign(Object.assign({backgroundColor:_},y),{width:(r=y==null?void 0:y.width)!==null&&r!==void 0?r:c,height:(i=y==null?void 0:y.height)!==null&&i!==void 0?i:c});return M(ge.createElement("div",Object.assign({},H,{className:W,style:q}),p!=="active"&&ge.createElement("div",{className:`${k}-mask`},ge.createElement(Ect,{prefixCls:k,locale:z,status:p,onRefresh:v,statusRender:T})),s==="canvas"?ge.createElement(dCe,Object.assign({},F)):ge.createElement(fCe,Object.assign({},F))))};function Mct(e,t){var n=e.disabled,r=e.prefixCls,i=e.character,o=e.characterRender,a=e.index,s=e.count,l=e.value,c=e.allowHalf,u=e.focused,d=e.onHover,h=e.onClick,p=function(T){d(T,a)},m=function(T){h(T,a)},v=function(T){T.keyCode===Pt.ENTER&&h(T,a)},y=a+1,S=new Set([r]);l===0&&a===0&&u?S.add("".concat(r,"-focused")):c&&l+.5>=y&&l<y?(S.add("".concat(r,"-half")),S.add("".concat(r,"-active")),u&&S.add("".concat(r,"-focused"))):(y<=l?S.add("".concat(r,"-full")):S.add("".concat(r,"-zero")),y===l&&u&&S.add("".concat(r,"-focused")));var b=typeof i=="function"?i(e):i,C=ge.createElement("li",{className:Re(Array.from(S)),ref:t},ge.createElement("div",{onClick:n?null:m,onKeyDown:n?null:v,onMouseMove:n?null:p,role:"radio","aria-checked":l>a?"true":"false","aria-posinset":a+1,"aria-setsize":s,tabIndex:n?-1:0},ge.createElement("div",{className:"".concat(r,"-first")},b),ge.createElement("div",{className:"".concat(r,"-second")},b)));return o&&(C=o(C,e)),C}const Ict=ge.forwardRef(Mct);function $ct(){var e=f.useRef({});function t(r){return e.current[r]}function n(r){return function(i){e.current[r]=i}}return[t,n]}function Rct(e){var t=e.pageXOffset,n="scrollLeft";if(typeof t!="number"){var r=e.document;t=r.documentElement[n],typeof t!="number"&&(t=r.body[n])}return t}function Act(e){var t,n,r=e.ownerDocument,i=r.body,o=r&&r.documentElement,a=e.getBoundingClientRect();return t=a.left,n=a.top,t-=o.clientLeft||i.clientLeft||0,n-=o.clientTop||i.clientTop||0,{left:t,top:n}}function Nct(e){var t=Act(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=Rct(r),t.left}var Dct=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Lct(e,t){var n=e.prefixCls,r=n===void 0?"rc-rate":n,i=e.className,o=e.defaultValue,a=e.value,s=e.count,l=s===void 0?5:s,c=e.allowHalf,u=c===void 0?!1:c,d=e.allowClear,h=d===void 0?!0:d,p=e.keyboard,m=p===void 0?!0:p,v=e.character,y=v===void 0?"★":v,S=e.characterRender,b=e.disabled,C=e.direction,_=C===void 0?"ltr":C,T=e.tabIndex,x=T===void 0?0:T,E=e.autoFocus,k=e.onHoverChange,M=e.onChange,P=e.onFocus,D=e.onBlur,R=e.onKeyDown,A=e.onMouseLeave,H=tn(e,Dct),F=$ct(),z=Le(F,2),W=z[0],q=z[1],Z=ge.useRef(null),N=function(){if(!b){var J;(J=Z.current)===null||J===void 0||J.focus()}};ge.useImperativeHandle(t,function(){return{focus:N,blur:function(){if(!b){var J;(J=Z.current)===null||J===void 0||J.blur()}}}});var B=Jn(o||0,{value:a}),V=Le(B,2),Y=V[0],ie=V[1],ce=Jn(null),fe=Le(ce,2),ee=fe[0],ne=fe[1],ue=function(J,be){var Oe=_==="rtl",Se=J+1;if(u){var Ke=W(J),tt=Nct(Ke),se=Ke.clientWidth;(Oe&&be-tt>se/2||!Oe&&be-tt<se/2)&&(Se-=.5)}return Se},ye=function(J){ie(J),M==null||M(J)},me=ge.useState(!1),pe=Le(me,2),he=pe[0],_e=pe[1],le=function(){_e(!0),P==null||P()},xe=function(){_e(!1),D==null||D()},we=ge.useState(null),De=Le(we,2),Fe=De[0],Ce=De[1],Te=function(J,be){var Oe=ue(be,J.pageX);Oe!==ee&&(Ce(Oe),ne(null)),k==null||k(Oe)},ke=function(J){b||(Ce(null),ne(null),k==null||k(void 0)),J&&(A==null||A(J))},Pe=function(J,be){var Oe=ue(be,J.pageX),Se=!1;h&&(Se=Oe===Y),ke(),ye(Se?0:Oe),ne(Se?Oe:null)},Ne=function(J){var be=J.keyCode,Oe=_==="rtl",Se=u?.5:1;m&&(be===Pt.RIGHT&&Y<l&&!Oe?(ye(Y+Se),J.preventDefault()):be===Pt.LEFT&&Y>0&&!Oe||be===Pt.RIGHT&&Y>0&&Oe?(ye(Y-Se),J.preventDefault()):be===Pt.LEFT&&Y<l&&Oe&&(ye(Y+Se),J.preventDefault())),R==null||R(J)};ge.useEffect(function(){E&&!b&&N()},[]);var We=new Array(l).fill(0).map(function(K,J){return ge.createElement(Ict,{ref:q(J),index:J,count:l,disabled:b,prefixCls:"".concat(r,"-star"),allowHalf:u,value:Fe===null?Y:Fe,onClick:Pe,onHover:Te,key:K||J,character:y,characterRender:S,focused:he})}),Q=Re(r,i,ae(ae({},"".concat(r,"-disabled"),b),"".concat(r,"-rtl"),_==="rtl"));return ge.createElement("ul",ut({className:Q,onMouseLeave:ke,tabIndex:b?-1:x,onFocus:b?null:le,onBlur:b?null:xe,onKeyDown:b?null:Ne,ref:Z,role:"radiogroup"},Hi(H,{aria:!0,data:!0,attr:!0})),We)}const Fct=ge.forwardRef(Lct),jct=e=>{const{componentCls:t}=e;return{[`${t}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:e.marginXS},"> div":{transition:`all ${e.motionDurationMid}, outline 0s`,"&:hover":{transform:e.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${je(e.lineWidth)} dashed ${e.starColor}`,transform:e.starHoverScale}},"&-first, &-second":{color:e.starBg,transition:`all ${e.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${t}-star-first, &-half ${t}-star-second`]:{opacity:1},[`&-half ${t}-star-first, &-full ${t}-star-second`]:{color:"inherit"}}}},Bct=e=>({[`&-rtl${e.componentCls}`]:{direction:"rtl"}}),Hct=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},$r(e)),{display:"inline-block",margin:0,padding:0,color:e.starColor,fontSize:e.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${t} ${t}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),jct(e)),Bct(e))}},zct=e=>({starColor:e.yellow6,starSize:e.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:e.colorFillContent}),Uct=Tr("Rate",e=>{const t=ur(e,{});return[Hct(t)]},zct);var Wct=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 Vte=f.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:o,tooltips:a,character:s=f.createElement(hct,null),disabled:l}=e,c=Wct(e,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),u=(T,x)=>{let{index:E}=x;return a?f.createElement(ta,{title:a[E]},T):T},{getPrefixCls:d,direction:h,rate:p}=f.useContext(hn),m=d("rate",n),[v,y,S]=Uct(m),b=Object.assign(Object.assign({},p==null?void 0:p.style),o),C=f.useContext(ea),_=l??C;return v(f.createElement(Fct,Object.assign({ref:t,character:s,characterRender:u,disabled:_},c,{className:Re(r,i,y,S,p==null?void 0:p.className),style:b,prefixCls:m,direction:h})))}),Vct=()=>f.createElement("svg",{width:"252",height:"294"},f.createElement("title",null,"No Found"),f.createElement("defs",null,f.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),f.createElement("g",{fill:"none",fillRule:"evenodd"},f.createElement("g",{transform:"translate(0 .012)"},f.createElement("mask",{fill:"#fff"}),f.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)"})),f.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"}),f.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),f.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"}),f.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"}),f.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),f.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),f.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"}),f.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),f.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"}),f.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"}),f.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),f.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),f.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"}),f.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),f.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"}),f.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}))),Kct=()=>f.createElement("svg",{width:"254",height:"294"},f.createElement("title",null,"Server Error"),f.createElement("defs",null,f.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),f.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),f.createElement("g",{fill:"none",fillRule:"evenodd"},f.createElement("g",{transform:"translate(0 .067)"},f.createElement("mask",{fill:"#fff"}),f.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)"})),f.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"}),f.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),f.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),f.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"}),f.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),f.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),f.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"}),f.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"}),f.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"}),f.createElement("mask",{fill:"#fff"}),f.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),f.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)"}),f.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)"}),f.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)"}),f.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)"}),f.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)"}),f.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)"}),f.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),f.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)"}),f.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)"}),f.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)"}))),qct=e=>{const{componentCls:t,lineHeightHeading3:n,iconCls:r,padding:i,paddingXL:o,paddingXS:a,paddingLG:s,marginXS:l,lineHeight:c}=e;return{[t]:{padding:`${je(e.calc(s).mul(2).equal())} ${je(o)}`,"&-rtl":{direction:"rtl"}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${t} ${t}-icon`]:{marginBottom:s,textAlign:"center",[`& > ${r}`]:{fontSize:e.iconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.titleFontSize,lineHeight:n,marginBlock:l,textAlign:"center"},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.subtitleFontSize,lineHeight:c,textAlign:"center"},[`${t} ${t}-content`]:{marginTop:s,padding:`${je(s)} ${je(e.calc(i).mul(2.5).equal())}`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.extraMargin,textAlign:"center","& > *":{marginInlineEnd:a,"&:last-child":{marginInlineEnd:0}}}}},Gct=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}}},Yct=e=>[qct(e),Gct(e)],Xct=e=>Yct(e),Qct=e=>({titleFontSize:e.fontSizeHeading3,subtitleFontSize:e.fontSize,iconFontSize:e.fontSizeHeading3*3,extraMargin:`${e.paddingLG}px 0 0 0`}),Zct=Tr("Result",e=>{const t=e.colorInfo,n=e.colorError,r=e.colorSuccess,i=e.colorWarning,o=ur(e,{resultInfoIconColor:t,resultErrorIconColor:n,resultSuccessIconColor:r,resultWarningIconColor:i,imageWidth:250,imageHeight:295});return[Xct(o)]},Qct),Jct=()=>f.createElement("svg",{width:"251",height:"294"},f.createElement("title",null,"Unauthorized"),f.createElement("g",{fill:"none",fillRule:"evenodd"},f.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"}),f.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"}),f.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),f.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"}),f.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"}),f.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),f.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"}),f.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"}),f.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"}),f.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"}),f.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),f.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),f.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),f.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"}),f.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),f.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),f.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}),f.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),f.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"}),f.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"}),f.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"}),f.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"}),f.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"}))),eut={success:Gv,error:th,info:gg,warning:Sct},jE={404:Vct,500:Kct,403:Jct},tut=Object.keys(jE),nut=e=>{let{prefixCls:t,icon:n,status:r}=e;const i=Re(`${t}-icon`);if(tut.includes(`${r}`)){const a=jE[r];return f.createElement("div",{className:`${i} ${t}-image`},f.createElement(a,null))}const o=f.createElement(eut[r]);return n===null||n===!1?null:f.createElement("div",{className:i},n||o)},rut=e=>{let{prefixCls:t,extra:n}=e;return n?f.createElement("div",{className:`${t}-extra`},n):null},BE=e=>{let{prefixCls:t,className:n,rootClassName:r,subTitle:i,title:o,style:a,children:s,status:l="info",icon:c,extra:u}=e;const{getPrefixCls:d,direction:h,result:p}=f.useContext(hn),m=d("result",t),[v,y,S]=Zct(m),b=Re(m,`${m}-${l}`,n,p==null?void 0:p.className,r,{[`${m}-rtl`]:h==="rtl"},y,S),C=Object.assign(Object.assign({},p==null?void 0:p.style),a);return v(f.createElement("div",{className:b,style:C},f.createElement(nut,{prefixCls:m,status:l,icon:c}),f.createElement("div",{className:`${m}-title`},o),i&&f.createElement("div",{className:`${m}-subtitle`},i),f.createElement(rut,{prefixCls:m,extra:u}),s&&f.createElement("div",{className:`${m}-content`},s)))};BE.PRESENTED_IMAGE_403=jE[403];BE.PRESENTED_IMAGE_404=jE[404];BE.PRESENTED_IMAGE_500=jE[500];var iut=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],xCe=f.forwardRef(function(e,t){var n,r=e.prefixCls,i=r===void 0?"rc-switch":r,o=e.className,a=e.checked,s=e.defaultChecked,l=e.disabled,c=e.loadingIcon,u=e.checkedChildren,d=e.unCheckedChildren,h=e.onClick,p=e.onChange,m=e.onKeyDown,v=tn(e,iut),y=Jn(!1,{value:a,defaultValue:s}),S=Le(y,2),b=S[0],C=S[1];function _(k,M){var P=b;return l||(P=k,C(P),p==null||p(P,M)),P}function T(k){k.which===Pt.LEFT?_(!1,k):k.which===Pt.RIGHT&&_(!0,k),m==null||m(k)}function x(k){var M=_(!b,k);h==null||h(M,k)}var E=Re(i,o,(n={},ae(n,"".concat(i,"-checked"),b),ae(n,"".concat(i,"-disabled"),l),n));return f.createElement("button",ut({},v,{type:"button",role:"switch","aria-checked":b,disabled:l,className:E,ref:t,onKeyDown:T,onClick:x}),c,f.createElement("span",{className:"".concat(i,"-inner")},f.createElement("span",{className:"".concat(i,"-inner-checked")},u),f.createElement("span",{className:"".concat(i,"-inner-unchecked")},d)))});xCe.displayName="Switch";const out=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:i,innerMinMarginSM:o,innerMaxMarginSM:a,handleSizeSM:s,calc:l}=e,c=`${t}-inner`,u=je(l(s).add(l(r).mul(2)).equal()),d=je(l(a).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:i,height:n,lineHeight:je(n),[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:o,[`${c}-checked, ${c}-unchecked`]:{minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${c}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:l(l(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${je(l(s).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(e.marginXXS).div(2).equal(),marginInlineEnd:l(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:l(e.marginXXS).div(2).equal()}}}}}}},aut=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},sut=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:i,handleSize:o,calc:a}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:n,insetInlineStart:n,width:o,height:o,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:a(o).div(2).equal(),boxShadow:i,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${je(a(o).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},lut=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:i,innerMaxMargin:o,handleSize:a,calc:s}=e,l=`${t}-inner`,c=je(s(a).add(s(r).mul(2)).equal()),u=je(s(o).mul(2).equal());return{[t]:{[l]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:o,paddingInlineEnd:i,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${l}-checked, ${l}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${c} - ${u})`,marginInlineEnd:`calc(100% - ${c} + ${u})`},[`${l}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${l}`]:{paddingInlineStart:i,paddingInlineEnd:o,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${c} + ${u})`,marginInlineEnd:`calc(-100% + ${c} - ${u})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:s(r).mul(2).equal(),marginInlineEnd:s(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:s(r).mul(-1).mul(2).equal(),marginInlineEnd:s(r).mul(2).equal()}}}}}},cut=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},$r(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:je(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),gl(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},uut=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:i}=e,o=t*n,a=r/2,s=2,l=o-s*2,c=a-s*2;return{trackHeight:o,trackHeightSM:a,trackMinWidth:l*2+s*4,trackMinWidthSM:c*2+s*2,trackPadding:s,handleBg:i,handleSize:l,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new Cr("#00230b").setA(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+s+s*2,innerMinMarginSM:c/2,innerMaxMarginSM:c+s+s*2}},dut=Tr("Switch",e=>{const t=ur(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[cut(t),lut(t),sut(t),aut(t),out(t)]},uut);var fut=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 hut=f.forwardRef((e,t)=>{const{prefixCls:n,size:r,disabled:i,loading:o,className:a,rootClassName:s,style:l,checked:c,value:u,defaultChecked:d,defaultValue:h,onChange:p}=e,m=fut(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[v,y]=Jn(!1,{value:c??u,defaultValue:d??h}),{getPrefixCls:S,direction:b,switch:C}=f.useContext(hn),_=f.useContext(ea),T=(i??_)||o,x=S("switch",n),E=f.createElement("div",{className:`${x}-handle`},o&&f.createElement(Bd,{className:`${x}-loading-icon`})),[k,M,P]=dut(x),D=Ro(r),R=Re(C==null?void 0:C.className,{[`${x}-small`]:D==="small",[`${x}-loading`]:o,[`${x}-rtl`]:b==="rtl"},a,s,M,P),A=Object.assign(Object.assign({},C==null?void 0:C.style),l),H=function(){y(arguments.length<=0?void 0:arguments[0]),p==null||p.apply(void 0,arguments)};return k(f.createElement(yE,{component:"Switch"},f.createElement(xCe,Object.assign({},m,{checked:v,onChange:H,prefixCls:x,className:R,style:A,disabled:T,ref:t,loadingIcon:E}))))}),rk=hut;rk.__ANT_SWITCH=!0;var Lh={},HE="rc-table-internal-hook";function JW(e){var t=f.createContext(void 0),n=function(i){var o=i.value,a=i.children,s=f.useRef(o);s.current=o;var l=f.useState(function(){return{getValue:function(){return s.current},listeners:new Set}}),c=Le(l,1),u=c[0];return Er(function(){Nc.unstable_batchedUpdates(function(){u.listeners.forEach(function(d){d(o)})})},[o]),f.createElement(t.Provider,{value:u},a)};return{Context:t,Provider:n,defaultValue:e}}function _s(e,t){var n=cr(typeof t=="function"?t:function(d){if(t===void 0)return d;if(!Array.isArray(t))return d[t];var h={};return t.forEach(function(p){h[p]=d[p]}),h}),r=f.useContext(e==null?void 0:e.Context),i=r||{},o=i.listeners,a=i.getValue,s=f.useRef();s.current=n(r?a():e==null?void 0:e.defaultValue);var l=f.useState({}),c=Le(l,2),u=c[1];return Er(function(){if(!r)return;function d(h){var p=n(h);ku(s.current,p,!0)||u({})}return o.add(d),function(){o.delete(d)}},[r]),s.current}function put(){var e=f.createContext(null);function t(){return f.useContext(e)}function n(i,o){var a=Ld(i),s=function(c,u){var d=a?{ref:u}:{},h=f.useRef(0),p=f.useRef(c),m=t();return m!==null?f.createElement(i,ut({},c,d)):((!o||o(p.current,c))&&(h.current+=1),p.current=c,f.createElement(e.Provider,{value:h.current},f.createElement(i,ut({},c,d))))};return a?f.forwardRef(s):s}function r(i,o){var a=Ld(i),s=function(c,u){var d=a?{ref:u}:{};return t(),f.createElement(i,ut({},c,d))};return a?f.memo(f.forwardRef(s),o):f.memo(s,o)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var eV=put(),wCe=eV.makeImmutable,sC=eV.responseImmutable,mut=eV.useImmutableMark,xl=JW(),_Ce=f.createContext({renderWithProps:!1}),gut="RC_TABLE_KEY";function vut(e){return e==null?[]:Array.isArray(e)?e:[e]}function xP(e){var t=[],n={};return e.forEach(function(r){for(var i=r||{},o=i.key,a=i.dataIndex,s=o||vut(a).join("-")||gut;n[s];)s="".concat(s,"_next");n[s]=!0,t.push(s)}),t}function cj(e){return e!=null}function yut(e){return typeof e=="number"&&!Number.isNaN(e)}function but(e){return e&&ln(e)==="object"&&!Array.isArray(e)&&!f.isValidElement(e)}function Sut(e,t,n,r,i,o){var a=f.useContext(_Ce),s=mut(),l=dp(function(){if(cj(r))return[r];var c=t==null||t===""?[]:Array.isArray(t)?t:[t],u=Bo(e,c),d=u,h=void 0;if(i){var p=i(u,e,n);but(p)?(d=p.children,h=p.props,a.renderWithProps=!0):d=p}return[d,h]},[s,e,r,t,i,n],function(c,u){if(o){var d=Le(c,2),h=d[1],p=Le(u,2),m=p[1];return o(m,h)}return a.renderWithProps?!0:!ku(c,u,!0)});return l}function Cut(e,t,n,r){var i=e+t-1;return e<=r&&i>=n}function xut(e,t){return _s(xl,function(n){var r=Cut(e,t||1,n.hoverStartRow,n.hoverEndRow);return[r,n.onHover]})}var wut=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():f.isValidElement(i)&&typeof i.props.children=="string"&&(o=i.props.children)),o};function _ut(e){var t,n,r,i,o,a,s,l,c=e.component,u=e.children,d=e.ellipsis,h=e.scope,p=e.prefixCls,m=e.className,v=e.align,y=e.record,S=e.render,b=e.dataIndex,C=e.renderIndex,_=e.shouldCellUpdate,T=e.index,x=e.rowType,E=e.colSpan,k=e.rowSpan,M=e.fixLeft,P=e.fixRight,D=e.firstFixLeft,R=e.lastFixLeft,A=e.firstFixRight,H=e.lastFixRight,F=e.appendNode,z=e.additionalProps,W=z===void 0?{}:z,q=e.isSticky,Z="".concat(p,"-cell"),N=_s(xl,["supportSticky","allColumnsFixedLeft","rowHoverable"]),B=N.supportSticky,V=N.allColumnsFixedLeft,Y=N.rowHoverable,ie=Sut(y,b,C,u,S,_),ce=Le(ie,2),fe=ce[0],ee=ce[1],ne={},ue=typeof M=="number"&&B,ye=typeof P=="number"&&B;ue&&(ne.position="sticky",ne.left=M),ye&&(ne.position="sticky",ne.right=P);var me=(t=(n=(r=ee==null?void 0:ee.colSpan)!==null&&r!==void 0?r:W.colSpan)!==null&&n!==void 0?n:E)!==null&&t!==void 0?t:1,pe=(i=(o=(a=ee==null?void 0:ee.rowSpan)!==null&&a!==void 0?a:W.rowSpan)!==null&&o!==void 0?o:k)!==null&&i!==void 0?i:1,he=xut(T,pe),_e=Le(he,2),le=_e[0],xe=_e[1],we=cr(function(Ne){var We;y&&xe(T,T+pe-1),W==null||(We=W.onMouseEnter)===null||We===void 0||We.call(W,Ne)}),De=cr(function(Ne){var We;y&&xe(-1,-1),W==null||(We=W.onMouseLeave)===null||We===void 0||We.call(W,Ne)});if(me===0||pe===0)return null;var Fe=(s=W.title)!==null&&s!==void 0?s:wut({rowType:x,ellipsis:d,children:fe}),Ce=Re(Z,m,(l={},ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(l,"".concat(Z,"-fix-left"),ue&&B),"".concat(Z,"-fix-left-first"),D&&B),"".concat(Z,"-fix-left-last"),R&&B),"".concat(Z,"-fix-left-all"),R&&V&&B),"".concat(Z,"-fix-right"),ye&&B),"".concat(Z,"-fix-right-first"),A&&B),"".concat(Z,"-fix-right-last"),H&&B),"".concat(Z,"-ellipsis"),d),"".concat(Z,"-with-append"),F),"".concat(Z,"-fix-sticky"),(ue||ye)&&q&&B),ae(l,"".concat(Z,"-row-hover"),!ee&&le)),W.className,ee==null?void 0:ee.className),Te={};v&&(Te.textAlign=v);var ke=G(G(G(G({},ee==null?void 0:ee.style),ne),Te),W.style),Pe=fe;return ln(Pe)==="object"&&!Array.isArray(Pe)&&!f.isValidElement(Pe)&&(Pe=null),d&&(R||A)&&(Pe=f.createElement("span",{className:"".concat(Z,"-content")},Pe)),f.createElement(c,ut({},ee,W,{className:Ce,style:ke,title:Fe,scope:h,onMouseEnter:Y?we:void 0,onMouseLeave:Y?De:void 0,colSpan:me!==1?me:null,rowSpan:pe!==1?pe:null}),F,Pe)}const lC=f.memo(_ut);function tV(e,t,n,r,i){var o=n[e]||{},a=n[t]||{},s,l;o.fixed==="left"?s=r.left[i==="rtl"?t:e]:a.fixed==="right"&&(l=r.right[i==="rtl"?e:t]);var c=!1,u=!1,d=!1,h=!1,p=n[t+1],m=n[e-1],v=p&&!p.fixed||m&&!m.fixed||n.every(function(_){return _.fixed==="left"});if(i==="rtl"){if(s!==void 0){var y=m&&m.fixed==="left";h=!y&&v}else if(l!==void 0){var S=p&&p.fixed==="right";d=!S&&v}}else if(s!==void 0){var b=p&&p.fixed==="left";c=!b&&v}else if(l!==void 0){var C=m&&m.fixed==="right";u=!C&&v}return{fixLeft:s,fixRight:l,lastFixLeft:c,firstFixRight:u,lastFixRight:d,firstFixLeft:h,isSticky:r.isSticky}}var ECe=f.createContext({});function Eut(e){var t=e.className,n=e.index,r=e.children,i=e.colSpan,o=i===void 0?1:i,a=e.rowSpan,s=e.align,l=_s(xl,["prefixCls","direction"]),c=l.prefixCls,u=l.direction,d=f.useContext(ECe),h=d.scrollColumnIndex,p=d.stickyOffsets,m=d.flattenColumns,v=n+o-1,y=v+1===h?o+1:o,S=tV(n,n+y-1,m,p,u);return f.createElement(lC,ut({className:t,index:n,component:"td",prefixCls:c,record:null,dataIndex:null,align:s,colSpan:y,rowSpan:a,render:function(){return r}},S))}var Tut=["children"];function kut(e){var t=e.children,n=tn(e,Tut);return f.createElement("tr",n,t)}function wP(e){var t=e.children;return t}wP.Row=kut;wP.Cell=Eut;function Out(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,i=_s(xl,"prefixCls"),o=r.length-1,a=r[o],s=f.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:a!=null&&a.scrollbar?o:null}},[a,r,o,n]);return f.createElement(ECe.Provider,{value:s},f.createElement("tfoot",{className:"".concat(i,"-summary")},t))}const r5=sC(Out);var TCe=wP;function Put(e){return null}function Mut(e){return null}function kCe(e,t,n,r,i,o,a){e.push({record:t,indent:n,index:a});var s=o(t),l=i==null?void 0:i.has(s);if(t&&Array.isArray(t[r])&&l)for(var c=0;c<t[r].length;c+=1)kCe(e,t[r][c],n+1,r,i,o,c)}function OCe(e,t,n,r){var i=f.useMemo(function(){if(n!=null&&n.size){for(var o=[],a=0;a<(e==null?void 0:e.length);a+=1){var s=e[a];kCe(o,s,0,t,n,r,a)}return o}return e==null?void 0:e.map(function(l,c){return{record:l,indent:0,index:c}})},[e,t,n,r]);return i}function PCe(e,t,n,r){var i=_s(xl,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),o=i.flattenColumns,a=i.expandableType,s=i.expandedKeys,l=i.childrenColumnName,c=i.onTriggerExpand,u=i.rowExpandable,d=i.onRow,h=i.expandRowByClick,p=i.rowClassName,m=a==="nest",v=a==="row"&&(!u||u(e)),y=v||m,S=s&&s.has(t),b=l&&e&&e[l],C=cr(c),_=d==null?void 0:d(e,n),T=_==null?void 0:_.onClick,x=function(P){h&&y&&c(e,P);for(var D=arguments.length,R=new Array(D>1?D-1:0),A=1;A<D;A++)R[A-1]=arguments[A];T==null||T.apply(void 0,[P].concat(R))},E;typeof p=="string"?E=p:typeof p=="function"&&(E=p(e,n,r));var k=xP(o);return G(G({},i),{},{columnsKey:k,nestExpandable:m,expanded:S,hasNestChildren:b,record:e,onTriggerExpand:C,rowSupportExpand:v,expandable:y,rowProps:G(G({},_),{},{className:Re(E,_==null?void 0:_.className),onClick:x})})}function MCe(e){var t=e.prefixCls,n=e.children,r=e.component,i=e.cellComponent,o=e.className,a=e.expanded,s=e.colSpan,l=e.isEmpty,c=_s(xl,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),u=c.scrollbarSize,d=c.fixHeader,h=c.fixColumn,p=c.componentWidth,m=c.horizonScroll,v=n;return(l?m&&p:h)&&(v=f.createElement("div",{style:{width:p-(d&&!l?u:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},v)),f.createElement(r,{className:o,style:{display:a?null:"none"}},f.createElement(lC,{component:i,prefixCls:t,colSpan:s},v))}function Iut(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 f.createElement("span",{className:Re(a,"".concat(t,"-row-spaced"))});var s=function(c){r(n,c),c.stopPropagation()};return f.createElement("span",{className:Re(a,ae(ae({},"".concat(t,"-row-expanded"),i),"".concat(t,"-row-collapsed"),!i)),onClick:s})}function $ut(e,t,n){var r=[];function i(o){(o||[]).forEach(function(a,s){r.push(t(a,s)),i(a[n])})}return i(e),r}function ICe(e,t,n,r){return typeof e=="string"?e:typeof e=="function"?e(t,n,r):""}function $Ce(e,t,n,r,i){var o=e.record,a=e.prefixCls,s=e.columnsKey,l=e.fixedInfoList,c=e.expandIconColumnIndex,u=e.nestExpandable,d=e.indentSize,h=e.expandIcon,p=e.expanded,m=e.hasNestChildren,v=e.onTriggerExpand,y=s[n],S=l[n],b;n===(c||0)&&u&&(b=f.createElement(f.Fragment,null,f.createElement("span",{style:{paddingLeft:"".concat(d*r,"px")},className:"".concat(a,"-row-indent indent-level-").concat(r)}),h({prefixCls:a,expanded:p,expandable:m,record:o,onExpand:v})));var C;return t.onCell&&(C=t.onCell(o,i)),{key:y,fixedInfo:S,appendCellNode:b,additionalCellProps:C||{}}}function Rut(e){var t=e.className,n=e.style,r=e.record,i=e.index,o=e.renderIndex,a=e.rowKey,s=e.indent,l=s===void 0?0:s,c=e.rowComponent,u=e.cellComponent,d=e.scopeCellComponent,h=PCe(r,a,i,l),p=h.prefixCls,m=h.flattenColumns,v=h.expandedRowClassName,y=h.expandedRowRender,S=h.rowProps,b=h.expanded,C=h.rowSupportExpand,_=f.useRef(!1);_.current||(_.current=b);var T=ICe(v,r,i,l),x=f.createElement(c,ut({},S,{"data-row-key":a,className:Re(t,"".concat(p,"-row"),"".concat(p,"-row-level-").concat(l),S==null?void 0:S.className,ae({},T,l>=1)),style:G(G({},n),S==null?void 0:S.style)}),m.map(function(M,P){var D=M.render,R=M.dataIndex,A=M.className,H=$Ce(h,M,P,l,i),F=H.key,z=H.fixedInfo,W=H.appendCellNode,q=H.additionalCellProps;return f.createElement(lC,ut({className:A,ellipsis:M.ellipsis,align:M.align,scope:M.rowScope,component:M.rowScope?d:u,prefixCls:p,key:F,record:r,index:i,renderIndex:o,dataIndex:R,render:D,shouldCellUpdate:M.shouldCellUpdate},z,{appendNode:W,additionalProps:q}))})),E;if(C&&(_.current||b)){var k=y(r,i,l+1,b);E=f.createElement(MCe,{expanded:b,className:Re("".concat(p,"-expanded-row"),"".concat(p,"-expanded-row-level-").concat(l+1),T),prefixCls:p,component:c,cellComponent:u,colSpan:m.length,isEmpty:!1},k)}return f.createElement(f.Fragment,null,x,E)}const Aut=sC(Rut);function Nut(e){var t=e.columnKey,n=e.onColumnResize,r=f.useRef();return f.useEffect(function(){r.current&&n(t,r.current.offsetWidth)},[]),f.createElement(Va,{data:t},f.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},f.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function Dut(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize;return f.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0}},f.createElement(Va.Collection,{onBatchResize:function(o){o.forEach(function(a){var s=a.data,l=a.size;r(s,l.offsetWidth)})}},n.map(function(i){return f.createElement(Nut,{key:i,columnKey:i,onColumnResize:r})})))}function Lut(e){var t=e.data,n=e.measureColumnWidth,r=_s(xl,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),i=r.prefixCls,o=r.getComponent,a=r.onColumnResize,s=r.flattenColumns,l=r.getRowKey,c=r.expandedKeys,u=r.childrenColumnName,d=r.emptyNode,h=OCe(t,u,c,l),p=f.useRef({renderWithProps:!1}),m=o(["body","wrapper"],"tbody"),v=o(["body","row"],"tr"),y=o(["body","cell"],"td"),S=o(["body","cell"],"th"),b;t.length?b=h.map(function(_,T){var x=_.record,E=_.indent,k=_.index,M=l(x,T);return f.createElement(Aut,{key:M,rowKey:M,record:x,index:T,renderIndex:k,rowComponent:v,cellComponent:y,scopeCellComponent:S,indent:E})}):b=f.createElement(MCe,{expanded:!0,className:"".concat(i,"-placeholder"),prefixCls:i,component:v,cellComponent:y,colSpan:s.length,isEmpty:!0},d);var C=xP(s);return f.createElement(_Ce.Provider,{value:p.current},f.createElement(m,{className:"".concat(i,"-tbody")},n&&f.createElement(Dut,{prefixCls:i,columnsKey:C,onColumnResize:a}),b))}const Fut=sC(Lut);var jut=["expandable"],ow="RC_TABLE_INTERNAL_COL_DEFINE";function But(e){var t=e.expandable,n=tn(e,jut),r;return"expandable"in e?r=G(G({},n),t):r=n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}var Hut=["columnType"];function RCe(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,i=_s(xl,["tableLayout"]),o=i.tableLayout,a=[],s=r||n.length,l=!1,c=s-1;c>=0;c-=1){var u=t[c],d=n&&n[c],h=void 0,p=void 0;if(d&&(h=d[ow],o==="auto"&&(p=d.minWidth)),u||p||h||l){var m=h||{};m.columnType;var v=tn(m,Hut);a.unshift(f.createElement("col",ut({key:c,style:{width:u,minWidth:p}},v))),l=!0}}return f.createElement("colgroup",null,a)}var zut=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Uut(e,t){return f.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 Wut=f.forwardRef(function(e,t){var n=e.className,r=e.noData,i=e.columns,o=e.flattenColumns,a=e.colWidths,s=e.columCount,l=e.stickyOffsets,c=e.direction,u=e.fixHeader,d=e.stickyTopOffset,h=e.stickyBottomOffset,p=e.stickyClassName,m=e.onScroll,v=e.maxContentScroll,y=e.children,S=tn(e,zut),b=_s(xl,["prefixCls","scrollbarSize","isSticky","getComponent"]),C=b.prefixCls,_=b.scrollbarSize,T=b.isSticky,x=b.getComponent,E=x(["header","table"],"table"),k=T&&!u?0:_,M=f.useRef(null),P=f.useCallback(function(q){i_(t,q),i_(M,q)},[]);f.useEffect(function(){var q;function Z(N){var B=N,V=B.currentTarget,Y=B.deltaX;Y&&(m({currentTarget:V,scrollLeft:V.scrollLeft+Y}),N.preventDefault())}return(q=M.current)===null||q===void 0||q.addEventListener("wheel",Z,{passive:!1}),function(){var N;(N=M.current)===null||N===void 0||N.removeEventListener("wheel",Z)}},[]);var D=f.useMemo(function(){return o.every(function(q){return q.width})},[o]),R=o[o.length-1],A={fixed:R?R.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(C,"-cell-scrollbar")}}},H=f.useMemo(function(){return k?[].concat(pt(i),[A]):i},[k,i]),F=f.useMemo(function(){return k?[].concat(pt(o),[A]):o},[k,o]),z=f.useMemo(function(){var q=l.right,Z=l.left;return G(G({},l),{},{left:c==="rtl"?[].concat(pt(Z.map(function(N){return N+k})),[0]):Z,right:c==="rtl"?q:[].concat(pt(q.map(function(N){return N+k})),[0]),isSticky:T})},[k,l,T]),W=Uut(a,s);return f.createElement("div",{style:G({overflow:"hidden"},T?{top:d,bottom:h}:{}),ref:P,className:Re(n,ae({},p,!!p))},f.createElement(E,{style:{tableLayout:"fixed",visibility:r||W?null:"hidden"}},(!r||!v||D)&&f.createElement(RCe,{colWidths:W?[].concat(pt(W),[k]):[],columCount:s+1,columns:F}),y(G(G({},S),{},{stickyOffsets:z,columns:H,flattenColumns:F}))))});const Kte=f.memo(Wut);var Vut=function(t){var n=t.cells,r=t.stickyOffsets,i=t.flattenColumns,o=t.rowComponent,a=t.cellComponent,s=t.onHeaderRow,l=t.index,c=_s(xl,["prefixCls","direction"]),u=c.prefixCls,d=c.direction,h;s&&(h=s(n.map(function(m){return m.column}),l));var p=xP(n.map(function(m){return m.column}));return f.createElement(o,h,n.map(function(m,v){var y=m.column,S=tV(m.colStart,m.colEnd,i,r,d),b;return y&&y.onHeaderCell&&(b=m.column.onHeaderCell(y)),f.createElement(lC,ut({},m,{scope:y.title?m.colSpan>1?"colgroup":"col":null,ellipsis:y.ellipsis,align:y.align,component:a,prefixCls:u,key:p[v]},S,{additionalProps:b,rowType:"header"}))}))};function Kut(e){var t=[];function n(a,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[l]=t[l]||[];var c=s,u=a.filter(Boolean).map(function(d){var h={key:d.key,className:d.className||"",children:d.title,column:d,colStart:c},p=1,m=d.children;return m&&m.length>0&&(p=n(m,c,l+1).reduce(function(v,y){return v+y},0),h.hasSubColumns=!0),"colSpan"in d&&(p=d.colSpan),"rowSpan"in d&&(h.rowSpan=d.rowSpan),h.colSpan=p,h.colEnd=h.colStart+p-1,t[l].push(h),c+=p,p});return u}n(e,0);for(var r=t.length,i=function(s){t[s].forEach(function(l){!("rowSpan"in l)&&!l.hasSubColumns&&(l.rowSpan=r-s)})},o=0;o<r;o+=1)i(o);return t}var qut=function(t){var n=t.stickyOffsets,r=t.columns,i=t.flattenColumns,o=t.onHeaderRow,a=_s(xl,["prefixCls","getComponent"]),s=a.prefixCls,l=a.getComponent,c=f.useMemo(function(){return Kut(r)},[r]),u=l(["header","wrapper"],"thead"),d=l(["header","row"],"tr"),h=l(["header","cell"],"th");return f.createElement(u,{className:"".concat(s,"-thead")},c.map(function(p,m){var v=f.createElement(Vut,{key:m,flattenColumns:i,cells:p,stickyOffsets:n,rowComponent:d,cellComponent:h,onHeaderRow:o,index:m});return v}))};const qte=sC(qut);function Gte(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 Gut(e,t,n){return f.useMemo(function(){if(t&&t>0){var r=0,i=0;e.forEach(function(h){var p=Gte(t,h.width);p?r+=p:i+=1});var o=Math.max(t,n),a=Math.max(o-r,i),s=i,l=a/i,c=0,u=e.map(function(h){var p=G({},h),m=Gte(t,p.width);if(m)p.width=m;else{var v=Math.floor(l);p.width=s===1?a:v,a-=v,s-=1}return c+=p.width,p});if(c<o){var d=o/c;a=o,u.forEach(function(h,p){var m=Math.floor(h.width*d);h.width=p===u.length-1?a:m,a-=m})}return[u,Math.max(c,o)]}return[e,t]},[e,t,n])}var Yut=["children"],Xut=["fixed"];function nV(e){return Uo(e).filter(function(t){return f.isValidElement(t)}).map(function(t){var n=t.key,r=t.props,i=r.children,o=tn(r,Yut),a=G({key:n},o);return i&&(a.children=nV(i)),a})}function ACe(e){return e.filter(function(t){return t&&ln(t)==="object"&&!t.hidden}).map(function(t){var n=t.children;return n&&n.length>0?G(G({},t),{},{children:ACe(n)}):t})}function uj(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(n){return n&&ln(n)==="object"}).reduce(function(n,r,i){var o=r.fixed,a=o===!0?"left":o,s="".concat(t,"-").concat(i),l=r.children;return l&&l.length>0?[].concat(pt(n),pt(uj(l,s).map(function(c){return G({fixed:a},c)}))):[].concat(pt(n),[G(G({key:s},r),{},{fixed:a})])},[])}function Qut(e){return e.map(function(t){var n=t.fixed,r=tn(t,Xut),i=n;return n==="left"?i="right":n==="right"&&(i="left"),G({fixed:i},r)})}function Zut(e,t){var n=e.prefixCls,r=e.columns,i=e.children,o=e.expandable,a=e.expandedKeys,s=e.columnTitle,l=e.getRowKey,c=e.onTriggerExpand,u=e.expandIcon,d=e.rowExpandable,h=e.expandIconColumnIndex,p=e.direction,m=e.expandRowByClick,v=e.columnWidth,y=e.fixed,S=e.scrollWidth,b=e.clientWidth,C=f.useMemo(function(){var R=r||nV(i)||[];return ACe(R.slice())},[r,i]),_=f.useMemo(function(){if(o){var R=C.slice();if(!R.includes(Lh)){var A=h||0;A>=0&&(A||y==="left"||!y)&&R.splice(A,0,Lh),y==="right"&&R.splice(C.length,0,Lh)}var H=R.indexOf(Lh);R=R.filter(function(q,Z){return q!==Lh||Z===H});var F=C[H],z;y?z=y:z=F?F.fixed:null;var W=ae(ae(ae(ae(ae(ae({},ow,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",s),"fixed",z),"className","".concat(n,"-row-expand-icon-cell")),"width",v),"render",function(Z,N,B){var V=l(N,B),Y=a.has(V),ie=d?d(N):!0,ce=u({prefixCls:n,expanded:Y,expandable:ie,record:N,onExpand:c});return m?f.createElement("span",{onClick:function(ee){return ee.stopPropagation()}},ce):ce});return R.map(function(q){return q===Lh?W:q})}return C.filter(function(q){return q!==Lh})},[o,C,l,a,u,p]),T=f.useMemo(function(){var R=_;return t&&(R=t(R)),R.length||(R=[{render:function(){return null}}]),R},[t,_,p]),x=f.useMemo(function(){return p==="rtl"?Qut(uj(T)):uj(T)},[T,p,S]),E=f.useMemo(function(){for(var R=-1,A=x.length-1;A>=0;A-=1){var H=x[A].fixed;if(H==="left"||H===!0){R=A;break}}if(R>=0)for(var F=0;F<=R;F+=1){var z=x[F].fixed;if(z!=="left"&&z!==!0)return!0}var W=x.findIndex(function(N){var B=N.fixed;return B==="right"});if(W>=0)for(var q=W;q<x.length;q+=1){var Z=x[q].fixed;if(Z!=="right")return!0}return!1},[x]),k=Gut(x,S,b),M=Le(k,2),P=M[0],D=M[1];return[T,P,D,E]}function Jut(e,t,n){var r=But(e),i=r.expandIcon,o=r.expandedRowKeys,a=r.defaultExpandedRowKeys,s=r.defaultExpandAllRows,l=r.expandedRowRender,c=r.onExpand,u=r.onExpandedRowsChange,d=r.childrenColumnName,h=i||Iut,p=d||"children",m=f.useMemo(function(){return l?"row":e.expandable&&e.internalHooks===HE&&e.expandable.__PARENT_RENDER_ICON__||t.some(function(T){return T&&ln(T)==="object"&&T[p]})?"nest":!1},[!!l,t]),v=f.useState(function(){return a||(s?$ut(t,n,p):[])}),y=Le(v,2),S=y[0],b=y[1],C=f.useMemo(function(){return new Set(o||S||[])},[o,S]),_=f.useCallback(function(T){var x=n(T,t.indexOf(T)),E,k=C.has(x);k?(C.delete(x),E=pt(C)):E=[].concat(pt(C),[x]),b(E),c&&c(!k,T),u&&u(E)},[n,C,t,c,u]);return[r,m,C,h,p,_]}function edt(e,t,n){var r=e.map(function(i,o){return tV(o,o,e,t,n)});return dp(function(){return r},[r],function(i,o){return!ku(i,o)})}function NCe(e){var t=f.useRef(e),n=f.useState({}),r=Le(n,2),i=r[1],o=f.useRef(null),a=f.useRef([]);function s(l){a.current.push(l);var c=Promise.resolve();o.current=c,c.then(function(){if(o.current===c){var u=a.current,d=t.current;a.current=[],u.forEach(function(h){t.current=h(t.current)}),o.current=null,d!==t.current&&i({})}})}return f.useEffect(function(){return function(){o.current=null}},[]),[t.current,s]}function tdt(e){var t=f.useRef(null),n=f.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 f.useEffect(function(){return r},[]),[i,o]}function ndt(){var e=f.useState(-1),t=Le(e,2),n=t[0],r=t[1],i=f.useState(-1),o=Le(i,2),a=o[0],s=o[1],l=f.useCallback(function(c,u){r(c),s(u)},[]);return[n,a,l]}var Yte=ml()?window:null;function rdt(e,t){var n=ln(e)==="object"?e:{},r=n.offsetHeader,i=r===void 0?0:r,o=n.offsetSummary,a=o===void 0?0:o,s=n.offsetScroll,l=s===void 0?0:s,c=n.getContainer,u=c===void 0?function(){return Yte}:c,d=u()||Yte,h=!!e;return f.useMemo(function(){return{isSticky:h,stickyClassName:h?"".concat(t,"-sticky-holder"):"",offsetHeader:i,offsetSummary:a,offsetScroll:l,container:d}},[h,l,i,a,t,d])}function idt(e,t,n){var r=f.useMemo(function(){var i=t.length,o=function(c,u,d){for(var h=[],p=0,m=c;m!==u;m+=d)h.push(p),t[m].fixed&&(p+=e[m]||0);return h},a=o(0,i,1),s=o(i-1,-1,-1).reverse();return n==="rtl"?{left:s,right:a}:{left:a,right:s}},[e,t,n]);return r}function Xte(e){var t=e.className,n=e.children;return f.createElement("div",{className:t},n)}function Qte(e){var t=aO(e),n=t.getBoundingClientRect(),r=document.documentElement;return{left:n.left+(window.pageXOffset||r.scrollLeft)-(r.clientLeft||document.body.clientLeft||0),top:n.top+(window.pageYOffset||r.scrollTop)-(r.clientTop||document.body.clientTop||0)}}var odt=function(t,n){var r,i,o=t.scrollBodyRef,a=t.onScroll,s=t.offsetScroll,l=t.container,c=t.direction,u=_s(xl,"prefixCls"),d=((r=o.current)===null||r===void 0?void 0:r.scrollWidth)||0,h=((i=o.current)===null||i===void 0?void 0:i.clientWidth)||0,p=d&&h*(h/d),m=f.useRef(),v=NCe({scrollLeft:0,isHiddenScrollBar:!0}),y=Le(v,2),S=y[0],b=y[1],C=f.useRef({delta:0,x:0}),_=f.useState(!1),T=Le(_,2),x=T[0],E=T[1],k=f.useRef(null);f.useEffect(function(){return function(){Sr.cancel(k.current)}},[]);var M=function(){E(!1)},P=function(F){F.persist(),C.current.delta=F.pageX-S.scrollLeft,C.current.x=0,E(!0),F.preventDefault()},D=function(F){var z,W=F||((z=window)===null||z===void 0?void 0:z.event),q=W.buttons;if(!x||q===0){x&&E(!1);return}var Z=C.current.x+F.pageX-C.current.x-C.current.delta,N=c==="rtl";Z=Math.max(N?p-h:0,Math.min(N?0:h-p,Z));var B=!N||Math.abs(Z)+Math.abs(p)<h;B&&(a({scrollLeft:Z/h*(d+2)}),C.current.x=F.pageX)},R=function(){k.current=Sr(function(){if(o.current){var F=Qte(o.current).top,z=F+o.current.offsetHeight,W=l===window?document.documentElement.scrollTop+window.innerHeight:Qte(l).top+l.clientHeight;z-CJ()<=W||F>=W-s?b(function(q){return G(G({},q),{},{isHiddenScrollBar:!0})}):b(function(q){return G(G({},q),{},{isHiddenScrollBar:!1})})}})},A=function(F){b(function(z){return G(G({},z),{},{scrollLeft:F/d*h||0})})};return f.useImperativeHandle(n,function(){return{setScrollLeft:A,checkScrollBarVisible:R}}),f.useEffect(function(){var H=Rf(document.body,"mouseup",M,!1),F=Rf(document.body,"mousemove",D,!1);return R(),function(){H.remove(),F.remove()}},[p,x]),f.useEffect(function(){var H=Rf(l,"scroll",R,!1),F=Rf(window,"resize",R,!1);return function(){H.remove(),F.remove()}},[l]),f.useEffect(function(){S.isHiddenScrollBar||b(function(H){var F=o.current;return F?G(G({},H),{},{scrollLeft:F.scrollLeft/F.scrollWidth*F.clientWidth}):H})},[S.isHiddenScrollBar]),d<=h||!p||S.isHiddenScrollBar?null:f.createElement("div",{style:{height:CJ(),width:h,bottom:s},className:"".concat(u,"-sticky-scroll")},f.createElement("div",{onMouseDown:P,ref:m,className:Re("".concat(u,"-sticky-scroll-bar"),ae({},"".concat(u,"-sticky-scroll-bar-active"),x)),style:{width:"".concat(p,"px"),transform:"translate3d(".concat(S.scrollLeft,"px, 0, 0)")}}))};const adt=f.forwardRef(odt);var DCe="rc-table",sdt=[],ldt={};function cdt(){return"No Data"}function udt(e,t){var n=G({rowKey:"key",prefixCls:DCe,emptyText:cdt},e),r=n.prefixCls,i=n.className,o=n.rowClassName,a=n.style,s=n.data,l=n.rowKey,c=n.scroll,u=n.tableLayout,d=n.direction,h=n.title,p=n.footer,m=n.summary,v=n.caption,y=n.id,S=n.showHeader,b=n.components,C=n.emptyText,_=n.onRow,T=n.onHeaderRow,x=n.onScroll,E=n.internalHooks,k=n.transformColumns,M=n.internalRefs,P=n.tailor,D=n.getContainerWidth,R=n.sticky,A=n.rowHoverable,H=A===void 0?!0:A,F=s||sdt,z=!!F.length,W=E===HE,q=f.useCallback(function(dr,xn){return Bo(b,dr)||xn},[b]),Z=f.useMemo(function(){return typeof l=="function"?l:function(dr){var xn=dr&&dr[l];return xn}},[l]),N=q(["body"]),B=ndt(),V=Le(B,3),Y=V[0],ie=V[1],ce=V[2],fe=Jut(n,F,Z),ee=Le(fe,6),ne=ee[0],ue=ee[1],ye=ee[2],me=ee[3],pe=ee[4],he=ee[5],_e=c==null?void 0:c.x,le=f.useState(0),xe=Le(le,2),we=xe[0],De=xe[1],Fe=Zut(G(G(G({},n),ne),{},{expandable:!!ne.expandedRowRender,columnTitle:ne.columnTitle,expandedKeys:ye,getRowKey:Z,onTriggerExpand:he,expandIcon:me,expandIconColumnIndex:ne.expandIconColumnIndex,direction:d,scrollWidth:W&&P&&typeof _e=="number"?_e:null,clientWidth:we}),W?k:null),Ce=Le(Fe,4),Te=Ce[0],ke=Ce[1],Pe=Ce[2],Ne=Ce[3],We=Pe??_e,Q=f.useMemo(function(){return{columns:Te,flattenColumns:ke}},[Te,ke]),K=f.useRef(),J=f.useRef(),be=f.useRef(),Oe=f.useRef();f.useImperativeHandle(t,function(){return{nativeElement:K.current,scrollTo:function(xn){var zn;if(be.current instanceof HTMLElement){var Gn=xn.index,rr=xn.top,jr=xn.key;if(yut(rr)){var Ao;(Ao=be.current)===null||Ao===void 0||Ao.scrollTo({top:rr})}else{var ra,Ei=jr??Z(F[Gn]);(ra=be.current.querySelector('[data-row-key="'.concat(Ei,'"]')))===null||ra===void 0||ra.scrollIntoView()}}else(zn=be.current)!==null&&zn!==void 0&&zn.scrollTo&&be.current.scrollTo(xn)}}});var Se=f.useRef(),Ke=f.useState(!1),tt=Le(Ke,2),se=tt[0],ze=tt[1],Ye=f.useState(!1),Ue=Le(Ye,2),Je=Ue[0],Ze=Ue[1],rt=NCe(new Map),qt=Le(rt,2),St=qt[0],Ot=qt[1],Bt=xP(ke),Dt=Bt.map(function(dr){return St.get(dr)}),an=f.useMemo(function(){return Dt},[Dt.join("_")]),Vt=idt(an,ke,d),Kt=c&&cj(c.y),Qt=c&&cj(We)||!!ne.fixed,et=Qt&&ke.some(function(dr){var xn=dr.fixed;return xn}),ot=f.useRef(),Qe=rdt(R,r),ct=Qe.isSticky,Nt=Qe.offsetHeader,Lt=Qe.offsetSummary,Zt=Qe.offsetScroll,Wt=Qe.stickyClassName,At=Qe.container,$t=f.useMemo(function(){return m==null?void 0:m(F)},[m,F]),Gt=(Kt||ct)&&f.isValidElement($t)&&$t.type===wP&&$t.props.fixed,Ft,cn,_t;Kt&&(cn={overflowY:z?"scroll":"auto",maxHeight:c.y}),Qt&&(Ft={overflowX:"auto"},Kt||(cn={overflowY:"hidden"}),_t={width:We===!0?"auto":We,minWidth:"100%"});var jt=f.useCallback(function(dr,xn){GS(K.current)&&Ot(function(zn){if(zn.get(dr)!==xn){var Gn=new Map(zn);return Gn.set(dr,xn),Gn}return zn})},[]),nn=tdt(),Ht=Le(nn,2),Tt=Ht[0],gt=Ht[1];function Ve(dr,xn){xn&&(typeof xn=="function"?xn(dr):xn.scrollLeft!==dr&&(xn.scrollLeft=dr,xn.scrollLeft!==dr&&setTimeout(function(){xn.scrollLeft=dr},0)))}var Yt=cr(function(dr){var xn=dr.currentTarget,zn=dr.scrollLeft,Gn=d==="rtl",rr=typeof zn=="number"?zn:xn.scrollLeft,jr=xn||ldt;if(!gt()||gt()===jr){var Ao;Tt(jr),Ve(rr,J.current),Ve(rr,be.current),Ve(rr,Se.current),Ve(rr,(Ao=ot.current)===null||Ao===void 0?void 0:Ao.setScrollLeft)}var ra=xn||J.current;if(ra){var Ei=W&&P&&typeof We=="number"?We:ra.scrollWidth,ia=ra.clientWidth;if(Ei===ia){ze(!1),Ze(!1);return}Gn?(ze(-rr<Ei-ia),Ze(-rr>0)):(ze(rr>0),Ze(rr<Ei-ia))}}),mt=cr(function(dr){Yt(dr),x==null||x(dr)}),Mt=function(){if(Qt&&be.current){var xn;Yt({currentTarget:aO(be.current),scrollLeft:(xn=be.current)===null||xn===void 0?void 0:xn.scrollLeft})}else ze(!1),Ze(!1)},zt=function(xn){var zn,Gn=xn.width;(zn=ot.current)===null||zn===void 0||zn.checkScrollBarVisible();var rr=K.current?K.current.offsetWidth:Gn;W&&D&&K.current&&(rr=D(K.current,rr)||rr),rr!==we&&(Mt(),De(rr))},Dn=f.useRef(!1);f.useEffect(function(){Dn.current&&Mt()},[Qt,s,Te.length]),f.useEffect(function(){Dn.current=!0},[]);var Xn=f.useState(0),O=Le(Xn,2),j=O[0],oe=O[1],Ae=f.useState(!0),Ge=Le(Ae,2),ft=Ge[0],Jt=Ge[1];f.useEffect(function(){(!P||!W)&&(be.current instanceof Element?oe(kF(be.current).width):oe(kF(Oe.current).width)),Jt(FF("position","sticky"))},[]),f.useEffect(function(){W&&M&&(M.body.current=be.current)});var on=f.useCallback(function(dr){return f.createElement(f.Fragment,null,f.createElement(qte,dr),Gt==="top"&&f.createElement(r5,dr,$t))},[Gt,$t]),Qn=f.useCallback(function(dr){return f.createElement(r5,dr,$t)},[$t]),ni=q(["table"],"table"),zr=f.useMemo(function(){return u||(et?We==="max-content"?"auto":"fixed":Kt||ct||ke.some(function(dr){var xn=dr.ellipsis;return xn})?"fixed":"auto")},[Kt,et,ke,u,ct]),Yr,Rr={colWidths:an,columCount:ke.length,stickyOffsets:Vt,onHeaderRow:T,fixHeader:Kt,scroll:c},wn=f.useMemo(function(){return z?null:typeof C=="function"?C():C},[z,C]),Pn=f.createElement(Fut,{data:F,measureColumnWidth:Kt||Qt||ct}),Ar=f.createElement(RCe,{colWidths:ke.map(function(dr){var xn=dr.width;return xn}),columns:ke}),bn=v!=null?f.createElement("caption",{className:"".concat(r,"-caption")},v):void 0,Cn=Hi(n,{data:!0}),tr=Hi(n,{aria:!0});if(Kt||ct){var Ir;typeof N=="function"?(Ir=N(F,{scrollbarSize:j,ref:be,onScroll:Yt}),Rr.colWidths=ke.map(function(dr,xn){var zn=dr.width,Gn=xn===ke.length-1?zn-j:zn;return typeof Gn=="number"&&!Number.isNaN(Gn)?Gn:0})):Ir=f.createElement("div",{style:G(G({},Ft),cn),onScroll:mt,ref:be,className:Re("".concat(r,"-body"))},f.createElement(ni,ut({style:G(G({},_t),{},{tableLayout:zr})},tr),bn,Ar,Pn,!Gt&&$t&&f.createElement(r5,{stickyOffsets:Vt,flattenColumns:ke},$t)));var li=G(G(G({noData:!F.length,maxContentScroll:Qt&&We==="max-content"},Rr),Q),{},{direction:d,stickyClassName:Wt,onScroll:Yt});Yr=f.createElement(f.Fragment,null,S!==!1&&f.createElement(Kte,ut({},li,{stickyTopOffset:Nt,className:"".concat(r,"-header"),ref:J}),on),Ir,Gt&&Gt!=="top"&&f.createElement(Kte,ut({},li,{stickyBottomOffset:Lt,className:"".concat(r,"-summary"),ref:Se}),Qn),ct&&be.current&&be.current instanceof Element&&f.createElement(adt,{ref:ot,offsetScroll:Zt,scrollBodyRef:be,onScroll:Yt,container:At,direction:d}))}else Yr=f.createElement("div",{style:G(G({},Ft),cn),className:Re("".concat(r,"-content")),onScroll:Yt,ref:be},f.createElement(ni,ut({style:G(G({},_t),{},{tableLayout:zr})},tr),bn,Ar,S!==!1&&f.createElement(qte,ut({},Rr,Q)),Pn,$t&&f.createElement(r5,{stickyOffsets:Vt,flattenColumns:ke},$t)));var Wi=f.createElement("div",ut({className:Re(r,i,ae(ae(ae(ae(ae(ae(ae(ae(ae(ae({},"".concat(r,"-rtl"),d==="rtl"),"".concat(r,"-ping-left"),se),"".concat(r,"-ping-right"),Je),"".concat(r,"-layout-fixed"),u==="fixed"),"".concat(r,"-fixed-header"),Kt),"".concat(r,"-fixed-column"),et),"".concat(r,"-fixed-column-gapped"),et&&Ne),"".concat(r,"-scroll-horizontal"),Qt),"".concat(r,"-has-fix-left"),ke[0]&&ke[0].fixed),"".concat(r,"-has-fix-right"),ke[ke.length-1]&&ke[ke.length-1].fixed==="right")),style:a,id:y,ref:K},Cn),h&&f.createElement(Xte,{className:"".concat(r,"-title")},h(F)),f.createElement("div",{ref:Oe,className:"".concat(r,"-container")},Yr),p&&f.createElement(Xte,{className:"".concat(r,"-footer")},p(F)));Qt&&(Wi=f.createElement(Va,{onResize:zt},Wi));var mr=edt(ke,Vt,d),Li=f.useMemo(function(){return{scrollX:We,prefixCls:r,getComponent:q,scrollbarSize:j,direction:d,fixedInfoList:mr,isSticky:ct,supportSticky:ft,componentWidth:we,fixHeader:Kt,fixColumn:et,horizonScroll:Qt,tableLayout:zr,rowClassName:o,expandedRowClassName:ne.expandedRowClassName,expandIcon:me,expandableType:ue,expandRowByClick:ne.expandRowByClick,expandedRowRender:ne.expandedRowRender,onTriggerExpand:he,expandIconColumnIndex:ne.expandIconColumnIndex,indentSize:ne.indentSize,allColumnsFixedLeft:ke.every(function(dr){return dr.fixed==="left"}),emptyNode:wn,columns:Te,flattenColumns:ke,onColumnResize:jt,hoverStartRow:Y,hoverEndRow:ie,onHover:ce,rowExpandable:ne.rowExpandable,onRow:_,getRowKey:Z,expandedKeys:ye,childrenColumnName:pe,rowHoverable:H}},[We,r,q,j,d,mr,ct,ft,we,Kt,et,Qt,zr,o,ne.expandedRowClassName,me,ue,ne.expandRowByClick,ne.expandedRowRender,he,ne.expandIconColumnIndex,ne.indentSize,wn,Te,ke,jt,Y,ie,ce,ne.rowExpandable,_,Z,ye,pe,H]);return f.createElement(xl.Provider,{value:Li},Wi)}var ddt=f.forwardRef(udt);function LCe(e){return wCe(ddt,e)}var cC=LCe();cC.EXPAND_COLUMN=Lh;cC.INTERNAL_HOOKS=HE;cC.Column=Put;cC.ColumnGroup=Mut;cC.Summary=TCe;var rV=JW(null),FCe=JW(null);function fdt(e,t,n){var r=t||1;return n[e+r]-(n[e]||0)}function hdt(e){var t=e.rowInfo,n=e.column,r=e.colIndex,i=e.indent,o=e.index,a=e.component,s=e.renderIndex,l=e.record,c=e.style,u=e.className,d=e.inverse,h=e.getHeight,p=n.render,m=n.dataIndex,v=n.className,y=n.width,S=_s(FCe,["columnsOffset"]),b=S.columnsOffset,C=$Ce(t,n,r,i,o),_=C.key,T=C.fixedInfo,x=C.appendCellNode,E=C.additionalCellProps,k=E.style,M=E.colSpan,P=M===void 0?1:M,D=E.rowSpan,R=D===void 0?1:D,A=r-1,H=fdt(A,P,b),F=P>1?y-H:0,z=G(G(G({},k),c),{},{flex:"0 0 ".concat(H,"px"),width:"".concat(H,"px"),marginRight:F,pointerEvents:"auto"}),W=f.useMemo(function(){return d?R<=1:P===0||R===0||R>1},[R,P,d]);W?z.visibility="hidden":d&&(z.height=h==null?void 0:h(R));var q=W?function(){return null}:p,Z={};return(R===0||P===0)&&(Z.rowSpan=1,Z.colSpan=1),f.createElement(lC,ut({className:Re(v,u),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:a,prefixCls:t.prefixCls,key:_,record:l,index:o,renderIndex:s,dataIndex:m,render:q,shouldCellUpdate:n.shouldCellUpdate},T,{appendNode:x,additionalProps:G(G({},E),{},{style:z},Z)}))}var pdt=["data","index","className","rowKey","style","extra","getHeight"],mdt=f.forwardRef(function(e,t){var n=e.data,r=e.index,i=e.className,o=e.rowKey,a=e.style,s=e.extra,l=e.getHeight,c=tn(e,pdt),u=n.record,d=n.indent,h=n.index,p=_s(xl,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),m=p.scrollX,v=p.flattenColumns,y=p.prefixCls,S=p.fixColumn,b=p.componentWidth,C=_s(rV,["getComponent"]),_=C.getComponent,T=PCe(u,o,r,d),x=_(["body","row"],"div"),E=_(["body","cell"],"div"),k=T.rowSupportExpand,M=T.expanded,P=T.rowProps,D=T.expandedRowRender,R=T.expandedRowClassName,A;if(k&&M){var H=D(u,r,d+1,M),F=ICe(R,u,r,d),z={};S&&(z={style:ae({},"--virtual-width","".concat(b,"px"))});var W="".concat(y,"-expanded-row-cell");A=f.createElement(x,{className:Re("".concat(y,"-expanded-row"),"".concat(y,"-expanded-row-level-").concat(d+1),F)},f.createElement(lC,{component:E,prefixCls:y,className:Re(W,ae({},"".concat(W,"-fixed"),S)),additionalProps:z},H))}var q=G(G({},a),{},{width:m});s&&(q.position="absolute",q.pointerEvents="none");var Z=f.createElement(x,ut({},P,c,{"data-row-key":o,ref:k?null:t,className:Re(i,"".concat(y,"-row"),P==null?void 0:P.className,ae({},"".concat(y,"-row-extra"),s)),style:G(G({},q),P==null?void 0:P.style)}),v.map(function(N,B){return f.createElement(hdt,{key:B,component:E,rowInfo:T,column:N,colIndex:B,indent:d,index:r,renderIndex:h,record:u,inverse:s,getHeight:l})}));return k?f.createElement("div",{ref:t},Z,A):Z}),Zte=sC(mdt),gdt=f.forwardRef(function(e,t){var n=e.data,r=e.onScroll,i=_s(xl,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),o=i.flattenColumns,a=i.onColumnResize,s=i.getRowKey,l=i.expandedKeys,c=i.prefixCls,u=i.childrenColumnName,d=i.scrollX,h=i.direction,p=_s(rV),m=p.sticky,v=p.scrollY,y=p.listItemHeight,S=p.getComponent,b=p.onScroll,C=f.useRef(),_=OCe(n,u,l,s),T=f.useMemo(function(){var A=0;return o.map(function(H){var F=H.width,z=H.key;return A+=F,[z,F,A]})},[o]),x=f.useMemo(function(){return T.map(function(A){return A[2]})},[T]);f.useEffect(function(){T.forEach(function(A){var H=Le(A,2),F=H[0],z=H[1];a(F,z)})},[T]),f.useImperativeHandle(t,function(){var A,H={scrollTo:function(z){var W;(W=C.current)===null||W===void 0||W.scrollTo(z)},nativeElement:(A=C.current)===null||A===void 0?void 0:A.nativeElement};return Object.defineProperty(H,"scrollLeft",{get:function(){var z;return((z=C.current)===null||z===void 0?void 0:z.getScrollInfo().x)||0},set:function(z){var W;(W=C.current)===null||W===void 0||W.scrollTo({left:z})}}),H});var E=function(H,F){var z,W=(z=_[F])===null||z===void 0?void 0:z.record,q=H.onCell;if(q){var Z,N=q(W,F);return(Z=N==null?void 0:N.rowSpan)!==null&&Z!==void 0?Z:1}return 1},k=function(H){var F=H.start,z=H.end,W=H.getSize,q=H.offsetY;if(z<0)return null;for(var Z=o.filter(function(me){return E(me,F)===0}),N=F,B=function(pe){if(Z=Z.filter(function(he){return E(he,pe)===0}),!Z.length)return N=pe,1},V=F;V>=0&&!B(V);V-=1);for(var Y=o.filter(function(me){return E(me,z)!==1}),ie=z,ce=function(pe){if(Y=Y.filter(function(he){return E(he,pe)!==1}),!Y.length)return ie=Math.max(pe-1,z),1},fe=z;fe<_.length&&!ce(fe);fe+=1);for(var ee=[],ne=function(pe){var he=_[pe];if(!he)return 1;o.some(function(_e){return E(_e,pe)>1})&&ee.push(pe)},ue=N;ue<=ie;ue+=1)ne(ue);var ye=ee.map(function(me){var pe=_[me],he=s(pe.record,me),_e=function(we){var De=me+we-1,Fe=s(_[De].record,De),Ce=W(he,Fe);return Ce.bottom-Ce.top},le=W(he);return f.createElement(Zte,{key:me,data:pe,rowKey:he,index:me,style:{top:-q+le.top},extra:!0,getHeight:_e})});return ye},M=f.useMemo(function(){return{columnsOffset:x}},[x]),P="".concat(c,"-tbody"),D=S(["body","wrapper"]),R={};return m&&(R.position="sticky",R.bottom=0,ln(m)==="object"&&m.offsetScroll&&(R.bottom=m.offsetScroll)),f.createElement(FCe.Provider,{value:M},f.createElement(YO,{fullHeight:!1,ref:C,prefixCls:"".concat(P,"-virtual"),styles:{horizontalScrollBar:R},className:P,height:v,itemHeight:y||24,data:_,itemKey:function(H){return s(H.record)},component:D,scrollWidth:d,direction:h,onVirtualScroll:function(H){var F,z=H.x;r({currentTarget:(F=C.current)===null||F===void 0?void 0:F.nativeElement,scrollLeft:z})},onScroll:b,extraRender:k},function(A,H,F){var z=s(A.record,H);return f.createElement(Zte,{data:A,rowKey:z,index:H,style:F.style})}))}),vdt=sC(gdt),ydt=function(t,n){var r=n.ref,i=n.onScroll;return f.createElement(vdt,{ref:r,data:t,onScroll:i})};function bdt(e,t){var n=e.data,r=e.columns,i=e.scroll,o=e.sticky,a=e.prefixCls,s=a===void 0?DCe:a,l=e.className,c=e.listItemHeight,u=e.components,d=e.onScroll,h=i||{},p=h.x,m=h.y;typeof p!="number"&&(p=1),typeof m!="number"&&(m=500);var v=cr(function(b,C){return Bo(u,b)||C}),y=cr(d),S=f.useMemo(function(){return{sticky:o,scrollY:m,listItemHeight:c,getComponent:v,onScroll:y}},[o,m,c,v,y]);return f.createElement(rV.Provider,{value:S},f.createElement(cC,ut({},e,{className:Re(l,"".concat(s,"-virtual")),scroll:G(G({},i),{},{x:p}),components:G(G({},u),{},{body:n!=null&&n.length?ydt:void 0}),columns:r,internalHooks:HE,tailor:!0,ref:t})))}var Sdt=f.forwardRef(bdt);function jCe(e){return wCe(Sdt,e)}jCe();const Cdt=e=>null,xdt=e=>null;var iV=f.createContext(null),BCe=f.createContext({}),wdt=function(t){for(var n=t.prefixCls,r=t.level,i=t.isStart,o=t.isEnd,a="".concat(n,"-indent-unit"),s=[],l=0;l<r;l+=1)s.push(f.createElement("span",{key:l,className:Re(a,ae(ae({},"".concat(a,"-start"),i[l]),"".concat(a,"-end"),o[l]))}));return f.createElement("span",{"aria-hidden":"true",className:"".concat(n,"-indent")},s)};const _dt=f.memo(wdt);var Edt=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],Jte="open",ene="close",Tdt="---",S_=function(t){var n,r,i=t.eventKey,o=t.className,a=t.style,s=t.dragOver,l=t.dragOverGapTop,c=t.dragOverGapBottom,u=t.isLeaf,d=t.isStart,h=t.isEnd,p=t.expanded,m=t.selected,v=t.checked,y=t.halfChecked,S=t.loading,b=t.domRef,C=t.active,_=t.data,T=t.onMouseMove,x=t.selectable,E=tn(t,Edt),k=ge.useContext(iV),M=ge.useContext(BCe),P=ge.useRef(null),D=ge.useState(!1),R=Le(D,2),A=R[0],H=R[1],F=ge.useMemo(function(){var Oe;return!!(k.disabled||t.disabled||(Oe=M.nodeDisabled)!==null&&Oe!==void 0&&Oe.call(M,_))},[k.disabled,t.disabled,M.nodeDisabled,_]),z=ge.useMemo(function(){return!k.checkable||t.checkable===!1?!1:k.checkable},[k.checkable,t.checkable]),W=function(Se){F||k.onNodeSelect(Se,wa(t))},q=function(Se){F||!z||t.disableCheckbox||k.onNodeCheck(Se,wa(t),!v)},Z=ge.useMemo(function(){return typeof x=="boolean"?x:k.selectable},[x,k.selectable]),N=function(Se){k.onNodeClick(Se,wa(t)),Z?W(Se):q(Se)},B=function(Se){k.onNodeDoubleClick(Se,wa(t))},V=function(Se){k.onNodeMouseEnter(Se,wa(t))},Y=function(Se){k.onNodeMouseLeave(Se,wa(t))},ie=function(Se){k.onNodeContextMenu(Se,wa(t))},ce=ge.useMemo(function(){return!!(k.draggable&&(!k.draggable.nodeDraggable||k.draggable.nodeDraggable(_)))},[k.draggable,_]),fe=function(Se){Se.stopPropagation(),H(!0),k.onNodeDragStart(Se,t);try{Se.dataTransfer.setData("text/plain","")}catch{}},ee=function(Se){Se.preventDefault(),Se.stopPropagation(),k.onNodeDragEnter(Se,t)},ne=function(Se){Se.preventDefault(),Se.stopPropagation(),k.onNodeDragOver(Se,t)},ue=function(Se){Se.stopPropagation(),k.onNodeDragLeave(Se,t)},ye=function(Se){Se.stopPropagation(),H(!1),k.onNodeDragEnd(Se,t)},me=function(Se){Se.preventDefault(),Se.stopPropagation(),H(!1),k.onNodeDrop(Se,t)},pe=function(Se){S||k.onNodeExpand(Se,wa(t))},he=ge.useMemo(function(){var Oe=jl(k.keyEntities,i)||{},Se=Oe.children;return!!(Se||[]).length},[k.keyEntities,i]),_e=ge.useMemo(function(){return u===!1?!1:u||!k.loadData&&!he||k.loadData&&t.loaded&&!he},[u,k.loadData,he,t.loaded]);ge.useEffect(function(){S||typeof k.loadData=="function"&&p&&!_e&&!t.loaded&&k.onNodeLoad(wa(t))},[S,k.loadData,k.onNodeLoad,p,_e,t]);var le=ge.useMemo(function(){var Oe;return(Oe=k.draggable)!==null&&Oe!==void 0&&Oe.icon?ge.createElement("span",{className:"".concat(k.prefixCls,"-draggable-icon")},k.draggable.icon):null},[k.draggable]),xe=function(Se){var Ke=t.switcherIcon||k.switcherIcon;return typeof Ke=="function"?Ke(G(G({},t),{},{isLeaf:Se})):Ke},we=function(){if(_e){var Se=xe(!0);return Se!==!1?ge.createElement("span",{className:Re("".concat(k.prefixCls,"-switcher"),"".concat(k.prefixCls,"-switcher-noop"))},Se):null}var Ke=xe(!1);return Ke!==!1?ge.createElement("span",{onClick:pe,className:Re("".concat(k.prefixCls,"-switcher"),"".concat(k.prefixCls,"-switcher_").concat(p?Jte:ene))},Ke):null},De=ge.useMemo(function(){if(!z)return null;var Oe=typeof z!="boolean"?z:null;return ge.createElement("span",{className:Re("".concat(k.prefixCls,"-checkbox"),ae(ae(ae({},"".concat(k.prefixCls,"-checkbox-checked"),v),"".concat(k.prefixCls,"-checkbox-indeterminate"),!v&&y),"".concat(k.prefixCls,"-checkbox-disabled"),F||t.disableCheckbox)),onClick:q,role:"checkbox","aria-checked":y?"mixed":v,"aria-disabled":F||t.disableCheckbox,"aria-label":"Select ".concat(typeof t.title=="string"?t.title:"tree node")},Oe)},[z,v,y,F,t.disableCheckbox,t.title]),Fe=ge.useMemo(function(){return _e?null:p?Jte:ene},[_e,p]),Ce=ge.useMemo(function(){return ge.createElement("span",{className:Re("".concat(k.prefixCls,"-iconEle"),"".concat(k.prefixCls,"-icon__").concat(Fe||"docu"),ae({},"".concat(k.prefixCls,"-icon_loading"),S))})},[k.prefixCls,Fe,S]),Te=ge.useMemo(function(){var Oe=!!k.draggable,Se=!t.disabled&&Oe&&k.dragOverNodeKey===i;return Se?k.dropIndicatorRender({dropPosition:k.dropPosition,dropLevelOffset:k.dropLevelOffset,indent:k.indent,prefixCls:k.prefixCls,direction:k.direction}):null},[k.dropPosition,k.dropLevelOffset,k.indent,k.prefixCls,k.direction,k.draggable,k.dragOverNodeKey,k.dropIndicatorRender]),ke=ge.useMemo(function(){var Oe=t.title,Se=Oe===void 0?Tdt:Oe,Ke="".concat(k.prefixCls,"-node-content-wrapper"),tt;if(k.showIcon){var se=t.icon||k.icon;tt=se?ge.createElement("span",{className:Re("".concat(k.prefixCls,"-iconEle"),"".concat(k.prefixCls,"-icon__customize"))},typeof se=="function"?se(t):se):Ce}else k.loadData&&S&&(tt=Ce);var ze;return typeof Se=="function"?ze=Se(_):k.titleRender?ze=k.titleRender(_):ze=Se,ge.createElement("span",{ref:P,title:typeof Se=="string"?Se:"",className:Re(Ke,"".concat(Ke,"-").concat(Fe||"normal"),ae({},"".concat(k.prefixCls,"-node-selected"),!F&&(m||A))),onMouseEnter:V,onMouseLeave:Y,onContextMenu:ie,onClick:N,onDoubleClick:B},tt,ge.createElement("span",{className:"".concat(k.prefixCls,"-title")},ze),Te)},[k.prefixCls,k.showIcon,t,k.icon,Ce,k.titleRender,_,Fe,V,Y,ie,N,B]),Pe=Hi(E,{aria:!0,data:!0}),Ne=jl(k.keyEntities,i)||{},We=Ne.level,Q=h[h.length-1],K=!F&&ce,J=k.draggingNodeKey===i,be=x!==void 0?{"aria-selected":!!x}:void 0;return ge.createElement("div",ut({ref:b,role:"treeitem","aria-expanded":u?void 0:p,className:Re(o,"".concat(k.prefixCls,"-treenode"),(r={},ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(r,"".concat(k.prefixCls,"-treenode-disabled"),F),"".concat(k.prefixCls,"-treenode-switcher-").concat(p?"open":"close"),!u),"".concat(k.prefixCls,"-treenode-checkbox-checked"),v),"".concat(k.prefixCls,"-treenode-checkbox-indeterminate"),y),"".concat(k.prefixCls,"-treenode-selected"),m),"".concat(k.prefixCls,"-treenode-loading"),S),"".concat(k.prefixCls,"-treenode-active"),C),"".concat(k.prefixCls,"-treenode-leaf-last"),Q),"".concat(k.prefixCls,"-treenode-draggable"),ce),"dragging",J),ae(ae(ae(ae(ae(ae(ae(r,"drop-target",k.dropTargetKey===i),"drop-container",k.dropContainerKey===i),"drag-over",!F&&s),"drag-over-gap-top",!F&&l),"drag-over-gap-bottom",!F&&c),"filter-node",(n=k.filterTreeNode)===null||n===void 0?void 0:n.call(k,wa(t))),"".concat(k.prefixCls,"-treenode-leaf"),_e))),style:a,draggable:K,onDragStart:K?fe:void 0,onDragEnter:ce?ee:void 0,onDragOver:ce?ne:void 0,onDragLeave:ce?ue:void 0,onDrop:ce?me:void 0,onDragEnd:ce?ye:void 0,onMouseMove:T},be,Pe),ge.createElement(_dt,{prefixCls:k.prefixCls,level:We,isStart:d,isEnd:h}),le,we(),De,ke)};S_.isTreeNode=1;function vf(e,t){if(!e)return[];var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function Ph(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function oV(e){return e.split("-")}function kdt(e,t){var n=[],r=jl(t,e);function i(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];o.forEach(function(a){var s=a.key,l=a.children;n.push(s),i(l)})}return i(r.children),n}function Odt(e){if(e.parent){var t=oV(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function Pdt(e){var t=oV(e.pos);return Number(t[t.length-1])===0}function tne(e,t,n,r,i,o,a,s,l,c){var u,d=e.clientX,h=e.clientY,p=e.target.getBoundingClientRect(),m=p.top,v=p.height,y=(c==="rtl"?-1:1)*(((i==null?void 0:i.x)||0)-d),S=(y-12)/r,b=l.filter(function(z){var W;return(W=s[z])===null||W===void 0||(W=W.children)===null||W===void 0?void 0:W.length}),C=jl(s,n.eventKey);if(h<m+v/2){var _=a.findIndex(function(z){return z.key===C.key}),T=_<=0?0:_-1,x=a[T].key;C=jl(s,x)}var E=C.key,k=C,M=C.key,P=0,D=0;if(!b.includes(E))for(var R=0;R<S&&Odt(C);R+=1)C=C.parent,D+=1;var A=t.data,H=C.node,F=!0;return Pdt(C)&&C.level===0&&h<m+v/2&&o({dragNode:A,dropNode:H,dropPosition:-1})&&C.key===n.eventKey?P=-1:(k.children||[]).length&&b.includes(M)?o({dragNode:A,dropNode:H,dropPosition:0})?P=0:F=!1:D===0?S>-1.5?o({dragNode:A,dropNode:H,dropPosition:1})?P=1:F=!1:o({dragNode:A,dropNode:H,dropPosition:0})?P=0:o({dragNode:A,dropNode:H,dropPosition:1})?P=1:F=!1:o({dragNode:A,dropNode:H,dropPosition:1})?P=1:F=!1,{dropPosition:P,dropLevelOffset:D,dropTargetKey:C.key,dropTargetPos:C.pos,dragOverNodeKey:M,dropContainerKey:P===0?null:((u=C.parent)===null||u===void 0?void 0:u.key)||null,dropAllowed:F}}function nne(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function JR(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(ln(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return fi(!1,"`checkedKeys` is not an array or an object"),null;return t}function dj(e,t){var n=new Set;function r(i){if(!n.has(i)){var o=jl(t,i);if(o){n.add(i);var a=o.parent,s=o.node;s.disabled||a&&r(a.key)}}}return(e||[]).forEach(function(i){r(i)}),pt(n)}function Mdt(e){const[t,n]=f.useState(null);return[f.useCallback((o,a,s)=>{const l=t??o,c=Math.min(l||0,o),u=Math.max(l||0,o),d=a.slice(c,u+1).map(m=>e(m)),h=d.some(m=>!s.has(m)),p=[];return d.forEach(m=>{h?(s.has(m)||p.push(m),s.add(m)):(s.delete(m),p.push(m))}),n(h?u:null),p},[t]),o=>{n(o)}]}const cm={},fj="SELECT_ALL",hj="SELECT_INVERT",pj="SELECT_NONE",rne=[],HCe=(e,t)=>{let n=[];return(t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&(n=[].concat(pt(n),pt(HCe(e,r[e]))))}),n},Idt=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:i,getCheckboxProps:o,onChange:a,onSelect:s,onSelectAll:l,onSelectInvert:c,onSelectNone:u,onSelectMultiple:d,columnWidth:h,type:p,selections:m,fixed:v,renderCell:y,hideSelectAll:S,checkStrictly:b=!0}=t||{},{prefixCls:C,data:_,pageData:T,getRecordByKey:x,getRowKey:E,expandType:k,childrenColumnName:M,locale:P,getPopupContainer:D}=e,R=eh(),[A,H]=Mdt(me=>me),[F,z]=Jn(r||i||rne,{value:r}),W=f.useRef(new Map),q=f.useCallback(me=>{if(n){const pe=new Map;me.forEach(he=>{let _e=x(he);!_e&&W.current.has(he)&&(_e=W.current.get(he)),pe.set(he,_e)}),W.current=pe}},[x,n]);f.useEffect(()=>{q(F)},[F]);const Z=f.useMemo(()=>HCe(M,T),[M,T]),{keyEntities:N}=f.useMemo(()=>{if(b)return{keyEntities:null};let me=_;if(n){const pe=new Set(Z.map((_e,le)=>E(_e,le))),he=Array.from(W.current).reduce((_e,le)=>{let[xe,we]=le;return pe.has(xe)?_e:_e.concat(we)},[]);me=[].concat(pt(me),pt(he))}return AE(me,{externalGetKey:E,childrenPropName:M})},[_,E,b,M,n,Z]),B=f.useMemo(()=>{const me=new Map;return Z.forEach((pe,he)=>{const _e=E(pe,he),le=(o?o(pe):null)||{};me.set(_e,le)}),me},[Z,E,o]),V=f.useCallback(me=>{const pe=E(me);let he;return B.has(pe)?he=B.get(E(me)):he=o?o(me):void 0,!!(he!=null&&he.disabled)},[B,E]),[Y,ie]=f.useMemo(()=>{if(b)return[F||[],[]];const{checkedKeys:me,halfCheckedKeys:pe}=bu(F,!0,N,V);return[me||[],pe]},[F,b,N,V]),ce=f.useMemo(()=>{const me=p==="radio"?Y.slice(0,1):Y;return new Set(me)},[Y,p]),fe=f.useMemo(()=>p==="radio"?new Set:new Set(ie),[ie,p]);f.useEffect(()=>{t||z(rne)},[!!t]);const ee=f.useCallback((me,pe)=>{let he,_e;q(me),n?(he=me,_e=me.map(le=>W.current.get(le))):(he=[],_e=[],me.forEach(le=>{const xe=x(le);xe!==void 0&&(he.push(le),_e.push(xe))})),z(he),a==null||a(he,_e,{type:pe})},[z,x,a,n]),ne=f.useCallback((me,pe,he,_e)=>{if(s){const le=he.map(xe=>x(xe));s(x(me),pe,le,_e)}ee(he,"single")},[s,x,ee]),ue=f.useMemo(()=>!m||S?null:(m===!0?[fj,hj,pj]:m).map(pe=>pe===fj?{key:"all",text:P.selectionAll,onSelect(){ee(_.map((he,_e)=>E(he,_e)).filter(he=>{const _e=B.get(he);return!(_e!=null&&_e.disabled)||ce.has(he)}),"all")}}:pe===hj?{key:"invert",text:P.selectInvert,onSelect(){const he=new Set(ce);T.forEach((le,xe)=>{const we=E(le,xe),De=B.get(we);De!=null&&De.disabled||(he.has(we)?he.delete(we):he.add(we))});const _e=Array.from(he);c&&(R.deprecated(!1,"onSelectInvert","onChange"),c(_e)),ee(_e,"invert")}}:pe===pj?{key:"none",text:P.selectNone,onSelect(){u==null||u(),ee(Array.from(ce).filter(he=>{const _e=B.get(he);return _e==null?void 0:_e.disabled}),"none")}}:pe).map(pe=>Object.assign(Object.assign({},pe),{onSelect:function(){for(var he,_e,le=arguments.length,xe=new Array(le),we=0;we<le;we++)xe[we]=arguments[we];(_e=pe.onSelect)===null||_e===void 0||(he=_e).call.apply(he,[pe].concat(xe)),H(null)}})),[m,ce,T,E,c,ee]);return[f.useCallback(me=>{var pe;if(!t)return me.filter(Oe=>Oe!==cm);let he=pt(me);const _e=new Set(ce),le=Z.map(E).filter(Oe=>!B.get(Oe).disabled),xe=le.every(Oe=>_e.has(Oe)),we=le.some(Oe=>_e.has(Oe)),De=()=>{const Oe=[];xe?le.forEach(Ke=>{_e.delete(Ke),Oe.push(Ke)}):le.forEach(Ke=>{_e.has(Ke)||(_e.add(Ke),Oe.push(Ke))});const Se=Array.from(_e);l==null||l(!xe,Se.map(Ke=>x(Ke)),Oe.map(Ke=>x(Ke))),ee(Se,"all"),H(null)};let Fe,Ce;if(p!=="radio"){let Oe;if(ue){const ze={getPopupContainer:D,items:ue.map((Ye,Ue)=>{const{key:Je,text:Ze,onSelect:rt}=Ye;return{key:Je??Ue,onClick:()=>{rt==null||rt(le)},label:Ze}})};Oe=f.createElement("div",{className:`${C}-selection-extra`},f.createElement(yP,{menu:ze,getPopupContainer:D},f.createElement("span",null,f.createElement(TE,null))))}const Se=Z.map((ze,Ye)=>{const Ue=E(ze,Ye),Je=B.get(Ue)||{};return Object.assign({checked:_e.has(Ue)},Je)}).filter(ze=>{let{disabled:Ye}=ze;return Ye}),Ke=!!Se.length&&Se.length===Z.length,tt=Ke&&Se.every(ze=>{let{checked:Ye}=ze;return Ye}),se=Ke&&Se.some(ze=>{let{checked:Ye}=ze;return Ye});Ce=f.createElement(mp,{checked:Ke?tt:!!Z.length&&xe,indeterminate:Ke?!tt&&se:!xe&&we,onChange:De,disabled:Z.length===0||Ke,"aria-label":Oe?"Custom selection":"Select all",skipGroup:!0}),Fe=!S&&f.createElement("div",{className:`${C}-selection`},Ce,Oe)}let Te;p==="radio"?Te=(Oe,Se,Ke)=>{const tt=E(Se,Ke),se=_e.has(tt),ze=B.get(tt);return{node:f.createElement(ti,Object.assign({},ze,{checked:se,onClick:Ye=>{var Ue;Ye.stopPropagation(),(Ue=ze==null?void 0:ze.onClick)===null||Ue===void 0||Ue.call(ze,Ye)},onChange:Ye=>{var Ue;_e.has(tt)||ne(tt,!0,[tt],Ye.nativeEvent),(Ue=ze==null?void 0:ze.onChange)===null||Ue===void 0||Ue.call(ze,Ye)}})),checked:se}}:Te=(Oe,Se,Ke)=>{var tt;const se=E(Se,Ke),ze=_e.has(se),Ye=fe.has(se),Ue=B.get(se);let Je;return k==="nest"?Je=Ye:Je=(tt=Ue==null?void 0:Ue.indeterminate)!==null&&tt!==void 0?tt:Ye,{node:f.createElement(mp,Object.assign({},Ue,{indeterminate:Je,checked:ze,skipGroup:!0,onClick:Ze=>{var rt;Ze.stopPropagation(),(rt=Ue==null?void 0:Ue.onClick)===null||rt===void 0||rt.call(Ue,Ze)},onChange:Ze=>{var rt;const{nativeEvent:qt}=Ze,{shiftKey:St}=qt,Ot=le.findIndex(Dt=>Dt===se),Bt=Y.some(Dt=>le.includes(Dt));if(St&&b&&Bt){const Dt=A(Ot,le,_e),an=Array.from(_e);d==null||d(!ze,an.map(Vt=>x(Vt)),Dt.map(Vt=>x(Vt))),ee(an,"multiple")}else{const Dt=Y;if(b){const an=ze?vf(Dt,se):Ph(Dt,se);ne(se,!ze,an,qt)}else{const an=bu([].concat(pt(Dt),[se]),!0,N,V),{checkedKeys:Vt,halfCheckedKeys:Kt}=an;let Qt=Vt;if(ze){const et=new Set(Vt);et.delete(se),Qt=bu(Array.from(et),{checked:!1,halfCheckedKeys:Kt},N,V).checkedKeys}ne(se,!ze,Qt,qt)}}H(ze?null:Ot),(rt=Ue==null?void 0:Ue.onChange)===null||rt===void 0||rt.call(Ue,Ze)}})),checked:ze}};const ke=(Oe,Se,Ke)=>{const{node:tt,checked:se}=Te(Oe,Se,Ke);return y?y(se,Se,Ke,tt):tt};if(!he.includes(cm))if(he.findIndex(Oe=>{var Se;return((Se=Oe[ow])===null||Se===void 0?void 0:Se.columnType)==="EXPAND_COLUMN"})===0){const[Oe,...Se]=he;he=[Oe,cm].concat(pt(Se))}else he=[cm].concat(pt(he));const Pe=he.indexOf(cm);he=he.filter((Oe,Se)=>Oe!==cm||Se===Pe);const Ne=he[Pe-1],We=he[Pe+1];let Q=v;Q===void 0&&((We==null?void 0:We.fixed)!==void 0?Q=We.fixed:(Ne==null?void 0:Ne.fixed)!==void 0&&(Q=Ne.fixed)),Q&&Ne&&((pe=Ne[ow])===null||pe===void 0?void 0:pe.columnType)==="EXPAND_COLUMN"&&Ne.fixed===void 0&&(Ne.fixed=Q);const K=Re(`${C}-selection-col`,{[`${C}-selection-col-with-dropdown`]:m&&p==="checkbox"}),J=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(Ce):t.columnTitle:Fe,be={fixed:Q,width:h,className:`${C}-selection-column`,title:J(),render:ke,onCell:t.onCell,[ow]:{className:K}};return he.map(Oe=>Oe===cm?be:Oe)},[E,Z,t,Y,ce,fe,h,ue,k,B,d,ne,V]),ce]};function $dt(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 Rdt(e,t){return f.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)}}):$dt(r,n)})}function Adt(e){return t=>{const{prefixCls:n,onExpand:r,record:i,expanded:o,expandable:a}=t,s=`${n}-row-expand-icon`;return f.createElement("button",{type:"button",onClick:l=>{r(i,l),l.stopPropagation()},className:Re(s,{[`${s}-spaced`]:!a,[`${s}-expanded`]:a&&o,[`${s}-collapsed`]:a&&!o}),"aria-label":o?e.collapse:e.expand,"aria-expanded":o})}}function Ndt(e){return(n,r)=>{const i=n.querySelector(`.${e}-container`);let o=r;if(i){const a=getComputedStyle(i),s=parseInt(a.borderLeftWidth,10),l=parseInt(a.borderRightWidth,10);o=r-s-l}return o}}const og=(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 uC(e,t){return t?`${t}-${e}`:`${e}`}const _P=(e,t)=>typeof e=="function"?e(t):e,Ddt=(e,t)=>{const n=_P(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n};function Ldt(e){const t=f.useRef(e),n=pW();return[()=>t.current,r=>{t.current=r,n()}]}var Fdt=function(t){var n=t.dropPosition,r=t.dropLevelOffset,i=t.indent,o={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(n){case-1:o.top=0,o.left=-r*i;break;case 1:o.bottom=0,o.left=-r*i;break;case 0:o.bottom=0,o.left=i;break}return ge.createElement("div",{style:o})};function zCe(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function jdt(e,t){var n=f.useState(!1),r=Le(n,2),i=r[0],o=r[1];Er(function(){if(i)return e(),function(){t()}},[i]),Er(function(){return o(!0),function(){o(!1)}},[])}var Bdt=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Hdt=f.forwardRef(function(e,t){var n=e.className,r=e.style,i=e.motion,o=e.motionNodes,a=e.motionType,s=e.onMotionStart,l=e.onMotionEnd,c=e.active,u=e.treeNodeRequiredProps,d=tn(e,Bdt),h=f.useState(!0),p=Le(h,2),m=p[0],v=p[1],y=f.useContext(iV),S=y.prefixCls,b=o&&a!=="hide";Er(function(){o&&b!==m&&v(b)},[o]);var C=function(){o&&s()},_=f.useRef(!1),T=function(){o&&!_.current&&(_.current=!0,l())};jdt(C,T);var x=function(k){b===k&&T()};return o?f.createElement(ha,ut({ref:t,visible:m},i,{motionAppear:a==="show",onVisibleChanged:x}),function(E,k){var M=E.className,P=E.style;return f.createElement("div",{ref:k,className:Re("".concat(S,"-treenode-motion"),M),style:P},o.map(function(D){var R=Object.assign({},(zCe(D.data),D.data)),A=D.title,H=D.key,F=D.isStart,z=D.isEnd;delete R.children;var W=rw(H,u);return f.createElement(S_,ut({},R,W,{title:A,active:c,data:D.data,key:H,isStart:F,isEnd:z}))}))}):f.createElement(S_,ut({domRef:t,className:n,style:r},d,{active:c}))});function zdt(){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 s=new Map;o.forEach(function(c){s.set(c,!0)});var l=a.filter(function(c){return!s.has(c)});return l.length===1?l[0]:null}return n<r?{add:!0,key:i(e,t)}:{add:!1,key:i(t,e)}}function ine(e,t,n){var r=e.findIndex(function(s){return s.key===n}),i=e[r+1],o=t.findIndex(function(s){return s.key===n});if(i){var a=t.findIndex(function(s){return s.key===i.key});return t.slice(o+1,a)}return t.slice(o+1)}var Udt=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],one={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Wdt=function(){},Ev="RC_TREE_MOTION_".concat(Math.random()),mj={key:Ev},UCe={key:Ev,level:0,index:0,pos:"0",node:mj,nodes:[mj]},ane={parent:null,children:[],pos:UCe.pos,data:mj,title:null,key:Ev,isStart:[],isEnd:[]};function sne(e,t,n,r){return t===!1||!n?e:e.slice(0,Math.ceil(n/r)+1)}function lne(e){var t=e.key,n=e.pos;return RE(t,n)}function Vdt(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 Kdt=f.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,s=e.loadedKeys,l=e.loadingKeys,c=e.halfCheckedKeys,u=e.keyEntities,d=e.disabled,h=e.dragging,p=e.dragOverNodeKey,m=e.dropPosition,v=e.motion,y=e.height,S=e.itemHeight,b=e.virtual,C=e.scrollWidth,_=e.focusable,T=e.activeItem,x=e.focused,E=e.tabIndex,k=e.onKeyDown,M=e.onFocus,P=e.onBlur,D=e.onActiveChange,R=e.onListChangeStart,A=e.onListChangeEnd,H=tn(e,Udt),F=f.useRef(null),z=f.useRef(null);f.useImperativeHandle(t,function(){return{scrollTo:function(ke){F.current.scrollTo(ke)},getIndentWidth:function(){return z.current.offsetWidth}}});var W=f.useState(i),q=Le(W,2),Z=q[0],N=q[1],B=f.useState(r),V=Le(B,2),Y=V[0],ie=V[1],ce=f.useState(r),fe=Le(ce,2),ee=fe[0],ne=fe[1],ue=f.useState([]),ye=Le(ue,2),me=ye[0],pe=ye[1],he=f.useState(null),_e=Le(he,2),le=_e[0],xe=_e[1],we=f.useRef(r);we.current=r;function De(){var Te=we.current;ie(Te),ne(Te),pe([]),xe(null),A()}Er(function(){N(i);var Te=zdt(Z,i);if(Te.key!==null)if(Te.add){var ke=Y.findIndex(function(J){var be=J.key;return be===Te.key}),Pe=sne(ine(Y,r,Te.key),b,y,S),Ne=Y.slice();Ne.splice(ke+1,0,ane),ne(Ne),pe(Pe),xe("show")}else{var We=r.findIndex(function(J){var be=J.key;return be===Te.key}),Q=sne(ine(r,Y,Te.key),b,y,S),K=r.slice();K.splice(We+1,0,ane),ne(K),pe(Q),xe("hide")}else Y!==r&&(ie(r),ne(r))},[i,r]),f.useEffect(function(){h||De()},[h]);var Fe=v?ee:r,Ce={expandedKeys:i,selectedKeys:o,loadedKeys:s,loadingKeys:l,checkedKeys:a,halfCheckedKeys:c,dragOverNodeKey:p,dropPosition:m,keyEntities:u};return f.createElement(f.Fragment,null,x&&T&&f.createElement("span",{style:one,"aria-live":"assertive"},Vdt(T)),f.createElement("div",null,f.createElement("input",{style:one,disabled:_===!1||d,tabIndex:_!==!1?E:null,onKeyDown:k,onFocus:M,onBlur:P,value:"",onChange:Wdt,"aria-label":"for screen reader"})),f.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},f.createElement("div",{className:"".concat(n,"-indent")},f.createElement("div",{ref:z,className:"".concat(n,"-indent-unit")}))),f.createElement(YO,ut({},H,{data:Fe,itemKey:lne,height:y,fullHeight:!1,virtual:b,itemHeight:S,scrollWidth:C,prefixCls:"".concat(n,"-list"),ref:F,role:"tree",onVisibleChange:function(ke){ke.every(function(Pe){return lne(Pe)!==Ev})&&De()}}),function(Te){var ke=Te.pos,Pe=Object.assign({},(zCe(Te.data),Te.data)),Ne=Te.title,We=Te.key,Q=Te.isStart,K=Te.isEnd,J=RE(We,ke);delete Pe.key,delete Pe.children;var be=rw(J,Ce);return f.createElement(Hdt,ut({},Pe,be,{title:Ne,active:!!T&&We===T.key,pos:ke,data:Te.data,isStart:Q,isEnd:K,motion:v,motionNodes:We===Ev?me:null,motionType:le,onMotionStart:R,onMotionEnd:De,treeNodeRequiredProps:Ce,onMouseMove:function(){D(null)}}))}))}),qdt=10,EP=function(e){Xs(n,e);var t=Sl(n);function n(){var r;pi(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)),ae(On(r),"destroyed",!1),ae(On(r),"delayedDragEnterLogic",void 0),ae(On(r),"loadingRetryTimes",{}),ae(On(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:rS()}),ae(On(r),"dragStartMousePosition",null),ae(On(r),"dragNodeProps",null),ae(On(r),"currentMouseOverDroppableNodeKey",null),ae(On(r),"listRef",f.createRef()),ae(On(r),"onNodeDragStart",function(s,l){var c=r.state,u=c.expandedKeys,d=c.keyEntities,h=r.props.onDragStart,p=l.eventKey;r.dragNodeProps=l,r.dragStartMousePosition={x:s.clientX,y:s.clientY};var m=vf(u,p);r.setState({draggingNodeKey:p,dragChildrenKeys:kdt(p,d),indent:r.listRef.current.getIndentWidth()}),r.setExpandedKeys(m),window.addEventListener("dragend",r.onWindowDragEnd),h==null||h({event:s,node:wa(l)})}),ae(On(r),"onNodeDragEnter",function(s,l){var c=r.state,u=c.expandedKeys,d=c.keyEntities,h=c.dragChildrenKeys,p=c.flattenNodes,m=c.indent,v=r.props,y=v.onDragEnter,S=v.onExpand,b=v.allowDrop,C=v.direction,_=l.pos,T=l.eventKey;if(r.currentMouseOverDroppableNodeKey!==T&&(r.currentMouseOverDroppableNodeKey=T),!r.dragNodeProps){r.resetDragState();return}var x=tne(s,r.dragNodeProps,l,m,r.dragStartMousePosition,b,p,d,u,C),E=x.dropPosition,k=x.dropLevelOffset,M=x.dropTargetKey,P=x.dropContainerKey,D=x.dropTargetPos,R=x.dropAllowed,A=x.dragOverNodeKey;if(h.includes(M)||!R){r.resetDragState();return}if(r.delayedDragEnterLogic||(r.delayedDragEnterLogic={}),Object.keys(r.delayedDragEnterLogic).forEach(function(H){clearTimeout(r.delayedDragEnterLogic[H])}),r.dragNodeProps.eventKey!==l.eventKey&&(s.persist(),r.delayedDragEnterLogic[_]=window.setTimeout(function(){if(r.state.draggingNodeKey!==null){var H=pt(u),F=jl(d,l.eventKey);F&&(F.children||[]).length&&(H=Ph(u,l.eventKey)),r.props.hasOwnProperty("expandedKeys")||r.setExpandedKeys(H),S==null||S(H,{node:wa(l),expanded:!0,nativeEvent:s.nativeEvent})}},800)),r.dragNodeProps.eventKey===M&&k===0){r.resetDragState();return}r.setState({dragOverNodeKey:A,dropPosition:E,dropLevelOffset:k,dropTargetKey:M,dropContainerKey:P,dropTargetPos:D,dropAllowed:R}),y==null||y({event:s,node:wa(l),expandedKeys:u})}),ae(On(r),"onNodeDragOver",function(s,l){var c=r.state,u=c.dragChildrenKeys,d=c.flattenNodes,h=c.keyEntities,p=c.expandedKeys,m=c.indent,v=r.props,y=v.onDragOver,S=v.allowDrop,b=v.direction;if(r.dragNodeProps){var C=tne(s,r.dragNodeProps,l,m,r.dragStartMousePosition,S,d,h,p,b),_=C.dropPosition,T=C.dropLevelOffset,x=C.dropTargetKey,E=C.dropContainerKey,k=C.dropTargetPos,M=C.dropAllowed,P=C.dragOverNodeKey;u.includes(x)||!M||(r.dragNodeProps.eventKey===x&&T===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&&T===r.state.dropLevelOffset&&x===r.state.dropTargetKey&&E===r.state.dropContainerKey&&k===r.state.dropTargetPos&&M===r.state.dropAllowed&&P===r.state.dragOverNodeKey||r.setState({dropPosition:_,dropLevelOffset:T,dropTargetKey:x,dropContainerKey:E,dropTargetPos:k,dropAllowed:M,dragOverNodeKey:P}),y==null||y({event:s,node:wa(l)}))}}),ae(On(r),"onNodeDragLeave",function(s,l){r.currentMouseOverDroppableNodeKey===l.eventKey&&!s.currentTarget.contains(s.relatedTarget)&&(r.resetDragState(),r.currentMouseOverDroppableNodeKey=null);var c=r.props.onDragLeave;c==null||c({event:s,node:wa(l)})}),ae(On(r),"onWindowDragEnd",function(s){r.onNodeDragEnd(s,null,!0),window.removeEventListener("dragend",r.onWindowDragEnd)}),ae(On(r),"onNodeDragEnd",function(s,l){var c=r.props.onDragEnd;r.setState({dragOverNodeKey:null}),r.cleanDragState(),c==null||c({event:s,node:wa(l)}),r.dragNodeProps=null,window.removeEventListener("dragend",r.onWindowDragEnd)}),ae(On(r),"onNodeDrop",function(s,l){var c,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,d=r.state,h=d.dragChildrenKeys,p=d.dropPosition,m=d.dropTargetKey,v=d.dropTargetPos,y=d.dropAllowed;if(y){var S=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),m!==null){var b=G(G({},rw(m,r.getTreeNodeRequiredProps())),{},{active:((c=r.getActiveItem())===null||c===void 0?void 0:c.key)===m,data:jl(r.state.keyEntities,m).node}),C=h.includes(m);fi(!C,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var _=oV(v),T={event:s,node:wa(b),dragNode:r.dragNodeProps?wa(r.dragNodeProps):null,dragNodesKeys:[r.dragNodeProps.eventKey].concat(h),dropToGap:p!==0,dropPosition:p+Number(_[_.length-1])};u||S==null||S(T),r.dragNodeProps=null}}}),ae(On(r),"cleanDragState",function(){var s=r.state.draggingNodeKey;s!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null}),ae(On(r),"triggerExpandActionExpand",function(s,l){var c=r.state,u=c.expandedKeys,d=c.flattenNodes,h=l.expanded,p=l.key,m=l.isLeaf;if(!(m||s.shiftKey||s.metaKey||s.ctrlKey)){var v=d.filter(function(S){return S.key===p})[0],y=wa(G(G({},rw(p,r.getTreeNodeRequiredProps())),{},{data:v.data}));r.setExpandedKeys(h?vf(u,p):Ph(u,p)),r.onNodeExpand(s,y)}}),ae(On(r),"onNodeClick",function(s,l){var c=r.props,u=c.onClick,d=c.expandAction;d==="click"&&r.triggerExpandActionExpand(s,l),u==null||u(s,l)}),ae(On(r),"onNodeDoubleClick",function(s,l){var c=r.props,u=c.onDoubleClick,d=c.expandAction;d==="doubleClick"&&r.triggerExpandActionExpand(s,l),u==null||u(s,l)}),ae(On(r),"onNodeSelect",function(s,l){var c=r.state.selectedKeys,u=r.state,d=u.keyEntities,h=u.fieldNames,p=r.props,m=p.onSelect,v=p.multiple,y=l.selected,S=l[h.key],b=!y;b?v?c=Ph(c,S):c=[S]:c=vf(c,S);var C=c.map(function(_){var T=jl(d,_);return T?T.node:null}).filter(Boolean);r.setUncontrolledState({selectedKeys:c}),m==null||m(c,{event:"select",selected:b,node:l,selectedNodes:C,nativeEvent:s.nativeEvent})}),ae(On(r),"onNodeCheck",function(s,l,c){var u=r.state,d=u.keyEntities,h=u.checkedKeys,p=u.halfCheckedKeys,m=r.props,v=m.checkStrictly,y=m.onCheck,S=l.key,b,C={event:"check",node:l,checked:c,nativeEvent:s.nativeEvent};if(v){var _=c?Ph(h,S):vf(h,S),T=vf(p,S);b={checked:_,halfChecked:T},C.checkedNodes=_.map(function(D){return jl(d,D)}).filter(Boolean).map(function(D){return D.node}),r.setUncontrolledState({checkedKeys:_})}else{var x=bu([].concat(pt(h),[S]),!0,d),E=x.checkedKeys,k=x.halfCheckedKeys;if(!c){var M=new Set(E);M.delete(S);var P=bu(Array.from(M),{checked:!1,halfCheckedKeys:k},d);E=P.checkedKeys,k=P.halfCheckedKeys}b=E,C.checkedNodes=[],C.checkedNodesPositions=[],C.halfCheckedKeys=k,E.forEach(function(D){var R=jl(d,D);if(R){var A=R.node,H=R.pos;C.checkedNodes.push(A),C.checkedNodesPositions.push({node:A,pos:H})}}),r.setUncontrolledState({checkedKeys:E},!1,{halfCheckedKeys:k})}y==null||y(b,C)}),ae(On(r),"onNodeLoad",function(s){var l,c=s.key,u=r.state.keyEntities,d=jl(u,c);if(!(d!=null&&(l=d.children)!==null&&l!==void 0&&l.length)){var h=new Promise(function(p,m){r.setState(function(v){var y=v.loadedKeys,S=y===void 0?[]:y,b=v.loadingKeys,C=b===void 0?[]:b,_=r.props,T=_.loadData,x=_.onLoad;if(!T||S.includes(c)||C.includes(c))return null;var E=T(s);return E.then(function(){var k=r.state.loadedKeys,M=Ph(k,c);x==null||x(M,{event:"load",node:s}),r.setUncontrolledState({loadedKeys:M}),r.setState(function(P){return{loadingKeys:vf(P.loadingKeys,c)}}),p()}).catch(function(k){if(r.setState(function(P){return{loadingKeys:vf(P.loadingKeys,c)}}),r.loadingRetryTimes[c]=(r.loadingRetryTimes[c]||0)+1,r.loadingRetryTimes[c]>=qdt){var M=r.state.loadedKeys;fi(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:Ph(M,c)}),p()}m(k)}),{loadingKeys:Ph(C,c)}})});return h.catch(function(){}),h}}),ae(On(r),"onNodeMouseEnter",function(s,l){var c=r.props.onMouseEnter;c==null||c({event:s,node:l})}),ae(On(r),"onNodeMouseLeave",function(s,l){var c=r.props.onMouseLeave;c==null||c({event:s,node:l})}),ae(On(r),"onNodeContextMenu",function(s,l){var c=r.props.onRightClick;c&&(s.preventDefault(),c({event:s,node:l}))}),ae(On(r),"onFocus",function(){var s=r.props.onFocus;r.setState({focused:!0});for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];s==null||s.apply(void 0,c)}),ae(On(r),"onBlur",function(){var s=r.props.onBlur;r.setState({focused:!1}),r.onActiveChange(null);for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];s==null||s.apply(void 0,c)}),ae(On(r),"getTreeNodeRequiredProps",function(){var s=r.state,l=s.expandedKeys,c=s.selectedKeys,u=s.loadedKeys,d=s.loadingKeys,h=s.checkedKeys,p=s.halfCheckedKeys,m=s.dragOverNodeKey,v=s.dropPosition,y=s.keyEntities;return{expandedKeys:l||[],selectedKeys:c||[],loadedKeys:u||[],loadingKeys:d||[],checkedKeys:h||[],halfCheckedKeys:p||[],dragOverNodeKey:m,dropPosition:v,keyEntities:y}}),ae(On(r),"setExpandedKeys",function(s){var l=r.state,c=l.treeData,u=l.fieldNames,d=WR(c,s,u);r.setUncontrolledState({expandedKeys:s,flattenNodes:d},!0)}),ae(On(r),"onNodeExpand",function(s,l){var c=r.state.expandedKeys,u=r.state,d=u.listChanging,h=u.fieldNames,p=r.props,m=p.onExpand,v=p.loadData,y=l.expanded,S=l[h.key];if(!d){var b=c.includes(S),C=!y;if(fi(y&&b||!y&&!b,"Expand state not sync with index check"),c=C?Ph(c,S):vf(c,S),r.setExpandedKeys(c),m==null||m(c,{node:l,expanded:C,nativeEvent:s.nativeEvent}),C&&v){var _=r.onNodeLoad(l);_&&_.then(function(){var T=WR(r.state.treeData,c,h);r.setUncontrolledState({flattenNodes:T})}).catch(function(){var T=r.state.expandedKeys,x=vf(T,S);r.setExpandedKeys(x)})}}}),ae(On(r),"onListChangeStart",function(){r.setUncontrolledState({listChanging:!0})}),ae(On(r),"onListChangeEnd",function(){setTimeout(function(){r.setUncontrolledState({listChanging:!1})})}),ae(On(r),"onActiveChange",function(s){var l=r.state.activeKey,c=r.props,u=c.onActiveChange,d=c.itemScrollOffset,h=d===void 0?0:d;l!==s&&(r.setState({activeKey:s}),s!==null&&r.scrollTo({key:s,offset:h}),u==null||u(s))}),ae(On(r),"getActiveItem",function(){var s=r.state,l=s.activeKey,c=s.flattenNodes;return l===null?null:c.find(function(u){var d=u.key;return d===l})||null}),ae(On(r),"offsetActiveKey",function(s){var l=r.state,c=l.flattenNodes,u=l.activeKey,d=c.findIndex(function(m){var v=m.key;return v===u});d===-1&&s<0&&(d=c.length),d=(d+s+c.length)%c.length;var h=c[d];if(h){var p=h.key;r.onActiveChange(p)}else r.onActiveChange(null)}),ae(On(r),"onKeyDown",function(s){var l=r.state,c=l.activeKey,u=l.expandedKeys,d=l.checkedKeys,h=l.fieldNames,p=r.props,m=p.onKeyDown,v=p.checkable,y=p.selectable;switch(s.which){case Pt.UP:{r.offsetActiveKey(-1),s.preventDefault();break}case Pt.DOWN:{r.offsetActiveKey(1),s.preventDefault();break}}var S=r.getActiveItem();if(S&&S.data){var b=r.getTreeNodeRequiredProps(),C=S.data.isLeaf===!1||!!(S.data[h.children]||[]).length,_=wa(G(G({},rw(c,b)),{},{data:S.data,active:!0}));switch(s.which){case Pt.LEFT:{C&&u.includes(c)?r.onNodeExpand({},_):S.parent&&r.onActiveChange(S.parent.key),s.preventDefault();break}case Pt.RIGHT:{C&&!u.includes(c)?r.onNodeExpand({},_):S.children&&S.children.length&&r.onActiveChange(S.children[0].key),s.preventDefault();break}case Pt.ENTER:case Pt.SPACE:{v&&!_.disabled&&_.checkable!==!1&&!_.disableCheckbox?r.onNodeCheck({},_,!d.includes(c)):!v&&y&&!_.disabled&&_.selectable!==!1&&r.onNodeSelect({},_);break}}}m==null||m(s)}),ae(On(r),"setUncontrolledState",function(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var u=!1,d=!0,h={};Object.keys(s).forEach(function(p){if(r.props.hasOwnProperty(p)){d=!1;return}u=!0,h[p]=s[p]}),u&&(!l||d)&&r.setState(G(G({},h),c))}}),ae(On(r),"scrollTo",function(s){r.listRef.current.scrollTo(s)}),r}return mi(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,s=a===void 0?0:a;o!==void 0&&o!==this.state.activeKey&&(this.setState({activeKey:o}),o!==null&&this.scrollTo({key:o,offset:s}))}},{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,s=i.keyEntities,l=i.draggingNodeKey,c=i.activeKey,u=i.dropLevelOffset,d=i.dropContainerKey,h=i.dropTargetKey,p=i.dropPosition,m=i.dragOverNodeKey,v=i.indent,y=this.props,S=y.prefixCls,b=y.className,C=y.style,_=y.showLine,T=y.focusable,x=y.tabIndex,E=x===void 0?0:x,k=y.selectable,M=y.showIcon,P=y.icon,D=y.switcherIcon,R=y.draggable,A=y.checkable,H=y.checkStrictly,F=y.disabled,z=y.motion,W=y.loadData,q=y.filterTreeNode,Z=y.height,N=y.itemHeight,B=y.scrollWidth,V=y.virtual,Y=y.titleRender,ie=y.dropIndicatorRender,ce=y.onContextMenu,fe=y.onScroll,ee=y.direction,ne=y.rootClassName,ue=y.rootStyle,ye=Hi(this.props,{aria:!0,data:!0}),me;R&&(ln(R)==="object"?me=R:typeof R=="function"?me={nodeDraggable:R}:me={});var pe={prefixCls:S,selectable:k,showIcon:M,icon:P,switcherIcon:D,draggable:me,draggingNodeKey:l,checkable:A,checkStrictly:H,disabled:F,keyEntities:s,dropLevelOffset:u,dropContainerKey:d,dropTargetKey:h,dropPosition:p,dragOverNodeKey:m,indent:v,direction:ee,dropIndicatorRender:ie,loadData:W,filterTreeNode:q,titleRender:Y,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};return f.createElement(iV.Provider,{value:pe},f.createElement("div",{className:Re(S,b,ne,ae(ae(ae({},"".concat(S,"-show-line"),_),"".concat(S,"-focused"),o),"".concat(S,"-active-focused"),c!==null)),style:ue},f.createElement(Kdt,ut({ref:this.listRef,prefixCls:S,style:C,data:a,disabled:F,selectable:k,checkable:!!A,motion:z,dragging:l!==null,height:Z,itemHeight:N,virtual:V,focusable:T,focused:o,tabIndex:E,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:ce,onScroll:fe,scrollWidth:B},this.getTreeNodeRequiredProps(),ye))))}}],[{key:"getDerivedStateFromProps",value:function(i,o){var a=o.prevProps,s={prevProps:i};function l(E){return!a&&i.hasOwnProperty(E)||a&&a[E]!==i[E]}var c,u=o.fieldNames;if(l("fieldNames")&&(u=rS(i.fieldNames),s.fieldNames=u),l("treeData")?c=i.treeData:l("children")&&(fi(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),c=kbe(i.children)),c){s.treeData=c;var d=AE(c,{fieldNames:u});s.keyEntities=G(ae({},Ev,UCe),d.keyEntities)}var h=s.keyEntities||o.keyEntities;if(l("expandedKeys")||a&&l("autoExpandParent"))s.expandedKeys=i.autoExpandParent||!a&&i.defaultExpandParent?dj(i.expandedKeys,h):i.expandedKeys;else if(!a&&i.defaultExpandAll){var p=G({},h);delete p[Ev];var m=[];Object.keys(p).forEach(function(E){var k=p[E];k.children&&k.children.length&&m.push(k.key)}),s.expandedKeys=m}else!a&&i.defaultExpandedKeys&&(s.expandedKeys=i.autoExpandParent||i.defaultExpandParent?dj(i.defaultExpandedKeys,h):i.defaultExpandedKeys);if(s.expandedKeys||delete s.expandedKeys,c||s.expandedKeys){var v=WR(c||o.treeData,s.expandedKeys||o.expandedKeys,u);s.flattenNodes=v}if(i.selectable&&(l("selectedKeys")?s.selectedKeys=nne(i.selectedKeys,i):!a&&i.defaultSelectedKeys&&(s.selectedKeys=nne(i.defaultSelectedKeys,i))),i.checkable){var y;if(l("checkedKeys")?y=JR(i.checkedKeys)||{}:!a&&i.defaultCheckedKeys?y=JR(i.defaultCheckedKeys)||{}:c&&(y=JR(i.checkedKeys)||{checkedKeys:o.checkedKeys,halfCheckedKeys:o.halfCheckedKeys}),y){var S=y,b=S.checkedKeys,C=b===void 0?[]:b,_=S.halfCheckedKeys,T=_===void 0?[]:_;if(!i.checkStrictly){var x=bu(C,!0,h);C=x.checkedKeys,T=x.halfCheckedKeys}s.checkedKeys=C,s.halfCheckedKeys=T}}return l("loadedKeys")&&(s.loadedKeys=i.loadedKeys),s}}]),n}(f.Component);ae(EP,"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:Fdt,allowDrop:function(){return!0},expandAction:!1});ae(EP,"TreeNode",S_);const Gdt=e=>{let{treeCls:t,treeNodeCls:n,directoryNodeSelectedBg:r,directoryNodeSelectedColor:i,motionDurationMid:o,borderRadius:a,controlItemBgHover:s}=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:s}},[`${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}}}}}},Ydt=new Mr("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Xdt=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),Qdt=(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:`${je(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Zdt=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:i,titleHeight:o,indentSize:a,nodeSelectedBg:s,nodeHoverBg:l,colorTextQuaternary:c,controlItemBgActiveDisabled:u}=t;return{[n]:Object.assign(Object.assign({},$r(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({},jd(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:Ydt,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:i,lineHeight:je(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"}},[`${n}-checkbox-disabled + ${n}-node-selected,&${r}-disabled${r}-selected ${n}-node-content-wrapper`]:{backgroundColor:u},[`&: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:c},[`&${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({},Xdt(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`},Qdt(e,t)),{"&:hover":{backgroundColor:l},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:s},[`${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:`${je(t.calc(o).div(2).equal())} !important`}})}},WCe=(e,t)=>{const n=`.${e}`,r=`${n}-treenode`,i=t.calc(t.paddingXS).div(2).equal(),o=ur(t,{treeCls:n,treeNodeCls:r,treeNodePadding:i});return[Zdt(e,o),Gdt(o)]},VCe=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}},Jdt=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},VCe(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})},eft=Tr("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:pP(`${n}-checkbox`,e)},WCe(n,e),bE(e)]},Jdt),cne=4;function tft(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:i,direction:o="ltr"}=e,a=o==="ltr"?"left":"right",s=o==="ltr"?"right":"left",l={[a]:-n*i+cne,[s]:0};switch(t){case-1:l.top=-3;break;case 1:l.bottom=-3;break;default:l.bottom=-3,l[a]=i+cne;break}return ge.createElement("div",{style:l,className:`${r}-drop-indicator`})}const KCe=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:i,switcherLoadingIcon:o}=e,{isLeaf:a,expanded:s,loading:l}=r;if(l)return f.isValidElement(o)?o:f.createElement(Bd,{className:`${t}-switcher-loading-icon`});let c;if(i&&typeof i=="object"&&(c=i.showLeafIcon),a){if(!i)return null;if(typeof c!="boolean"&&c){const h=typeof c=="function"?c(r):c,p=`${t}-switcher-line-custom-icon`;return f.isValidElement(h)?$o(h,{className:Re(h.props.className||"",p)}):h}return c?f.createElement(gCe,{className:`${t}-switcher-line-icon`}):f.createElement("span",{className:`${t}-switcher-leaf-line`})}const u=`${t}-switcher-icon`,d=typeof n=="function"?n(r):n;return f.isValidElement(d)?$o(d,{className:Re(d.props.className||"",u)}):d!==void 0?d:i?s?f.createElement(Vlt,{className:`${t}-switcher-line-icon`}):f.createElement(nct,{className:`${t}-switcher-line-icon`}):f.createElement(Gst,{className:u})},qCe=ge.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:i,virtual:o,tree:a}=ge.useContext(hn),{prefixCls:s,className:l,showIcon:c=!1,showLine:u,switcherIcon:d,switcherLoadingIcon:h,blockNode:p=!1,children:m,checkable:v=!1,selectable:y=!0,draggable:S,motion:b,style:C}=e,_=r("tree",s),T=r(),x=b??Object.assign(Object.assign({},Xb(T)),{motionAppear:!1}),E=Object.assign(Object.assign({},e),{checkable:v,selectable:y,showIcon:c,motion:x,blockNode:p,showLine:!!u,dropIndicatorRender:tft}),[k,M,P]=eft(_),[,D]=na(),R=D.paddingXS/2+(((n=D.Tree)===null||n===void 0?void 0:n.titleHeight)||D.controlHeightSM),A=ge.useMemo(()=>{if(!S)return!1;let F={};switch(typeof S){case"function":F.nodeDraggable=S;break;case"object":F=Object.assign({},S);break}return F.icon!==!1&&(F.icon=F.icon||ge.createElement(Rlt,null)),F},[S]),H=F=>ge.createElement(KCe,{prefixCls:_,switcherIcon:d,switcherLoadingIcon:h,treeNodeProps:F,showLine:u});return k(ge.createElement(EP,Object.assign({itemHeight:R,ref:t,virtual:o},E,{style:Object.assign(Object.assign({},a==null?void 0:a.style),C),prefixCls:_,className:Re({[`${_}-icon-hide`]:!c,[`${_}-block-node`]:p,[`${_}-unselectable`]:!y,[`${_}-rtl`]:i==="rtl"},a==null?void 0:a.className,l,M,P),direction:i,checkable:v&&ge.createElement("span",{className:`${_}-checkbox-inner`}),selectable:y,switcherIcon:H,draggable:A}),m))}),une=0,eA=1,dne=2;function aV(e,t,n){const{key:r,children:i}=n;function o(a){const s=a[r],l=a[i];t(s,a)!==!1&&aV(l||[],t,n)}e.forEach(o)}function nft(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:i,fieldNames:o}=e;const a=[];let s=une;if(r&&r===i)return[r];if(!r||!i)return[];function l(c){return c===r||c===i}return aV(t,c=>{if(s===dne)return!1;if(l(c)){if(a.push(c),s===une)s=eA;else if(s===eA)return s=dne,!1}else s===eA&&a.push(c);return n.includes(c)},rS(o)),a}function tA(e,t,n){const r=pt(t),i=[];return aV(e,(o,a)=>{const s=r.indexOf(o);return s!==-1&&(i.push(a),r.splice(s,1)),!!r.length},rS(n)),i}var fne=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 rft(e){const{isLeaf:t,expanded:n}=e;return t?f.createElement(gCe,null):n?f.createElement(Tlt,null):f.createElement(Plt,null)}function hne(e){let{treeData:t,children:n}=e;return t||kbe(n)}const ift=(e,t)=>{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:i}=e,o=fne(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const a=f.useRef(null),s=f.useRef(null),l=()=>{const{keyEntities:k}=AE(hne(o));let M;return n?M=Object.keys(k):r?M=dj(o.expandedKeys||i||[],k):M=o.expandedKeys||i||[],M},[c,u]=f.useState(o.selectedKeys||o.defaultSelectedKeys||[]),[d,h]=f.useState(()=>l());f.useEffect(()=>{"selectedKeys"in o&&u(o.selectedKeys)},[o.selectedKeys]),f.useEffect(()=>{"expandedKeys"in o&&h(o.expandedKeys)},[o.expandedKeys]);const p=(k,M)=>{var P;return"expandedKeys"in o||h(k),(P=o.onExpand)===null||P===void 0?void 0:P.call(o,k,M)},m=(k,M)=>{var P;const{multiple:D,fieldNames:R}=o,{node:A,nativeEvent:H}=M,{key:F=""}=A,z=hne(o),W=Object.assign(Object.assign({},M),{selected:!0}),q=(H==null?void 0:H.ctrlKey)||(H==null?void 0:H.metaKey),Z=H==null?void 0:H.shiftKey;let N;D&&q?(N=k,a.current=F,s.current=N,W.selectedNodes=tA(z,N,R)):D&&Z?(N=Array.from(new Set([].concat(pt(s.current||[]),pt(nft({treeData:z,expandedKeys:d,startKey:F,endKey:a.current,fieldNames:R}))))),W.selectedNodes=tA(z,N,R)):(N=[F],a.current=F,s.current=N,W.selectedNodes=tA(z,N,R)),(P=o.onSelect)===null||P===void 0||P.call(o,N,W),"selectedKeys"in o||u(N)},{getPrefixCls:v,direction:y}=f.useContext(hn),{prefixCls:S,className:b,showIcon:C=!0,expandAction:_="click"}=o,T=fne(o,["prefixCls","className","showIcon","expandAction"]),x=v("tree",S),E=Re(`${x}-directory`,{[`${x}-directory-rtl`]:y==="rtl"},b);return f.createElement(qCe,Object.assign({icon:rft,ref:t,blockNode:!0},T,{showIcon:C,expandAction:_,prefixCls:x,className:E,expandedKeys:d,selectedKeys:c,onSelect:m,onExpand:p}))},oft=f.forwardRef(ift),sV=qCe;sV.DirectoryTree=oft;sV.TreeNode=S_;const pne=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:i,onChange:o}=e;return n?f.createElement("div",{className:`${r}-filter-dropdown-search`},f.createElement($i,{prefix:f.createElement(XO,null),placeholder:i.filterSearchPlaceholder,onChange:o,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},aft=e=>{const{keyCode:t}=e;t===Pt.ENTER&&e.stopPropagation()},sft=f.forwardRef((e,t)=>f.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:aft,ref:t},e.children));function pb(e){let t=[];return(e||[]).forEach(n=>{let{value:r,children:i}=n;t.push(r),i&&(t=[].concat(pt(t),pt(pb(i))))}),t}function lft(e){return e.some(t=>{let{children:n}=t;return n})}function GCe(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function YCe(e){let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:o,filterSearch:a}=e;return t.map((s,l)=>{const c=String(s.value);if(s.children)return{key:c||l,label:s.text,popupClassName:`${n}-dropdown-submenu`,children:YCe({filters:s.children,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:o,filterSearch:a})};const u=i?mp:ti,d={key:s.value!==void 0?c:l,label:f.createElement(f.Fragment,null,f.createElement(u,{checked:r.includes(c)}),f.createElement("span",null,s.text))};return o.trim()?typeof a=="function"?a(o,s)?d:null:GCe(o,s.text)?d:null:d})}function nA(e){return e||[]}const cft=e=>{var t,n,r,i;const{tablePrefixCls:o,prefixCls:a,column:s,dropdownPrefixCls:l,columnKey:c,filterOnClose:u,filterMultiple:d,filterMode:h="menu",filterSearch:p=!1,filterState:m,triggerFilter:v,locale:y,children:S,getPopupContainer:b,rootClassName:C}=e,{filterResetToDefaultFilteredValue:_,defaultFilteredValue:T,filterDropdownProps:x={},filterDropdownOpen:E,filterDropdownVisible:k,onFilterDropdownVisibleChange:M,onFilterDropdownOpenChange:P}=s,[D,R]=f.useState(!1),A=!!(m&&(!((t=m.filteredKeys)===null||t===void 0)&&t.length||m.forceFiltered)),H=Te=>{var ke;R(Te),(ke=x.onOpenChange)===null||ke===void 0||ke.call(x,Te),P==null||P(Te),M==null||M(Te)},F=(i=(r=(n=x.open)!==null&&n!==void 0?n:E)!==null&&r!==void 0?r:k)!==null&&i!==void 0?i:D,z=m==null?void 0:m.filteredKeys,[W,q]=Ldt(nA(z)),Z=Te=>{let{selectedKeys:ke}=Te;q(ke)},N=(Te,ke)=>{let{node:Pe,checked:Ne}=ke;Z(d?{selectedKeys:Te}:{selectedKeys:Ne&&Pe.key?[Pe.key]:[]})};f.useEffect(()=>{D&&Z({selectedKeys:nA(z)})},[z]);const[B,V]=f.useState([]),Y=Te=>{V(Te)},[ie,ce]=f.useState(""),fe=Te=>{const{value:ke}=Te.target;ce(ke)};f.useEffect(()=>{D||ce("")},[D]);const ee=Te=>{const ke=Te!=null&&Te.length?Te:null;if(ke===null&&(!m||!m.filteredKeys)||ku(ke,m==null?void 0:m.filteredKeys,!0))return null;v({column:s,key:c,filteredKeys:ke})},ne=()=>{H(!1),ee(W())},ue=function(){let{confirm:Te,closeDropdown:ke}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Te&&ee([]),ke&&H(!1),ce(""),q(_?(T||[]).map(Pe=>String(Pe)):[])},ye=function(){let{closeDropdown:Te}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Te&&H(!1),ee(W())},me=(Te,ke)=>{ke.source==="trigger"&&(Te&&z!==void 0&&q(nA(z)),H(Te),!Te&&!s.filterDropdown&&u&&ne())},pe=Re({[`${l}-menu-without-submenu`]:!lft(s.filters||[])}),he=Te=>{if(Te.target.checked){const ke=pb(s==null?void 0:s.filters).map(Pe=>String(Pe));q(ke)}else q([])},_e=Te=>{let{filters:ke}=Te;return(ke||[]).map((Pe,Ne)=>{const We=String(Pe.value),Q={title:Pe.text,key:Pe.value!==void 0?We:String(Ne)};return Pe.children&&(Q.children=_e({filters:Pe.children})),Q})},le=Te=>{var ke;return Object.assign(Object.assign({},Te),{text:Te.title,value:Te.key,children:((ke=Te.children)===null||ke===void 0?void 0:ke.map(Pe=>le(Pe)))||[]})};let xe;const{direction:we,renderEmpty:De}=f.useContext(hn);if(typeof s.filterDropdown=="function")xe=s.filterDropdown({prefixCls:`${l}-custom`,setSelectedKeys:Te=>Z({selectedKeys:Te}),selectedKeys:W(),confirm:ye,clearFilters:ue,filters:s.filters,visible:F,close:()=>{H(!1)}});else if(s.filterDropdown)xe=s.filterDropdown;else{const Te=W()||[],ke=()=>{var Ne;const We=(Ne=De==null?void 0:De("Table.filter"))!==null&&Ne!==void 0?Ne:f.createElement(zh,{image:zh.PRESENTED_IMAGE_SIMPLE,description:y.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((s.filters||[]).length===0)return We;if(h==="tree")return f.createElement(f.Fragment,null,f.createElement(pne,{filterSearch:p,value:ie,onChange:fe,tablePrefixCls:o,locale:y}),f.createElement("div",{className:`${o}-filter-dropdown-tree`},d?f.createElement(mp,{checked:Te.length===pb(s.filters).length,indeterminate:Te.length>0&&Te.length<pb(s.filters).length,className:`${o}-filter-dropdown-checkall`,onChange:he},y.filterCheckall):null,f.createElement(sV,{checkable:!0,selectable:!1,blockNode:!0,multiple:d,checkStrictly:!d,className:`${l}-menu`,onCheck:N,checkedKeys:Te,selectedKeys:Te,showIcon:!1,treeData:_e({filters:s.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:ie.trim()?J=>typeof p=="function"?p(ie,le(J)):GCe(ie,J.title):void 0})));const Q=YCe({filters:s.filters||[],filterSearch:p,prefixCls:a,filteredKeys:W(),filterMultiple:d,searchValue:ie}),K=Q.every(J=>J===null);return f.createElement(f.Fragment,null,f.createElement(pne,{filterSearch:p,value:ie,onChange:fe,tablePrefixCls:o,locale:y}),K?We:f.createElement(Jd,{selectable:!0,multiple:d,prefixCls:`${l}-menu`,className:pe,onSelect:Z,onDeselect:Z,selectedKeys:Te,getPopupContainer:b,openKeys:B,onOpenChange:Y,items:Q}))},Pe=()=>_?ku((T||[]).map(Ne=>String(Ne)),Te,!0):Te.length===0;xe=f.createElement(f.Fragment,null,ke(),f.createElement("div",{className:`${a}-dropdown-btns`},f.createElement(hr,{type:"link",size:"small",disabled:Pe(),onClick:()=>ue()},y.filterReset),f.createElement(hr,{type:"primary",size:"small",onClick:ne},y.filterConfirm)))}s.filterDropdown&&(xe=f.createElement(cye,{selectable:void 0},xe)),xe=f.createElement(sft,{className:`${a}-dropdown`},xe);const Ce=QW({trigger:["click"],placement:we==="rtl"?"bottomLeft":"bottomRight",children:(()=>{let Te;return typeof s.filterIcon=="function"?Te=s.filterIcon(A):s.filterIcon?Te=s.filterIcon:Te=f.createElement(wlt,null),f.createElement("span",{role:"button",tabIndex:-1,className:Re(`${a}-trigger`,{active:A}),onClick:ke=>{ke.stopPropagation()}},Te)})(),getPopupContainer:b},Object.assign(Object.assign({},x),{rootClassName:Re(C,x.rootClassName),open:F,onOpenChange:me,dropdownRender:()=>typeof(x==null?void 0:x.dropdownRender)=="function"?x.dropdownRender(xe):xe}));return f.createElement("div",{className:`${a}-column`},f.createElement("span",{className:`${o}-column-title`},S),f.createElement(yP,Object.assign({},Ce)))},gj=(e,t,n)=>{let r=[];return(e||[]).forEach((i,o)=>{var a;const s=uC(o,n);if(i.filters||"filterDropdown"in i||"onFilter"in i)if("filteredValue"in i){let l=i.filteredValue;"filterDropdown"in i||(l=(a=l==null?void 0:l.map(String))!==null&&a!==void 0?a:l),r.push({column:i,key:og(i,s),filteredKeys:l,forceFiltered:i.filtered})}else r.push({column:i,key:og(i,s),filteredKeys:t&&i.defaultFilteredValue?i.defaultFilteredValue:void 0,forceFiltered:i.filtered});"children"in i&&(r=[].concat(pt(r),pt(gj(i.children,t,s))))}),r};function XCe(e,t,n,r,i,o,a,s,l){return n.map((c,u)=>{const d=uC(u,s),{filterOnClose:h=!0,filterMultiple:p=!0,filterMode:m,filterSearch:v}=c;let y=c;if(y.filters||y.filterDropdown){const S=og(y,d),b=r.find(C=>{let{key:_}=C;return S===_});y=Object.assign(Object.assign({},y),{title:C=>f.createElement(cft,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:y,columnKey:S,filterState:b,filterOnClose:h,filterMultiple:p,filterMode:m,filterSearch:v,triggerFilter:o,locale:i,getPopupContainer:a,rootClassName:l},_P(c.title,C))})}return"children"in y&&(y=Object.assign(Object.assign({},y),{children:XCe(e,t,y.children,r,i,o,a,d,l)})),y})}const mne=e=>{const t={};return e.forEach(n=>{let{key:r,filteredKeys:i,column:o}=n;const a=r,{filters:s,filterDropdown:l}=o;if(l)t[a]=i||null;else if(Array.isArray(i)){const c=pb(s);t[a]=c.filter(u=>i.includes(String(u)))}else t[a]=null}),t},vj=(e,t,n)=>t.reduce((i,o)=>{const{column:{onFilter:a,filters:s},filteredKeys:l}=o;return a&&l&&l.length?i.map(c=>Object.assign({},c)).filter(c=>l.some(u=>{const d=pb(s),h=d.findIndex(m=>String(m)===String(u)),p=h!==-1?d[h]:u;return c[n]&&(c[n]=vj(c[n],t,n)),a(p,c)})):i},e),QCe=e=>e.flatMap(t=>"children"in t?[t].concat(pt(QCe(t.children||[]))):[t]),uft=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:i,getPopupContainer:o,locale:a,rootClassName:s}=e;eh();const l=f.useMemo(()=>QCe(r||[]),[r]),[c,u]=f.useState(()=>gj(l,!0)),d=f.useMemo(()=>{const v=gj(l,!1);if(v.length===0)return v;let y=!0;if(v.forEach(S=>{let{filteredKeys:b}=S;b!==void 0&&(y=!1)}),y){const S=(l||[]).map((b,C)=>og(b,uC(C)));return c.filter(b=>{let{key:C}=b;return S.includes(C)}).map(b=>{const C=l[S.findIndex(_=>_===b.key)];return Object.assign(Object.assign({},b),{column:Object.assign(Object.assign({},b.column),C),forceFiltered:C.filtered})})}return v},[l,c]),h=f.useMemo(()=>mne(d),[d]),p=v=>{const y=d.filter(S=>{let{key:b}=S;return b!==v.key});y.push(v),u(y),i(mne(y),y)};return[v=>XCe(t,n,v,d,a,p,o,void 0,s),d,h]},dft=(e,t,n)=>{const r=f.useRef({});function i(o){var a;if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let l=function(c){c.forEach((u,d)=>{const h=n(u,d);s.set(h,u),u&&typeof u=="object"&&t in u&&l(u[t]||[])})};const s=new Map;l(e),r.current={data:e,childrenColumnName:t,kvMap:s,getRowKey:n}}return(a=r.current.kvMap)===null||a===void 0?void 0:a.get(o)}return[i]};var fft=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=10;function hft(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 pft(e,t,n){const r=n&&typeof n=="object"?n:{},{total:i=0}=r,o=fft(r,["total"]),[a,s]=f.useState(()=>({current:"defaultCurrent"in o?o.defaultCurrent:1,pageSize:"defaultPageSize"in o?o.defaultPageSize:ZCe})),l=QW(a,o,{total:i>0?i:e}),c=Math.ceil((i||e)/l.pageSize);l.current>c&&(l.current=c||1);const u=(h,p)=>{s({current:h??1,pageSize:p||l.pageSize})},d=(h,p)=>{var m;n&&((m=n.onChange)===null||m===void 0||m.call(n,h,p)),u(h,p),t(h,p||(l==null?void 0:l.pageSize))};return n===!1?[{},()=>{}]:[Object.assign(Object.assign({},l),{onChange:d}),u]}const U3="ascend",rA="descend",ik=e=>typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1,gne=e=>typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1,mft=(e,t)=>t?e[e.indexOf(t)+1]:e[0],yj=(e,t,n)=>{let r=[];const i=(o,a)=>{r.push({column:o,key:og(o,a),multiplePriority:ik(o),sortOrder:o.sortOrder})};return(e||[]).forEach((o,a)=>{const s=uC(a,n);o.children?("sortOrder"in o&&i(o,s),r=[].concat(pt(r),pt(yj(o.children,t,s)))):o.sorter&&("sortOrder"in o?i(o,s):t&&o.defaultSortOrder&&r.push({column:o,key:og(o,s),multiplePriority:ik(o),sortOrder:o.defaultSortOrder}))}),r},JCe=(e,t,n,r,i,o,a,s)=>(t||[]).map((c,u)=>{const d=uC(u,s);let h=c;if(h.sorter){const p=h.sortDirections||i,m=h.showSorterTooltip===void 0?a:h.showSorterTooltip,v=og(h,d),y=n.find(M=>{let{key:P}=M;return P===v}),S=y?y.sortOrder:null,b=mft(p,S);let C;if(c.sortIcon)C=c.sortIcon({sortOrder:S});else{const M=p.includes(U3)&&f.createElement(elt,{className:Re(`${e}-column-sorter-up`,{active:S===U3})}),P=p.includes(rA)&&f.createElement(Qst,{className:Re(`${e}-column-sorter-down`,{active:S===rA})});C=f.createElement("span",{className:Re(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(M&&P)})},f.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},M,P))}const{cancelSort:_,triggerAsc:T,triggerDesc:x}=o||{};let E=_;b===rA?E=x:b===U3&&(E=T);const k=typeof m=="object"?Object.assign({title:E},m):{title:E};h=Object.assign(Object.assign({},h),{className:Re(h.className,{[`${e}-column-sort`]:S}),title:M=>{const P=`${e}-column-sorters`,D=f.createElement("span",{className:`${e}-column-title`},_P(c.title,M)),R=f.createElement("div",{className:P},D,C);return m?typeof m!="boolean"&&(m==null?void 0:m.target)==="sorter-icon"?f.createElement("div",{className:`${P} ${e}-column-sorters-tooltip-target-sorter`},D,f.createElement(ta,Object.assign({},k),C)):f.createElement(ta,Object.assign({},k),R):R},onHeaderCell:M=>{var P;const D=((P=c.onHeaderCell)===null||P===void 0?void 0:P.call(c,M))||{},R=D.onClick,A=D.onKeyDown;D.onClick=z=>{r({column:c,key:v,sortOrder:b,multiplePriority:ik(c)}),R==null||R(z)},D.onKeyDown=z=>{z.keyCode===Pt.ENTER&&(r({column:c,key:v,sortOrder:b,multiplePriority:ik(c)}),A==null||A(z))};const H=Ddt(c.title,{}),F=H==null?void 0:H.toString();return S?D["aria-sort"]=S==="ascend"?"ascending":"descending":D["aria-label"]=F||"",D.className=Re(D.className,`${e}-column-has-sorters`),D.tabIndex=0,c.ellipsis&&(D.title=(H??"").toString()),D}})}return"children"in h&&(h=Object.assign(Object.assign({},h),{children:JCe(e,h.children,n,r,i,o,a,d)})),h}),vne=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},yne=e=>{const t=e.filter(n=>{let{sortOrder:r}=n;return r}).map(vne);if(t.length===0&&e.length){const n=e.length-1;return Object.assign(Object.assign({},vne(e[n])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},bj=(e,t,n)=>{const r=t.slice().sort((a,s)=>s.multiplePriority-a.multiplePriority),i=e.slice(),o=r.filter(a=>{let{column:{sorter:s},sortOrder:l}=a;return gne(s)&&l});return o.length?i.sort((a,s)=>{for(let l=0;l<o.length;l+=1){const c=o[l],{column:{sorter:u},sortOrder:d}=c,h=gne(u);if(h&&d){const p=h(a,s,d);if(p!==0)return d===U3?p:-p}}return 0}).map(a=>{const s=a[n];return s?Object.assign(Object.assign({},a),{[n]:bj(s,t,n)}):a}):i},gft=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:i,showSorterTooltip:o,onSorterChange:a}=e,[s,l]=f.useState(yj(n,!0)),c=(v,y)=>{const S=[];return v.forEach((b,C)=>{const _=uC(C,y);if(S.push(og(b,_)),Array.isArray(b.children)){const T=c(b.children,_);S.push.apply(S,pt(T))}}),S},u=f.useMemo(()=>{let v=!0;const y=yj(n,!1);if(!y.length){const _=c(n);return s.filter(T=>{let{key:x}=T;return _.includes(x)})}const S=[];function b(_){v?S.push(_):S.push(Object.assign(Object.assign({},_),{sortOrder:null}))}let C=null;return y.forEach(_=>{C===null?(b(_),_.sortOrder&&(_.multiplePriority===!1?v=!1:C=!0)):(C&&_.multiplePriority!==!1||(v=!1),b(_))}),S},[n,s]),d=f.useMemo(()=>{var v,y;const S=u.map(b=>{let{column:C,sortOrder:_}=b;return{column:C,order:_}});return{sortColumns:S,sortColumn:(v=S[0])===null||v===void 0?void 0:v.column,sortOrder:(y=S[0])===null||y===void 0?void 0:y.order}},[u]),h=v=>{let y;v.multiplePriority===!1||!u.length||u[0].multiplePriority===!1?y=[v]:y=[].concat(pt(u.filter(S=>{let{key:b}=S;return b!==v.key})),[v]),l(y),a(yne(y),y)};return[v=>JCe(t,v,u,h,r,i,o),u,d,()=>yne(u)]},exe=(e,t)=>e.map(r=>{const i=Object.assign({},r);return i.title=_P(r.title,t),"children"in i&&(i.children=exe(i.children,t)),i}),vft=e=>[f.useCallback(n=>exe(n,e),[e])],yft=LCe((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),bft=jCe((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),Sft=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:i,tableHeaderBg:o,tablePaddingVertical:a,tablePaddingHorizontal:s,calc:l}=e,c=`${je(n)} ${r} ${i}`,u=(d,h,p)=>({[`&${t}-${d}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${je(l(h).mul(-1).equal())}
|
||
${je(l(l(p).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:c,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:c,borderTop:c,[`
|
||
> ${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:c},"> thead":{"> tr:not(:last-child) > th":{borderBottom:c},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:c}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${je(l(a).mul(-1).equal())} ${je(l(l(s).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:c,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`
|
||
> tr${t}-expanded-row,
|
||
> tr${t}-placeholder
|
||
`]:{"> th, > td":{borderInlineEnd:0}}}}}},u("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),u("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:c,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${je(n)} 0 ${je(n)} ${o}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:c}}}},Cft=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},Yl),{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"}})}}},xft=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}}}}},wft=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:i,paddingXS:o,lineType:a,tableBorderColor:s,tableExpandIconBg:l,tableExpandColumnWidth:c,borderRadius:u,tablePaddingVertical:d,tablePaddingHorizontal:h,tableExpandedRowBg:p,paddingXXS:m,expandIconMarginTop:v,expandIconSize:y,expandIconHalfInner:S,expandIconScale:b,calc:C}=e,_=`${je(i)} ${a} ${s}`,T=C(m).sub(i).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:c},[`${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({},DU(e)),{position:"relative",float:"left",width:y,height:y,color:"inherit",lineHeight:je(y),background:l,border:_,borderRadius:u,transform:`scale(${b})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:S,insetInlineEnd:T,insetInlineStart:T,height:i},"&::after":{top:T,bottom:T,insetInlineStart:S,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:v,marginInlineEnd:o},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:p}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${je(C(d).mul(-1).equal())} ${je(C(h).mul(-1).equal())}`,padding:`${je(d)} ${je(h)}`}}}},_ft=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:i,tableFilterDropdownSearchWidth:o,paddingXXS:a,paddingXS:s,colorText:l,lineWidth:c,lineType:u,tableBorderColor:d,headerIconColor:h,fontSizeSM:p,tablePaddingHorizontal:m,borderRadius:v,motionDurationSlow:y,colorTextDescription:S,colorPrimary:b,tableHeaderFilterActiveBg:C,colorTextDisabled:_,tableFilterDropdownBg:T,tableFilterDropdownHeight:x,controlItemBgHover:E,controlItemBgActive:k,boxShadowSecondary:M,filterDropdownMenuBg:P,calc:D}=e,R=`${n}-dropdown`,A=`${t}-filter-dropdown`,H=`${n}-tree`,F=`${je(c)} ${u} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:D(a).mul(-1).equal(),marginInline:`${je(a)} ${je(D(m).div(2).mul(-1).equal())}`,padding:`0 ${je(a)}`,color:h,fontSize:p,borderRadius:v,cursor:"pointer",transition:`all ${y}`,"&:hover":{color:S,background:C},"&.active":{color:b}}}},{[`${n}-dropdown`]:{[A]:Object.assign(Object.assign({},$r(e)),{minWidth:i,backgroundColor:T,borderRadius:v,boxShadow:M,overflow:"hidden",[`${R}-menu`]:{maxHeight:x,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:P,"&:empty::after":{display:"block",padding:`${je(s)} 0`,color:_,fontSize:p,textAlign:"center",content:'"Not Found"'}},[`${A}-tree`]:{paddingBlock:`${je(s)} 0`,paddingInline:s,[H]:{padding:0},[`${H}-treenode ${H}-node-content-wrapper:hover`]:{backgroundColor:E},[`${H}-treenode-checkbox-checked ${H}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:k}}},[`${A}-search`]:{padding:s,borderBottom:F,"&-input":{input:{minWidth:o},[r]:{color:_}}},[`${A}-checkall`]:{width:"100%",marginBottom:a,marginInlineStart:a},[`${A}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${je(D(s).sub(c).equal())} ${je(s)}`,overflow:"hidden",borderTop:F}})}},{[`${n}-dropdown ${A}, ${A}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:s,color:l},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Eft=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:i,zIndexTableFixed:o,tableBg:a,zIndexTableSticky:s,calc:l}=e,c=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:l(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:l(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:l(s).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 ${c}`},[`
|
||
${t}-cell-fix-left-first::after,
|
||
${t}-cell-fix-left-last::after
|
||
`]:{boxShadow:`inset 10px 0 8px -8px ${c}`},[`${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 ${c}`},[`
|
||
${t}-cell-fix-right-first::after,
|
||
${t}-cell-fix-right-last::after
|
||
`]:{boxShadow:`inset -10px 0 8px -8px ${c}`}},[`${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"}}}}},Tft=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${je(r)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},kft=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${je(n)} ${je(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 ${je(n)} ${je(n)}`}}}}},Oft=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"}}}}},Pft=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:i,padding:o,paddingXS:a,headerIconColor:s,headerIconHoverColor:l,tableSelectionColumnWidth:c,tableSelectedRowBg:u,tableSelectedRowHoverBg:d,tableRowHoverBg:h,tablePaddingHorizontal:p,calc:m}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:c,[`&${t}-selection-col-with-dropdown`]:{width:m(c).add(i).add(m(o).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:m(c).add(m(a).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:m(c).add(i).add(m(o).div(4)).add(m(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:m(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:je(m(p).div(4).equal()),[r]:{color:s,fontSize:i,verticalAlign:"baseline","&:hover":{color:l}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:u,"&-row-hover":{background:d}}},[`> ${t}-cell-row-hover`]:{background:h}}}}}},Mft=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,i=(o,a,s,l)=>({[`${t}${t}-${o}`]:{fontSize:l,[`
|
||
${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:`${je(a)} ${je(s)}`},[`${t}-filter-trigger`]:{marginInlineEnd:je(r(s).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${je(r(a).mul(-1).equal())} ${je(r(s).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:je(r(a).mul(-1).equal()),marginInline:`${je(r(n).sub(s).equal())} ${je(r(s).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:je(r(s).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))}},Ift=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}}}},$ft=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:i,tableScrollThumbSize:o,tableScrollBg:a,zIndexTableSticky:s,stickyScrollBarBorderRadius:l,lineWidth:c,lineType:u,tableBorderColor:d}=e,h=`${je(c)} ${u} ${d}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:s,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${je(o)} !important`,zIndex:s,display:"flex",alignItems:"center",background:a,borderTop:h,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:o,backgroundColor:r,borderRadius:l,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:i}}}}}}},bne=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:i}=e,o=`${je(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 ${je(i(n).mul(-1).equal())} 0 ${r}`}}}},Rft=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:i,tableBorderColor:o,calc:a}=e,s=`${je(r)} ${i} ${o}`,l=`${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:s,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${l}${l}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${je(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:s,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:s,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:a(r).mul(-1).equal(),borderInlineStart:s}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:s,borderBottom:s}}}}}},Aft=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:i,tableExpandColumnWidth:o,lineWidth:a,lineType:s,tableBorderColor:l,tableFontSize:c,tableBg:u,tableRadius:d,tableHeaderTextColor:h,motionDurationMid:p,tableHeaderBg:m,tableHeaderCellSplitColor:v,tableFooterTextColor:y,tableFooterBg:S,calc:b}=e,C=`${je(a)} ${s} ${l}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},Fd()),{[t]:Object.assign(Object.assign({},$r(e)),{fontSize:c,background:u,borderRadius:`${je(d)} ${je(d)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${je(d)} ${je(d)} 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:`${je(r)} ${je(i)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${je(r)} ${je(i)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:h,fontWeight:n,textAlign:"start",background:m,borderBottom:C,transition:`background ${p} 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:v,transform:"translateY(-50%)",transition:`background-color ${p}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${p}, border-color ${p}`,borderBottom:C,[`
|
||
> ${t}-wrapper:only-child,
|
||
> ${t}-expanded-row-fixed > ${t}-wrapper:only-child
|
||
`]:{[t]:{marginBlock:je(b(r).mul(-1).equal()),marginInline:`${je(b(o).sub(i).equal())}
|
||
${je(b(i).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:h,fontWeight:n,textAlign:"start",background:m,borderBottom:C,transition:`background ${p} ease`}}},[`${t}-footer`]:{padding:`${je(r)} ${je(i)}`,color:y,background:S}})}},Nft=e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:i,colorFillContent:o,controlItemBgActive:a,controlItemBgActiveHover:s,padding:l,paddingSM:c,paddingXS:u,colorBorderSecondary:d,borderRadiusLG:h,controlHeight:p,colorTextPlaceholder:m,fontSize:v,fontSizeSM:y,lineHeight:S,lineWidth:b,colorIcon:C,colorIconHover:_,opacityLoading:T,controlInteractiveSize:x}=e,E=new Cr(i).onBackground(n).toHexString(),k=new Cr(o).onBackground(n).toHexString(),M=new Cr(t).onBackground(n).toHexString(),P=new Cr(C),D=new Cr(_),R=x/2-b,A=R*2+b*3;return{headerBg:M,headerColor:r,headerSortActiveBg:E,headerSortHoverBg:k,bodySortBg:M,rowHoverBg:M,rowSelectedBg:a,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:l,cellPaddingInline:l,cellPaddingBlockMD:c,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:d,headerBorderRadius:h,footerBg:M,footerColor:r,cellFontSize:v,cellFontSizeMD:v,cellFontSizeSM:v,headerSplitColor:d,fixedHeaderSortActiveBg:E,headerFilterHoverBg:o,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:p,stickyScrollBarBg:m,stickyScrollBarBorderRadius:100,expandIconMarginTop:(v*S-b*3)/2-Math.ceil((y*1.4-b*3)/2),headerIconColor:P.clone().setA(P.a*T).toRgbString(),headerIconHoverColor:D.clone().setA(D.a*T).toRgbString(),expandIconHalfInner:R,expandIconSize:A,expandIconScale:x/A}},Sne=2,Dft=Tr("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:i,headerBg:o,headerColor:a,headerSortActiveBg:s,headerSortHoverBg:l,bodySortBg:c,rowHoverBg:u,rowSelectedBg:d,rowSelectedHoverBg:h,rowExpandedBg:p,cellPaddingBlock:m,cellPaddingInline:v,cellPaddingBlockMD:y,cellPaddingInlineMD:S,cellPaddingBlockSM:b,cellPaddingInlineSM:C,borderColor:_,footerBg:T,footerColor:x,headerBorderRadius:E,cellFontSize:k,cellFontSizeMD:M,cellFontSizeSM:P,headerSplitColor:D,fixedHeaderSortActiveBg:R,headerFilterHoverBg:A,filterDropdownBg:H,expandIconBg:F,selectionColumnWidth:z,stickyScrollBarBg:W,calc:q}=e,Z=ur(e,{tableFontSize:k,tableBg:r,tableRadius:E,tablePaddingVertical:m,tablePaddingHorizontal:v,tablePaddingVerticalMiddle:y,tablePaddingHorizontalMiddle:S,tablePaddingVerticalSmall:b,tablePaddingHorizontalSmall:C,tableBorderColor:_,tableHeaderTextColor:a,tableHeaderBg:o,tableFooterTextColor:x,tableFooterBg:T,tableHeaderCellSplitColor:D,tableHeaderSortBg:s,tableHeaderSortHoverBg:l,tableBodySortBg:c,tableFixedHeaderSortActiveBg:R,tableHeaderFilterActiveBg:A,tableFilterDropdownBg:H,tableRowHoverBg:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:h,zIndexTableFixed:Sne,zIndexTableSticky:q(Sne).add(1).equal({unit:!1}),tableFontSizeMiddle:M,tableFontSizeSmall:P,tableSelectionColumnWidth:z,tableExpandIconBg:F,tableExpandColumnWidth:q(i).add(q(e.padding).mul(2)).equal(),tableExpandedRowBg:p,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:W,tableScrollThumbBgHover:t,tableScrollBg:n});return[Aft(Z),Tft(Z),bne(Z),Ift(Z),_ft(Z),Sft(Z),kft(Z),wft(Z),bne(Z),xft(Z),Pft(Z),Eft(Z),$ft(Z),Cft(Z),Mft(Z),Oft(Z),Rft(Z)]},Nft,{unitless:{expandIconScale:!0}}),Lft=[],Fft=(e,t)=>{var n,r;const{prefixCls:i,className:o,rootClassName:a,style:s,size:l,bordered:c,dropdownPrefixCls:u,dataSource:d,pagination:h,rowSelection:p,rowKey:m="key",rowClassName:v,columns:y,children:S,childrenColumnName:b,onChange:C,getPopupContainer:_,loading:T,expandIcon:x,expandable:E,expandedRowRender:k,expandIconColumnIndex:M,indentSize:P,scroll:D,sortDirections:R,locale:A,showSorterTooltip:H={target:"full-header"},virtual:F}=e;eh();const z=f.useMemo(()=>y||nV(S),[y,S]),W=f.useMemo(()=>z.some(At=>At.responsive),[z]),q=ZO(W),Z=f.useMemo(()=>{const At=new Set(Object.keys(q).filter($t=>q[$t]));return z.filter($t=>!$t.responsive||$t.responsive.some(Gt=>At.has(Gt)))},[z,q]),N=Pr(e,["className","style","columns"]),{locale:B=Fc,direction:V,table:Y,renderEmpty:ie,getPrefixCls:ce,getPopupContainer:fe}=f.useContext(hn),ee=Ro(l),ne=Object.assign(Object.assign({},B.Table),A),ue=d||Lft,ye=ce("table",i),me=ce("dropdown",u),[,pe]=na(),he=_i(ye),[_e,le,xe]=Dft(ye,he),we=Object.assign(Object.assign({childrenColumnName:b,expandIconColumnIndex:M},E),{expandIcon:(n=E==null?void 0:E.expandIcon)!==null&&n!==void 0?n:(r=Y==null?void 0:Y.expandable)===null||r===void 0?void 0:r.expandIcon}),{childrenColumnName:De="children"}=we,Fe=f.useMemo(()=>ue.some(At=>At==null?void 0:At[De])?"nest":k||E!=null&&E.expandedRowRender?"row":null,[ue]),Ce={body:f.useRef(null)},Te=Ndt(ye),ke=f.useRef(null),Pe=f.useRef(null);Rdt(t,()=>Object.assign(Object.assign({},Pe.current),{nativeElement:ke.current}));const Ne=f.useMemo(()=>typeof m=="function"?m:At=>At==null?void 0:At[m],[m]),[We]=dft(ue,De,Ne),Q={},K=function(At,$t){let Gt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Ft,cn,_t,jt;const nn=Object.assign(Object.assign({},Q),At);Gt&&((Ft=Q.resetPagination)===null||Ft===void 0||Ft.call(Q),!((cn=nn.pagination)===null||cn===void 0)&&cn.current&&(nn.pagination.current=1),h&&((_t=h.onChange)===null||_t===void 0||_t.call(h,1,(jt=nn.pagination)===null||jt===void 0?void 0:jt.pageSize))),D&&D.scrollToFirstRowOnChange!==!1&&Ce.body.current&&wze(0,{getContainer:()=>Ce.body.current}),C==null||C(nn.pagination,nn.filters,nn.sorter,{currentDataSource:vj(bj(ue,nn.sorterStates,De),nn.filterStates,De),action:$t})},J=(At,$t)=>{K({sorter:At,sorterStates:$t},"sort",!1)},[be,Oe,Se,Ke]=gft({prefixCls:ye,mergedColumns:Z,onSorterChange:J,sortDirections:R||["ascend","descend"],tableLocale:ne,showSorterTooltip:H}),tt=f.useMemo(()=>bj(ue,Oe,De),[ue,Oe]);Q.sorter=Ke(),Q.sorterStates=Oe;const se=(At,$t)=>{K({filters:At,filterStates:$t},"filter",!0)},[ze,Ye,Ue]=uft({prefixCls:ye,locale:ne,dropdownPrefixCls:me,mergedColumns:Z,onFilterChange:se,getPopupContainer:_||fe,rootClassName:Re(a,he)}),Je=vj(tt,Ye,De);Q.filters=Ue,Q.filterStates=Ye;const Ze=f.useMemo(()=>{const At={};return Object.keys(Ue).forEach($t=>{Ue[$t]!==null&&(At[$t]=Ue[$t])}),Object.assign(Object.assign({},Se),{filters:At})},[Se,Ue]),[rt]=vft(Ze),qt=(At,$t)=>{K({pagination:Object.assign(Object.assign({},Q.pagination),{current:At,pageSize:$t})},"paginate")},[St,Ot]=pft(Je.length,qt,h);Q.pagination=h===!1?{}:hft(St,h),Q.resetPagination=Ot;const Bt=f.useMemo(()=>{if(h===!1||!St.pageSize)return Je;const{current:At=1,total:$t,pageSize:Gt=ZCe}=St;return Je.length<$t?Je.length>Gt?Je.slice((At-1)*Gt,At*Gt):Je:Je.slice((At-1)*Gt,At*Gt)},[!!h,Je,St==null?void 0:St.current,St==null?void 0:St.pageSize,St==null?void 0:St.total]),[Dt,an]=Idt({prefixCls:ye,data:Je,pageData:Bt,getRowKey:Ne,getRecordByKey:We,expandType:Fe,childrenColumnName:De,locale:ne,getPopupContainer:_||fe},p),Vt=(At,$t,Gt)=>{let Ft;return typeof v=="function"?Ft=Re(v(At,$t,Gt)):Ft=Re(v),Re({[`${ye}-row-selected`]:an.has(Ne(At,$t))},Ft)};we.__PARENT_RENDER_ICON__=we.expandIcon,we.expandIcon=we.expandIcon||x||Adt(ne),Fe==="nest"&&we.expandIconColumnIndex===void 0?we.expandIconColumnIndex=p?1:0:we.expandIconColumnIndex>0&&p&&(we.expandIconColumnIndex-=1),typeof we.indentSize!="number"&&(we.indentSize=typeof P=="number"?P:15);const Kt=f.useCallback(At=>rt(Dt(ze(be(At)))),[be,ze,Dt]);let Qt,et;if(h!==!1&&(St!=null&&St.total)){let At;St.size?At=St.size:At=ee==="small"||ee==="middle"?"small":void 0;const $t=cn=>f.createElement(WSe,Object.assign({},St,{className:Re(`${ye}-pagination ${ye}-pagination-${cn}`,St.className),size:At})),Gt=V==="rtl"?"left":"right",{position:Ft}=St;if(Ft!==null&&Array.isArray(Ft)){const cn=Ft.find(nn=>nn.includes("top")),_t=Ft.find(nn=>nn.includes("bottom")),jt=Ft.every(nn=>`${nn}`=="none");!cn&&!_t&&!jt&&(et=$t(Gt)),cn&&(Qt=$t(cn.toLowerCase().replace("top",""))),_t&&(et=$t(_t.toLowerCase().replace("bottom","")))}else et=$t(Gt)}let ot;typeof T=="boolean"?ot={spinning:T}:typeof T=="object"&&(ot=Object.assign({spinning:!0},T));const Qe=Re(xe,he,`${ye}-wrapper`,Y==null?void 0:Y.className,{[`${ye}-wrapper-rtl`]:V==="rtl"},o,a,le),ct=Object.assign(Object.assign({},Y==null?void 0:Y.style),s),Nt=typeof(A==null?void 0:A.emptyText)<"u"?A.emptyText:(ie==null?void 0:ie("Table"))||f.createElement(ZS,{componentName:"Table"}),Lt=F?bft:yft,Zt={},Wt=f.useMemo(()=>{const{fontSize:At,lineHeight:$t,lineWidth:Gt,padding:Ft,paddingXS:cn,paddingSM:_t}=pe,jt=Math.floor(At*$t);switch(ee){case"middle":return _t*2+jt+Gt;case"small":return cn*2+jt+Gt;default:return Ft*2+jt+Gt}},[pe,ee]);return F&&(Zt.listItemHeight=Wt),_e(f.createElement("div",{ref:ke,className:Qe,style:ct},f.createElement(Cl,Object.assign({spinning:!1},ot),Qt,f.createElement(Lt,Object.assign({},Zt,N,{ref:Pe,columns:Z,direction:V,expandable:we,prefixCls:ye,className:Re({[`${ye}-middle`]:ee==="middle",[`${ye}-small`]:ee==="small",[`${ye}-bordered`]:c,[`${ye}-empty`]:ue.length===0},xe,he,le),data:Bt,rowKey:Ne,rowClassName:Vt,emptyText:Nt,internalHooks:HE,internalRefs:Ce,transformColumns:Kt,getContainerWidth:Te})),et)))},jft=f.forwardRef(Fft),Bft=(e,t)=>{const n=f.useRef(0);return n.current+=1,f.createElement(jft,Object.assign({},e,{ref:t,_renderTimes:n.current}))},rh=f.forwardRef(Bft);rh.SELECTION_COLUMN=cm;rh.EXPAND_COLUMN=Lh;rh.SELECTION_ALL=fj;rh.SELECTION_INVERT=hj;rh.SELECTION_NONE=pj;rh.Column=Cdt;rh.ColumnGroup=xdt;rh.Summary=TCe;const Hft=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:i,calc:o}=e,a=o(r).sub(n).equal(),s=o(t).sub(n).equal();return{[i]:Object.assign(Object.assign({},$r(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${je(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:s,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}}},lV=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,i=e.fontSizeSM;return ur(e,{tagFontSize:i,tagLineHeight:je(r(e.lineHeightSM).mul(i).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},cV=e=>({defaultBg:new Cr(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),txe=Tr("Tag",e=>{const t=lV(e);return Hft(t)},cV);var zft=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 Uft=f.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:i,checked:o,onChange:a,onClick:s}=e,l=zft(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:c,tag:u}=f.useContext(hn),d=S=>{a==null||a(!o),s==null||s(S)},h=c("tag",n),[p,m,v]=txe(h),y=Re(h,`${h}-checkable`,{[`${h}-checkable-checked`]:o},u==null?void 0:u.className,i,m,v);return p(f.createElement("span",Object.assign({},l,{ref:t,style:Object.assign(Object.assign({},r),u==null?void 0:u.style),className:y,onClick:d})))}),Wft=e=>kO(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"}}}}),Vft=KS(["Tag","preset"],e=>{const t=lV(e);return Wft(t)},cV);function Kft(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const i5=(e,t,n)=>{const r=Kft(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"}}}},qft=KS(["Tag","status"],e=>{const t=lV(e);return[i5(t,"success","Success"),i5(t,"processing","Info"),i5(t,"error","Error"),i5(t,"warning","Warning")]},cV);var Gft=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 Yft=f.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:o,children:a,icon:s,color:l,onClose:c,bordered:u=!0,visible:d}=e,h=Gft(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:p,direction:m,tag:v}=f.useContext(hn),[y,S]=f.useState(!0),b=Pr(h,["closeIcon","closable"]);f.useEffect(()=>{d!==void 0&&S(d)},[d]);const C=tP(l),_=XYe(l),T=C||_,x=Object.assign(Object.assign({backgroundColor:l&&!T?l:void 0},v==null?void 0:v.style),o),E=p("tag",n),[k,M,P]=txe(E),D=Re(E,v==null?void 0:v.className,{[`${E}-${l}`]:T,[`${E}-has-color`]:l&&!T,[`${E}-hidden`]:!y,[`${E}-rtl`]:m==="rtl",[`${E}-borderless`]:!u},r,i,M,P),R=q=>{q.stopPropagation(),c==null||c(q),!q.defaultPrevented&&S(!1)},[,A]=nW(Zb(e),Zb(v),{closable:!1,closeIconRender:q=>{const Z=f.createElement("span",{className:`${E}-close-icon`,onClick:R},q);return FU(q,Z,N=>({onClick:B=>{var V;(V=N==null?void 0:N.onClick)===null||V===void 0||V.call(N,B),R(B)},className:Re(N==null?void 0:N.className,`${E}-close-icon`)}))}}),H=typeof h.onClick=="function"||a&&a.type==="a",F=s||null,z=F?f.createElement(f.Fragment,null,F,a&&f.createElement("span",null,a)):a,W=f.createElement("span",Object.assign({},b,{ref:t,className:D,style:x}),z,A,C&&f.createElement(Vft,{key:"preset",prefixCls:E}),_&&f.createElement(qft,{key:"status",prefixCls:E}));return k(H?f.createElement(yE,{component:"Tag"},W):W)}),TP=Yft;TP.CheckableTag=Uft;const Xft=e=>{const t=e!=null&&e.algorithm?yv(e.algorithm):yv(mE),n=Object.assign(Object.assign({},Yb),e==null?void 0:e.token);return TU(n,{override:e==null?void 0:e.token},t,NU)};function Qft(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}const Zft=(e,t)=>{const n=t??mE(e),r=n.fontSizeSM,i=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),Qft(t??e)),g1e(r)),{controlHeight:i}),m1e(Object.assign(Object.assign({},n),{controlHeight:i})))},tu=(e,t)=>new Cr(e).setA(t).toRgbString(),iy=(e,t)=>new Cr(e).lighten(t).toHexString(),Jft=e=>{const t=tg(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},eht=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:tu(r,.85),colorTextSecondary:tu(r,.65),colorTextTertiary:tu(r,.45),colorTextQuaternary:tu(r,.25),colorFill:tu(r,.18),colorFillSecondary:tu(r,.12),colorFillTertiary:tu(r,.08),colorFillQuaternary:tu(r,.04),colorBgSolid:tu(r,.95),colorBgSolidHover:tu(r,1),colorBgSolidActive:tu(r,.9),colorBgElevated:iy(n,12),colorBgContainer:iy(n,8),colorBgLayout:iy(n,0),colorBgSpotlight:iy(n,26),colorBgBlur:tu(r,.04),colorBorder:iy(n,26),colorBorderSecondary:iy(n,19)}},tht=(e,t)=>{const n=Object.keys(IU).map(i=>{const o=tg(e[i],{theme:"dark"});return new Array(10).fill(1).reduce((a,s,l)=>(a[`${i}-${l+1}`]=o[l],a[`${i}${l+1}`]=o[l],a),{})}).reduce((i,o)=>(i=Object.assign(Object.assign({},i),o),i),{}),r=t??mE(e);return Object.assign(Object.assign(Object.assign({},r),n),p1e(e,{generateColorPalettes:Jft,generateNeutralColorPalettes:eht}))};function nht(){const[e,t,n]=na();return{theme:e,token:t,hashId:n}}const al={defaultSeed:h_.token,useToken:nht,defaultAlgorithm:mE,darkAlgorithm:tht,compactAlgorithm:Zft,getDesignToken:Xft,defaultConfig:h_,_internalContext:$U};var rht=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{TimePicker:iht,RangePicker:oht}=Pu,aht=f.forwardRef((e,t)=>f.createElement(oht,Object.assign({},e,{picker:"time",mode:void 0,ref:t}))),Tv=f.forwardRef((e,t)=>{var{addon:n,renderExtraFooter:r,variant:i,bordered:o}=e,a=rht(e,["addon","renderExtraFooter","variant","bordered"]);const[s]=Pp("timePicker",i,o),l=f.useMemo(()=>{if(r)return r;if(n)return n},[n,r]);return f.createElement(iht,Object.assign({},a,{mode:void 0,ref:t,renderExtraFooter:l,variant:s}))}),nxe=vg(Tv,"popupAlign",void 0,"picker");Tv._InternalPanelDoNotUseOrYouWillBeFired=nxe;Tv.RangePicker=aht;Tv._InternalPanelDoNotUseOrYouWillBeFired=nxe;const sht=function(e){var t=f.useRef({valueLabels:new Map});return f.useMemo(function(){var n=t.current.valueLabels,r=new Map,i=e.map(function(o){var a=o.value,s=o.label,l=s??n.get(a);return r.set(a,l),G(G({},o),{},{label:l})});return t.current.valueLabels=r,[i]},[e])};var lht=function(t,n,r,i){return f.useMemo(function(){var o=function(p){return p.map(function(m){var v=m.value;return v})},a=o(t),s=o(n),l=a.filter(function(h){return!i[h]}),c=a,u=s;if(r){var d=bu(a,!0,i);c=d.checkedKeys,u=d.halfCheckedKeys}return[Array.from(new Set([].concat(pt(l),pt(c)))),u]},[t,n,r,i])},cht=function(t){return Array.isArray(t)?t:t!==void 0?[t]:[]},uht=function(t){var n=t||{},r=n.label,i=n.value,o=n.children;return{_title:r?[r]:["title","label"],value:i||"value",key:i||"value",children:o||"children"}},Sj=function(t){return!t||t.disabled||t.disableCheckbox||t.checkable===!1},dht=function(t,n){var r=[],i=function o(a){a.forEach(function(s){var l=s[n.children];l&&(r.push(s[n.value]),o(l))})};return i(t),r},Cne=function(t){return t==null};const fht=function(e,t){return f.useMemo(function(){var n=AE(e,{fieldNames:t,initWrapper:function(i){return G(G({},i),{},{valueEntities:new Map})},processEntity:function(i,o){var a=i.node[t.value];o.valueEntities.set(a,i)}});return n},[e,t])};var uV=function(){return null},hht=["children","value"];function rxe(e){return Uo(e).map(function(t){if(!f.isValidElement(t)||!t.type)return null;var n=t,r=n.key,i=n.props,o=i.children,a=i.value,s=tn(i,hht),l=G({key:r,value:a},s),c=rxe(o);return c.length&&(l.children=c),l}).filter(function(t){return t})}function Cj(e){if(!e)return e;var t=G({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return fi(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),t}}),t}function pht(e,t,n,r,i,o){var a=null,s=null;function l(){function c(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return u.map(function(p,m){var v="".concat(d,"-").concat(m),y=p[o.value],S=n.includes(y),b=c(p[o.children]||[],v,S),C=f.createElement(uV,p,b.map(function(T){return T.node}));if(t===y&&(a=C),S){var _={pos:v,node:C,children:b};return h||s.push(_),_}return null}).filter(function(p){return p})}s||(s=[],c(r),s.sort(function(u,d){var h=u.node.props.value,p=d.node.props.value,m=n.indexOf(h),v=n.indexOf(p);return m-v}))}Object.defineProperty(e,"triggerNode",{get:function(){return fi(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),l(),a}}),Object.defineProperty(e,"allCheckedNodes",{get:function(){return fi(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),l(),i?s:s.map(function(u){var d=u.node;return d})}})}var mht=function(t,n,r){var i=r.fieldNames,o=r.treeNodeFilterProp,a=r.filterTreeNode,s=i.children;return f.useMemo(function(){if(!n||a===!1)return t;var l=typeof a=="function"?a:function(u,d){return String(d[o]).toUpperCase().includes(n.toUpperCase())},c=function u(d){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return d.reduce(function(p,m){var v=m[s],y=h||l(n,Cj(m)),S=u(v||[],y);return(y||S.length)&&p.push(G(G({},m),{},ae({isLeaf:void 0},s,S))),p},[])};return c(t)},[t,n,s,o,a])};function xne(e){var t=f.useRef();t.current=e;var n=f.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}function ght(e,t){var n=t.id,r=t.pId,i=t.rootPId,o=new Map,a=[];return e.forEach(function(s){var l=s[n],c=G(G({},s),{},{key:s.key||l});o.set(l,c)}),o.forEach(function(s){var l=s[r],c=o.get(l);c?(c.children=c.children||[],c.children.push(s)):(l===i||i===null)&&a.push(s)}),a}function vht(e,t,n){return f.useMemo(function(){if(e){if(n){var r=G({id:"id",pId:"pId",rootPId:null},ln(n)==="object"?n:{});return ght(e,r)}return e}return rxe(t)},[t,n,e])}var ixe=f.createContext(null),oxe=f.createContext(null),yht={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},bht=function(t,n){var r=rW(),i=r.prefixCls,o=r.multiple,a=r.searchValue,s=r.toggleOpen,l=r.open,c=r.notFoundContent,u=f.useContext(oxe),d=u.virtual,h=u.listHeight,p=u.listItemHeight,m=u.listItemScrollOffset,v=u.treeData,y=u.fieldNames,S=u.onSelect,b=u.dropdownMatchSelectWidth,C=u.treeExpandAction,_=u.treeTitleRender,T=u.onPopupScroll,x=u.leftMaxCount,E=u.leafCountOnly,k=u.valueEntities,M=f.useContext(ixe),P=M.checkable,D=M.checkedKeys,R=M.halfCheckedKeys,A=M.treeExpandedKeys,H=M.treeDefaultExpandAll,F=M.treeDefaultExpandedKeys,z=M.onTreeExpand,W=M.treeIcon,q=M.showTreeIcon,Z=M.switcherIcon,N=M.treeLine,B=M.treeNodeFilterProp,V=M.loadData,Y=M.treeLoadedKeys,ie=M.treeMotion,ce=M.onTreeLoad,fe=M.keyEntities,ee=f.useRef(),ne=dp(function(){return v},[l,v],function(Ze,rt){return rt[0]&&Ze[1]!==rt[1]}),ue=f.useMemo(function(){return P?{checked:D,halfChecked:R}:null},[P,D,R]);f.useEffect(function(){if(l&&!o&&D.length){var Ze;(Ze=ee.current)===null||Ze===void 0||Ze.scrollTo({key:D[0]})}},[l]);var ye=function(rt){rt.preventDefault()},me=function(rt,qt){var St=qt.node;P&&Sj(St)||(S(St.key,{selected:!D.includes(St.key)}),o||s(!1))},pe=f.useState(F),he=Le(pe,2),_e=he[0],le=he[1],xe=f.useState(null),we=Le(xe,2),De=we[0],Fe=we[1],Ce=f.useMemo(function(){return A?pt(A):a?De:_e},[_e,De,A,a]),Te=function(rt){le(rt),Fe(rt),z&&z(rt)},ke=String(a).toLowerCase(),Pe=function(rt){return ke?String(rt[B]).toLowerCase().includes(ke):!1};f.useEffect(function(){a&&Fe(dht(v,y))},[a]);var Ne=f.useState(function(){return new Map}),We=Le(Ne,2),Q=We[0],K=We[1];f.useEffect(function(){x&&K(new Map)},[x]);function J(Ze){var rt=Ze[y.value];if(!Q.has(rt)){var qt=k.get(rt),St=(qt.children||[]).length===0;if(St)Q.set(rt,!1);else{var Ot=qt.children.filter(function(Dt){return!Dt.node.disabled&&!Dt.node.disableCheckbox&&!D.includes(Dt.node[y.value])}),Bt=Ot.length;Q.set(rt,Bt>x)}}return Q.get(rt)}var be=cr(function(Ze){var rt=Ze[y.value];return D.includes(rt)||x===null?!1:x<=0?!0:E&&x?J(Ze):!1}),Oe=function Ze(rt){var qt=Af(rt),St;try{for(qt.s();!(St=qt.n()).done;){var Ot=St.value;if(!(Ot.disabled||Ot.selectable===!1)){if(a){if(Pe(Ot))return Ot}else return Ot;if(Ot[y.children]){var Bt=Ze(Ot[y.children]);if(Bt)return Bt}}}}catch(Dt){qt.e(Dt)}finally{qt.f()}return null},Se=f.useState(null),Ke=Le(Se,2),tt=Ke[0],se=Ke[1],ze=fe[tt];f.useEffect(function(){if(l){var Ze=null,rt=function(){var St=Oe(ne);return St?St[y.value]:null};!o&&D.length&&!a?Ze=D[0]:Ze=rt(),se(Ze)}},[l,a]),f.useImperativeHandle(n,function(){var Ze;return{scrollTo:(Ze=ee.current)===null||Ze===void 0?void 0:Ze.scrollTo,onKeyDown:function(qt){var St,Ot=qt.which;switch(Ot){case Pt.UP:case Pt.DOWN:case Pt.LEFT:case Pt.RIGHT:(St=ee.current)===null||St===void 0||St.onKeyDown(qt);break;case Pt.ENTER:{if(ze){var Bt=be(ze.node),Dt=(ze==null?void 0:ze.node)||{},an=Dt.selectable,Vt=Dt.value,Kt=Dt.disabled;an!==!1&&!Kt&&!Bt&&me(null,{node:{key:tt},selected:!D.includes(Vt)})}break}case Pt.ESC:s(!1)}},onKeyUp:function(){}}});var Ye=dp(function(){return!a},[a,A||_e],function(Ze,rt){var qt=Le(Ze,1),St=qt[0],Ot=Le(rt,2),Bt=Ot[0],Dt=Ot[1];return St!==Bt&&!!(Bt||Dt)}),Ue=Ye?V:null;if(ne.length===0)return f.createElement("div",{role:"listbox",className:"".concat(i,"-empty"),onMouseDown:ye},c);var Je={fieldNames:y};return Y&&(Je.loadedKeys=Y),Ce&&(Je.expandedKeys=Ce),f.createElement("div",{onMouseDown:ye},ze&&l&&f.createElement("span",{style:yht,"aria-live":"assertive"},ze.node.value),f.createElement(BCe.Provider,{value:{nodeDisabled:be}},f.createElement(EP,ut({ref:ee,focusable:!1,prefixCls:"".concat(i,"-tree"),treeData:ne,height:h,itemHeight:p,itemScrollOffset:m,virtual:d!==!1&&b!==!1,multiple:o,icon:W,showIcon:q,switcherIcon:Z,showLine:N,loadData:Ue,motion:ie,activeKey:tt,checkable:P,checkStrictly:!0,checkedKeys:ue,selectedKeys:P?[]:D,defaultExpandAll:H,titleRender:_},Je,{onActiveChange:se,onSelect:me,onCheck:me,onExpand:Te,onLoad:ce,filterTreeNode:Pe,expandAction:C,onScroll:T}))))},Sht=f.forwardRef(bht),dV="SHOW_ALL",fV="SHOW_PARENT",kP="SHOW_CHILD";function wne(e,t,n,r){var i=new Set(e);return t===kP?e.filter(function(o){var a=n[o];return!a||!a.children||!a.children.some(function(s){var l=s.node;return i.has(l[r.value])})||!a.children.every(function(s){var l=s.node;return Sj(l)||i.has(l[r.value])})}):t===fV?e.filter(function(o){var a=n[o],s=a?a.parent:null;return!s||Sj(s.node)||!i.has(s.key)}):e}var Cht=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","maxCount","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion","treeTitleRender","onPopupScroll"];function xht(e){return!e||ln(e)!=="object"}var wht=f.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,i=r===void 0?"rc-tree-select":r,o=e.value,a=e.defaultValue,s=e.onChange,l=e.onSelect,c=e.onDeselect,u=e.searchValue,d=e.inputValue,h=e.onSearch,p=e.autoClearSearchValue,m=p===void 0?!0:p,v=e.filterTreeNode,y=e.treeNodeFilterProp,S=y===void 0?"value":y,b=e.showCheckedStrategy,C=e.treeNodeLabelProp,_=e.multiple,T=e.treeCheckable,x=e.treeCheckStrictly,E=e.labelInValue,k=e.maxCount,M=e.fieldNames,P=e.treeDataSimpleMode,D=e.treeData,R=e.children,A=e.loadData,H=e.treeLoadedKeys,F=e.onTreeLoad,z=e.treeDefaultExpandAll,W=e.treeExpandedKeys,q=e.treeDefaultExpandedKeys,Z=e.onTreeExpand,N=e.treeExpandAction,B=e.virtual,V=e.listHeight,Y=V===void 0?200:V,ie=e.listItemHeight,ce=ie===void 0?20:ie,fe=e.listItemScrollOffset,ee=fe===void 0?0:fe,ne=e.onDropdownVisibleChange,ue=e.dropdownMatchSelectWidth,ye=ue===void 0?!0:ue,me=e.treeLine,pe=e.treeIcon,he=e.showTreeIcon,_e=e.switcherIcon,le=e.treeMotion,xe=e.treeTitleRender,we=e.onPopupScroll,De=tn(e,Cht),Fe=lW(n),Ce=T&&!x,Te=T||x,ke=x||E,Pe=Te||_,Ne=Jn(a,{value:o}),We=Le(Ne,2),Q=We[0],K=We[1],J=f.useMemo(function(){return T?b||kP:dV},[b,T]),be=f.useMemo(function(){return uht(M)},[JSON.stringify(M)]),Oe=Jn("",{value:u!==void 0?u:d,postState:function(Ht){return Ht||""}}),Se=Le(Oe,2),Ke=Se[0],tt=Se[1],se=function(Ht){tt(Ht),h==null||h(Ht)},ze=vht(D,R,P),Ye=fht(ze,be),Ue=Ye.keyEntities,Je=Ye.valueEntities,Ze=f.useCallback(function(nn){var Ht=[],Tt=[];return nn.forEach(function(gt){Je.has(gt)?Tt.push(gt):Ht.push(gt)}),{missingRawValues:Ht,existRawValues:Tt}},[Je]),rt=mht(ze,Ke,{fieldNames:be,treeNodeFilterProp:S,filterTreeNode:v}),qt=f.useCallback(function(nn){if(nn){if(C)return nn[C];for(var Ht=be._title,Tt=0;Tt<Ht.length;Tt+=1){var gt=nn[Ht[Tt]];if(gt!==void 0)return gt}}},[be,C]),St=f.useCallback(function(nn){var Ht=cht(nn);return Ht.map(function(Tt){return xht(Tt)?{value:Tt}:Tt})},[]),Ot=f.useCallback(function(nn){var Ht=St(nn);return Ht.map(function(Tt){var gt=Tt.label,Ve=Tt.value,Yt=Tt.halfChecked,mt,Mt=Je.get(Ve);if(Mt){var zt;gt=xe?xe(Mt.node):(zt=gt)!==null&&zt!==void 0?zt:qt(Mt.node),mt=Mt.node.disabled}else if(gt===void 0){var Dn=St(Q).find(function(Xn){return Xn.value===Ve});gt=Dn.label}return{label:gt,value:Ve,halfChecked:Yt,disabled:mt}})},[Je,qt,St,Q]),Bt=f.useMemo(function(){return St(Q===null?[]:Q)},[St,Q]),Dt=f.useMemo(function(){var nn=[],Ht=[];return Bt.forEach(function(Tt){Tt.halfChecked?Ht.push(Tt):nn.push(Tt)}),[nn,Ht]},[Bt]),an=Le(Dt,2),Vt=an[0],Kt=an[1],Qt=f.useMemo(function(){return Vt.map(function(nn){return nn.value})},[Vt]),et=lht(Vt,Kt,Ce,Ue),ot=Le(et,2),Qe=ot[0],ct=ot[1],Nt=f.useMemo(function(){var nn=wne(Qe,J,Ue,be),Ht=nn.map(function(Yt){var mt,Mt;return(mt=(Mt=Ue[Yt])===null||Mt===void 0||(Mt=Mt.node)===null||Mt===void 0?void 0:Mt[be.value])!==null&&mt!==void 0?mt:Yt}),Tt=Ht.map(function(Yt){var mt=Vt.find(function(zt){return zt.value===Yt}),Mt=E?mt==null?void 0:mt.label:xe==null?void 0:xe(mt);return{value:Yt,label:Mt}}),gt=Ot(Tt),Ve=gt[0];return!Pe&&Ve&&Cne(Ve.value)&&Cne(Ve.label)?[]:gt.map(function(Yt){var mt;return G(G({},Yt),{},{label:(mt=Yt.label)!==null&&mt!==void 0?mt:Yt.value})})},[be,Pe,Qe,Vt,Ot,J,Ue]),Lt=sht(Nt),Zt=Le(Lt,1),Wt=Zt[0],At=f.useMemo(function(){return Pe&&(J==="SHOW_CHILD"||x||!T)?k:null},[k,Pe,x,J,T]),$t=xne(function(nn,Ht,Tt){var gt=wne(nn,J,Ue,be);if(!(At&>.length>At)){var Ve=Ot(nn);if(K(Ve),m&&tt(""),s){var Yt=nn;Ce&&(Yt=gt.map(function(Ge){var ft=Je.get(Ge);return ft?ft.node[be.value]:Ge}));var mt=Ht||{triggerValue:void 0,selected:void 0},Mt=mt.triggerValue,zt=mt.selected,Dn=Yt;if(x){var Xn=Kt.filter(function(Ge){return!Yt.includes(Ge.value)});Dn=[].concat(pt(Dn),pt(Xn))}var O=Ot(Dn),j={preValue:Vt,triggerValue:Mt},oe=!0;(x||Tt==="selection"&&!zt)&&(oe=!1),pht(j,Mt,nn,ze,oe,be),Te?j.checked=zt:j.selected=zt;var Ae=ke?O:O.map(function(Ge){return Ge.value});s(Pe?Ae:Ae[0],ke?null:O.map(function(Ge){return Ge.label}),j)}}}),Gt=f.useCallback(function(nn,Ht){var Tt,gt=Ht.selected,Ve=Ht.source,Yt=Ue[nn],mt=Yt==null?void 0:Yt.node,Mt=(Tt=mt==null?void 0:mt[be.value])!==null&&Tt!==void 0?Tt:nn;if(!Pe)$t([Mt],{selected:!0,triggerValue:Mt},"option");else{var zt=gt?[].concat(pt(Qt),[Mt]):Qe.filter(function(ft){return ft!==Mt});if(Ce){var Dn=Ze(zt),Xn=Dn.missingRawValues,O=Dn.existRawValues,j=O.map(function(ft){return Je.get(ft).key}),oe;if(gt){var Ae=bu(j,!0,Ue);oe=Ae.checkedKeys}else{var Ge=bu(j,{checked:!1,halfCheckedKeys:ct},Ue);oe=Ge.checkedKeys}zt=[].concat(pt(Xn),pt(oe.map(function(ft){return Ue[ft].node[be.value]})))}$t(zt,{selected:gt,triggerValue:Mt},Ve||"option")}gt||!Pe?l==null||l(Mt,Cj(mt)):c==null||c(Mt,Cj(mt))},[Ze,Je,Ue,be,Pe,Qt,$t,Ce,l,c,Qe,ct,k]),Ft=f.useCallback(function(nn){if(ne){var Ht={};Object.defineProperty(Ht,"documentClickClose",{get:function(){return fi(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),ne(nn,Ht)}},[ne]),cn=xne(function(nn,Ht){var Tt=nn.map(function(gt){return gt.value});if(Ht.type==="clear"){$t(Tt,{},"selection");return}Ht.values.length&&Gt(Ht.values[0].value,{selected:!1,source:"selection"})}),_t=f.useMemo(function(){return{virtual:B,dropdownMatchSelectWidth:ye,listHeight:Y,listItemHeight:ce,listItemScrollOffset:ee,treeData:rt,fieldNames:be,onSelect:Gt,treeExpandAction:N,treeTitleRender:xe,onPopupScroll:we,leftMaxCount:k===void 0?null:k-Wt.length,leafCountOnly:J==="SHOW_CHILD"&&!x&&!!T,valueEntities:Je}},[B,ye,Y,ce,ee,rt,be,Gt,N,xe,we,k,Wt.length,J,x,T,Je]),jt=f.useMemo(function(){return{checkable:Te,loadData:A,treeLoadedKeys:H,onTreeLoad:F,checkedKeys:Qe,halfCheckedKeys:ct,treeDefaultExpandAll:z,treeExpandedKeys:W,treeDefaultExpandedKeys:q,onTreeExpand:Z,treeIcon:pe,treeMotion:le,showTreeIcon:he,switcherIcon:_e,treeLine:me,treeNodeFilterProp:S,keyEntities:Ue}},[Te,A,H,F,Qe,ct,z,W,q,Z,pe,le,he,_e,me,S,Ue]);return f.createElement(oxe.Provider,{value:_t},f.createElement(ixe.Provider,{value:jt},f.createElement(oW,ut({ref:t},De,{id:Fe,prefixCls:i,mode:Pe?"multiple":void 0,displayValues:Wt,onDisplayValuesChange:cn,searchValue:Ke,onSearch:se,OptionList:Sht,emptyOptions:!ze.length,onDropdownVisibleChange:Ft,dropdownMatchSelectWidth:ye}))))}),zE=wht;zE.TreeNode=uV;zE.SHOW_ALL=dV;zE.SHOW_PARENT=fV;zE.SHOW_CHILD=kP;const _ht=e=>{const{componentCls:t,treePrefixCls:n,colorBgElevated:r}=e,i=`.${n}`;return[{[`${t}-dropdown`]:[{padding:`${je(e.paddingXS)} ${je(e.calc(e.paddingXS).div(2).equal())}`},WCe(n,ur(e,{colorBgContainer:r})),{[i]:{borderRadius:0,[`${i}-list-holder-inner`]:{alignItems:"stretch",[`${i}-treenode`]:{[`${i}-node-content-wrapper`]:{flex:"auto"}}}}},pP(`${n}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${i}-switcher${i}-switcher_close`]:{[`${i}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function Eht(e,t,n){return Tr("TreeSelect",r=>{const i=ur(r,{treePrefixCls:t});return[_ht(i)]},VCe)(e,n)}var Tht=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 kht=(e,t)=>{var n;const{prefixCls:r,size:i,disabled:o,bordered:a=!0,className:s,rootClassName:l,treeCheckable:c,multiple:u,listHeight:d=256,listItemHeight:h,placement:p,notFoundContent:m,switcherIcon:v,treeLine:y,getPopupContainer:S,popupClassName:b,dropdownClassName:C,treeIcon:_=!1,transitionName:T,choiceTransitionName:x="",status:E,treeExpandAction:k,builtinPlacements:M,dropdownMatchSelectWidth:P,popupMatchSelectWidth:D,allowClear:R,variant:A,dropdownStyle:H,tagRender:F,maxCount:z,showCheckedStrategy:W,treeCheckStrictly:q}=e,Z=Tht(e,["prefixCls","size","disabled","bordered","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear","variant","dropdownStyle","tagRender","maxCount","showCheckedStrategy","treeCheckStrictly"]),{getPopupContainer:N,getPrefixCls:B,renderEmpty:V,direction:Y,virtual:ie,popupMatchSelectWidth:ce,popupOverflow:fe}=f.useContext(hn),[,ee]=na(),ne=h??(ee==null?void 0:ee.controlHeightSM)+(ee==null?void 0:ee.paddingXXS),ue=B(),ye=B("select",r),me=B("select-tree",r),pe=B("tree-select",r),{compactSize:he,compactItemClassnames:_e}=Zd(ye,Y),le=_i(ye),xe=_i(pe),[we,De,Fe]=dW(ye,le),[Ce]=Eht(pe,me,xe),[Te,ke]=Pp("treeSelect",A,a),Pe=Re(b||C,`${pe}-dropdown`,{[`${pe}-dropdown-rtl`]:Y==="rtl"},l,Fe,le,xe,De),Ne=!!(c||u),We=f.useMemo(()=>{if(!(z&&(W==="SHOW_ALL"&&!q||W==="SHOW_PARENT")))return z},[z,W,q]),Q=hW(e.suffixIcon,e.showArrow),K=(n=D??P)!==null&&n!==void 0?n:ce,{status:J,hasFeedback:be,isFormItemInput:Oe,feedbackIcon:Se}=f.useContext(pa),Ke=Op(J,E),{suffixIcon:tt,removeIcon:se,clearIcon:ze}=QO(Object.assign(Object.assign({},Z),{multiple:Ne,showSuffixIcon:Q,hasFeedback:be,feedbackIcon:Se,prefixCls:ye,componentName:"TreeSelect"})),Ye=R===!0?{clearIcon:ze}:R;let Ue;m!==void 0?Ue=m:Ue=(V==null?void 0:V("Select"))||f.createElement(ZS,{componentName:"Select"});const Je=Pr(Z,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon"]),Ze=f.useMemo(()=>p!==void 0?p:Y==="rtl"?"bottomRight":"bottomLeft",[p,Y]),rt=Ro(Vt=>{var Kt;return(Kt=i??he)!==null&&Kt!==void 0?Kt:Vt}),qt=f.useContext(ea),St=o??qt,Ot=Re(!r&&pe,{[`${ye}-lg`]:rt==="large",[`${ye}-sm`]:rt==="small",[`${ye}-rtl`]:Y==="rtl",[`${ye}-${Te}`]:ke,[`${ye}-in-form-item`]:Oe},Ud(ye,Ke,be),_e,s,l,Fe,le,xe,De),Bt=Vt=>f.createElement(KCe,{prefixCls:me,switcherIcon:v,treeNodeProps:Vt,showLine:y}),[Dt]=Du("SelectLike",H==null?void 0:H.zIndex),an=f.createElement(zE,Object.assign({virtual:ie,disabled:St},Je,{dropdownMatchSelectWidth:K,builtinPlacements:uW(M,fe),ref:t,prefixCls:ye,className:Ot,listHeight:d,listItemHeight:ne,treeCheckable:c&&f.createElement("span",{className:`${ye}-tree-checkbox-inner`}),treeLine:!!y,suffixIcon:tt,multiple:Ne,placement:Ze,removeIcon:se,allowClear:Ye,switcherIcon:Bt,showTreeIcon:_,notFoundContent:Ue,getPopupContainer:S||N,treeMotion:null,dropdownClassName:Pe,dropdownStyle:Object.assign(Object.assign({},H),{zIndex:Dt}),choiceTransitionName:as(ue,"",x),transitionName:as(ue,"slide-up",T),treeExpandAction:k,tagRender:Ne?F:void 0,maxCount:We,showCheckedStrategy:W,treeCheckStrictly:q}));return we(Ce(an))},Oht=f.forwardRef(kht),e0=Oht,Pht=vg(e0,"dropdownAlign",e=>Pr(e,["visible"]));e0.TreeNode=uV;e0.SHOW_ALL=dV;e0.SHOW_PARENT=fV;e0.SHOW_CHILD=kP;e0._InternalPanelDoNotUseOrYouWillBeFired=Pht;const Mht=(e,t,n,r)=>{const{titleMarginBottom:i,fontWeightStrong:o}=r;return{marginBottom:i,color:n,fontWeight:o,fontSize:e,lineHeight:t}},Iht=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}
|
||
`]=Mht(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},$ht=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},DU(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},Rht=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:d_[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}}),Aht=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 - ${je(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"}}}},Nht=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),Dht=()=>({"\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"}}),Lht=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"}},Iht(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}}}),Rht(e)),$ht(e)),{[`
|
||
${t}-expand,
|
||
${t}-collapse,
|
||
${t}-edit,
|
||
${t}-copy
|
||
`]:Object.assign(Object.assign({},DU(e)),{marginInlineStart:e.marginXXS})}),Aht(e)),Nht(e)),Dht()),{"&-rtl":{direction:"rtl"}})}},Fht=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),axe=Tr("Typography",e=>[Lht(e)],Fht),jht=e=>{const{prefixCls:t,"aria-label":n,className:r,style:i,direction:o,maxLength:a,autoSize:s=!0,value:l,onSave:c,onCancel:u,onEnd:d,component:h,enterIcon:p=f.createElement(glt,null)}=e,m=f.useRef(null),v=f.useRef(!1),y=f.useRef(null),[S,b]=f.useState(l);f.useEffect(()=>{b(l)},[l]),f.useEffect(()=>{var H;if(!((H=m.current)===null||H===void 0)&&H.resizableTextArea){const{textArea:F}=m.current.resizableTextArea;F.focus();const{length:z}=F.value;F.setSelectionRange(z,z)}},[]);const C=H=>{let{target:F}=H;b(F.value.replace(/[\n\r]/g,""))},_=()=>{v.current=!0},T=()=>{v.current=!1},x=H=>{let{keyCode:F}=H;v.current||(y.current=F)},E=()=>{c(S.trim())},k=H=>{let{keyCode:F,ctrlKey:z,altKey:W,metaKey:q,shiftKey:Z}=H;y.current!==F||v.current||z||W||q||Z||(F===Pt.ENTER?(E(),d==null||d()):F===Pt.ESC&&u())},M=()=>{E()},[P,D,R]=axe(t),A=Re(t,`${t}-edit-content`,{[`${t}-rtl`]:o==="rtl",[`${t}-${h}`]:!!h},r,D,R);return P(f.createElement("div",{className:A,style:i},f.createElement(nSe,{ref:m,maxLength:a,value:S,onChange:C,onKeyDown:x,onKeyUp:k,onCompositionStart:_,onCompositionEnd:T,onBlur:M,"aria-label":n,rows:1,autoSize:s}),p!==null?$o(p,{className:`${t}-edit-content-confirm`}):null))};var Bht=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()}},Hht=Bht,_ne={"text/plain":"Text","text/html":"Url",default:"Text"},zht="Copy to clipboard: #{key}, Enter";function Uht(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function Wht(e,t){var n,r,i,o,a,s,l=!1;t||(t={}),n=t.debug||!1;try{i=Hht(),o=document.createRange(),a=document.getSelection(),s=document.createElement("span"),s.textContent=e,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",function(u){if(u.stopPropagation(),t.format)if(u.preventDefault(),typeof u.clipboardData>"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var d=_ne[t.format]||_ne.default;window.clipboardData.setData(d,e)}else u.clipboardData.clearData(),u.clipboardData.setData(t.format,e);t.onCopy&&(u.preventDefault(),t.onCopy(u.clipboardData))}),document.body.appendChild(s),o.selectNodeContents(s),a.addRange(o);var c=document.execCommand("copy");if(!c)throw new Error("copy command was unsuccessful");l=!0}catch(u){n&&console.error("unable to copy using execCommand: ",u),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(d){n&&console.error("unable to copy using clipboardData: ",d),n&&console.error("falling back to prompt"),r=Uht("message"in t?t.message:zht),window.prompt(r,e)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(o):a.removeAllRanges()),s&&document.body.removeChild(s),i()}return l}var Vht=Wht;const Kht=hi(Vht);var qht=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 s(u){try{c(r.next(u))}catch(d){a(d)}}function l(u){try{c(r.throw(u))}catch(d){a(d)}}function c(u){u.done?o(u.value):i(u.value).then(s,l)}c((r=r.apply(e,t||[])).next())})};const Ght=e=>{let{copyConfig:t,children:n}=e;const[r,i]=f.useState(!1),[o,a]=f.useState(!1),s=f.useRef(null),l=()=>{s.current&&clearTimeout(s.current)},c={};t.format&&(c.format=t.format),f.useEffect(()=>l,[]);const u=cr(d=>qht(void 0,void 0,void 0,function*(){var h;d==null||d.preventDefault(),d==null||d.stopPropagation(),a(!0);try{const p=typeof t.text=="function"?yield t.text():t.text;Kht(p||Vat(n,!0).join("")||"",c),a(!1),i(!0),l(),s.current=setTimeout(()=>{i(!1)},3e3),(h=t.onCopy)===null||h===void 0||h.call(t,d)}catch(p){throw a(!1),p}}));return{copied:r,copyLoading:o,onClick:u}};function iA(e,t){return f.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const Yht=e=>{const t=f.useRef(void 0);return f.useEffect(()=>{t.current=e}),t.current},Xht=(e,t,n)=>f.useMemo(()=>e===!0?{title:t??n}:f.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??n},e):{title:e},[e,t,n]);var Qht=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 sxe=f.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:i,rootClassName:o,setContentRef:a,children:s,direction:l,style:c}=e,u=Qht(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:d,direction:h,typography:p}=f.useContext(hn),m=l??h,v=a?va(t,a):t,y=d("typography",n),[S,b,C]=axe(y),_=Re(y,p==null?void 0:p.className,{[`${y}-rtl`]:m==="rtl"},i,o,b,C),T=Object.assign(Object.assign({},p==null?void 0:p.style),c);return S(f.createElement(r,Object.assign({className:_,style:T,ref:v},u),s))});function Ene(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function oA(e,t,n){return e===!0||e===void 0?t:e||n&&t}function Zht(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 hV=e=>["string","number"].includes(typeof e),Jht=e=>{let{prefixCls:t,copied:n,locale:r,iconOnly:i,tooltips:o,icon:a,tabIndex:s,onCopy:l,loading:c}=e;const u=Ene(o),d=Ene(a),{copied:h,copy:p}=r??{},m=n?h:p,v=oA(u[n?1:0],m),y=typeof v=="string"?v:m;return f.createElement(ta,{title:v},f.createElement("button",{type:"button",className:Re(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:i}),onClick:l,"aria-label":y,tabIndex:s},n?oA(d[1],f.createElement(fW,null),!0):oA(d[0],c?f.createElement(Bd,null):f.createElement(rlt,null),!0)))},o5=f.forwardRef((e,t)=>{let{style:n,children:r}=e;const i=f.useRef(null);return f.useImperativeHandle(t,()=>({isExceed:()=>{const o=i.current;return o.scrollHeight>o.clientHeight},getHeight:()=>i.current.clientHeight})),f.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)}),ept=e=>e.reduce((t,n)=>t+(hV(n)?String(n).length:1),0);function Tne(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],s=hV(o)?String(o).length:1,l=n+s;if(l>t){const c=t-n;return r.push(String(o).slice(0,c)),r}r.push(o),n=l}return e}const aA=0,sA=1,lA=2,cA=3,kne=4,a5={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function tpt(e){const{enableMeasure:t,width:n,text:r,children:i,rows:o,expanded:a,miscDeps:s,onEllipsis:l}=e,c=f.useMemo(()=>Uo(r),[r]),u=f.useMemo(()=>ept(c),[r]),d=f.useMemo(()=>i(c,!1),[r]),[h,p]=f.useState(null),m=f.useRef(null),v=f.useRef(null),y=f.useRef(null),S=f.useRef(null),b=f.useRef(null),[C,_]=f.useState(!1),[T,x]=f.useState(aA),[E,k]=f.useState(0),[M,P]=f.useState(null);Er(()=>{x(t&&n&&u?sA:aA)},[n,r,o,t,c]),Er(()=>{var H,F,z,W;if(T===sA){x(lA);const q=v.current&&getComputedStyle(v.current).whiteSpace;P(q)}else if(T===lA){const q=!!(!((H=y.current)===null||H===void 0)&&H.isExceed());x(q?cA:kne),p(q?[0,u]:null),_(q);const Z=((F=y.current)===null||F===void 0?void 0:F.getHeight())||0,N=o===1?0:((z=S.current)===null||z===void 0?void 0:z.getHeight())||0,B=((W=b.current)===null||W===void 0?void 0:W.getHeight())||0,V=Math.max(Z,N+B);k(V+1),l(q)}},[T]);const D=h?Math.ceil((h[0]+h[1])/2):0;Er(()=>{var H;const[F,z]=h||[0,0];if(F!==z){const q=(((H=m.current)===null||H===void 0?void 0:H.getHeight())||0)>E;let Z=D;z-F===1&&(Z=q?F:z),p(q?[F,Z]:[Z,z])}},[h,D]);const R=f.useMemo(()=>{if(!t)return i(c,!1);if(T!==cA||!h||h[0]!==h[1]){const H=i(c,!1);return[kne,aA].includes(T)?H:f.createElement("span",{style:Object.assign(Object.assign({},a5),{WebkitLineClamp:o})},H)}return i(a?c:Tne(c,h[0]),C)},[a,T,h,c].concat(pt(s))),A={width:n,margin:0,padding:0,whiteSpace:M==="nowrap"?"normal":"inherit"};return f.createElement(f.Fragment,null,R,T===lA&&f.createElement(f.Fragment,null,f.createElement(o5,{style:Object.assign(Object.assign(Object.assign({},A),a5),{WebkitLineClamp:o}),ref:y},d),f.createElement(o5,{style:Object.assign(Object.assign(Object.assign({},A),a5),{WebkitLineClamp:o-1}),ref:S},d),f.createElement(o5,{style:Object.assign(Object.assign(Object.assign({},A),a5),{WebkitLineClamp:1}),ref:b},i([],!0))),T===cA&&h&&h[0]!==h[1]&&f.createElement(o5,{style:Object.assign(Object.assign({},A),{top:400}),ref:m},i(Tne(c,D),!0)),T===sA&&f.createElement("span",{style:{whiteSpace:"inherit"},ref:v}))}const npt=e=>{let{enableEllipsis:t,isEllipsis:n,children:r,tooltipProps:i}=e;return!(i!=null&&i.title)||!t?r:f.createElement(ta,Object.assign({open:n?void 0:!1},i),r)};var rpt=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 ipt(e,t){let{mark:n,code:r,underline:i,delete:o,strong:a,keyboard:s,italic:l}=e,c=t;function u(d,h){h&&(c=f.createElement(d,{},c))}return u("strong",a),u("u",i),u("del",o),u("code",r),u("mark",n),u("kbd",s),u("i",l),c}const opt="...",OP=f.forwardRef((e,t)=>{var n;const{prefixCls:r,className:i,style:o,type:a,disabled:s,children:l,ellipsis:c,editable:u,copyable:d,component:h,title:p}=e,m=rpt(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:v,direction:y}=f.useContext(hn),[S]=Os("Text"),b=f.useRef(null),C=f.useRef(null),_=v("typography",r),T=Pr(m,["mark","code","delete","underline","strong","keyboard","italic"]),[x,E]=iA(u),[k,M]=Jn(!1,{value:E.editing}),{triggerType:P=["icon"]}=E,D=Ye=>{var Ue;Ye&&((Ue=E.onStart)===null||Ue===void 0||Ue.call(E)),M(Ye)},R=Yht(k);Er(()=>{var Ye;!k&&R&&((Ye=C.current)===null||Ye===void 0||Ye.focus())},[k]);const A=Ye=>{Ye==null||Ye.preventDefault(),D(!0)},H=Ye=>{var Ue;(Ue=E.onChange)===null||Ue===void 0||Ue.call(E,Ye),D(!1)},F=()=>{var Ye;(Ye=E.onCancel)===null||Ye===void 0||Ye.call(E),D(!1)},[z,W]=iA(d),{copied:q,copyLoading:Z,onClick:N}=Ght({copyConfig:W,children:l}),[B,V]=f.useState(!1),[Y,ie]=f.useState(!1),[ce,fe]=f.useState(!1),[ee,ne]=f.useState(!1),[ue,ye]=f.useState(!0),[me,pe]=iA(c,{expandable:!1,symbol:Ye=>Ye?S==null?void 0:S.collapse:S==null?void 0:S.expand}),[he,_e]=Jn(pe.defaultExpanded||!1,{value:pe.expanded}),le=me&&(!he||pe.expandable==="collapsible"),{rows:xe=1}=pe,we=f.useMemo(()=>le&&(pe.suffix!==void 0||pe.onEllipsis||pe.expandable||x||z),[le,pe,x,z]);Er(()=>{me&&!we&&(V(FF("webkitLineClamp")),ie(FF("textOverflow")))},[we,me]);const[De,Fe]=f.useState(le),Ce=f.useMemo(()=>we?!1:xe===1?Y:B,[we,Y,B]);Er(()=>{Fe(Ce&&le)},[Ce,le]);const Te=le&&(De?ee:ce),ke=le&&xe===1&&De,Pe=le&&xe>1&&De,Ne=(Ye,Ue)=>{var Je;_e(Ue.expanded),(Je=pe.onExpand)===null||Je===void 0||Je.call(pe,Ye,Ue)},[We,Q]=f.useState(0),K=Ye=>{let{offsetWidth:Ue}=Ye;Q(Ue)},J=Ye=>{var Ue;fe(Ye),ce!==Ye&&((Ue=pe.onEllipsis)===null||Ue===void 0||Ue.call(pe,Ye))};f.useEffect(()=>{const Ye=b.current;if(me&&De&&Ye){const Ue=Zht(Ye);ee!==Ue&&ne(Ue)}},[me,De,l,Pe,ue,We]),f.useEffect(()=>{const Ye=b.current;if(typeof IntersectionObserver>"u"||!Ye||!De||!le)return;const Ue=new IntersectionObserver(()=>{ye(!!Ye.offsetParent)});return Ue.observe(Ye),()=>{Ue.disconnect()}},[De,le]);const be=Xht(pe.tooltip,E.text,l),Oe=f.useMemo(()=>{if(!(!me||De))return[E.text,l,p,be.title].find(hV)},[me,De,p,be.title,Te]);if(k)return f.createElement(jht,{value:(n=E.text)!==null&&n!==void 0?n:typeof l=="string"?l:"",onSave:H,onCancel:F,onEnd:E.onEnd,prefixCls:_,className:i,style:o,direction:y,component:h,maxLength:E.maxLength,autoSize:E.autoSize,enterIcon:E.enterIcon});const Se=()=>{const{expandable:Ye,symbol:Ue}=pe;return Ye?f.createElement("button",{type:"button",key:"expand",className:`${_}-${he?"collapse":"expand"}`,onClick:Je=>Ne(Je,{expanded:!he}),"aria-label":he?S.collapse:S==null?void 0:S.expand},typeof Ue=="function"?Ue(he):Ue):null},Ke=()=>{if(!x)return;const{icon:Ye,tooltip:Ue,tabIndex:Je}=E,Ze=Uo(Ue)[0]||(S==null?void 0:S.edit),rt=typeof Ze=="string"?Ze:"";return P.includes("icon")?f.createElement(ta,{key:"edit",title:Ue===!1?"":Ze},f.createElement("button",{type:"button",ref:C,className:`${_}-edit`,onClick:A,"aria-label":rt,tabIndex:Je},Ye||f.createElement(hlt,{role:"button"}))):null},tt=()=>z?f.createElement(Jht,Object.assign({key:"copy"},W,{prefixCls:_,copied:q,locale:S,onCopy:N,loading:Z,iconOnly:l==null})):null,se=Ye=>[Ye&&Se(),Ke(),tt()],ze=Ye=>[Ye&&!he&&f.createElement("span",{"aria-hidden":!0,key:"ellipsis"},opt),pe.suffix,se(Ye)];return f.createElement(Va,{onResize:K,disabled:!le},Ye=>f.createElement(npt,{tooltipProps:be,enableEllipsis:le,isEllipsis:Te},f.createElement(sxe,Object.assign({className:Re({[`${_}-${a}`]:a,[`${_}-disabled`]:s,[`${_}-ellipsis`]:me,[`${_}-ellipsis-single-line`]:ke,[`${_}-ellipsis-multiple-line`]:Pe},i),prefixCls:r,style:Object.assign(Object.assign({},o),{WebkitLineClamp:Pe?xe:void 0}),component:h,ref:va(Ye,b,t),direction:y,onClick:P.includes("text")?A:void 0,"aria-label":Oe==null?void 0:Oe.toString(),title:p},T),f.createElement(tpt,{enableMeasure:le&&!De,text:l,rows:xe,width:We,onEllipsis:J,expanded:he,miscDeps:[q,he,Z,x,z,S]},(Ue,Je)=>ipt(e,f.createElement(f.Fragment,null,Ue.length>0&&Je&&!he&&Oe?f.createElement("span",{key:"show-content","aria-hidden":!0},Ue):Ue,ze(Je)))))))});var apt=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 spt=f.forwardRef((e,t)=>{var{ellipsis:n,rel:r}=e,i=apt(e,["ellipsis","rel"]);const o=Object.assign(Object.assign({},i),{rel:r===void 0&&i.target==="_blank"?"noopener noreferrer":r});return delete o.navigate,f.createElement(OP,Object.assign({},o,{ref:t,ellipsis:!!n,component:"a"}))}),lpt=f.forwardRef((e,t)=>f.createElement(OP,Object.assign({ref:t},e,{component:"div"})));var cpt=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 upt=(e,t)=>{var{ellipsis:n}=e,r=cpt(e,["ellipsis"]);const i=f.useMemo(()=>n&&typeof n=="object"?Pr(n,["expandable","rows"]):n,[n]);return f.createElement(OP,Object.assign({ref:t},r,{ellipsis:i,component:"span"}))},dpt=f.forwardRef(upt);var fpt=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 hpt=[1,2,3,4,5],ppt=f.forwardRef((e,t)=>{const{level:n=1}=e,r=fpt(e,["level"]),i=hpt.includes(n)?`h${n}`:"h1";return f.createElement(OP,Object.assign({ref:t},r,{component:i}))}),UE=sxe;UE.Text=dpt;UE.Link=spt;UE.Title=ppt;UE.Paragraph=lpt;const uA=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 s=a.trim();if(/^\*(\/\*)?$/.test(a))return!0;if(s.charAt(0)==="."){var l=r.toLowerCase(),c=s.toLowerCase(),u=[c];return(c===".jpg"||c===".jpeg")&&(u=[".jpg",".jpeg"]),u.some(function(d){return l.endsWith(d)})}return/\/\*$/.test(s)?o===s.replace(/\/.*$/,""):i===s?!0:/^\w+$/.test(s)?(fi(!1,"Upload takes an invalidate 'accept' type '".concat(s,"'.Skip for check.")),!0):!1})}return!0};function mpt(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 One(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function gpt(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(mpt(e,t),One(t)):e.onSuccess(One(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 vpt=function(){var e=Jo(Hr().mark(function t(n,r){var i,o,a,s,l,c,u,d;return Hr().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:c=function(){return c=Jo(Hr().mark(function v(y){return Hr().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.abrupt("return",new Promise(function(C){y.file(function(_){r(_)?(y.fullPath&&!_.webkitRelativePath&&(Object.defineProperties(_,{webkitRelativePath:{writable:!0}}),_.webkitRelativePath=y.fullPath.replace(/^\//,""),Object.defineProperties(_,{webkitRelativePath:{writable:!1}})),C(_)):C(null)})}));case 1:case"end":return b.stop()}},v)})),c.apply(this,arguments)},l=function(v){return c.apply(this,arguments)},s=function(){return s=Jo(Hr().mark(function v(y){var S,b,C,_,T;return Hr().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:S=y.createReader(),b=[];case 2:return E.next=5,new Promise(function(k){S.readEntries(k,function(){return k([])})});case 5:if(C=E.sent,_=C.length,_){E.next=9;break}return E.abrupt("break",12);case 9:for(T=0;T<_;T++)b.push(C[T]);E.next=2;break;case 12:return E.abrupt("return",b);case 13:case"end":return E.stop()}},v)})),s.apply(this,arguments)},a=function(v){return s.apply(this,arguments)},i=[],o=[],n.forEach(function(m){return o.push(m.webkitGetAsEntry())}),u=function(){var m=Jo(Hr().mark(function v(y,S){var b,C;return Hr().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(y){T.next=2;break}return T.abrupt("return");case 2:if(y.path=S||"",!y.isFile){T.next=10;break}return T.next=6,l(y);case 6:b=T.sent,b&&i.push(b),T.next=15;break;case 10:if(!y.isDirectory){T.next=15;break}return T.next=13,a(y);case 13:C=T.sent,o.push.apply(o,pt(C));case 15:case"end":return T.stop()}},v)}));return function(y,S){return m.apply(this,arguments)}}(),d=0;case 9:if(!(d<o.length)){p.next=15;break}return p.next=12,u(o[d]);case 12:d++,p.next=9;break;case 15:return p.abrupt("return",i);case 16:case"end":return p.stop()}},t)}));return function(n,r){return e.apply(this,arguments)}}(),ypt=+new Date,bpt=0;function dA(){return"rc-upload-".concat(ypt,"-").concat(++bpt)}var Spt=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],Cpt=function(e){Xs(n,e);var t=Sl(n);function n(){var r;pi(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)),ae(On(r),"state",{uid:dA()}),ae(On(r),"reqs",{}),ae(On(r),"fileInput",void 0),ae(On(r),"_isMounted",void 0),ae(On(r),"onChange",function(s){var l=r.props,c=l.accept,u=l.directory,d=s.target.files,h=pt(d).filter(function(p){return!u||uA(p,c)});r.uploadFiles(h),r.reset()}),ae(On(r),"onClick",function(s){var l=r.fileInput;if(l){var c=s.target,u=r.props.onClick;if(c&&c.tagName==="BUTTON"){var d=l.parentNode;d.focus(),c.blur()}l.click(),u&&u(s)}}),ae(On(r),"onKeyDown",function(s){s.key==="Enter"&&r.onClick(s)}),ae(On(r),"onFileDrop",function(){var s=Jo(Hr().mark(function l(c){var u,d,h;return Hr().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(u=r.props.multiple,c.preventDefault(),c.type!=="dragover"){m.next=4;break}return m.abrupt("return");case 4:if(!r.props.directory){m.next=11;break}return m.next=7,vpt(Array.prototype.slice.call(c.dataTransfer.items),function(v){return uA(v,r.props.accept)});case 7:d=m.sent,r.uploadFiles(d),m.next=14;break;case 11:h=pt(c.dataTransfer.files).filter(function(v){return uA(v,r.props.accept)}),u===!1&&(h=h.slice(0,1)),r.uploadFiles(h);case 14:case"end":return m.stop()}},l)}));return function(l){return s.apply(this,arguments)}}()),ae(On(r),"uploadFiles",function(s){var l=pt(s),c=l.map(function(u){return u.uid=dA(),r.processFile(u,l)});Promise.all(c).then(function(u){var d=r.props.onBatchStart;d==null||d(u.map(function(h){var p=h.origin,m=h.parsedFile;return{file:p,parsedFile:m}})),u.filter(function(h){return h.parsedFile!==null}).forEach(function(h){r.post(h)})})}),ae(On(r),"processFile",function(){var s=Jo(Hr().mark(function l(c,u){var d,h,p,m,v,y,S,b,C;return Hr().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(d=r.props.beforeUpload,h=c,!d){T.next=14;break}return T.prev=3,T.next=6,d(c,u);case 6:h=T.sent,T.next=12;break;case 9:T.prev=9,T.t0=T.catch(3),h=!1;case 12:if(h!==!1){T.next=14;break}return T.abrupt("return",{origin:c,parsedFile:null,action:null,data:null});case 14:if(p=r.props.action,typeof p!="function"){T.next=21;break}return T.next=18,p(c);case 18:m=T.sent,T.next=22;break;case 21:m=p;case 22:if(v=r.props.data,typeof v!="function"){T.next=29;break}return T.next=26,v(c);case 26:y=T.sent,T.next=30;break;case 29:y=v;case 30:return S=(ln(h)==="object"||typeof h=="string")&&h?h:c,S instanceof File?b=S:b=new File([S],c.name,{type:c.type}),C=b,C.uid=c.uid,T.abrupt("return",{origin:c,data:y,parsedFile:C,action:m});case 35:case"end":return T.stop()}},l,null,[[3,9]])}));return function(l,c){return s.apply(this,arguments)}}()),ae(On(r),"saveFileInput",function(s){r.fileInput=s}),r}return mi(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,s=i.origin,l=i.action,c=i.parsedFile;if(this._isMounted){var u=this.props,d=u.onStart,h=u.customRequest,p=u.name,m=u.headers,v=u.withCredentials,y=u.method,S=s.uid,b=h||gpt,C={action:l,filename:p,data:a,file:c,headers:m,withCredentials:v,method:y||"post",onProgress:function(T){var x=o.props.onProgress;x==null||x(T,c)},onSuccess:function(T,x){var E=o.props.onSuccess;E==null||E(T,c,x),delete o.reqs[S]},onError:function(T,x){var E=o.props.onError;E==null||E(T,x,c),delete o.reqs[S]}};d(s),this.reqs[S]=b(C)}}},{key:"reset",value:function(){this.setState({uid:dA()})}},{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(s){o[s]&&o[s].abort&&o[s].abort(),delete o[s]})}},{key:"render",value:function(){var i=this.props,o=i.component,a=i.prefixCls,s=i.className,l=i.classNames,c=l===void 0?{}:l,u=i.disabled,d=i.id,h=i.name,p=i.style,m=i.styles,v=m===void 0?{}:m,y=i.multiple,S=i.accept,b=i.capture,C=i.children,_=i.directory,T=i.openFileDialogOnClick,x=i.onMouseEnter,E=i.onMouseLeave,k=i.hasControlInside,M=tn(i,Spt),P=Re(ae(ae(ae({},a,!0),"".concat(a,"-disabled"),u),s,s)),D=_?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},R=u?{}:{onClick:T?this.onClick:function(){},onKeyDown:T?this.onKeyDown:function(){},onMouseEnter:x,onMouseLeave:E,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:k?void 0:"0"};return ge.createElement(o,ut({},R,{className:P,role:k?void 0:"button",style:p}),ge.createElement("input",ut({},Hi(M,{aria:!0,data:!0}),{id:d,name:h,disabled:u,type:"file",ref:this.saveFileInput,onClick:function(H){return H.stopPropagation()},key:this.state.uid,style:G({display:"none"},v.input),className:c.input,accept:S},D,{multiple:y,onChange:this.onChange},b!=null?{capture:b}:{})),C)}}]),n}(f.Component);function fA(){}var xj=function(e){Xs(n,e);var t=Sl(n);function n(){var r;pi(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)),ae(On(r),"uploader",void 0),ae(On(r),"saveUploader",function(s){r.uploader=s}),r}return mi(n,[{key:"abort",value:function(i){this.uploader.abort(i)}},{key:"render",value:function(){return ge.createElement(Cpt,ut({},this.props,{ref:this.saveUploader}))}}]),n}(f.Component);ae(xj,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:fA,onError:fA,onSuccess:fA,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});const xpt=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${je(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:`${je(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 ${je(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}}}}}},wpt=e=>{const{componentCls:t,iconCls:n,fontSize:r,lineHeight:i,calc:o}=e,a=`${t}-list-item`,s=`${a}-actions`,l=`${a}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},Fd()),{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({},Yl),{padding:`0 ${je(e.paddingXS)}`,lineHeight:i,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[s]:{whiteSpace:"nowrap",[l]:{opacity:0},[n]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`
|
||
${l}:focus-visible,
|
||
&.picture ${l}
|
||
`]:{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 ${l}`]:{opacity:1},[`${a}-error`]:{color:e.colorError,[`${a}-name, ${t}-icon ${n}`]:{color:e.colorError},[s]:{[`${n}, ${n}:hover`]:{color:e.colorError},[l]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},_pt=e=>{const{componentCls:t}=e,n=new Mr("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new Mr("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`]:VU(e)},n,r]},Ept=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:i,calc:o}=e,a=`${t}-list`,s=`${a}-item`;return{[`${t}-wrapper`]:{[`
|
||
${a}${a}-picture,
|
||
${a}${a}-picture-card,
|
||
${a}${a}-picture-circle
|
||
`]:{[s]:{position:"relative",height:o(r).add(o(e.lineWidth).mul(2)).add(o(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${je(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${s}-thumbnail`]:Object.assign(Object.assign({},Yl),{width:r,height:r,lineHeight:je(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"}}),[`${s}-progress`]:{bottom:i,width:`calc(100% - ${je(o(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:o(r).add(e.paddingXS).equal()}},[`${s}-error`]:{borderColor:e.colorError,[`${s}-thumbnail ${n}`]:{[`svg path[fill='${bv[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${bv.primary}']`]:{fill:e.colorError}}},[`${s}-uploading`]:{borderStyle:"dashed",[`${s}-name`]:{marginBottom:i}}},[`${a}${a}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:"50%"}}}}},Tpt=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:i,calc:o}=e,a=`${t}-list`,s=`${a}-item`,l=e.uploadPicCardSize;return{[`
|
||
${t}-wrapper${t}-picture-card-wrapper,
|
||
${t}-wrapper${t}-picture-circle-wrapper
|
||
`]:Object.assign(Object.assign({},Fd()),{display:"block",[`${t}${t}-select`]:{width:l,height:l,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${je(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:l,height:l,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[s]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${je(o(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${je(o(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${s}:hover`]:{[`&::before, ${s}-actions`]:{opacity:1}},[`${s}-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 ${je(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:i,"&:hover":{color:i},svg:{verticalAlign:"baseline"}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${s}-name`]:{display:"none",textAlign:"center"},[`${s}-file + ${s}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${je(o(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${je(o(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},kpt=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},Opt=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},$r(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},Ppt=e=>({actionsColor:e.colorTextDescription}),Mpt=Tr("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,controlHeightLG:i,calc:o}=e,a=ur(e,{uploadThumbnailSize:o(t).mul(2).equal(),uploadProgressOffset:o(o(n).div(2)).add(r).equal(),uploadPicCardSize:o(i).mul(2.55).equal()});return[Opt(a),xpt(a),Ept(a),Tpt(a),wpt(a),_pt(a),kpt(a),bE(a)]},Ppt);function s5(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 l5(e,t){const n=pt(t),r=n.findIndex(i=>{let{uid:o}=i;return o===e.uid});return r===-1?n.push(e):n[r]=e,n}function hA(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function Ipt(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 $pt=function(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},lxe=e=>e.indexOf("image/")===0,Rpt=e=>{if(e.type&&!e.thumbUrl)return lxe(e.type);const t=e.thumbUrl||e.url||"",n=$pt(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)},Xp=200;function Apt(e){return new Promise(t=>{if(!e.type||!lxe(e.type)){t("");return}const n=document.createElement("canvas");n.width=Xp,n.height=Xp,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${Xp}px; height: ${Xp}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 s=Xp,l=Xp,c=0,u=0;o>a?(l=a*(Xp/o),u=-(l-s)/2):(s=o*(Xp/a),c=-(s-l)/2),r.drawImage(i,c,u,s,l);const d=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(i.src),t(d)},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 Npt=f.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,locale:o,listType:a,file:s,items:l,progress:c,iconRender:u,actionIconRender:d,itemRender:h,isImgUrl:p,showPreviewIcon:m,showRemoveIcon:v,showDownloadIcon:y,previewIcon:S,removeIcon:b,downloadIcon:C,extra:_,onPreview:T,onDownload:x,onClose:E}=e;var k,M;const{status:P}=s,[D,R]=f.useState(P);f.useEffect(()=>{P!=="removed"&&R(P)},[P]);const[A,H]=f.useState(!1);f.useEffect(()=>{const he=setTimeout(()=>{H(!0)},300);return()=>{clearTimeout(he)}},[]);const F=u(s);let z=f.createElement("div",{className:`${n}-icon`},F);if(a==="picture"||a==="picture-card"||a==="picture-circle")if(D==="uploading"||!s.thumbUrl&&!s.url){const he=Re(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:D!=="uploading"});z=f.createElement("div",{className:he},F)}else{const he=p!=null&&p(s)?f.createElement("img",{src:s.thumbUrl||s.url,alt:s.name,className:`${n}-list-item-image`,crossOrigin:s.crossOrigin}):F,_e=Re(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:p&&!p(s)});z=f.createElement("a",{className:_e,onClick:le=>T(s,le),href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer"},he)}const W=Re(`${n}-list-item`,`${n}-list-item-${D}`),q=typeof s.linkProps=="string"?JSON.parse(s.linkProps):s.linkProps,Z=(typeof v=="function"?v(s):v)?d((typeof b=="function"?b(s):b)||f.createElement(llt,null),()=>E(s),n,o.removeFile,!0):null,N=(typeof y=="function"?y(s):y)&&D==="done"?d((typeof C=="function"?C(s):C)||f.createElement(dlt,null),()=>x(s),n,o.downloadFile):null,B=a!=="picture-card"&&a!=="picture-circle"&&f.createElement("span",{key:"download-delete",className:Re(`${n}-list-item-actions`,{picture:a==="picture"})},N,Z),V=typeof _=="function"?_(s):_,Y=V&&f.createElement("span",{className:`${n}-list-item-extra`},V),ie=Re(`${n}-list-item-name`),ce=s.url?f.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:ie,title:s.name},q,{href:s.url,onClick:he=>T(s,he)}),s.name,Y):f.createElement("span",{key:"view",className:ie,onClick:he=>T(s,he),title:s.name},s.name,Y),fe=(typeof m=="function"?m(s):m)&&(s.url||s.thumbUrl)?f.createElement("a",{href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:he=>T(s,he),title:o.previewFile},typeof S=="function"?S(s):S||f.createElement(vP,null)):null,ee=(a==="picture-card"||a==="picture-circle")&&D!=="uploading"&&f.createElement("span",{className:`${n}-list-item-actions`},fe,D==="done"&&N,Z),{getPrefixCls:ne}=f.useContext(hn),ue=ne(),ye=f.createElement("div",{className:W},z,ce,B,ee,A&&f.createElement(ha,{motionName:`${ue}-fade`,visible:D==="uploading",motionDeadline:2e3},he=>{let{className:_e}=he;const le="percent"in s?f.createElement(tCe,Object.assign({},c,{type:"line",percent:s.percent,"aria-label":s["aria-label"],"aria-labelledby":s["aria-labelledby"]})):null;return f.createElement("div",{className:Re(`${n}-list-item-progress`,_e)},le)})),me=s.response&&typeof s.response=="string"?s.response:((k=s.error)===null||k===void 0?void 0:k.statusText)||((M=s.error)===null||M===void 0?void 0:M.message)||o.uploadError,pe=D==="error"?f.createElement(ta,{title:me,getPopupContainer:he=>he.parentNode},ye):ye;return f.createElement("div",{className:Re(`${n}-list-item-container`,r),style:i,ref:t},h?h(pe,s,l,{download:x.bind(null,s),preview:T.bind(null,s),remove:E.bind(null,s)}):pe)}),Dpt=(e,t)=>{const{listType:n="text",previewFile:r=Apt,onPreview:i,onDownload:o,onRemove:a,locale:s,iconRender:l,isImageUrl:c=Rpt,prefixCls:u,items:d=[],showPreviewIcon:h=!0,showRemoveIcon:p=!0,showDownloadIcon:m=!1,removeIcon:v,previewIcon:y,downloadIcon:S,extra:b,progress:C={size:[-1,2],showInfo:!1},appendAction:_,appendActionVisible:T=!0,itemRender:x,disabled:E}=e,k=pW(),[M,P]=f.useState(!1),D=["picture-card","picture-circle"].includes(n);f.useEffect(()=>{n.startsWith("picture")&&(d||[]).forEach(Y=>{!(Y.originFileObj instanceof File||Y.originFileObj instanceof Blob)||Y.thumbUrl!==void 0||(Y.thumbUrl="",r==null||r(Y.originFileObj).then(ie=>{Y.thumbUrl=ie||"",k()}))})},[n,d,r]),f.useEffect(()=>{P(!0)},[]);const R=(Y,ie)=>{if(i)return ie==null||ie.preventDefault(),i(Y)},A=Y=>{typeof o=="function"?o(Y):Y.url&&window.open(Y.url)},H=Y=>{a==null||a(Y)},F=Y=>{if(l)return l(Y,n);const ie=Y.status==="uploading";if(n.startsWith("picture")){const ce=n==="picture"?f.createElement(Bd,null):s.uploading,fe=c!=null&&c(Y)?f.createElement(Jlt,null):f.createElement(Slt,null);return ie?ce:fe}return ie?f.createElement(Bd,null):f.createElement(Xlt,null)},z=(Y,ie,ce,fe,ee)=>{const ne={type:"text",size:"small",title:fe,onClick:ue=>{var ye,me;ie(),f.isValidElement(Y)&&((me=(ye=Y.props).onClick)===null||me===void 0||me.call(ye,ue))},className:`${ce}-list-item-action`};return ee&&(ne.disabled=E),f.isValidElement(Y)?f.createElement(hr,Object.assign({},ne,{icon:$o(Y,Object.assign(Object.assign({},Y.props),{onClick:()=>{}}))})):f.createElement(hr,Object.assign({},ne),f.createElement("span",null,Y))};f.useImperativeHandle(t,()=>({handlePreview:R,handleDownload:A}));const{getPrefixCls:W}=f.useContext(hn),q=W("upload",u),Z=W(),N=Re(`${q}-list`,`${q}-list-${n}`),B=f.useMemo(()=>Pr(Xb(Z),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[Z]),V=Object.assign(Object.assign({},D?{}:B),{motionDeadline:2e3,motionName:`${q}-${D?"animate-inline":"animate"}`,keys:pt(d.map(Y=>({key:Y.uid,file:Y}))),motionAppear:M});return f.createElement("div",{className:N},f.createElement(OO,Object.assign({},V,{component:!1}),Y=>{let{key:ie,file:ce,className:fe,style:ee}=Y;return f.createElement(Npt,{key:ie,locale:s,prefixCls:q,className:fe,style:ee,file:ce,items:d,progress:C,listType:n,isImgUrl:c,showPreviewIcon:h,showRemoveIcon:p,showDownloadIcon:m,removeIcon:v,previewIcon:y,downloadIcon:S,extra:b,iconRender:F,actionIconRender:z,itemRender:x,onPreview:R,onDownload:A,onClose:H})}),_&&f.createElement(ha,Object.assign({},V,{visible:T,forceRender:!0}),Y=>{let{className:ie,style:ce}=Y;return $o(_,fe=>({className:Re(fe.className,ie),style:Object.assign(Object.assign(Object.assign({},ce),{pointerEvents:ie?"none":void 0}),fe.style)}))}))},Lpt=f.forwardRef(Dpt);var Fpt=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 s(u){try{c(r.next(u))}catch(d){a(d)}}function l(u){try{c(r.throw(u))}catch(d){a(d)}}function c(u){u.done?o(u.value):i(u.value).then(s,l)}c((r=r.apply(e,[])).next())})};const O2=`__LIST_IGNORE_${Date.now()}__`,jpt=(e,t)=>{const{fileList:n,defaultFileList:r,onRemove:i,showUploadList:o=!0,listType:a="text",onPreview:s,onDownload:l,onChange:c,onDrop:u,previewFile:d,disabled:h,locale:p,iconRender:m,isImageUrl:v,progress:y,prefixCls:S,className:b,type:C="select",children:_,style:T,itemRender:x,maxCount:E,data:k={},multiple:M=!1,hasControlInside:P=!0,action:D="",accept:R="",supportServerRender:A=!0,rootClassName:H}=e,F=f.useContext(ea),z=h??F,[W,q]=Jn(r||[],{value:n,postState:se=>se??[]}),[Z,N]=f.useState("drop"),B=f.useRef(null),V=f.useRef(null);f.useMemo(()=>{const se=Date.now();(n||[]).forEach((ze,Ye)=>{!ze.uid&&!Object.isFrozen(ze)&&(ze.uid=`__AUTO__${se}_${Ye}__`)})},[n]);const Y=(se,ze,Ye)=>{let Ue=pt(ze),Je=!1;E===1?Ue=Ue.slice(-1):E&&(Je=Ue.length>E,Ue=Ue.slice(0,E)),Nc.flushSync(()=>{q(Ue)});const Ze={file:se,fileList:Ue};Ye&&(Ze.event=Ye),(!Je||se.status==="removed"||Ue.some(rt=>rt.uid===se.uid))&&Nc.flushSync(()=>{c==null||c(Ze)})},ie=(se,ze)=>Fpt(void 0,void 0,void 0,function*(){const{beforeUpload:Ye,transformFile:Ue}=e;let Je=se;if(Ye){const Ze=yield Ye(se,ze);if(Ze===!1)return!1;if(delete se[O2],Ze===O2)return Object.defineProperty(se,O2,{value:!0,configurable:!0}),!1;typeof Ze=="object"&&Ze&&(Je=Ze)}return Ue&&(Je=yield Ue(Je)),Je}),ce=se=>{const ze=se.filter(Je=>!Je.file[O2]);if(!ze.length)return;const Ye=ze.map(Je=>s5(Je.file));let Ue=pt(W);Ye.forEach(Je=>{Ue=l5(Je,Ue)}),Ye.forEach((Je,Ze)=>{let rt=Je;if(ze[Ze].parsedFile)Je.status="uploading";else{const{originFileObj:qt}=Je;let St;try{St=new File([qt],qt.name,{type:qt.type})}catch{St=new Blob([qt],{type:qt.type}),St.name=qt.name,St.lastModifiedDate=new Date,St.lastModified=new Date().getTime()}St.uid=Je.uid,rt=St}Y(rt,Ue)})},fe=(se,ze,Ye)=>{try{typeof se=="string"&&(se=JSON.parse(se))}catch{}if(!hA(ze,W))return;const Ue=s5(ze);Ue.status="done",Ue.percent=100,Ue.response=se,Ue.xhr=Ye;const Je=l5(Ue,W);Y(Ue,Je)},ee=(se,ze)=>{if(!hA(ze,W))return;const Ye=s5(ze);Ye.status="uploading",Ye.percent=se.percent;const Ue=l5(Ye,W);Y(Ye,Ue,se)},ne=(se,ze,Ye)=>{if(!hA(Ye,W))return;const Ue=s5(Ye);Ue.error=se,Ue.response=ze,Ue.status="error";const Je=l5(Ue,W);Y(Ue,Je)},ue=se=>{let ze;Promise.resolve(typeof i=="function"?i(se):i).then(Ye=>{var Ue;if(Ye===!1)return;const Je=Ipt(se,W);Je&&(ze=Object.assign(Object.assign({},se),{status:"removed"}),W==null||W.forEach(Ze=>{const rt=ze.uid!==void 0?"uid":"name";Ze[rt]===ze[rt]&&!Object.isFrozen(Ze)&&(Ze.status="removed")}),(Ue=B.current)===null||Ue===void 0||Ue.abort(ze),Y(ze,Je))})},ye=se=>{N(se.type),se.type==="drop"&&(u==null||u(se))};f.useImperativeHandle(t,()=>({onBatchStart:ce,onSuccess:fe,onProgress:ee,onError:ne,fileList:W,upload:B.current,nativeElement:V.current}));const{getPrefixCls:me,direction:pe,upload:he}=f.useContext(hn),_e=me("upload",S),le=Object.assign(Object.assign({onBatchStart:ce,onError:ne,onProgress:ee,onSuccess:fe},e),{data:k,multiple:M,action:D,accept:R,supportServerRender:A,prefixCls:_e,disabled:z,beforeUpload:ie,onChange:void 0,hasControlInside:P});delete le.className,delete le.style,(!_||z)&&delete le.id;const xe=`${_e}-wrapper`,[we,De,Fe]=Mpt(_e,xe),[Ce]=Os("Upload",Fc.Upload),{showRemoveIcon:Te,showPreviewIcon:ke,showDownloadIcon:Pe,removeIcon:Ne,previewIcon:We,downloadIcon:Q,extra:K}=typeof o=="boolean"?{}:o,J=typeof Te>"u"?!z:Te,be=(se,ze)=>o?f.createElement(Lpt,{prefixCls:_e,listType:a,items:W,previewFile:d,onPreview:s,onDownload:l,onRemove:ue,showRemoveIcon:J,showPreviewIcon:ke,showDownloadIcon:Pe,removeIcon:Ne,previewIcon:We,downloadIcon:Q,iconRender:m,extra:K,locale:Object.assign(Object.assign({},Ce),p),isImageUrl:v,progress:y,appendAction:se,appendActionVisible:ze,itemRender:x,disabled:z}):se,Oe=Re(xe,b,H,De,Fe,he==null?void 0:he.className,{[`${_e}-rtl`]:pe==="rtl",[`${_e}-picture-card-wrapper`]:a==="picture-card",[`${_e}-picture-circle-wrapper`]:a==="picture-circle"}),Se=Object.assign(Object.assign({},he==null?void 0:he.style),T);if(C==="drag"){const se=Re(De,_e,`${_e}-drag`,{[`${_e}-drag-uploading`]:W.some(ze=>ze.status==="uploading"),[`${_e}-drag-hover`]:Z==="dragover",[`${_e}-disabled`]:z,[`${_e}-rtl`]:pe==="rtl"});return we(f.createElement("span",{className:Oe,ref:V},f.createElement("div",{className:se,style:Se,onDrop:ye,onDragOver:ye,onDragLeave:ye},f.createElement(xj,Object.assign({},le,{ref:B,className:`${_e}-btn`}),f.createElement("div",{className:`${_e}-drag-container`},_))),be()))}const Ke=Re(_e,`${_e}-select`,{[`${_e}-disabled`]:z,[`${_e}-hidden`]:!_}),tt=f.createElement("div",{className:Ke},f.createElement(xj,Object.assign({},le,{ref:B})));return we(a==="picture-card"||a==="picture-circle"?f.createElement("span",{className:Oe,ref:V},be(tt,!!_)):f.createElement("span",{className:Oe,ref:V},tt,be()))},cxe=f.forwardRef(jpt);var Bpt=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 Hpt=f.forwardRef((e,t)=>{var{style:n,height:r,hasControlInside:i=!1}=e,o=Bpt(e,["style","height","hasControlInside"]);return f.createElement(cxe,Object.assign({ref:t,hasControlInside:i},o,{type:"drag",style:Object.assign(Object.assign({},n),{height:r})}))}),dC=cxe;dC.Dragger=Hpt;dC.LIST_IGNORE=O2;let Wn;const zpt=()=>{const e=KO.useApp();return Wn=e.message,e.modal,e.notification,null};var uxe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(yo,function(){var n=function(X,re){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ve,$e){ve.__proto__=$e}||function(ve,$e){for(var He in $e)Object.prototype.hasOwnProperty.call($e,He)&&(ve[He]=$e[He])})(X,re)},r=function(){return(r=Object.assign||function(X){for(var re,ve=1,$e=arguments.length;ve<$e;ve++)for(var He in re=arguments[ve])Object.prototype.hasOwnProperty.call(re,He)&&(X[He]=re[He]);return X}).apply(this,arguments)};function i(X,re,ve){for(var $e,He=0,qe=re.length;He<qe;He++)!$e&&He in re||(($e=$e||Array.prototype.slice.call(re,0,He))[He]=re[He]);return X.concat($e||Array.prototype.slice.call(re))}var o=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:yo,a=Object.keys,s=Array.isArray;function l(X,re){return typeof re!="object"||a(re).forEach(function(ve){X[ve]=re[ve]}),X}typeof Promise>"u"||o.Promise||(o.Promise=Promise);var c=Object.getPrototypeOf,u={}.hasOwnProperty;function d(X,re){return u.call(X,re)}function h(X,re){typeof re=="function"&&(re=re(c(X))),(typeof Reflect>"u"?a:Reflect.ownKeys)(re).forEach(function(ve){m(X,ve,re[ve])})}var p=Object.defineProperty;function m(X,re,ve,$e){p(X,re,l(ve&&d(ve,"get")&&typeof ve.get=="function"?{get:ve.get,set:ve.set,configurable:!0}:{value:ve,configurable:!0,writable:!0},$e))}function v(X){return{from:function(re){return X.prototype=Object.create(re.prototype),m(X.prototype,"constructor",X),{extend:h.bind(null,X.prototype)}}}}var y=Object.getOwnPropertyDescriptor,S=[].slice;function b(X,re,ve){return S.call(X,re,ve)}function C(X,re){return re(X)}function _(X){if(!X)throw new Error("Assertion Failed")}function T(X){o.setImmediate?setImmediate(X):setTimeout(X,0)}function x(X,re){if(typeof re=="string"&&d(X,re))return X[re];if(!re)return X;if(typeof re!="string"){for(var ve=[],$e=0,He=re.length;$e<He;++$e){var qe=x(X,re[$e]);ve.push(qe)}return ve}var it=re.indexOf(".");if(it!==-1){var st=X[re.substr(0,it)];return st==null?void 0:x(st,re.substr(it+1))}}function E(X,re,ve){if(X&&re!==void 0&&!("isFrozen"in Object&&Object.isFrozen(X)))if(typeof re!="string"&&"length"in re){_(typeof ve!="string"&&"length"in ve);for(var $e=0,He=re.length;$e<He;++$e)E(X,re[$e],ve[$e])}else{var qe,it,st=re.indexOf(".");st!==-1?(qe=re.substr(0,st),(it=re.substr(st+1))===""?ve===void 0?s(X)&&!isNaN(parseInt(qe))?X.splice(qe,1):delete X[qe]:X[qe]=ve:E(st=!(st=X[qe])||!d(X,qe)?X[qe]={}:st,it,ve)):ve===void 0?s(X)&&!isNaN(parseInt(re))?X.splice(re,1):delete X[re]:X[re]=ve}}function k(X){var re,ve={};for(re in X)d(X,re)&&(ve[re]=X[re]);return ve}var M=[].concat;function P(X){return M.apply([],X)}var tr="BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(P([8,16,32,64].map(function(X){return["Int","Uint","Float"].map(function(re){return re+X+"Array"})}))).filter(function(X){return o[X]}),D=new Set(tr.map(function(X){return o[X]})),R=null;function A(X){return R=new WeakMap,X=function re(ve){if(!ve||typeof ve!="object")return ve;var $e=R.get(ve);if($e)return $e;if(s(ve)){$e=[],R.set(ve,$e);for(var He=0,qe=ve.length;He<qe;++He)$e.push(re(ve[He]))}else if(D.has(ve.constructor))$e=ve;else{var it,st=c(ve);for(it in $e=st===Object.prototype?{}:Object.create(st),R.set(ve,$e),ve)d(ve,it)&&($e[it]=re(ve[it]))}return $e}(X),R=null,X}var H={}.toString;function F(X){return H.call(X).slice(8,-1)}var z=typeof Symbol<"u"?Symbol.iterator:"@@iterator",W=typeof z=="symbol"?function(X){var re;return X!=null&&(re=X[z])&&re.apply(X)}:function(){return null};function q(X,re){return re=X.indexOf(re),0<=re&&X.splice(re,1),0<=re}var Z={};function N(X){var re,ve,$e,He;if(arguments.length===1){if(s(X))return X.slice();if(this===Z&&typeof X=="string")return[X];if(He=W(X)){for(ve=[];!($e=He.next()).done;)ve.push($e.value);return ve}if(X==null)return[X];if(typeof(re=X.length)!="number")return[X];for(ve=new Array(re);re--;)ve[re]=X[re];return ve}for(re=arguments.length,ve=new Array(re);re--;)ve[re]=arguments[re];return ve}var B=typeof Symbol<"u"?function(X){return X[Symbol.toStringTag]==="AsyncFunction"}:function(){return!1},We=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],Qs=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(We),V={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function Y(X,re){this.name=X,this.message=re}function ie(X,re){return X+". Errors: "+Object.keys(re).map(function(ve){return re[ve].toString()}).filter(function(ve,$e,He){return He.indexOf(ve)===$e}).join(`
|
||
`)}function ce(X,re,ve,$e){this.failures=re,this.failedKeys=$e,this.successCount=ve,this.message=ie(X,re)}function fe(X,re){this.name="BulkError",this.failures=Object.keys(re).map(function(ve){return re[ve]}),this.failuresByPos=re,this.message=ie(X,this.failures)}v(Y).from(Error).extend({toString:function(){return this.name+": "+this.message}}),v(ce).from(Y),v(fe).from(Y);var ee=Qs.reduce(function(X,re){return X[re]=re+"Error",X},{}),ne=Y,ue=Qs.reduce(function(X,re){var ve=re+"Error";function $e(He,qe){this.name=ve,He?typeof He=="string"?(this.message="".concat(He).concat(qe?`
|
||
`+qe:""),this.inner=qe||null):typeof He=="object"&&(this.message="".concat(He.name," ").concat(He.message),this.inner=He):(this.message=V[re]||ve,this.inner=null)}return v($e).from(ne),X[re]=$e,X},{});ue.Syntax=SyntaxError,ue.Type=TypeError,ue.Range=RangeError;var ye=We.reduce(function(X,re){return X[re+"Error"]=ue[re],X},{}),me=Qs.reduce(function(X,re){return["Syntax","Type","Range"].indexOf(re)===-1&&(X[re+"Error"]=ue[re]),X},{});function pe(){}function he(X){return X}function _e(X,re){return X==null||X===he?re:function(ve){return re(X(ve))}}function le(X,re){return function(){X.apply(this,arguments),re.apply(this,arguments)}}function xe(X,re){return X===pe?re:function(){var ve=X.apply(this,arguments);ve!==void 0&&(arguments[0]=ve);var $e=this.onsuccess,He=this.onerror;this.onsuccess=null,this.onerror=null;var qe=re.apply(this,arguments);return $e&&(this.onsuccess=this.onsuccess?le($e,this.onsuccess):$e),He&&(this.onerror=this.onerror?le(He,this.onerror):He),qe!==void 0?qe:ve}}function we(X,re){return X===pe?re:function(){X.apply(this,arguments);var ve=this.onsuccess,$e=this.onerror;this.onsuccess=this.onerror=null,re.apply(this,arguments),ve&&(this.onsuccess=this.onsuccess?le(ve,this.onsuccess):ve),$e&&(this.onerror=this.onerror?le($e,this.onerror):$e)}}function De(X,re){return X===pe?re:function(ve){var $e=X.apply(this,arguments);l(ve,$e);var He=this.onsuccess,qe=this.onerror;return this.onsuccess=null,this.onerror=null,ve=re.apply(this,arguments),He&&(this.onsuccess=this.onsuccess?le(He,this.onsuccess):He),qe&&(this.onerror=this.onerror?le(qe,this.onerror):qe),$e===void 0?ve===void 0?void 0:ve:l($e,ve)}}function Fe(X,re){return X===pe?re:function(){return re.apply(this,arguments)!==!1&&X.apply(this,arguments)}}function Ce(X,re){return X===pe?re:function(){var ve=X.apply(this,arguments);if(ve&&typeof ve.then=="function"){for(var $e=this,He=arguments.length,qe=new Array(He);He--;)qe[He]=arguments[He];return ve.then(function(){return re.apply($e,qe)})}return re.apply(this,arguments)}}me.ModifyError=ce,me.DexieError=Y,me.BulkError=fe;var Te=typeof location<"u"&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function ke(X){Te=X}var Pe={},Ne=100,tr=typeof Promise>"u"?[]:function(){var X=Promise.resolve();if(typeof crypto>"u"||!crypto.subtle)return[X,c(X),X];var re=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[re,c(re),X]}(),We=tr[0],Qs=tr[1],tr=tr[2],Qs=Qs&&Qs.then,Q=We&&We.constructor,K=!!tr,J=function(X,re){Ye.push([X,re]),Oe&&(queueMicrotask(an),Oe=!1)},be=!0,Oe=!0,Se=[],Ke=[],tt=he,se={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:pe,pgp:!1,env:{},finalize:pe},ze=se,Ye=[],Ue=0,Je=[];function Ze(X){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");this._listeners=[],this._lib=!1;var re=this._PSD=ze;if(typeof X!="function"){if(X!==Pe)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(this._state===!1&&St(this,this._value))}this._state=null,this._value=null,++re.ref,function ve($e,He){try{He(function(qe){if($e._state===null){if(qe===$e)throw new TypeError("A promise cannot be resolved with itself.");var it=$e._lib&&Vt();qe&&typeof qe.then=="function"?ve($e,function(st,vt){qe instanceof Ze?qe._then(st,vt):qe.then(st,vt)}):($e._state=!0,$e._value=qe,Ot($e)),it&&Kt()}},St.bind(null,$e))}catch(qe){St($e,qe)}}(this,X)}var rt={get:function(){var X=ze,re=Zt;function ve($e,He){var qe=this,it=!X.global&&(X!==ze||re!==Zt),st=it&&!Gt(),vt=new Ze(function(Ct,kt){Bt(qe,new qt(Ht($e,X,it,st),Ht(He,X,it,st),Ct,kt,X))});return this._consoleTask&&(vt._consoleTask=this._consoleTask),vt}return ve.prototype=Pe,ve},set:function(X){m(this,"then",X&&X.prototype===Pe?rt:{get:function(){return X},set:rt.set})}};function qt(X,re,ve,$e,He){this.onFulfilled=typeof X=="function"?X:null,this.onRejected=typeof re=="function"?re:null,this.resolve=ve,this.reject=$e,this.psd=He}function St(X,re){var ve,$e;Ke.push(re),X._state===null&&(ve=X._lib&&Vt(),re=tt(re),X._state=!1,X._value=re,$e=X,Se.some(function(He){return He._value===$e._value})||Se.push($e),Ot(X),ve&&Kt())}function Ot(X){var re=X._listeners;X._listeners=[];for(var ve=0,$e=re.length;ve<$e;++ve)Bt(X,re[ve]);var He=X._PSD;--He.ref||He.finalize(),Ue===0&&(++Ue,J(function(){--Ue==0&&Qt()},[]))}function Bt(X,re){if(X._state!==null){var ve=X._state?re.onFulfilled:re.onRejected;if(ve===null)return(X._state?re.resolve:re.reject)(X._value);++re.psd.ref,++Ue,J(Dt,[ve,X,re])}else X._listeners.push(re)}function Dt(X,re,ve){try{var $e,He=re._value;!re._state&&Ke.length&&(Ke=[]),$e=Te&&re._consoleTask?re._consoleTask.run(function(){return X(He)}):X(He),re._state||Ke.indexOf(He)!==-1||function(qe){for(var it=Se.length;it;)if(Se[--it]._value===qe._value)return Se.splice(it,1)}(re),ve.resolve($e)}catch(qe){ve.reject(qe)}finally{--Ue==0&&Qt(),--ve.psd.ref||ve.psd.finalize()}}function an(){nn(se,function(){Vt()&&Kt()})}function Vt(){var X=be;return Oe=be=!1,X}function Kt(){var X,re,ve;do for(;0<Ye.length;)for(X=Ye,Ye=[],ve=X.length,re=0;re<ve;++re){var $e=X[re];$e[0].apply(null,$e[1])}while(0<Ye.length);Oe=be=!0}function Qt(){var X=Se;Se=[],X.forEach(function($e){$e._PSD.onunhandled.call(null,$e._value,$e)});for(var re=Je.slice(0),ve=re.length;ve;)re[--ve]()}function et(X){return new Ze(Pe,!1,X)}function ot(X,re){var ve=ze;return function(){var $e=Vt(),He=ze;try{return _t(ve,!0),X.apply(this,arguments)}catch(qe){re&&re(qe)}finally{_t(He,!1),$e&&Kt()}}}h(Ze.prototype,{then:rt,_then:function(X,re){Bt(this,new qt(null,null,X,re,ze))},catch:function(X){if(arguments.length===1)return this.then(null,X);var re=X,ve=arguments[1];return typeof re=="function"?this.then(null,function($e){return($e instanceof re?ve:et)($e)}):this.then(null,function($e){return($e&&$e.name===re?ve:et)($e)})},finally:function(X){return this.then(function(re){return Ze.resolve(X()).then(function(){return re})},function(re){return Ze.resolve(X()).then(function(){return et(re)})})},timeout:function(X,re){var ve=this;return X<1/0?new Ze(function($e,He){var qe=setTimeout(function(){return He(new ue.Timeout(re))},X);ve.then($e,He).finally(clearTimeout.bind(null,qe))}):this}}),typeof Symbol<"u"&&Symbol.toStringTag&&m(Ze.prototype,Symbol.toStringTag,"Dexie.Promise"),se.env=jt(),h(Ze,{all:function(){var X=N.apply(null,arguments).map(Ft);return new Ze(function(re,ve){X.length===0&&re([]);var $e=X.length;X.forEach(function(He,qe){return Ze.resolve(He).then(function(it){X[qe]=it,--$e||re(X)},ve)})})},resolve:function(X){return X instanceof Ze?X:X&&typeof X.then=="function"?new Ze(function(re,ve){X.then(re,ve)}):new Ze(Pe,!0,X)},reject:et,race:function(){var X=N.apply(null,arguments).map(Ft);return new Ze(function(re,ve){X.map(function($e){return Ze.resolve($e).then(re,ve)})})},PSD:{get:function(){return ze},set:function(X){return ze=X}},totalEchoes:{get:function(){return Zt}},newPSD:At,usePSD:nn,scheduler:{get:function(){return J},set:function(X){J=X}},rejectionMapper:{get:function(){return tt},set:function(X){tt=X}},follow:function(X,re){return new Ze(function(ve,$e){return At(function(He,qe){var it=ze;it.unhandleds=[],it.onunhandled=qe,it.finalize=le(function(){var st,vt=this;st=function(){vt.unhandleds.length===0?He():qe(vt.unhandleds[0])},Je.push(function Ct(){st(),Je.splice(Je.indexOf(Ct),1)}),++Ue,J(function(){--Ue==0&&Qt()},[])},it.finalize),X()},re,ve,$e)})}}),Q&&(Q.allSettled&&m(Ze,"allSettled",function(){var X=N.apply(null,arguments).map(Ft);return new Ze(function(re){X.length===0&&re([]);var ve=X.length,$e=new Array(ve);X.forEach(function(He,qe){return Ze.resolve(He).then(function(it){return $e[qe]={status:"fulfilled",value:it}},function(it){return $e[qe]={status:"rejected",reason:it}}).then(function(){return--ve||re($e)})})})}),Q.any&&typeof AggregateError<"u"&&m(Ze,"any",function(){var X=N.apply(null,arguments).map(Ft);return new Ze(function(re,ve){X.length===0&&ve(new AggregateError([]));var $e=X.length,He=new Array($e);X.forEach(function(qe,it){return Ze.resolve(qe).then(function(st){return re(st)},function(st){He[it]=st,--$e||ve(new AggregateError(He))})})})}),Q.withResolvers&&(Ze.withResolvers=Q.withResolvers));var Qe={awaits:0,echoes:0,id:0},ct=0,Nt=[],Lt=0,Zt=0,Wt=0;function At(X,re,ve,$e){var He=ze,qe=Object.create(He);return qe.parent=He,qe.ref=0,qe.global=!1,qe.id=++Wt,se.env,qe.env=K?{Promise:Ze,PromiseProp:{value:Ze,configurable:!0,writable:!0},all:Ze.all,race:Ze.race,allSettled:Ze.allSettled,any:Ze.any,resolve:Ze.resolve,reject:Ze.reject}:{},re&&l(qe,re),++He.ref,qe.finalize=function(){--this.parent.ref||this.parent.finalize()},$e=nn(qe,X,ve,$e),qe.ref===0&&qe.finalize(),$e}function $t(){return Qe.id||(Qe.id=++ct),++Qe.awaits,Qe.echoes+=Ne,Qe.id}function Gt(){return!!Qe.awaits&&(--Qe.awaits==0&&(Qe.id=0),Qe.echoes=Qe.awaits*Ne,!0)}function Ft(X){return Qe.echoes&&X&&X.constructor===Q?($t(),X.then(function(re){return Gt(),re},function(re){return Gt(),gt(re)})):X}function cn(){var X=Nt[Nt.length-1];Nt.pop(),_t(X,!1)}function _t(X,re){var ve,$e=ze;(re?!Qe.echoes||Lt++&&X===ze:!Lt||--Lt&&X===ze)||queueMicrotask(re?(function(He){++Zt,Qe.echoes&&--Qe.echoes!=0||(Qe.echoes=Qe.awaits=Qe.id=0),Nt.push(ze),_t(He,!0)}).bind(null,X):cn),X!==ze&&(ze=X,$e===se&&(se.env=jt()),K&&(ve=se.env.Promise,re=X.env,($e.global||X.global)&&(Object.defineProperty(o,"Promise",re.PromiseProp),ve.all=re.all,ve.race=re.race,ve.resolve=re.resolve,ve.reject=re.reject,re.allSettled&&(ve.allSettled=re.allSettled),re.any&&(ve.any=re.any))))}function jt(){var X=o.Promise;return K?{Promise:X,PromiseProp:Object.getOwnPropertyDescriptor(o,"Promise"),all:X.all,race:X.race,allSettled:X.allSettled,any:X.any,resolve:X.resolve,reject:X.reject}:{}}function nn(X,re,ve,$e,He){var qe=ze;try{return _t(X,!0),re(ve,$e,He)}finally{_t(qe,!1)}}function Ht(X,re,ve,$e){return typeof X!="function"?X:function(){var He=ze;ve&&$t(),_t(re,!0);try{return X.apply(this,arguments)}finally{_t(He,!1),$e&&queueMicrotask(Gt)}}}function Tt(X){Promise===Q&&Qe.echoes===0?Lt===0?X():enqueueNativeMicroTask(X):setTimeout(X,0)}(""+Qs).indexOf("[native code]")===-1&&($t=Gt=pe);var gt=Ze.reject,Ve="",Yt="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",mt="String expected.",Mt=[],zt="__dbnames",Dn="readonly",Xn="readwrite";function O(X,re){return X?re?function(){return X.apply(this,arguments)&&re.apply(this,arguments)}:X:re}var j={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function oe(X){return typeof X!="string"||/\./.test(X)?function(re){return re}:function(re){return re[X]===void 0&&X in re&&delete(re=A(re))[X],re}}function Ae(){throw ue.Type()}function Ge(X,re){try{var ve=ft(X),$e=ft(re);if(ve!==$e)return ve==="Array"?1:$e==="Array"?-1:ve==="binary"?1:$e==="binary"?-1:ve==="string"?1:$e==="string"?-1:ve==="Date"?1:$e!=="Date"?NaN:-1;switch(ve){case"number":case"Date":case"string":return re<X?1:X<re?-1:0;case"binary":return function(He,qe){for(var it=He.length,st=qe.length,vt=it<st?it:st,Ct=0;Ct<vt;++Ct)if(He[Ct]!==qe[Ct])return He[Ct]<qe[Ct]?-1:1;return it===st?0:it<st?-1:1}(Jt(X),Jt(re));case"Array":return function(He,qe){for(var it=He.length,st=qe.length,vt=it<st?it:st,Ct=0;Ct<vt;++Ct){var kt=Ge(He[Ct],qe[Ct]);if(kt!==0)return kt}return it===st?0:it<st?-1:1}(X,re)}}catch{}return NaN}function ft(X){var re=typeof X;return re!="object"?re:ArrayBuffer.isView(X)?"binary":(X=F(X),X==="ArrayBuffer"?"binary":X)}function Jt(X){return X instanceof Uint8Array?X:ArrayBuffer.isView(X)?new Uint8Array(X.buffer,X.byteOffset,X.byteLength):new Uint8Array(X)}var on=(Qn.prototype._trans=function(X,re,ve){var $e=this._tx||ze.trans,He=this.name,qe=Te&&typeof console<"u"&&console.createTask&&console.createTask("Dexie: ".concat(X==="readonly"?"read":"write"," ").concat(this.name));function it(Ct,kt,dt){if(!dt.schema[He])throw new ue.NotFound("Table "+He+" not part of transaction");return re(dt.idbtrans,dt)}var st=Vt();try{var vt=$e&&$e.db._novip===this.db._novip?$e===ze.trans?$e._promise(X,it,ve):At(function(){return $e._promise(X,it,ve)},{trans:$e,transless:ze.transless||ze}):function Ct(kt,dt,Rt,bt){if(kt.idbdb&&(kt._state.openComplete||ze.letThrough||kt._vip)){var wt=kt._createTransaction(dt,Rt,kt._dbSchema);try{wt.create(),kt._state.PR1398_maxLoop=3}catch(It){return It.name===ee.InvalidState&&kt.isOpen()&&0<--kt._state.PR1398_maxLoop?(console.warn("Dexie: Need to reopen db"),kt.close({disableAutoOpen:!1}),kt.open().then(function(){return Ct(kt,dt,Rt,bt)})):gt(It)}return wt._promise(dt,function(It,xt){return At(function(){return ze.trans=wt,bt(It,xt,wt)})}).then(function(It){if(dt==="readwrite")try{wt.idbtrans.commit()}catch{}return dt==="readonly"?It:wt._completion.then(function(){return It})})}if(kt._state.openComplete)return gt(new ue.DatabaseClosed(kt._state.dbOpenError));if(!kt._state.isBeingOpened){if(!kt._state.autoOpen)return gt(new ue.DatabaseClosed);kt.open().catch(pe)}return kt._state.dbReadyPromise.then(function(){return Ct(kt,dt,Rt,bt)})}(this.db,X,[this.name],it);return qe&&(vt._consoleTask=qe,vt=vt.catch(function(Ct){return console.trace(Ct),gt(Ct)})),vt}finally{st&&Kt()}},Qn.prototype.get=function(X,re){var ve=this;return X&&X.constructor===Object?this.where(X).first(re):X==null?gt(new ue.Type("Invalid argument to Table.get()")):this._trans("readonly",function($e){return ve.core.get({trans:$e,key:X}).then(function(He){return ve.hook.reading.fire(He)})}).then(re)},Qn.prototype.where=function(X){if(typeof X=="string")return new this.db.WhereClause(this,X);if(s(X))return new this.db.WhereClause(this,"[".concat(X.join("+"),"]"));var re=a(X);if(re.length===1)return this.where(re[0]).equals(X[re[0]]);var ve=this.schema.indexes.concat(this.schema.primKey).filter(function(st){if(st.compound&&re.every(function(Ct){return 0<=st.keyPath.indexOf(Ct)})){for(var vt=0;vt<re.length;++vt)if(re.indexOf(st.keyPath[vt])===-1)return!1;return!0}return!1}).sort(function(st,vt){return st.keyPath.length-vt.keyPath.length})[0];if(ve&&this.db._maxKey!==Ve){var qe=ve.keyPath.slice(0,re.length);return this.where(qe).equals(qe.map(function(vt){return X[vt]}))}!ve&&Te&&console.warn("The query ".concat(JSON.stringify(X)," on ").concat(this.name," would benefit from a ")+"compound index [".concat(re.join("+"),"]"));var $e=this.schema.idxByName;function He(st,vt){return Ge(st,vt)===0}var it=re.reduce(function(dt,vt){var Ct=dt[0],kt=dt[1],dt=$e[vt],Rt=X[vt];return[Ct||dt,Ct||!dt?O(kt,dt&&dt.multi?function(bt){return bt=x(bt,vt),s(bt)&&bt.some(function(wt){return He(Rt,wt)})}:function(bt){return He(Rt,x(bt,vt))}):kt]},[null,null]),qe=it[0],it=it[1];return qe?this.where(qe.name).equals(X[qe.keyPath]).filter(it):ve?this.filter(it):this.where(re).equals("")},Qn.prototype.filter=function(X){return this.toCollection().and(X)},Qn.prototype.count=function(X){return this.toCollection().count(X)},Qn.prototype.offset=function(X){return this.toCollection().offset(X)},Qn.prototype.limit=function(X){return this.toCollection().limit(X)},Qn.prototype.each=function(X){return this.toCollection().each(X)},Qn.prototype.toArray=function(X){return this.toCollection().toArray(X)},Qn.prototype.toCollection=function(){return new this.db.Collection(new this.db.WhereClause(this))},Qn.prototype.orderBy=function(X){return new this.db.Collection(new this.db.WhereClause(this,s(X)?"[".concat(X.join("+"),"]"):X))},Qn.prototype.reverse=function(){return this.toCollection().reverse()},Qn.prototype.mapToClass=function(X){var re,ve=this.db,$e=this.name;function He(){return re!==null&&re.apply(this,arguments)||this}(this.schema.mappedClass=X).prototype instanceof Ae&&(function(vt,Ct){if(typeof Ct!="function"&&Ct!==null)throw new TypeError("Class extends value "+String(Ct)+" is not a constructor or null");function kt(){this.constructor=vt}n(vt,Ct),vt.prototype=Ct===null?Object.create(Ct):(kt.prototype=Ct.prototype,new kt)}(He,re=X),Object.defineProperty(He.prototype,"db",{get:function(){return ve},enumerable:!1,configurable:!0}),He.prototype.table=function(){return $e},X=He);for(var qe=new Set,it=X.prototype;it;it=c(it))Object.getOwnPropertyNames(it).forEach(function(vt){return qe.add(vt)});function st(vt){if(!vt)return vt;var Ct,kt=Object.create(X.prototype);for(Ct in vt)if(!qe.has(Ct))try{kt[Ct]=vt[Ct]}catch{}return kt}return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=st,this.hook("reading",st),X},Qn.prototype.defineClass=function(){return this.mapToClass(function(X){l(this,X)})},Qn.prototype.add=function(X,re){var ve=this,$e=this.schema.primKey,He=$e.auto,qe=$e.keyPath,it=X;return qe&&He&&(it=oe(qe)(X)),this._trans("readwrite",function(st){return ve.core.mutate({trans:st,type:"add",keys:re!=null?[re]:null,values:[it]})}).then(function(st){return st.numFailures?Ze.reject(st.failures[0]):st.lastResult}).then(function(st){if(qe)try{E(X,qe,st)}catch{}return st})},Qn.prototype.update=function(X,re){return typeof X!="object"||s(X)?this.where(":id").equals(X).modify(re):(X=x(X,this.schema.primKey.keyPath),X===void 0?gt(new ue.InvalidArgument("Given object does not contain its primary key")):this.where(":id").equals(X).modify(re))},Qn.prototype.put=function(X,re){var ve=this,$e=this.schema.primKey,He=$e.auto,qe=$e.keyPath,it=X;return qe&&He&&(it=oe(qe)(X)),this._trans("readwrite",function(st){return ve.core.mutate({trans:st,type:"put",values:[it],keys:re!=null?[re]:null})}).then(function(st){return st.numFailures?Ze.reject(st.failures[0]):st.lastResult}).then(function(st){if(qe)try{E(X,qe,st)}catch{}return st})},Qn.prototype.delete=function(X){var re=this;return this._trans("readwrite",function(ve){return re.core.mutate({trans:ve,type:"delete",keys:[X]})}).then(function(ve){return ve.numFailures?Ze.reject(ve.failures[0]):void 0})},Qn.prototype.clear=function(){var X=this;return this._trans("readwrite",function(re){return X.core.mutate({trans:re,type:"deleteRange",range:j})}).then(function(re){return re.numFailures?Ze.reject(re.failures[0]):void 0})},Qn.prototype.bulkGet=function(X){var re=this;return this._trans("readonly",function(ve){return re.core.getMany({keys:X,trans:ve}).then(function($e){return $e.map(function(He){return re.hook.reading.fire(He)})})})},Qn.prototype.bulkAdd=function(X,re,ve){var $e=this,He=Array.isArray(re)?re:void 0,qe=(ve=ve||(He?void 0:re))?ve.allKeys:void 0;return this._trans("readwrite",function(it){var Ct=$e.schema.primKey,st=Ct.auto,Ct=Ct.keyPath;if(Ct&&He)throw new ue.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(He&&He.length!==X.length)throw new ue.InvalidArgument("Arguments objects and keys must have the same length");var vt=X.length,Ct=Ct&&st?X.map(oe(Ct)):X;return $e.core.mutate({trans:it,type:"add",keys:He,values:Ct,wantResults:qe}).then(function(wt){var dt=wt.numFailures,Rt=wt.results,bt=wt.lastResult,wt=wt.failures;if(dt===0)return qe?Rt:bt;throw new fe("".concat($e.name,".bulkAdd(): ").concat(dt," of ").concat(vt," operations failed"),wt)})})},Qn.prototype.bulkPut=function(X,re,ve){var $e=this,He=Array.isArray(re)?re:void 0,qe=(ve=ve||(He?void 0:re))?ve.allKeys:void 0;return this._trans("readwrite",function(it){var Ct=$e.schema.primKey,st=Ct.auto,Ct=Ct.keyPath;if(Ct&&He)throw new ue.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(He&&He.length!==X.length)throw new ue.InvalidArgument("Arguments objects and keys must have the same length");var vt=X.length,Ct=Ct&&st?X.map(oe(Ct)):X;return $e.core.mutate({trans:it,type:"put",keys:He,values:Ct,wantResults:qe}).then(function(wt){var dt=wt.numFailures,Rt=wt.results,bt=wt.lastResult,wt=wt.failures;if(dt===0)return qe?Rt:bt;throw new fe("".concat($e.name,".bulkPut(): ").concat(dt," of ").concat(vt," operations failed"),wt)})})},Qn.prototype.bulkUpdate=function(X){var re=this,ve=this.core,$e=X.map(function(it){return it.key}),He=X.map(function(it){return it.changes}),qe=[];return this._trans("readwrite",function(it){return ve.getMany({trans:it,keys:$e,cache:"clone"}).then(function(st){var vt=[],Ct=[];X.forEach(function(dt,Rt){var bt=dt.key,wt=dt.changes,It=st[Rt];if(It){for(var xt=0,Ut=Object.keys(wt);xt<Ut.length;xt++){var Xt=Ut[xt],en=wt[Xt];if(Xt===re.schema.primKey.keyPath){if(Ge(en,bt)!==0)throw new ue.Constraint("Cannot update primary key in bulkUpdate()")}else E(It,Xt,en)}qe.push(Rt),vt.push(bt),Ct.push(It)}});var kt=vt.length;return ve.mutate({trans:it,type:"put",keys:vt,values:Ct,updates:{keys:$e,changeSpecs:He}}).then(function(dt){var Rt=dt.numFailures,bt=dt.failures;if(Rt===0)return kt;for(var wt=0,It=Object.keys(bt);wt<It.length;wt++){var xt,Ut=It[wt],Xt=qe[Number(Ut)];Xt!=null&&(xt=bt[Ut],delete bt[Ut],bt[Xt]=xt)}throw new fe("".concat(re.name,".bulkUpdate(): ").concat(Rt," of ").concat(kt," operations failed"),bt)})})})},Qn.prototype.bulkDelete=function(X){var re=this,ve=X.length;return this._trans("readwrite",function($e){return re.core.mutate({trans:$e,type:"delete",keys:X})}).then(function(it){var He=it.numFailures,qe=it.lastResult,it=it.failures;if(He===0)return qe;throw new fe("".concat(re.name,".bulkDelete(): ").concat(He," of ").concat(ve," operations failed"),it)})},Qn);function Qn(){}function ni(X){function re(it,st){if(st){for(var vt=arguments.length,Ct=new Array(vt-1);--vt;)Ct[vt-1]=arguments[vt];return ve[it].subscribe.apply(null,Ct),X}if(typeof it=="string")return ve[it]}var ve={};re.addEventType=qe;for(var $e=1,He=arguments.length;$e<He;++$e)qe(arguments[$e]);return re;function qe(it,st,vt){if(typeof it!="object"){var Ct;st=st||Fe;var kt={subscribers:[],fire:vt=vt||pe,subscribe:function(dt){kt.subscribers.indexOf(dt)===-1&&(kt.subscribers.push(dt),kt.fire=st(kt.fire,dt))},unsubscribe:function(dt){kt.subscribers=kt.subscribers.filter(function(Rt){return Rt!==dt}),kt.fire=kt.subscribers.reduce(st,vt)}};return ve[it]=re[it]=kt}a(Ct=it).forEach(function(dt){var Rt=Ct[dt];if(s(Rt))qe(dt,Ct[dt][0],Ct[dt][1]);else{if(Rt!=="asap")throw new ue.InvalidArgument("Invalid event config");var bt=qe(dt,he,function(){for(var wt=arguments.length,It=new Array(wt);wt--;)It[wt]=arguments[wt];bt.subscribers.forEach(function(xt){T(function(){xt.apply(null,It)})})})}})}}function zr(X,re){return v(re).from({prototype:X}),re}function Yr(X,re){return!(X.filter||X.algorithm||X.or)&&(re?X.justLimit:!X.replayFilter)}function Rr(X,re){X.filter=O(X.filter,re)}function wn(X,re,ve){var $e=X.replayFilter;X.replayFilter=$e?function(){return O($e(),re())}:re,X.justLimit=ve&&!$e}function Pn(X,re){if(X.isPrimKey)return re.primaryKey;var ve=re.getIndexByKeyPath(X.index);if(!ve)throw new ue.Schema("KeyPath "+X.index+" on object store "+re.name+" is not indexed");return ve}function Ar(X,re,ve){var $e=Pn(X,re.schema);return re.openCursor({trans:ve,values:!X.keysOnly,reverse:X.dir==="prev",unique:!!X.unique,query:{index:$e,range:X.range}})}function bn(X,re,ve,$e){var He=X.replayFilter?O(X.filter,X.replayFilter()):X.filter;if(X.or){var qe={},it=function(st,vt,Ct){var kt,dt;He&&!He(vt,Ct,function(Rt){return vt.stop(Rt)},function(Rt){return vt.fail(Rt)})||((dt=""+(kt=vt.primaryKey))=="[object ArrayBuffer]"&&(dt=""+new Uint8Array(kt)),d(qe,dt)||(qe[dt]=!0,re(st,vt,Ct)))};return Promise.all([X.or._iterate(it,ve),Cn(Ar(X,$e,ve),X.algorithm,it,!X.keysOnly&&X.valueMapper)])}return Cn(Ar(X,$e,ve),O(X.algorithm,He),re,!X.keysOnly&&X.valueMapper)}function Cn(X,re,ve,$e){var He=ot($e?function(qe,it,st){return ve($e(qe),it,st)}:ve);return X.then(function(qe){if(qe)return qe.start(function(){var it=function(){return qe.continue()};re&&!re(qe,function(st){return it=st},function(st){qe.stop(st),it=pe},function(st){qe.fail(st),it=pe})||He(qe.value,qe,function(st){return it=st}),it()})})}var tr=Symbol(),Ir=(li.prototype.execute=function(X){if(this.add!==void 0){var re=this.add;if(s(re))return i(i([],s(X)?X:[],!0),re).sort();if(typeof re=="number")return(Number(X)||0)+re;if(typeof re=="bigint")try{return BigInt(X)+re}catch{return BigInt(0)+re}throw new TypeError("Invalid term ".concat(re))}if(this.remove!==void 0){var ve=this.remove;if(s(ve))return s(X)?X.filter(function($e){return!ve.includes($e)}).sort():[];if(typeof ve=="number")return Number(X)-ve;if(typeof ve=="bigint")try{return BigInt(X)-ve}catch{return BigInt(0)-ve}throw new TypeError("Invalid subtrahend ".concat(ve))}return re=(re=this.replacePrefix)===null||re===void 0?void 0:re[0],re&&typeof X=="string"&&X.startsWith(re)?this.replacePrefix[1]+X.substring(re.length):X},li);function li(X){Object.assign(this,X)}var Wi=(mr.prototype._read=function(X,re){var ve=this._ctx;return ve.error?ve.table._trans(null,gt.bind(null,ve.error)):ve.table._trans("readonly",X).then(re)},mr.prototype._write=function(X){var re=this._ctx;return re.error?re.table._trans(null,gt.bind(null,re.error)):re.table._trans("readwrite",X,"locked")},mr.prototype._addAlgorithm=function(X){var re=this._ctx;re.algorithm=O(re.algorithm,X)},mr.prototype._iterate=function(X,re){return bn(this._ctx,X,re,this._ctx.table.core)},mr.prototype.clone=function(X){var re=Object.create(this.constructor.prototype),ve=Object.create(this._ctx);return X&&l(ve,X),re._ctx=ve,re},mr.prototype.raw=function(){return this._ctx.valueMapper=null,this},mr.prototype.each=function(X){var re=this._ctx;return this._read(function(ve){return bn(re,X,ve,re.table.core)})},mr.prototype.count=function(X){var re=this;return this._read(function(ve){var $e=re._ctx,He=$e.table.core;if(Yr($e,!0))return He.count({trans:ve,query:{index:Pn($e,He.schema),range:$e.range}}).then(function(it){return Math.min(it,$e.limit)});var qe=0;return bn($e,function(){return++qe,!1},ve,He).then(function(){return qe})}).then(X)},mr.prototype.sortBy=function(X,re){var ve=X.split(".").reverse(),$e=ve[0],He=ve.length-1;function qe(vt,Ct){return Ct?qe(vt[ve[Ct]],Ct-1):vt[$e]}var it=this._ctx.dir==="next"?1:-1;function st(vt,Ct){return Ge(qe(vt,He),qe(Ct,He))*it}return this.toArray(function(vt){return vt.sort(st)}).then(re)},mr.prototype.toArray=function(X){var re=this;return this._read(function(ve){var $e=re._ctx;if($e.dir==="next"&&Yr($e,!0)&&0<$e.limit){var He=$e.valueMapper,qe=Pn($e,$e.table.core.schema);return $e.table.core.query({trans:ve,limit:$e.limit,values:!0,query:{index:qe,range:$e.range}}).then(function(st){return st=st.result,He?st.map(He):st})}var it=[];return bn($e,function(st){return it.push(st)},ve,$e.table.core).then(function(){return it})},X)},mr.prototype.offset=function(X){var re=this._ctx;return X<=0||(re.offset+=X,Yr(re)?wn(re,function(){var ve=X;return function($e,He){return ve===0||(ve===1?--ve:He(function(){$e.advance(ve),ve=0}),!1)}}):wn(re,function(){var ve=X;return function(){return--ve<0}})),this},mr.prototype.limit=function(X){return this._ctx.limit=Math.min(this._ctx.limit,X),wn(this._ctx,function(){var re=X;return function(ve,$e,He){return--re<=0&&$e(He),0<=re}},!0),this},mr.prototype.until=function(X,re){return Rr(this._ctx,function(ve,$e,He){return!X(ve.value)||($e(He),re)}),this},mr.prototype.first=function(X){return this.limit(1).toArray(function(re){return re[0]}).then(X)},mr.prototype.last=function(X){return this.reverse().first(X)},mr.prototype.filter=function(X){var re;return Rr(this._ctx,function(ve){return X(ve.value)}),(re=this._ctx).isMatch=O(re.isMatch,X),this},mr.prototype.and=function(X){return this.filter(X)},mr.prototype.or=function(X){return new this.db.WhereClause(this._ctx.table,X,this)},mr.prototype.reverse=function(){return this._ctx.dir=this._ctx.dir==="prev"?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this},mr.prototype.desc=function(){return this.reverse()},mr.prototype.eachKey=function(X){var re=this._ctx;return re.keysOnly=!re.isMatch,this.each(function(ve,$e){X($e.key,$e)})},mr.prototype.eachUniqueKey=function(X){return this._ctx.unique="unique",this.eachKey(X)},mr.prototype.eachPrimaryKey=function(X){var re=this._ctx;return re.keysOnly=!re.isMatch,this.each(function(ve,$e){X($e.primaryKey,$e)})},mr.prototype.keys=function(X){var re=this._ctx;re.keysOnly=!re.isMatch;var ve=[];return this.each(function($e,He){ve.push(He.key)}).then(function(){return ve}).then(X)},mr.prototype.primaryKeys=function(X){var re=this._ctx;if(re.dir==="next"&&Yr(re,!0)&&0<re.limit)return this._read(function($e){var He=Pn(re,re.table.core.schema);return re.table.core.query({trans:$e,values:!1,limit:re.limit,query:{index:He,range:re.range}})}).then(function($e){return $e.result}).then(X);re.keysOnly=!re.isMatch;var ve=[];return this.each(function($e,He){ve.push(He.primaryKey)}).then(function(){return ve}).then(X)},mr.prototype.uniqueKeys=function(X){return this._ctx.unique="unique",this.keys(X)},mr.prototype.firstKey=function(X){return this.limit(1).keys(function(re){return re[0]}).then(X)},mr.prototype.lastKey=function(X){return this.reverse().firstKey(X)},mr.prototype.distinct=function(){var X=this._ctx,X=X.index&&X.table.schema.idxByName[X.index];if(!X||!X.multi)return this;var re={};return Rr(this._ctx,function(He){var $e=He.primaryKey.toString(),He=d(re,$e);return re[$e]=!0,!He}),this},mr.prototype.modify=function(X){var re=this,ve=this._ctx;return this._write(function($e){var He,qe,it;it=typeof X=="function"?X:(He=a(X),qe=He.length,function(xt){for(var Ut=!1,Xt=0;Xt<qe;++Xt){var en=He[Xt],un=X[en],_n=x(xt,en);un instanceof Ir?(E(xt,en,un.execute(_n)),Ut=!0):_n!==un&&(E(xt,en,un),Ut=!0)}return Ut});var st=ve.table.core,dt=st.schema.primaryKey,vt=dt.outbound,Ct=dt.extractKey,kt=200,dt=re.db._options.modifyChunkSize;dt&&(kt=typeof dt=="object"?dt[st.name]||dt["*"]||200:dt);function Rt(xt,en){var Xt=en.failures,en=en.numFailures;wt+=xt-en;for(var un=0,_n=a(Xt);un<_n.length;un++){var An=_n[un];bt.push(Xt[An])}}var bt=[],wt=0,It=[];return re.clone().primaryKeys().then(function(xt){function Ut(en){var un=Math.min(kt,xt.length-en);return st.getMany({trans:$e,keys:xt.slice(en,en+un),cache:"immutable"}).then(function(_n){for(var An=[],yn=[],kn=vt?[]:null,jn=[],Ln=0;Ln<un;++Ln){var er=_n[Ln],Br={value:A(er),primKey:xt[en+Ln]};it.call(Br,Br.value,Br)!==!1&&(Br.value==null?jn.push(xt[en+Ln]):vt||Ge(Ct(er),Ct(Br.value))===0?(yn.push(Br.value),vt&&kn.push(xt[en+Ln])):(jn.push(xt[en+Ln]),An.push(Br.value)))}return Promise.resolve(0<An.length&&st.mutate({trans:$e,type:"add",values:An}).then(function(Ur){for(var Xr in Ur.failures)jn.splice(parseInt(Xr),1);Rt(An.length,Ur)})).then(function(){return(0<yn.length||Xt&&typeof X=="object")&&st.mutate({trans:$e,type:"put",keys:kn,values:yn,criteria:Xt,changeSpec:typeof X!="function"&&X,isAdditionalChunk:0<en}).then(function(Ur){return Rt(yn.length,Ur)})}).then(function(){return(0<jn.length||Xt&&X===Li)&&st.mutate({trans:$e,type:"delete",keys:jn,criteria:Xt,isAdditionalChunk:0<en}).then(function(Ur){return Rt(jn.length,Ur)})}).then(function(){return xt.length>en+un&&Ut(en+kt)})})}var Xt=Yr(ve)&&ve.limit===1/0&&(typeof X!="function"||X===Li)&&{index:ve.index,range:ve.range};return Ut(0).then(function(){if(0<bt.length)throw new ce("Error modifying one or more objects",bt,wt,It);return xt.length})})})},mr.prototype.delete=function(){var X=this._ctx,re=X.range;return Yr(X)&&(X.isPrimKey||re.type===3)?this._write(function(ve){var $e=X.table.core.schema.primaryKey,He=re;return X.table.core.count({trans:ve,query:{index:$e,range:He}}).then(function(qe){return X.table.core.mutate({trans:ve,type:"deleteRange",range:He}).then(function(it){var st=it.failures;if(it.lastResult,it.results,it=it.numFailures,it)throw new ce("Could not delete some values",Object.keys(st).map(function(vt){return st[vt]}),qe-it);return qe-it})})}):this.modify(Li)},mr);function mr(){}var Li=function(X,re){return re.value=null};function dr(X,re){return X<re?-1:X===re?0:1}function xn(X,re){return re<X?-1:X===re?0:1}function zn(X,re,ve){return X=X instanceof ra?new X.Collection(X):X,X._ctx.error=new(ve||TypeError)(re),X}function Gn(X){return new X.Collection(X,function(){return Ao("")}).limit(0)}function rr(X,re,ve,$e){var He,qe,it,st,vt,Ct,kt,dt=ve.length;if(!ve.every(function(wt){return typeof wt=="string"}))return zn(X,mt);function Rt(wt){He=wt==="next"?function(xt){return xt.toUpperCase()}:function(xt){return xt.toLowerCase()},qe=wt==="next"?function(xt){return xt.toLowerCase()}:function(xt){return xt.toUpperCase()},it=wt==="next"?dr:xn;var It=ve.map(function(xt){return{lower:qe(xt),upper:He(xt)}}).sort(function(xt,Ut){return it(xt.lower,Ut.lower)});st=It.map(function(xt){return xt.upper}),vt=It.map(function(xt){return xt.lower}),kt=(Ct=wt)==="next"?"":$e}Rt("next"),X=new X.Collection(X,function(){return jr(st[0],vt[dt-1]+$e)}),X._ondirectionchange=function(wt){Rt(wt)};var bt=0;return X._addAlgorithm(function(wt,It,xt){var Ut=wt.key;if(typeof Ut!="string")return!1;var Xt=qe(Ut);if(re(Xt,vt,bt))return!0;for(var en=null,un=bt;un<dt;++un){var _n=function(An,yn,kn,jn,Ln,er){for(var Br=Math.min(An.length,jn.length),Ur=-1,Xr=0;Xr<Br;++Xr){var us=yn[Xr];if(us!==jn[Xr])return Ln(An[Xr],kn[Xr])<0?An.substr(0,Xr)+kn[Xr]+kn.substr(Xr+1):Ln(An[Xr],jn[Xr])<0?An.substr(0,Xr)+jn[Xr]+kn.substr(Xr+1):0<=Ur?An.substr(0,Ur)+yn[Ur]+kn.substr(Ur+1):null;Ln(An[Xr],us)<0&&(Ur=Xr)}return Br<jn.length&&er==="next"?An+kn.substr(An.length):Br<An.length&&er==="prev"?An.substr(0,kn.length):Ur<0?null:An.substr(0,Ur)+jn[Ur]+kn.substr(Ur+1)}(Ut,Xt,st[un],vt[un],it,Ct);_n===null&&en===null?bt=un+1:(en===null||0<it(en,_n))&&(en=_n)}return It(en!==null?function(){wt.continue(en+kt)}:xt),!1}),X}function jr(X,re,ve,$e){return{type:2,lower:X,upper:re,lowerOpen:ve,upperOpen:$e}}function Ao(X){return{type:1,lower:X,upper:X}}var ra=(Object.defineProperty(Ei.prototype,"Collection",{get:function(){return this._ctx.table.db.Collection},enumerable:!1,configurable:!0}),Ei.prototype.between=function(X,re,ve,$e){ve=ve!==!1,$e=$e===!0;try{return 0<this._cmp(X,re)||this._cmp(X,re)===0&&(ve||$e)&&(!ve||!$e)?Gn(this):new this.Collection(this,function(){return jr(X,re,!ve,!$e)})}catch{return zn(this,Yt)}},Ei.prototype.equals=function(X){return X==null?zn(this,Yt):new this.Collection(this,function(){return Ao(X)})},Ei.prototype.above=function(X){return X==null?zn(this,Yt):new this.Collection(this,function(){return jr(X,void 0,!0)})},Ei.prototype.aboveOrEqual=function(X){return X==null?zn(this,Yt):new this.Collection(this,function(){return jr(X,void 0,!1)})},Ei.prototype.below=function(X){return X==null?zn(this,Yt):new this.Collection(this,function(){return jr(void 0,X,!1,!0)})},Ei.prototype.belowOrEqual=function(X){return X==null?zn(this,Yt):new this.Collection(this,function(){return jr(void 0,X)})},Ei.prototype.startsWith=function(X){return typeof X!="string"?zn(this,mt):this.between(X,X+Ve,!0,!0)},Ei.prototype.startsWithIgnoreCase=function(X){return X===""?this.startsWith(X):rr(this,function(re,ve){return re.indexOf(ve[0])===0},[X],Ve)},Ei.prototype.equalsIgnoreCase=function(X){return rr(this,function(re,ve){return re===ve[0]},[X],"")},Ei.prototype.anyOfIgnoreCase=function(){var X=N.apply(Z,arguments);return X.length===0?Gn(this):rr(this,function(re,ve){return ve.indexOf(re)!==-1},X,"")},Ei.prototype.startsWithAnyOfIgnoreCase=function(){var X=N.apply(Z,arguments);return X.length===0?Gn(this):rr(this,function(re,ve){return ve.some(function($e){return re.indexOf($e)===0})},X,Ve)},Ei.prototype.anyOf=function(){var X=this,re=N.apply(Z,arguments),ve=this._cmp;try{re.sort(ve)}catch{return zn(this,Yt)}if(re.length===0)return Gn(this);var $e=new this.Collection(this,function(){return jr(re[0],re[re.length-1])});$e._ondirectionchange=function(qe){ve=qe==="next"?X._ascending:X._descending,re.sort(ve)};var He=0;return $e._addAlgorithm(function(qe,it,st){for(var vt=qe.key;0<ve(vt,re[He]);)if(++He===re.length)return it(st),!1;return ve(vt,re[He])===0||(it(function(){qe.continue(re[He])}),!1)}),$e},Ei.prototype.notEqual=function(X){return this.inAnyRange([[-1/0,X],[X,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})},Ei.prototype.noneOf=function(){var X=N.apply(Z,arguments);if(X.length===0)return new this.Collection(this);try{X.sort(this._ascending)}catch{return zn(this,Yt)}var re=X.reduce(function(ve,$e){return ve?ve.concat([[ve[ve.length-1][1],$e]]):[[-1/0,$e]]},null);return re.push([X[X.length-1],this.db._maxKey]),this.inAnyRange(re,{includeLowers:!1,includeUppers:!1})},Ei.prototype.inAnyRange=function(Ut,re){var ve=this,$e=this._cmp,He=this._ascending,qe=this._descending,it=this._min,st=this._max;if(Ut.length===0)return Gn(this);if(!Ut.every(function(Xt){return Xt[0]!==void 0&&Xt[1]!==void 0&&He(Xt[0],Xt[1])<=0}))return zn(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",ue.InvalidArgument);var vt=!re||re.includeLowers!==!1,Ct=re&&re.includeUppers===!0,kt,dt=He;function Rt(Xt,en){return dt(Xt[0],en[0])}try{(kt=Ut.reduce(function(Xt,en){for(var un=0,_n=Xt.length;un<_n;++un){var An=Xt[un];if($e(en[0],An[1])<0&&0<$e(en[1],An[0])){An[0]=it(An[0],en[0]),An[1]=st(An[1],en[1]);break}}return un===_n&&Xt.push(en),Xt},[])).sort(Rt)}catch{return zn(this,Yt)}var bt=0,wt=Ct?function(Xt){return 0<He(Xt,kt[bt][1])}:function(Xt){return 0<=He(Xt,kt[bt][1])},It=vt?function(Xt){return 0<qe(Xt,kt[bt][0])}:function(Xt){return 0<=qe(Xt,kt[bt][0])},xt=wt,Ut=new this.Collection(this,function(){return jr(kt[0][0],kt[kt.length-1][1],!vt,!Ct)});return Ut._ondirectionchange=function(Xt){dt=Xt==="next"?(xt=wt,He):(xt=It,qe),kt.sort(Rt)},Ut._addAlgorithm(function(Xt,en,un){for(var _n,An=Xt.key;xt(An);)if(++bt===kt.length)return en(un),!1;return!wt(_n=An)&&!It(_n)||(ve._cmp(An,kt[bt][1])===0||ve._cmp(An,kt[bt][0])===0||en(function(){dt===He?Xt.continue(kt[bt][0]):Xt.continue(kt[bt][1])}),!1)}),Ut},Ei.prototype.startsWithAnyOf=function(){var X=N.apply(Z,arguments);return X.every(function(re){return typeof re=="string"})?X.length===0?Gn(this):this.inAnyRange(X.map(function(re){return[re,re+Ve]})):zn(this,"startsWithAnyOf() only works with strings")},Ei);function Ei(){}function ia(X){return ot(function(re){return Jl(re),X(re.target.error),!1})}function Jl(X){X.stopPropagation&&X.stopPropagation(),X.preventDefault&&X.preventDefault()}var Gc="storagemutated",ch="x-storagemutated-1",qn=ni(null,Gc),kr=(Jr.prototype._lock=function(){return _(!ze.global),++this._reculock,this._reculock!==1||ze.global||(ze.lockOwnerFor=this),this},Jr.prototype._unlock=function(){if(_(!ze.global),--this._reculock==0)for(ze.global||(ze.lockOwnerFor=null);0<this._blockedFuncs.length&&!this._locked();){var X=this._blockedFuncs.shift();try{nn(X[1],X[0])}catch{}}return this},Jr.prototype._locked=function(){return this._reculock&&ze.lockOwnerFor!==this},Jr.prototype.create=function(X){var re=this;if(!this.mode)return this;var ve=this.db.idbdb,$e=this.db._state.dbOpenError;if(_(!this.idbtrans),!X&&!ve)switch($e&&$e.name){case"DatabaseClosedError":throw new ue.DatabaseClosed($e);case"MissingAPIError":throw new ue.MissingAPI($e.message,$e);default:throw new ue.OpenFailed($e)}if(!this.active)throw new ue.TransactionInactive;return _(this._completion._state===null),(X=this.idbtrans=X||(this.db.core||ve).transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability})).onerror=ot(function(He){Jl(He),re._reject(X.error)}),X.onabort=ot(function(He){Jl(He),re.active&&re._reject(new ue.Abort(X.error)),re.active=!1,re.on("abort").fire(He)}),X.oncomplete=ot(function(){re.active=!1,re._resolve(),"mutatedParts"in X&&qn.storagemutated.fire(X.mutatedParts)}),this},Jr.prototype._promise=function(X,re,ve){var $e=this;if(X==="readwrite"&&this.mode!=="readwrite")return gt(new ue.ReadOnly("Transaction is readonly"));if(!this.active)return gt(new ue.TransactionInactive);if(this._locked())return new Ze(function(qe,it){$e._blockedFuncs.push([function(){$e._promise(X,re,ve).then(qe,it)},ze])});if(ve)return At(function(){var qe=new Ze(function(it,st){$e._lock();var vt=re(it,st,$e);vt&&vt.then&&vt.then(it,st)});return qe.finally(function(){return $e._unlock()}),qe._lib=!0,qe});var He=new Ze(function(qe,it){var st=re(qe,it,$e);st&&st.then&&st.then(qe,it)});return He._lib=!0,He},Jr.prototype._root=function(){return this.parent?this.parent._root():this},Jr.prototype.waitFor=function(X){var re,ve=this._root(),$e=Ze.resolve(X);ve._waitingFor?ve._waitingFor=ve._waitingFor.then(function(){return $e}):(ve._waitingFor=$e,ve._waitingQueue=[],re=ve.idbtrans.objectStore(ve.storeNames[0]),function qe(){for(++ve._spinCount;ve._waitingQueue.length;)ve._waitingQueue.shift()();ve._waitingFor&&(re.get(-1/0).onsuccess=qe)}());var He=ve._waitingFor;return new Ze(function(qe,it){$e.then(function(st){return ve._waitingQueue.push(ot(qe.bind(null,st)))},function(st){return ve._waitingQueue.push(ot(it.bind(null,st)))}).finally(function(){ve._waitingFor===He&&(ve._waitingFor=null)})})},Jr.prototype.abort=function(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new ue.Abort))},Jr.prototype.table=function(X){var re=this._memoizedTables||(this._memoizedTables={});if(d(re,X))return re[X];var ve=this.schema[X];if(!ve)throw new ue.NotFound("Table "+X+" not part of transaction");return ve=new this.db.Table(X,ve,this),ve.core=this.db.core.table(X),re[X]=ve},Jr);function Jr(){}function Vi(X,re,ve,$e,He,qe,it){return{name:X,keyPath:re,unique:ve,multi:$e,auto:He,compound:qe,src:(ve&&!it?"&":"")+($e?"*":"")+(He?"++":"")+Fi(re)}}function Fi(X){return typeof X=="string"?X:X?"["+[].join.call(X,"+")+"]":""}function Uu(X,re,ve){return{name:X,primKey:re,indexes:ve,mappedClass:null,idxByName:($e=function(He){return[He.name,He]},ve.reduce(function(He,qe,it){return it=$e(qe,it),it&&(He[it[0]]=it[1]),He},{}))};var $e}var Yc=function(X){try{return X.only([[]]),Yc=function(){return[[]]},[[]]}catch{return Yc=function(){return Ve},Ve}};function Wu(X){return X==null?function(){}:typeof X=="string"?(re=X).split(".").length===1?function(ve){return ve[re]}:function(ve){return x(ve,re)}:function(ve){return x(ve,X)};var re}function uh(X){return[].slice.call(X)}var $4=0;function cs(X){return X==null?":id":typeof X=="string"?X:"[".concat(X.join("+"),"]")}function xI(X,re,vt){function $e(xt){if(xt.type===3)return null;if(xt.type===4)throw new Error("Cannot convert never type to IDBKeyRange");var bt=xt.lower,wt=xt.upper,It=xt.lowerOpen,xt=xt.upperOpen;return bt===void 0?wt===void 0?null:re.upperBound(wt,!!xt):wt===void 0?re.lowerBound(bt,!!It):re.bound(bt,wt,!!It,!!xt)}function He(Rt){var bt,wt=Rt.name;return{name:wt,schema:Rt,mutate:function(It){var xt=It.trans,Ut=It.type,Xt=It.keys,en=It.values,un=It.range;return new Promise(function(_n,An){_n=ot(_n);var yn=xt.objectStore(wt),kn=yn.keyPath==null,jn=Ut==="put"||Ut==="add";if(!jn&&Ut!=="delete"&&Ut!=="deleteRange")throw new Error("Invalid operation type: "+Ut);var Ln,er=(Xt||en||{length:1}).length;if(Xt&&en&&Xt.length!==en.length)throw new Error("Given keys array must have same length as given values array.");if(er===0)return _n({numFailures:0,failures:{},results:[],lastResult:void 0});function Br(Ra){++us,Jl(Ra)}var Ur=[],Xr=[],us=0;if(Ut==="deleteRange"){if(un.type===4)return _n({numFailures:us,failures:Xr,results:[],lastResult:void 0});un.type===3?Ur.push(Ln=yn.clear()):Ur.push(Ln=yn.delete($e(un)))}else{var kn=jn?kn?[en,Xt]:[en,null]:[Xt,null],Nr=kn[0],Xa=kn[1];if(jn)for(var ba=0;ba<er;++ba)Ur.push(Ln=Xa&&Xa[ba]!==void 0?yn[Ut](Nr[ba],Xa[ba]):yn[Ut](Nr[ba])),Ln.onerror=Br;else for(ba=0;ba<er;++ba)Ur.push(Ln=yn[Ut](Nr[ba])),Ln.onerror=Br}function $g(Ra){Ra=Ra.target.result,Ur.forEach(function(Yu,cf){return Yu.error!=null&&(Xr[cf]=Yu.error)}),_n({numFailures:us,failures:Xr,results:Ut==="delete"?Xt:Ur.map(function(Yu){return Yu.result}),lastResult:Ra})}Ln.onerror=function(Ra){Br(Ra),$g(Ra)},Ln.onsuccess=$g})},getMany:function(It){var xt=It.trans,Ut=It.keys;return new Promise(function(Xt,en){Xt=ot(Xt);for(var un,_n=xt.objectStore(wt),An=Ut.length,yn=new Array(An),kn=0,jn=0,Ln=function(Ur){Ur=Ur.target,yn[Ur._pos]=Ur.result,++jn===kn&&Xt(yn)},er=ia(en),Br=0;Br<An;++Br)Ut[Br]!=null&&((un=_n.get(Ut[Br]))._pos=Br,un.onsuccess=Ln,un.onerror=er,++kn);kn===0&&Xt(yn)})},get:function(It){var xt=It.trans,Ut=It.key;return new Promise(function(Xt,en){Xt=ot(Xt);var un=xt.objectStore(wt).get(Ut);un.onsuccess=function(_n){return Xt(_n.target.result)},un.onerror=ia(en)})},query:(bt=Ct,function(It){return new Promise(function(xt,Ut){xt=ot(xt);var Xt,en,un,kn=It.trans,_n=It.values,An=It.limit,Ln=It.query,yn=An===1/0?void 0:An,jn=Ln.index,Ln=Ln.range,kn=kn.objectStore(wt),jn=jn.isPrimaryKey?kn:kn.index(jn.name),Ln=$e(Ln);if(An===0)return xt({result:[]});bt?((yn=_n?jn.getAll(Ln,yn):jn.getAllKeys(Ln,yn)).onsuccess=function(er){return xt({result:er.target.result})},yn.onerror=ia(Ut)):(Xt=0,en=!_n&&"openKeyCursor"in jn?jn.openKeyCursor(Ln):jn.openCursor(Ln),un=[],en.onsuccess=function(er){var Br=en.result;return Br?(un.push(_n?Br.value:Br.primaryKey),++Xt===An?xt({result:un}):void Br.continue()):xt({result:un})},en.onerror=ia(Ut))})}),openCursor:function(It){var xt=It.trans,Ut=It.values,Xt=It.query,en=It.reverse,un=It.unique;return new Promise(function(_n,An){_n=ot(_n);var jn=Xt.index,yn=Xt.range,kn=xt.objectStore(wt),kn=jn.isPrimaryKey?kn:kn.index(jn.name),jn=en?un?"prevunique":"prev":un?"nextunique":"next",Ln=!Ut&&"openKeyCursor"in kn?kn.openKeyCursor($e(yn),jn):kn.openCursor($e(yn),jn);Ln.onerror=ia(An),Ln.onsuccess=ot(function(er){var Br,Ur,Xr,us,Nr=Ln.result;Nr?(Nr.___id=++$4,Nr.done=!1,Br=Nr.continue.bind(Nr),Ur=(Ur=Nr.continuePrimaryKey)&&Ur.bind(Nr),Xr=Nr.advance.bind(Nr),us=function(){throw new Error("Cursor not stopped")},Nr.trans=xt,Nr.stop=Nr.continue=Nr.continuePrimaryKey=Nr.advance=function(){throw new Error("Cursor not started")},Nr.fail=ot(An),Nr.next=function(){var Xa=this,ba=1;return this.start(function(){return ba--?Xa.continue():Xa.stop()}).then(function(){return Xa})},Nr.start=function(Xa){function ba(){if(Ln.result)try{Xa()}catch(Ra){Nr.fail(Ra)}else Nr.done=!0,Nr.start=function(){throw new Error("Cursor behind last entry")},Nr.stop()}var $g=new Promise(function(Ra,Yu){Ra=ot(Ra),Ln.onerror=ia(Yu),Nr.fail=Yu,Nr.stop=function(cf){Nr.stop=Nr.continue=Nr.continuePrimaryKey=Nr.advance=us,Ra(cf)}});return Ln.onsuccess=ot(function(Ra){Ln.onsuccess=ba,ba()}),Nr.continue=Br,Nr.continuePrimaryKey=Ur,Nr.advance=Xr,ba(),$g},_n(Nr)):_n(null)},An)})},count:function(It){var xt=It.query,Ut=It.trans,Xt=xt.index,en=xt.range;return new Promise(function(un,_n){var An=Ut.objectStore(wt),yn=Xt.isPrimaryKey?An:An.index(Xt.name),An=$e(en),yn=An?yn.count(An):yn.count();yn.onsuccess=ot(function(kn){return un(kn.target.result)}),yn.onerror=ia(_n)})}}}var qe,it,st,kt=(it=vt,st=uh((qe=X).objectStoreNames),{schema:{name:qe.name,tables:st.map(function(Rt){return it.objectStore(Rt)}).map(function(Rt){var bt=Rt.keyPath,xt=Rt.autoIncrement,wt=s(bt),It={},xt={name:Rt.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:bt==null,compound:wt,keyPath:bt,autoIncrement:xt,unique:!0,extractKey:Wu(bt)},indexes:uh(Rt.indexNames).map(function(Ut){return Rt.index(Ut)}).map(function(un){var Xt=un.name,en=un.unique,_n=un.multiEntry,un=un.keyPath,_n={name:Xt,compound:s(un),keyPath:un,unique:en,multiEntry:_n,extractKey:Wu(un)};return It[cs(un)]=_n}),getIndexByKeyPath:function(Ut){return It[cs(Ut)]}};return It[":id"]=xt.primaryKey,bt!=null&&(It[cs(bt)]=xt.primaryKey),xt})},hasGetAll:0<st.length&&"getAll"in it.objectStore(st[0])&&!(typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}),vt=kt.schema,Ct=kt.hasGetAll,kt=vt.tables.map(He),dt={};return kt.forEach(function(Rt){return dt[Rt.name]=Rt}),{stack:"dbcore",transaction:X.transaction.bind(X),table:function(Rt){if(!dt[Rt])throw new Error("Table '".concat(Rt,"' not found"));return dt[Rt]},MIN_KEY:-1/0,MAX_KEY:Yc(re),schema:vt}}function wI(X,re,ve,$e){var He=ve.IDBKeyRange;return ve.indexedDB,{dbcore:($e=xI(re,He,$e),X.dbcore.reduce(function(qe,it){return it=it.create,r(r({},qe),it(qe))},$e))}}function Lp(X,$e){var ve=$e.db,$e=wI(X._middlewares,ve,X._deps,$e);X.core=$e.dbcore,X.tables.forEach(function(He){var qe=He.name;X.core.schema.tables.some(function(it){return it.name===qe})&&(He.core=X.core.table(qe),X[qe]instanceof X.Table&&(X[qe].core=He.core))})}function Og(X,re,ve,$e){ve.forEach(function(He){var qe=$e[He];re.forEach(function(it){var st=function vt(Ct,kt){return y(Ct,kt)||(Ct=c(Ct))&&vt(Ct,kt)}(it,He);(!st||"value"in st&&st.value===void 0)&&(it===X.Transaction.prototype||it instanceof X.Transaction?m(it,He,{get:function(){return this.table(He)},set:function(vt){p(this,He,{value:vt,writable:!0,configurable:!0,enumerable:!0})}}):it[He]=new X.Table(He,qe))})})}function Xc(X,re){re.forEach(function(ve){for(var $e in ve)ve[$e]instanceof X.Table&&delete ve[$e]})}function UC(X,re){return X._cfg.version-re._cfg.version}function Vu(X,re,ve,$e){var He=X._dbSchema;ve.objectStoreNames.contains("$meta")&&!He.$meta&&(He.$meta=Uu("$meta",WC("")[0],[]),X._storeNames.push("$meta"));var qe=X._createTransaction("readwrite",X._storeNames,He);qe.create(ve),qe._completion.catch($e);var it=qe._reject.bind(qe),st=ze.transless||ze;At(function(){return ze.trans=qe,ze.transless=st,re!==0?(Lp(X,ve),Ct=re,((vt=qe).storeNames.includes("$meta")?vt.table("$meta").get("version").then(function(kt){return kt??Ct}):Ze.resolve(Ct)).then(function(kt){return Rt=kt,bt=qe,wt=ve,It=[],kt=(dt=X)._versions,xt=dt._dbSchema=g0(0,dt.idbdb,wt),(kt=kt.filter(function(Ut){return Ut._cfg.version>=Rt})).length!==0?(kt.forEach(function(Ut){It.push(function(){var Xt=xt,en=Ut._cfg.dbschema;v0(dt,Xt,wt),v0(dt,en,wt),xt=dt._dbSchema=en;var un=Pg(Xt,en);un.add.forEach(function(jn){of(wt,jn[0],jn[1].primKey,jn[1].indexes)}),un.change.forEach(function(jn){if(jn.recreate)throw new ue.Upgrade("Not yet support for changing primary key");var Ln=wt.objectStore(jn.name);jn.add.forEach(function(er){return m0(Ln,er)}),jn.change.forEach(function(er){Ln.deleteIndex(er.name),m0(Ln,er)}),jn.del.forEach(function(er){return Ln.deleteIndex(er)})});var _n=Ut._cfg.contentUpgrade;if(_n&&Ut._cfg.version>Rt){Lp(dt,wt),bt._memoizedTables={};var An=k(en);un.del.forEach(function(jn){An[jn]=Xt[jn]}),Xc(dt,[dt.Transaction.prototype]),Og(dt,[dt.Transaction.prototype],a(An),An),bt.schema=An;var yn,kn=B(_n);return kn&&$t(),un=Ze.follow(function(){var jn;(yn=_n(bt))&&kn&&(jn=Gt.bind(null,null),yn.then(jn,jn))}),yn&&typeof yn.then=="function"?Ze.resolve(yn):un.then(function(){return yn})}}),It.push(function(Xt){var en,un,_n=Ut._cfg.dbschema;en=_n,un=Xt,[].slice.call(un.db.objectStoreNames).forEach(function(An){return en[An]==null&&un.db.deleteObjectStore(An)}),Xc(dt,[dt.Transaction.prototype]),Og(dt,[dt.Transaction.prototype],dt._storeNames,dt._dbSchema),bt.schema=dt._dbSchema}),It.push(function(Xt){dt.idbdb.objectStoreNames.contains("$meta")&&(Math.ceil(dt.idbdb.version/10)===Ut._cfg.version?(dt.idbdb.deleteObjectStore("$meta"),delete dt._dbSchema.$meta,dt._storeNames=dt._storeNames.filter(function(en){return en!=="$meta"})):Xt.objectStore("$meta").put(Ut._cfg.version,"version"))})}),function Ut(){return It.length?Ze.resolve(It.shift()(bt.idbtrans)).then(Ut):Ze.resolve()}().then(function(){R4(xt,wt)})):Ze.resolve();var dt,Rt,bt,wt,It,xt}).catch(it)):(a(He).forEach(function(kt){of(ve,kt,He[kt].primKey,He[kt].indexes)}),Lp(X,ve),void Ze.follow(function(){return X.on.populate.fire(qe)}).catch(it));var vt,Ct})}function p0(X,re){R4(X._dbSchema,re),re.db.version%10!=0||re.objectStoreNames.contains("$meta")||re.db.createObjectStore("$meta").add(Math.ceil(re.db.version/10-1),"version");var ve=g0(0,X.idbdb,re);v0(X,X._dbSchema,re);for(var $e=0,He=Pg(ve,X._dbSchema).change;$e<He.length;$e++){var qe=function(it){if(it.change.length||it.recreate)return console.warn("Unable to patch indexes of table ".concat(it.name," because it has changes on the type of index or primary key.")),{value:void 0};var st=re.objectStore(it.name);it.add.forEach(function(vt){Te&&console.debug("Dexie upgrade patch: Creating missing index ".concat(it.name,".").concat(vt.src)),m0(st,vt)})}(He[$e]);if(typeof qe=="object")return qe.value}}function Pg(X,re){var ve,$e={del:[],add:[],change:[]};for(ve in X)re[ve]||$e.del.push(ve);for(ve in re){var He=X[ve],qe=re[ve];if(He){var it={name:ve,def:qe,recreate:!1,del:[],add:[],change:[]};if(""+(He.primKey.keyPath||"")!=""+(qe.primKey.keyPath||"")||He.primKey.auto!==qe.primKey.auto)it.recreate=!0,$e.change.push(it);else{var st=He.idxByName,vt=qe.idxByName,Ct=void 0;for(Ct in st)vt[Ct]||it.del.push(Ct);for(Ct in vt){var kt=st[Ct],dt=vt[Ct];kt?kt.src!==dt.src&&it.change.push(dt):it.add.push(dt)}(0<it.del.length||0<it.add.length||0<it.change.length)&&$e.change.push(it)}}else $e.add.push([ve,qe])}return $e}function of(X,re,ve,$e){var He=X.db.createObjectStore(re,ve.keyPath?{keyPath:ve.keyPath,autoIncrement:ve.auto}:{autoIncrement:ve.auto});return $e.forEach(function(qe){return m0(He,qe)}),He}function R4(X,re){a(X).forEach(function(ve){re.db.objectStoreNames.contains(ve)||(Te&&console.debug("Dexie: Creating missing table",ve),of(re,ve,X[ve].primKey,X[ve].indexes))})}function m0(X,re){X.createIndex(re.name,re.keyPath,{unique:re.unique,multiEntry:re.multi})}function g0(X,re,ve){var $e={};return b(re.objectStoreNames,0).forEach(function(He){for(var qe=ve.objectStore(He),it=Vi(Fi(Ct=qe.keyPath),Ct||"",!0,!1,!!qe.autoIncrement,Ct&&typeof Ct!="string",!0),st=[],vt=0;vt<qe.indexNames.length;++vt){var kt=qe.index(qe.indexNames[vt]),Ct=kt.keyPath,kt=Vi(kt.name,Ct,!!kt.unique,!!kt.multiEntry,!1,Ct&&typeof Ct!="string",!1);st.push(kt)}$e[He]=Uu(He,it,st)}),$e}function v0(X,re,ve){for(var $e=ve.db.objectStoreNames,He=0;He<$e.length;++He){var qe=$e[He],it=ve.objectStore(qe);X._hasGetAll="getAll"in it;for(var st=0;st<it.indexNames.length;++st){var vt=it.indexNames[st],Ct=it.index(vt).keyPath,kt=typeof Ct=="string"?Ct:"["+b(Ct).join("+")+"]";!re[qe]||(Ct=re[qe].idxByName[kt])&&(Ct.name=vt,delete re[qe].idxByName[kt],re[qe].idxByName[vt]=Ct)}}typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&o.WorkerGlobalScope&&o instanceof o.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(X._hasGetAll=!1)}function WC(X){return X.split(",").map(function(re,ve){var $e=(re=re.trim()).replace(/([&*]|\+\+)/g,""),He=/^\[/.test($e)?$e.match(/^\[(.*)\]$/)[1].split("+"):$e;return Vi($e,He||null,/\&/.test(re),/\*/.test(re),/\+\+/.test(re),s(He),ve===0)})}var A4=(y0.prototype._parseStoresSpec=function(X,re){a(X).forEach(function(ve){if(X[ve]!==null){var $e=WC(X[ve]),He=$e.shift();if(He.unique=!0,He.multi)throw new ue.Schema("Primary key cannot be multi-valued");$e.forEach(function(qe){if(qe.auto)throw new ue.Schema("Only primary key can be marked as autoIncrement (++)");if(!qe.keyPath)throw new ue.Schema("Index must have a name and cannot be an empty string")}),re[ve]=Uu(ve,He,$e)}})},y0.prototype.stores=function(ve){var re=this.db;this._cfg.storesSource=this._cfg.storesSource?l(this._cfg.storesSource,ve):ve;var ve=re._versions,$e={},He={};return ve.forEach(function(qe){l($e,qe._cfg.storesSource),He=qe._cfg.dbschema={},qe._parseStoresSpec($e,He)}),re._dbSchema=He,Xc(re,[re._allTables,re,re.Transaction.prototype]),Og(re,[re._allTables,re,re.Transaction.prototype,this._cfg.tables],a(He),He),re._storeNames=a(He),this},y0.prototype.upgrade=function(X){return this._cfg.contentUpgrade=Ce(this._cfg.contentUpgrade||pe,X),this},y0);function y0(){}function VC(X,re){var ve=X._dbNamesDB;return ve||(ve=X._dbNamesDB=new Ps(zt,{addons:[],indexedDB:X,IDBKeyRange:re})).version(1).stores({dbnames:"name"}),ve.table("dbnames")}function KC(X){return X&&typeof X.databases=="function"}function qC(X){return At(function(){return ze.letThrough=!0,X()})}function b0(X){return!("from"in X)}var Ya=function(X,re){if(!this){var ve=new Ya;return X&&"d"in X&&l(ve,X),ve}l(this,arguments.length?{d:1,from:X,to:1<arguments.length?re:X}:{d:0})};function Fp(X,re,ve){var $e=Ge(re,ve);if(!isNaN($e)){if(0<$e)throw RangeError();if(b0(X))return l(X,{from:re,to:ve,d:1});var He=X.l,$e=X.r;if(Ge(ve,X.from)<0)return He?Fp(He,re,ve):X.l={from:re,to:ve,d:1,l:null,r:null},N4(X);if(0<Ge(re,X.to))return $e?Fp($e,re,ve):X.r={from:re,to:ve,d:1,l:null,r:null},N4(X);Ge(re,X.from)<0&&(X.from=re,X.l=null,X.d=$e?$e.d+1:1),0<Ge(ve,X.to)&&(X.to=ve,X.r=null,X.d=X.l?X.l.d+1:1),ve=!X.r,He&&!X.l&&af(X,He),$e&&ve&&af(X,$e)}}function af(X,re){b0(re)||function ve($e,vt){var qe=vt.from,it=vt.to,st=vt.l,vt=vt.r;Fp($e,qe,it),st&&ve($e,st),vt&&ve($e,vt)}(X,re)}function dh(X,re){var ve=S0(re),$e=ve.next();if($e.done)return!1;for(var He=$e.value,qe=S0(X),it=qe.next(He.from),st=it.value;!$e.done&&!it.done;){if(Ge(st.from,He.to)<=0&&0<=Ge(st.to,He.from))return!0;Ge(He.from,st.from)<0?He=($e=ve.next(st.from)).value:st=(it=qe.next(He.from)).value}return!1}function S0(X){var re=b0(X)?null:{s:0,n:X};return{next:function(ve){for(var $e=0<arguments.length;re;)switch(re.s){case 0:if(re.s=1,$e)for(;re.n.l&&Ge(ve,re.n.from)<0;)re={up:re,n:re.n.l,s:1};else for(;re.n.l;)re={up:re,n:re.n.l,s:1};case 1:if(re.s=2,!$e||Ge(ve,re.n.to)<=0)return{value:re.n,done:!1};case 2:if(re.n.r){re.s=3,re={up:re,n:re.n.r,s:0};continue}case 3:re=re.up}return{done:!0}}}}function N4(X){var re,ve,$e=(((re=X.r)===null||re===void 0?void 0:re.d)||0)-(((ve=X.l)===null||ve===void 0?void 0:ve.d)||0),He=1<$e?"r":$e<-1?"l":"";He&&(re=He=="r"?"l":"r",ve=r({},X),$e=X[He],X.from=$e.from,X.to=$e.to,X[He]=$e[He],ve[He]=$e[re],(X[re]=ve).d=D4(ve)),X.d=D4(X)}function D4(ve){var re=ve.r,ve=ve.l;return(re?ve?Math.max(re.d,ve.d):re.d:ve?ve.d:0)+1}function sf(X,re){return a(re).forEach(function(ve){X[ve]?af(X[ve],re[ve]):X[ve]=function $e(He){var qe,it,st={};for(qe in He)d(He,qe)&&(it=He[qe],st[qe]=!it||typeof it!="object"||D.has(it.constructor)?it:$e(it));return st}(re[ve])}),X}function No(X,re){return X.all||re.all||Object.keys(X).some(function(ve){return re[ve]&&dh(re[ve],X[ve])})}h(Ya.prototype,((Qs={add:function(X){return af(this,X),this},addKey:function(X){return Fp(this,X,X),this},addKeys:function(X){var re=this;return X.forEach(function(ve){return Fp(re,ve,ve)}),this},hasKey:function(X){var re=S0(this).next(X).value;return re&&Ge(re.from,X)<=0&&0<=Ge(re.to,X)}})[z]=function(){return S0(this)},Qs));var fh={},C0={},hh=!1;function x0(X){sf(C0,X),hh||(hh=!0,setTimeout(function(){hh=!1,w0(C0,!(C0={}))},0))}function w0(X,re){re===void 0&&(re=!1);var ve=new Set;if(X.all)for(var $e=0,He=Object.values(fh);$e<He.length;$e++)L4(it=He[$e],X,ve,re);else for(var qe in X){var it,st=/^idb\:\/\/(.*)\/(.*)\//.exec(qe);st&&(qe=st[1],st=st[2],(it=fh["idb://".concat(qe,"/").concat(st)])&&L4(it,X,ve,re))}ve.forEach(function(vt){return vt()})}function L4(X,re,ve,$e){for(var He=[],qe=0,it=Object.entries(X.queries.query);qe<it.length;qe++){for(var st=it[qe],vt=st[0],Ct=[],kt=0,dt=st[1];kt<dt.length;kt++){var Rt=dt[kt];No(re,Rt.obsSet)?Rt.subscribers.forEach(function(xt){return ve.add(xt)}):$e&&Ct.push(Rt)}$e&&He.push([vt,Ct])}if($e)for(var bt=0,wt=He;bt<wt.length;bt++){var It=wt[bt],vt=It[0],Ct=It[1];X.queries.query[vt]=Ct}}function GC(X){var re=X._state,ve=X._deps.indexedDB;if(re.isBeingOpened||X.idbdb)return re.dbReadyPromise.then(function(){return re.dbOpenError?gt(re.dbOpenError):X});re.isBeingOpened=!0,re.dbOpenError=null,re.openComplete=!1;var $e=re.openCanceller,He=Math.round(10*X.verno),qe=!1;function it(){if(re.openCanceller!==$e)throw new ue.DatabaseClosed("db.open() was cancelled")}function st(){return new Ze(function(Rt,bt){if(it(),!ve)throw new ue.MissingAPI;var wt=X.name,It=re.autoSchema||!He?ve.open(wt):ve.open(wt,He);if(!It)throw new ue.MissingAPI;It.onerror=ia(bt),It.onblocked=ot(X._fireOnBlocked),It.onupgradeneeded=ot(function(xt){var Ut;kt=It.transaction,re.autoSchema&&!X._options.allowEmptyDB?(It.onerror=Jl,kt.abort(),It.result.close(),(Ut=ve.deleteDatabase(wt)).onsuccess=Ut.onerror=ot(function(){bt(new ue.NoSuchDatabase("Database ".concat(wt," doesnt exist")))})):(kt.onerror=ia(bt),xt=xt.oldVersion>Math.pow(2,62)?0:xt.oldVersion,dt=xt<1,X.idbdb=It.result,qe&&p0(X,kt),Vu(X,xt/10,kt,bt))},bt),It.onsuccess=ot(function(){kt=null;var xt,Ut,Xt,en,un,_n=X.idbdb=It.result,An=b(_n.objectStoreNames);if(0<An.length)try{var yn=_n.transaction((en=An).length===1?en[0]:en,"readonly");if(re.autoSchema)Ut=_n,Xt=yn,(xt=X).verno=Ut.version/10,Xt=xt._dbSchema=g0(0,Ut,Xt),xt._storeNames=b(Ut.objectStoreNames,0),Og(xt,[xt._allTables],a(Xt),Xt);else if(v0(X,X._dbSchema,yn),((un=Pg(g0(0,(un=X).idbdb,yn),un._dbSchema)).add.length||un.change.some(function(kn){return kn.add.length||kn.change.length}))&&!qe)return console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Dexie will add missing parts and increment native version number to workaround this."),_n.close(),He=_n.version+1,qe=!0,Rt(st());Lp(X,yn)}catch{}Mt.push(X),_n.onversionchange=ot(function(kn){re.vcFired=!0,X.on("versionchange").fire(kn)}),_n.onclose=ot(function(kn){X.on("close").fire(kn)}),dt&&(un=X._deps,yn=wt,_n=un.indexedDB,un=un.IDBKeyRange,KC(_n)||yn===zt||VC(_n,un).put({name:yn}).catch(pe)),Rt()},bt)}).catch(function(Rt){switch(Rt==null?void 0:Rt.name){case"UnknownError":if(0<re.PR1398_maxLoop)return re.PR1398_maxLoop--,console.warn("Dexie: Workaround for Chrome UnknownError on open()"),st();break;case"VersionError":if(0<He)return He=0,st()}return Ze.reject(Rt)})}var vt,Ct=re.dbReadyResolve,kt=null,dt=!1;return Ze.race([$e,(typeof navigator>"u"?Ze.resolve():!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise(function(Rt){function bt(){return indexedDB.databases().finally(Rt)}vt=setInterval(bt,100),bt()}).finally(function(){return clearInterval(vt)}):Promise.resolve()).then(st)]).then(function(){return it(),re.onReadyBeingFired=[],Ze.resolve(qC(function(){return X.on.ready.fire(X.vip)})).then(function Rt(){if(0<re.onReadyBeingFired.length){var bt=re.onReadyBeingFired.reduce(Ce,pe);return re.onReadyBeingFired=[],Ze.resolve(qC(function(){return bt(X.vip)})).then(Rt)}})}).finally(function(){re.openCanceller===$e&&(re.onReadyBeingFired=null,re.isBeingOpened=!1)}).catch(function(Rt){re.dbOpenError=Rt;try{kt&&kt.abort()}catch{}return $e===re.openCanceller&&X._close(),gt(Rt)}).finally(function(){re.openComplete=!0,Ct()}).then(function(){var Rt;return dt&&(Rt={},X.tables.forEach(function(bt){bt.schema.indexes.forEach(function(wt){wt.name&&(Rt["idb://".concat(X.name,"/").concat(bt.name,"/").concat(wt.name)]=new Ya(-1/0,[[[]]]))}),Rt["idb://".concat(X.name,"/").concat(bt.name,"/")]=Rt["idb://".concat(X.name,"/").concat(bt.name,"/:dels")]=new Ya(-1/0,[[[]]])}),qn(Gc).fire(Rt),w0(Rt,!0)),X})}function _0(X){function re(qe){return X.next(qe)}var ve=He(re),$e=He(function(qe){return X.throw(qe)});function He(qe){return function(vt){var st=qe(vt),vt=st.value;return st.done?vt:vt&&typeof vt.then=="function"?vt.then(ve,$e):s(vt)?Promise.all(vt).then(ve,$e):ve(vt)}}return He(re)()}function E0(X,re,ve){for(var $e=s(X)?X.slice():[X],He=0;He<ve;++He)$e.push(re);return $e}var _I={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(X){return r(r({},X),{table:function(re){var ve=X.table(re),$e=ve.schema,He={},qe=[];function it(dt,Rt,bt){var wt=cs(dt),It=He[wt]=He[wt]||[],xt=dt==null?0:typeof dt=="string"?1:dt.length,Ut=0<Rt,Ut=r(r({},bt),{name:Ut?"".concat(wt,"(virtual-from:").concat(bt.name,")"):bt.name,lowLevelIndex:bt,isVirtual:Ut,keyTail:Rt,keyLength:xt,extractKey:Wu(dt),unique:!Ut&&bt.unique});return It.push(Ut),Ut.isPrimaryKey||qe.push(Ut),1<xt&&it(xt===2?dt[0]:dt.slice(0,xt-1),Rt+1,bt),It.sort(function(Xt,en){return Xt.keyTail-en.keyTail}),Ut}re=it($e.primaryKey.keyPath,0,$e.primaryKey),He[":id"]=[re];for(var st=0,vt=$e.indexes;st<vt.length;st++){var Ct=vt[st];it(Ct.keyPath,0,Ct)}function kt(dt){var Rt,bt=dt.query.index;return bt.isVirtual?r(r({},dt),{query:{index:bt.lowLevelIndex,range:(Rt=dt.query.range,bt=bt.keyTail,{type:Rt.type===1?2:Rt.type,lower:E0(Rt.lower,Rt.lowerOpen?X.MAX_KEY:X.MIN_KEY,bt),lowerOpen:!0,upper:E0(Rt.upper,Rt.upperOpen?X.MIN_KEY:X.MAX_KEY,bt),upperOpen:!0})}}):dt}return r(r({},ve),{schema:r(r({},$e),{primaryKey:re,indexes:qe,getIndexByKeyPath:function(dt){return(dt=He[cs(dt)])&&dt[0]}}),count:function(dt){return ve.count(kt(dt))},query:function(dt){return ve.query(kt(dt))},openCursor:function(dt){var Rt=dt.query.index,bt=Rt.keyTail,wt=Rt.isVirtual,It=Rt.keyLength;return wt?ve.openCursor(kt(dt)).then(function(Ut){return Ut&&xt(Ut)}):ve.openCursor(dt);function xt(Ut){return Object.create(Ut,{continue:{value:function(Xt){Xt!=null?Ut.continue(E0(Xt,dt.reverse?X.MAX_KEY:X.MIN_KEY,bt)):dt.unique?Ut.continue(Ut.key.slice(0,It).concat(dt.reverse?X.MIN_KEY:X.MAX_KEY,bt)):Ut.continue()}},continuePrimaryKey:{value:function(Xt,en){Ut.continuePrimaryKey(E0(Xt,X.MAX_KEY,bt),en)}},primaryKey:{get:function(){return Ut.primaryKey}},key:{get:function(){var Xt=Ut.key;return It===1?Xt[0]:Xt.slice(0,It)}},value:{get:function(){return Ut.value}}})}}})}})}};function T0(X,re,ve,$e){return ve=ve||{},$e=$e||"",a(X).forEach(function(He){var qe,it,st;d(re,He)?(qe=X[He],it=re[He],typeof qe=="object"&&typeof it=="object"&&qe&&it?(st=F(qe))!==F(it)?ve[$e+He]=re[He]:st==="Object"?T0(qe,it,ve,$e+He+"."):qe!==it&&(ve[$e+He]=re[He]):qe!==it&&(ve[$e+He]=re[He])):ve[$e+He]=void 0}),a(re).forEach(function(He){d(X,He)||(ve[$e+He]=re[He])}),ve}function k0(X,re){return re.type==="delete"?re.keys:re.keys||re.values.map(X.extractKey)}var EI={stack:"dbcore",name:"HooksMiddleware",level:2,create:function(X){return r(r({},X),{table:function(re){var ve=X.table(re),$e=ve.schema.primaryKey;return r(r({},ve),{mutate:function(He){var qe=ze.trans,it=qe.table(re).hook,st=it.deleting,vt=it.creating,Ct=it.updating;switch(He.type){case"add":if(vt.fire===pe)break;return qe._promise("readwrite",function(){return kt(He)},!0);case"put":if(vt.fire===pe&&Ct.fire===pe)break;return qe._promise("readwrite",function(){return kt(He)},!0);case"delete":if(st.fire===pe)break;return qe._promise("readwrite",function(){return kt(He)},!0);case"deleteRange":if(st.fire===pe)break;return qe._promise("readwrite",function(){return function dt(Rt,bt,wt){return ve.query({trans:Rt,values:!1,query:{index:$e,range:bt},limit:wt}).then(function(It){var xt=It.result;return kt({type:"delete",keys:xt,trans:Rt}).then(function(Ut){return 0<Ut.numFailures?Promise.reject(Ut.failures[0]):xt.length<wt?{failures:[],numFailures:0,lastResult:void 0}:dt(Rt,r(r({},bt),{lower:xt[xt.length-1],lowerOpen:!0}),wt)})})}(He.trans,He.range,1e4)},!0)}return ve.mutate(He);function kt(dt){var Rt,bt,wt,It=ze.trans,xt=dt.keys||k0($e,dt);if(!xt)throw new Error("Keys missing");return(dt=dt.type==="add"||dt.type==="put"?r(r({},dt),{keys:xt}):r({},dt)).type!=="delete"&&(dt.values=i([],dt.values)),dt.keys&&(dt.keys=i([],dt.keys)),Rt=ve,wt=xt,((bt=dt).type==="add"?Promise.resolve([]):Rt.getMany({trans:bt.trans,keys:wt,cache:"immutable"})).then(function(Ut){var Xt=xt.map(function(en,un){var _n,An,yn,kn=Ut[un],jn={onerror:null,onsuccess:null};return dt.type==="delete"?st.fire.call(jn,en,kn,It):dt.type==="add"||kn===void 0?(_n=vt.fire.call(jn,en,dt.values[un],It),en==null&&_n!=null&&(dt.keys[un]=en=_n,$e.outbound||E(dt.values[un],$e.keyPath,en))):(_n=T0(kn,dt.values[un]),(An=Ct.fire.call(jn,_n,en,kn,It))&&(yn=dt.values[un],Object.keys(An).forEach(function(Ln){d(yn,Ln)?yn[Ln]=An[Ln]:E(yn,Ln,An[Ln])}))),jn});return ve.mutate(dt).then(function(en){for(var un=en.failures,_n=en.results,An=en.numFailures,en=en.lastResult,yn=0;yn<xt.length;++yn){var kn=(_n||xt)[yn],jn=Xt[yn];kn==null?jn.onerror&&jn.onerror(un[yn]):jn.onsuccess&&jn.onsuccess(dt.type==="put"&&Ut[yn]?dt.values[yn]:kn)}return{failures:un,results:_n,numFailures:An,lastResult:en}}).catch(function(en){return Xt.forEach(function(un){return un.onerror&&un.onerror(en)}),Promise.reject(en)})})}}})}})}};function jp(X,re,ve){try{if(!re||re.keys.length<X.length)return null;for(var $e=[],He=0,qe=0;He<re.keys.length&&qe<X.length;++He)Ge(re.keys[He],X[qe])===0&&($e.push(ve?A(re.values[He]):re.values[He]),++qe);return $e.length===X.length?$e:null}catch{return null}}var Ku={stack:"dbcore",level:-1,create:function(X){return{table:function(re){var ve=X.table(re);return r(r({},ve),{getMany:function($e){if(!$e.cache)return ve.getMany($e);var He=jp($e.keys,$e.trans._cache,$e.cache==="clone");return He?Ze.resolve(He):ve.getMany($e).then(function(qe){return $e.trans._cache={keys:$e.keys,values:$e.cache==="clone"?A(qe):qe},qe})},mutate:function($e){return $e.type!=="add"&&($e.trans._cache=null),ve.mutate($e)}})}}}};function Mg(X,re){return X.trans.mode==="readonly"&&!!X.subscr&&!X.trans.explicit&&X.trans.db._options.cache!=="disabled"&&!re.schema.primaryKey.outbound}function O0(X,re){switch(X){case"query":return re.values&&!re.unique;case"get":case"getMany":case"count":case"openCursor":return!1}}var F4={stack:"dbcore",level:0,name:"Observability",create:function(X){var re=X.schema.name,ve=new Ya(X.MIN_KEY,X.MAX_KEY);return r(r({},X),{transaction:function($e,He,qe){if(ze.subscr&&He!=="readonly")throw new ue.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(ze.querier));return X.transaction($e,He,qe)},table:function($e){var He=X.table($e),qe=He.schema,it=qe.primaryKey,dt=qe.indexes,st=it.extractKey,vt=it.outbound,Ct=it.autoIncrement&&dt.filter(function(bt){return bt.compound&&bt.keyPath.includes(it.keyPath)}),kt=r(r({},He),{mutate:function(bt){function wt(Ln){return Ln="idb://".concat(re,"/").concat($e,"/").concat(Ln),en[Ln]||(en[Ln]=new Ya)}var It,xt,Ut,Xt=bt.trans,en=bt.mutatedParts||(bt.mutatedParts={}),un=wt(""),_n=wt(":dels"),An=bt.type,jn=bt.type==="deleteRange"?[bt.range]:bt.type==="delete"?[bt.keys]:bt.values.length<50?[k0(it,bt).filter(function(Ln){return Ln}),bt.values]:[],yn=jn[0],kn=jn[1],jn=bt.trans._cache;return s(yn)?(un.addKeys(yn),(jn=An==="delete"||yn.length===kn.length?jp(yn,jn):null)||_n.addKeys(yn),(jn||kn)&&(It=wt,xt=jn,Ut=kn,qe.indexes.forEach(function(Ln){var er=It(Ln.name||"");function Br(Xr){return Xr!=null?Ln.extractKey(Xr):null}function Ur(Xr){return Ln.multiEntry&&s(Xr)?Xr.forEach(function(us){return er.addKey(us)}):er.addKey(Xr)}(xt||Ut).forEach(function(Xr,Xa){var Nr=xt&&Br(xt[Xa]),Xa=Ut&&Br(Ut[Xa]);Ge(Nr,Xa)!==0&&(Nr!=null&&Ur(Nr),Xa!=null&&Ur(Xa))})}))):yn?(kn={from:(kn=yn.lower)!==null&&kn!==void 0?kn:X.MIN_KEY,to:(kn=yn.upper)!==null&&kn!==void 0?kn:X.MAX_KEY},_n.add(kn),un.add(kn)):(un.add(ve),_n.add(ve),qe.indexes.forEach(function(Ln){return wt(Ln.name).add(ve)})),He.mutate(bt).then(function(Ln){return!yn||bt.type!=="add"&&bt.type!=="put"||(un.addKeys(Ln.results),Ct&&Ct.forEach(function(er){for(var Br=bt.values.map(function(Nr){return er.extractKey(Nr)}),Ur=er.keyPath.findIndex(function(Nr){return Nr===it.keyPath}),Xr=0,us=Ln.results.length;Xr<us;++Xr)Br[Xr][Ur]=Ln.results[Xr];wt(er.name).addKeys(Br)})),Xt.mutatedParts=sf(Xt.mutatedParts||{},en),Ln})}}),dt=function(wt){var It=wt.query,wt=It.index,It=It.range;return[wt,new Ya((wt=It.lower)!==null&&wt!==void 0?wt:X.MIN_KEY,(It=It.upper)!==null&&It!==void 0?It:X.MAX_KEY)]},Rt={get:function(bt){return[it,new Ya(bt.key)]},getMany:function(bt){return[it,new Ya().addKeys(bt.keys)]},count:dt,query:dt,openCursor:dt};return a(Rt).forEach(function(bt){kt[bt]=function(wt){var It=ze.subscr,xt=!!It,Ut=Mg(ze,He)&&O0(bt,wt)?wt.obsSet={}:It;if(xt){var Xt=function(kn){return kn="idb://".concat(re,"/").concat($e,"/").concat(kn),Ut[kn]||(Ut[kn]=new Ya)},en=Xt(""),un=Xt(":dels"),It=Rt[bt](wt),xt=It[0],It=It[1];if((bt==="query"&&xt.isPrimaryKey&&!wt.values?un:Xt(xt.name||"")).add(It),!xt.isPrimaryKey){if(bt!=="count"){var _n=bt==="query"&&vt&&wt.values&&He.query(r(r({},wt),{values:!1}));return He[bt].apply(this,arguments).then(function(kn){if(bt==="query"){if(vt&&wt.values)return _n.then(function(Br){return Br=Br.result,en.addKeys(Br),kn});var jn=wt.values?kn.result.map(st):kn.result;(wt.values?en:un).addKeys(jn)}else if(bt==="openCursor"){var Ln=kn,er=wt.values;return Ln&&Object.create(Ln,{key:{get:function(){return un.addKey(Ln.primaryKey),Ln.key}},primaryKey:{get:function(){var Br=Ln.primaryKey;return un.addKey(Br),Br}},value:{get:function(){return er&&en.addKey(Ln.primaryKey),Ln.value}}})}return kn})}un.add(ve)}}return He[bt].apply(this,arguments)}}),kt}})}};function ec(X,re,ve){if(ve.numFailures===0)return re;if(re.type==="deleteRange")return null;var $e=re.keys?re.keys.length:"values"in re&&re.values?re.values.length:1;return ve.numFailures===$e?null:(re=r({},re),s(re.keys)&&(re.keys=re.keys.filter(function(He,qe){return!(qe in ve.failures)})),"values"in re&&s(re.values)&&(re.values=re.values.filter(function(He,qe){return!(qe in ve.failures)})),re)}function qu(X,re){return ve=X,(($e=re).lower===void 0||($e.lowerOpen?0<Ge(ve,$e.lower):0<=Ge(ve,$e.lower)))&&(X=X,(re=re).upper===void 0||(re.upperOpen?Ge(X,re.upper)<0:Ge(X,re.upper)<=0));var ve,$e}function P0(X,re,Rt,$e,He,qe){if(!Rt||Rt.length===0)return X;var it=re.query.index,st=it.multiEntry,vt=re.query.range,Ct=$e.schema.primaryKey.extractKey,kt=it.extractKey,dt=(it.lowLevelIndex||it).extractKey,Rt=Rt.reduce(function(bt,wt){var It=bt,xt=[];if(wt.type==="add"||wt.type==="put")for(var Ut=new Ya,Xt=wt.values.length-1;0<=Xt;--Xt){var en,un=wt.values[Xt],_n=Ct(un);Ut.hasKey(_n)||(en=kt(un),(st&&s(en)?en.some(function(Ln){return qu(Ln,vt)}):qu(en,vt))&&(Ut.addKey(_n),xt.push(un)))}switch(wt.type){case"add":var An=new Ya().addKeys(re.values?bt.map(function(er){return Ct(er)}):bt),It=bt.concat(re.values?xt.filter(function(er){return er=Ct(er),!An.hasKey(er)&&(An.addKey(er),!0)}):xt.map(function(er){return Ct(er)}).filter(function(er){return!An.hasKey(er)&&(An.addKey(er),!0)}));break;case"put":var yn=new Ya().addKeys(wt.values.map(function(er){return Ct(er)}));It=bt.filter(function(er){return!yn.hasKey(re.values?Ct(er):er)}).concat(re.values?xt:xt.map(function(er){return Ct(er)}));break;case"delete":var kn=new Ya().addKeys(wt.keys);It=bt.filter(function(er){return!kn.hasKey(re.values?Ct(er):er)});break;case"deleteRange":var jn=wt.range;It=bt.filter(function(er){return!qu(Ct(er),jn)})}return It},X);return Rt===X?X:(Rt.sort(function(bt,wt){return Ge(dt(bt),dt(wt))||Ge(Ct(bt),Ct(wt))}),re.limit&&re.limit<1/0&&(Rt.length>re.limit?Rt.length=re.limit:X.length===re.limit&&Rt.length<re.limit&&(He.dirty=!0)),qe?Object.freeze(Rt):Rt)}function j4(X,re){return Ge(X.lower,re.lower)===0&&Ge(X.upper,re.upper)===0&&!!X.lowerOpen==!!re.lowerOpen&&!!X.upperOpen==!!re.upperOpen}function B4(X,re){return function(ve,$e,He,qe){if(ve===void 0)return $e!==void 0?-1:0;if($e===void 0)return 1;if(($e=Ge(ve,$e))===0){if(He&&qe)return 0;if(He)return 1;if(qe)return-1}return $e}(X.lower,re.lower,X.lowerOpen,re.lowerOpen)<=0&&0<=function(ve,$e,He,qe){if(ve===void 0)return $e!==void 0?1:0;if($e===void 0)return-1;if(($e=Ge(ve,$e))===0){if(He&&qe)return 0;if(He)return-1;if(qe)return 1}return $e}(X.upper,re.upper,X.upperOpen,re.upperOpen)}function TI(X,re,ve,$e){X.subscribers.add(ve),$e.addEventListener("abort",function(){var He,qe;X.subscribers.delete(ve),X.subscribers.size===0&&(He=X,qe=re,setTimeout(function(){He.subscribers.size===0&&q(qe,He)},3e3))})}var H4={stack:"dbcore",level:0,name:"Cache",create:function(X){var re=X.schema.name;return r(r({},X),{transaction:function(ve,$e,He){var qe,it,st=X.transaction(ve,$e,He);return $e==="readwrite"&&(it=(qe=new AbortController).signal,He=function(vt){return function(){if(qe.abort(),$e==="readwrite"){for(var Ct=new Set,kt=0,dt=ve;kt<dt.length;kt++){var Rt=dt[kt],bt=fh["idb://".concat(re,"/").concat(Rt)];if(bt){var wt=X.table(Rt),It=bt.optimisticOps.filter(function(er){return er.trans===st});if(st._explicit&&vt&&st.mutatedParts)for(var xt=0,Ut=Object.values(bt.queries.query);xt<Ut.length;xt++)for(var Xt=0,en=(An=Ut[xt]).slice();Xt<en.length;Xt++)No((yn=en[Xt]).obsSet,st.mutatedParts)&&(q(An,yn),yn.subscribers.forEach(function(er){return Ct.add(er)}));else if(0<It.length){bt.optimisticOps=bt.optimisticOps.filter(function(er){return er.trans!==st});for(var un=0,_n=Object.values(bt.queries.query);un<_n.length;un++)for(var An,yn,kn,jn=0,Ln=(An=_n[un]).slice();jn<Ln.length;jn++)(yn=Ln[jn]).res!=null&&st.mutatedParts&&(vt&&!yn.dirty?(kn=Object.isFrozen(yn.res),kn=P0(yn.res,yn.req,It,wt,yn,kn),yn.dirty?(q(An,yn),yn.subscribers.forEach(function(er){return Ct.add(er)})):kn!==yn.res&&(yn.res=kn,yn.promise=Ze.resolve({result:kn}))):(yn.dirty&&q(An,yn),yn.subscribers.forEach(function(er){return Ct.add(er)})))}}}Ct.forEach(function(er){return er()})}}},st.addEventListener("abort",He(!1),{signal:it}),st.addEventListener("error",He(!1),{signal:it}),st.addEventListener("complete",He(!0),{signal:it})),st},table:function(ve){var $e=X.table(ve),He=$e.schema.primaryKey;return r(r({},$e),{mutate:function(qe){var it=ze.trans;if(He.outbound||it.db._options.cache==="disabled"||it.explicit||it.idbtrans.mode!=="readwrite")return $e.mutate(qe);var st=fh["idb://".concat(re,"/").concat(ve)];return st?(it=$e.mutate(qe),qe.type!=="add"&&qe.type!=="put"||!(50<=qe.values.length||k0(He,qe).some(function(vt){return vt==null}))?(st.optimisticOps.push(qe),qe.mutatedParts&&x0(qe.mutatedParts),it.then(function(vt){0<vt.numFailures&&(q(st.optimisticOps,qe),(vt=ec(0,qe,vt))&&st.optimisticOps.push(vt),qe.mutatedParts&&x0(qe.mutatedParts))}),it.catch(function(){q(st.optimisticOps,qe),qe.mutatedParts&&x0(qe.mutatedParts)})):it.then(function(vt){var Ct=ec(0,r(r({},qe),{values:qe.values.map(function(kt,dt){var Rt;return vt.failures[dt]?kt:(kt=(Rt=He.keyPath)!==null&&Rt!==void 0&&Rt.includes(".")?A(kt):r({},kt),E(kt,He.keyPath,vt.results[dt]),kt)})}),vt);st.optimisticOps.push(Ct),queueMicrotask(function(){return qe.mutatedParts&&x0(qe.mutatedParts)})}),it):$e.mutate(qe)},query:function(qe){if(!Mg(ze,$e)||!O0("query",qe))return $e.query(qe);var it=((Ct=ze.trans)===null||Ct===void 0?void 0:Ct.db._options.cache)==="immutable",dt=ze,st=dt.requery,vt=dt.signal,Ct=function(wt,It,xt,Ut){var Xt=fh["idb://".concat(wt,"/").concat(It)];if(!Xt)return[];if(!(It=Xt.queries[xt]))return[null,!1,Xt,null];var en=It[(Ut.query?Ut.query.index.name:null)||""];if(!en)return[null,!1,Xt,null];switch(xt){case"query":var un=en.find(function(_n){return _n.req.limit===Ut.limit&&_n.req.values===Ut.values&&j4(_n.req.query.range,Ut.query.range)});return un?[un,!0,Xt,en]:[en.find(function(_n){return("limit"in _n.req?_n.req.limit:1/0)>=Ut.limit&&(!Ut.values||_n.req.values)&&B4(_n.req.query.range,Ut.query.range)}),!1,Xt,en];case"count":return un=en.find(function(_n){return j4(_n.req.query.range,Ut.query.range)}),[un,!!un,Xt,en]}}(re,ve,"query",qe),kt=Ct[0],dt=Ct[1],Rt=Ct[2],bt=Ct[3];return kt&&dt?kt.obsSet=qe.obsSet:(dt=$e.query(qe).then(function(wt){var It=wt.result;if(kt&&(kt.res=It),it){for(var xt=0,Ut=It.length;xt<Ut;++xt)Object.freeze(It[xt]);Object.freeze(It)}else wt.result=A(It);return wt}).catch(function(wt){return bt&&kt&&q(bt,kt),Promise.reject(wt)}),kt={obsSet:qe.obsSet,promise:dt,subscribers:new Set,type:"query",req:qe,dirty:!1},bt?bt.push(kt):(bt=[kt],(Rt=Rt||(fh["idb://".concat(re,"/").concat(ve)]={queries:{query:{},count:{}},objs:new Map,optimisticOps:[],unsignaledParts:{}})).queries.query[qe.query.index.name||""]=bt)),TI(kt,bt,st,vt),kt.promise.then(function(wt){return{result:P0(wt.result,qe,Rt==null?void 0:Rt.optimisticOps,$e,kt,it)}})}})}})}};function Bp(X,re){return new Proxy(X,{get:function(ve,$e,He){return $e==="db"?re:Reflect.get(ve,$e,He)}})}var Ps=(Ti.prototype.version=function(X){if(isNaN(X)||X<.1)throw new ue.Type("Given version is not a positive number");if(X=Math.round(10*X)/10,this.idbdb||this._state.isBeingOpened)throw new ue.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,X);var re=this._versions,ve=re.filter(function($e){return $e._cfg.version===X})[0];return ve||(ve=new this.Version(X),re.push(ve),re.sort(UC),ve.stores({}),this._state.autoSchema=!1,ve)},Ti.prototype._whenReady=function(X){var re=this;return this.idbdb&&(this._state.openComplete||ze.letThrough||this._vip)?X():new Ze(function(ve,$e){if(re._state.openComplete)return $e(new ue.DatabaseClosed(re._state.dbOpenError));if(!re._state.isBeingOpened){if(!re._state.autoOpen)return void $e(new ue.DatabaseClosed);re.open().catch(pe)}re._state.dbReadyPromise.then(ve,$e)}).then(X)},Ti.prototype.use=function(X){var re=X.stack,ve=X.create,$e=X.level,He=X.name;return He&&this.unuse({stack:re,name:He}),X=this._middlewares[re]||(this._middlewares[re]=[]),X.push({stack:re,create:ve,level:$e??10,name:He}),X.sort(function(qe,it){return qe.level-it.level}),this},Ti.prototype.unuse=function(X){var re=X.stack,ve=X.name,$e=X.create;return re&&this._middlewares[re]&&(this._middlewares[re]=this._middlewares[re].filter(function(He){return $e?He.create!==$e:!!ve&&He.name!==ve})),this},Ti.prototype.open=function(){var X=this;return nn(se,function(){return GC(X)})},Ti.prototype._close=function(){var X=this._state,re=Mt.indexOf(this);if(0<=re&&Mt.splice(re,1),this.idbdb){try{this.idbdb.close()}catch{}this.idbdb=null}X.isBeingOpened||(X.dbReadyPromise=new Ze(function(ve){X.dbReadyResolve=ve}),X.openCanceller=new Ze(function(ve,$e){X.cancelOpen=$e}))},Ti.prototype.close=function(ve){var re=(ve===void 0?{disableAutoOpen:!0}:ve).disableAutoOpen,ve=this._state;re?(ve.isBeingOpened&&ve.cancelOpen(new ue.DatabaseClosed),this._close(),ve.autoOpen=!1,ve.dbOpenError=new ue.DatabaseClosed):(this._close(),ve.autoOpen=this._options.autoOpen||ve.isBeingOpened,ve.openComplete=!1,ve.dbOpenError=null)},Ti.prototype.delete=function(X){var re=this;X===void 0&&(X={disableAutoOpen:!0});var ve=0<arguments.length&&typeof arguments[0]!="object",$e=this._state;return new Ze(function(He,qe){function it(){re.close(X);var st=re._deps.indexedDB.deleteDatabase(re.name);st.onsuccess=ot(function(){var vt,Ct,kt;vt=re._deps,Ct=re.name,kt=vt.indexedDB,vt=vt.IDBKeyRange,KC(kt)||Ct===zt||VC(kt,vt).delete(Ct).catch(pe),He()}),st.onerror=ia(qe),st.onblocked=re._fireOnBlocked}if(ve)throw new ue.InvalidArgument("Invalid closeOptions argument to db.delete()");$e.isBeingOpened?$e.dbReadyPromise.then(it):it()})},Ti.prototype.backendDB=function(){return this.idbdb},Ti.prototype.isOpen=function(){return this.idbdb!==null},Ti.prototype.hasBeenClosed=function(){var X=this._state.dbOpenError;return X&&X.name==="DatabaseClosed"},Ti.prototype.hasFailed=function(){return this._state.dbOpenError!==null},Ti.prototype.dynamicallyOpened=function(){return this._state.autoSchema},Object.defineProperty(Ti.prototype,"tables",{get:function(){var X=this;return a(this._allTables).map(function(re){return X._allTables[re]})},enumerable:!1,configurable:!0}),Ti.prototype.transaction=function(){var X=(function(re,ve,$e){var He=arguments.length;if(He<2)throw new ue.InvalidArgument("Too few arguments");for(var qe=new Array(He-1);--He;)qe[He-1]=arguments[He];return $e=qe.pop(),[re,P(qe),$e]}).apply(this,arguments);return this._transaction.apply(this,X)},Ti.prototype._transaction=function(X,re,ve){var $e=this,He=ze.trans;He&&He.db===this&&X.indexOf("!")===-1||(He=null);var qe,it,st=X.indexOf("?")!==-1;X=X.replace("!","").replace("?","");try{if(it=re.map(function(Ct){if(Ct=Ct instanceof $e.Table?Ct.name:Ct,typeof Ct!="string")throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return Ct}),X=="r"||X===Dn)qe=Dn;else{if(X!="rw"&&X!=Xn)throw new ue.InvalidArgument("Invalid transaction mode: "+X);qe=Xn}if(He){if(He.mode===Dn&&qe===Xn){if(!st)throw new ue.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");He=null}He&&it.forEach(function(Ct){if(He&&He.storeNames.indexOf(Ct)===-1){if(!st)throw new ue.SubTransaction("Table "+Ct+" not included in parent transaction.");He=null}}),st&&He&&!He.active&&(He=null)}}catch(Ct){return He?He._promise(null,function(kt,dt){dt(Ct)}):gt(Ct)}var vt=(function Ct(kt,dt,Rt,bt,wt){return Ze.resolve().then(function(){var It=ze.transless||ze,xt=kt._createTransaction(dt,Rt,kt._dbSchema,bt);if(xt.explicit=!0,It={trans:xt,transless:It},bt)xt.idbtrans=bt.idbtrans;else try{xt.create(),xt.idbtrans._explicit=!0,kt._state.PR1398_maxLoop=3}catch(en){return en.name===ee.InvalidState&&kt.isOpen()&&0<--kt._state.PR1398_maxLoop?(console.warn("Dexie: Need to reopen db"),kt.close({disableAutoOpen:!1}),kt.open().then(function(){return Ct(kt,dt,Rt,null,wt)})):gt(en)}var Ut,Xt=B(wt);return Xt&&$t(),It=Ze.follow(function(){var en;(Ut=wt.call(xt,xt))&&(Xt?(en=Gt.bind(null,null),Ut.then(en,en)):typeof Ut.next=="function"&&typeof Ut.throw=="function"&&(Ut=_0(Ut)))},It),(Ut&&typeof Ut.then=="function"?Ze.resolve(Ut).then(function(en){return xt.active?en:gt(new ue.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))}):It.then(function(){return Ut})).then(function(en){return bt&&xt._resolve(),xt._completion.then(function(){return en})}).catch(function(en){return xt._reject(en),gt(en)})})}).bind(null,this,qe,it,He,ve);return He?He._promise(qe,vt,"lock"):ze.trans?nn(ze.transless,function(){return $e._whenReady(vt)}):this._whenReady(vt)},Ti.prototype.table=function(X){if(!d(this._allTables,X))throw new ue.InvalidTable("Table ".concat(X," does not exist"));return this._allTables[X]},Ti);function Ti(X,re){var ve=this;this._middlewares={},this.verno=0;var $e=Ti.dependencies;this._options=re=r({addons:Ti.addons,autoOpen:!0,indexedDB:$e.indexedDB,IDBKeyRange:$e.IDBKeyRange,cache:"cloned"},re),this._deps={indexedDB:re.indexedDB,IDBKeyRange:re.IDBKeyRange},$e=re.addons,this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;var He,qe,it,st,vt,Ct={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:pe,dbReadyPromise:null,cancelOpen:pe,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3,autoOpen:re.autoOpen};Ct.dbReadyPromise=new Ze(function(dt){Ct.dbReadyResolve=dt}),Ct.openCanceller=new Ze(function(dt,Rt){Ct.cancelOpen=Rt}),this._state=Ct,this.name=X,this.on=ni(this,"populate","blocked","versionchange","close",{ready:[Ce,pe]}),this.on.ready.subscribe=C(this.on.ready.subscribe,function(dt){return function(Rt,bt){Ti.vip(function(){var wt,It=ve._state;It.openComplete?(It.dbOpenError||Ze.resolve().then(Rt),bt&&dt(Rt)):It.onReadyBeingFired?(It.onReadyBeingFired.push(Rt),bt&&dt(Rt)):(dt(Rt),wt=ve,bt||dt(function xt(){wt.on.ready.unsubscribe(Rt),wt.on.ready.unsubscribe(xt)}))})}}),this.Collection=(He=this,zr(Wi.prototype,function(Ut,xt){this.db=He;var bt=j,wt=null;if(xt)try{bt=xt()}catch(Xt){wt=Xt}var It=Ut._ctx,xt=It.table,Ut=xt.hook.reading.fire;this._ctx={table:xt,index:It.index,isPrimKey:!It.index||xt.schema.primKey.keyPath&&It.index===xt.schema.primKey.name,range:bt,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:wt,or:It.or,valueMapper:Ut!==he?Ut:null}})),this.Table=(qe=this,zr(on.prototype,function(dt,Rt,bt){this.db=qe,this._tx=bt,this.name=dt,this.schema=Rt,this.hook=qe._allTables[dt]?qe._allTables[dt].hook:ni(null,{creating:[xe,pe],reading:[_e,he],updating:[De,pe],deleting:[we,pe]})})),this.Transaction=(it=this,zr(kr.prototype,function(dt,Rt,bt,wt,It){var xt=this;this.db=it,this.mode=dt,this.storeNames=Rt,this.schema=bt,this.chromeTransactionDurability=wt,this.idbtrans=null,this.on=ni(this,"complete","error","abort"),this.parent=It||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new Ze(function(Ut,Xt){xt._resolve=Ut,xt._reject=Xt}),this._completion.then(function(){xt.active=!1,xt.on.complete.fire()},function(Ut){var Xt=xt.active;return xt.active=!1,xt.on.error.fire(Ut),xt.parent?xt.parent._reject(Ut):Xt&&xt.idbtrans&&xt.idbtrans.abort(),gt(Ut)})})),this.Version=(st=this,zr(A4.prototype,function(dt){this.db=st,this._cfg={version:dt,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})),this.WhereClause=(vt=this,zr(ra.prototype,function(dt,Rt,bt){if(this.db=vt,this._ctx={table:dt,index:Rt===":id"?null:Rt,or:bt},this._cmp=this._ascending=Ge,this._descending=function(wt,It){return Ge(It,wt)},this._max=function(wt,It){return 0<Ge(wt,It)?wt:It},this._min=function(wt,It){return Ge(wt,It)<0?wt:It},this._IDBKeyRange=vt._deps.IDBKeyRange,!this._IDBKeyRange)throw new ue.MissingAPI})),this.on("versionchange",function(dt){0<dt.newVersion?console.warn("Another connection wants to upgrade database '".concat(ve.name,"'. Closing db now to resume the upgrade.")):console.warn("Another connection wants to delete database '".concat(ve.name,"'. Closing db now to resume the delete request.")),ve.close({disableAutoOpen:!1})}),this.on("blocked",function(dt){!dt.newVersion||dt.newVersion<dt.oldVersion?console.warn("Dexie.delete('".concat(ve.name,"') was blocked")):console.warn("Upgrade '".concat(ve.name,"' blocked by other connection holding version ").concat(dt.oldVersion/10))}),this._maxKey=Yc(re.IDBKeyRange),this._createTransaction=function(dt,Rt,bt,wt){return new ve.Transaction(dt,Rt,bt,ve._options.chromeTransactionDurability,wt)},this._fireOnBlocked=function(dt){ve.on("blocked").fire(dt),Mt.filter(function(Rt){return Rt.name===ve.name&&Rt!==ve&&!Rt._state.vcFired}).map(function(Rt){return Rt.on("versionchange").fire(dt)})},this.use(Ku),this.use(H4),this.use(F4),this.use(_I),this.use(EI);var kt=new Proxy(this,{get:function(dt,Rt,bt){if(Rt==="_vip")return!0;if(Rt==="table")return function(It){return Bp(ve.table(It),kt)};var wt=Reflect.get(dt,Rt,bt);return wt instanceof on?Bp(wt,kt):Rt==="tables"?wt.map(function(It){return Bp(It,kt)}):Rt==="_createTransaction"?function(){return Bp(wt.apply(this,arguments),kt)}:wt}});this.vip=kt,$e.forEach(function(dt){return dt(ve)})}var Ig,Qs=typeof Symbol<"u"&&"observable"in Symbol?Symbol.observable:"@@observable",kI=(YC.prototype.subscribe=function(X,re,ve){return this._subscribe(X&&typeof X!="function"?X:{next:X,error:re,complete:ve})},YC.prototype[Qs]=function(){return this},YC);function YC(X){this._subscribe=X}try{Ig={indexedDB:o.indexedDB||o.mozIndexedDB||o.webkitIndexedDB||o.msIndexedDB,IDBKeyRange:o.IDBKeyRange||o.webkitIDBKeyRange}}catch{Ig={indexedDB:null,IDBKeyRange:null}}function z4(X){var re,ve=!1,$e=new kI(function(He){var qe=B(X),it,st=!1,vt={},Ct={},kt={get closed(){return st},unsubscribe:function(){st||(st=!0,it&&it.abort(),dt&&qn.storagemutated.unsubscribe(bt))}};He.start&&He.start(kt);var dt=!1,Rt=function(){return Tt(wt)},bt=function(It){sf(vt,It),No(Ct,vt)&&Rt()},wt=function(){var It,xt,Ut;!st&&Ig.indexedDB&&(vt={},It={},it&&it.abort(),it=new AbortController,Ut=function(Xt){var en=Vt();try{qe&&$t();var un=At(X,Xt);return un=qe?un.finally(Gt):un}finally{en&&Kt()}}(xt={subscr:It,signal:it.signal,requery:Rt,querier:X,trans:null}),Promise.resolve(Ut).then(function(Xt){ve=!0,re=Xt,st||xt.signal.aborted||(vt={},function(en){for(var un in en)if(d(en,un))return;return 1}(Ct=It)||dt||(qn(Gc,bt),dt=!0),Tt(function(){return!st&&He.next&&He.next(Xt)}))},function(Xt){ve=!1,["DatabaseClosedError","AbortError"].includes(Xt==null?void 0:Xt.name)||st||Tt(function(){st||He.error&&He.error(Xt)})}))};return setTimeout(Rt,0),kt});return $e.hasValue=function(){return ve},$e.getValue=function(){return re},$e}var lf=Ps;function M0(X){var re=Gu;try{Gu=!0,qn.storagemutated.fire(X),w0(X,!0)}finally{Gu=re}}h(lf,r(r({},me),{delete:function(X){return new lf(X,{addons:[]}).delete()},exists:function(X){return new lf(X,{addons:[]}).open().then(function(re){return re.close(),!0}).catch("NoSuchDatabaseError",function(){return!1})},getDatabaseNames:function(X){try{return re=lf.dependencies,ve=re.indexedDB,re=re.IDBKeyRange,(KC(ve)?Promise.resolve(ve.databases()).then(function($e){return $e.map(function(He){return He.name}).filter(function(He){return He!==zt})}):VC(ve,re).toCollection().primaryKeys()).then(X)}catch{return gt(new ue.MissingAPI)}var re,ve},defineClass:function(){return function(X){l(this,X)}},ignoreTransaction:function(X){return ze.trans?nn(ze.transless,X):X()},vip:qC,async:function(X){return function(){try{var re=_0(X.apply(this,arguments));return re&&typeof re.then=="function"?re:Ze.resolve(re)}catch(ve){return gt(ve)}}},spawn:function(X,re,ve){try{var $e=_0(X.apply(ve,re||[]));return $e&&typeof $e.then=="function"?$e:Ze.resolve($e)}catch(He){return gt(He)}},currentTransaction:{get:function(){return ze.trans||null}},waitFor:function(X,re){return re=Ze.resolve(typeof X=="function"?lf.ignoreTransaction(X):X).timeout(re||6e4),ze.trans?ze.trans.waitFor(re):re},Promise:Ze,debug:{get:function(){return Te},set:function(X){ke(X)}},derive:v,extend:l,props:h,override:C,Events:ni,on:qn,liveQuery:z4,extendObservabilitySet:sf,getByKeyPath:x,setByKeyPath:E,delByKeyPath:function(X,re){typeof re=="string"?E(X,re,void 0):"length"in re&&[].map.call(re,function(ve){E(X,ve,void 0)})},shallowClone:k,deepClone:A,getObjectDiff:T0,cmp:Ge,asap:T,minKey:-1/0,addons:[],connections:Mt,errnames:ee,dependencies:Ig,cache:fh,semVer:"4.0.10",version:"4.0.10".split(".").map(function(X){return parseInt(X)}).reduce(function(X,re,ve){return X+re/Math.pow(10,2*ve)})})),lf.maxKey=Yc(lf.dependencies.IDBKeyRange),typeof dispatchEvent<"u"&&typeof addEventListener<"u"&&(qn(Gc,function(X){Gu||(X=new CustomEvent(ch,{detail:X}),Gu=!0,dispatchEvent(X),Gu=!1)}),addEventListener(ch,function(X){X=X.detail,Gu||M0(X)}));var Qc,Gu=!1,XC=function(){};return typeof BroadcastChannel<"u"&&((XC=function(){(Qc=new BroadcastChannel(ch)).onmessage=function(X){return X.data&&M0(X.data)}})(),typeof Qc.unref=="function"&&Qc.unref(),qn(Gc,function(X){Gu||Qc.postMessage(X)})),typeof addEventListener<"u"&&(addEventListener("pagehide",function(X){if(!Ps.disableBfCache&&X.persisted){Te&&console.debug("Dexie: handling persisted pagehide"),Qc!=null&&Qc.close();for(var re=0,ve=Mt;re<ve.length;re++)ve[re].close({disableAutoOpen:!1})}}),addEventListener("pageshow",function(X){!Ps.disableBfCache&&X.persisted&&(Te&&console.debug("Dexie: handling persisted pageshow"),XC(),M0({all:new Ya(-1/0,[[]])}))})),Ze.rejectionMapper=function(X,re){return!X||X instanceof Y||X instanceof TypeError||X instanceof SyntaxError||!X.name||!ye[X.name]?X:(re=new ye[X.name](re||X.message,X),"stack"in X&&m(re,"stack",{get:function(){return this.inner.stack}}),re)},ke(Te),r(Ps,Object.freeze({__proto__:null,Dexie:Ps,liveQuery:z4,Entity:Ae,cmp:Ge,PropModSymbol:tr,PropModification:Ir,replacePrefix:function(X,re){return new Ir({replacePrefix:[X,re]})},add:function(X){return new Ir({add:X})},remove:function(X){return new Ir({remove:X})},default:Ps,RangeSet:Ya,mergeRanges:af,rangesOverlap:dh}),{default:Ps}),Ps})})(uxe);var Upt=uxe.exports;const wj=hi(Upt),Pne=Symbol.for("Dexie"),ok=globalThis[Pne]||(globalThis[Pne]=wj);if(wj.semVer!==ok.semVer)throw new Error(`Two different versions of Dexie loaded in the same app: ${wj.semVer} and ${ok.semVer}`);const{liveQuery:Wpt,mergeRanges:Lfn,rangesOverlap:Ffn,RangeSet:jfn,cmp:Bfn,Entity:Hfn,PropModSymbol:zfn,PropModification:Ufn,replacePrefix:Wfn,add:Vfn,remove:Kfn}=ok;class dxe extends ok{constructor(){super("bytedesk");xi(this,"threads");xi(this,"messages");this.version(1).stores({threads:"++id, uid",messages:"++id, uid"})}async createMessage(n){return console.log("useIndexedDB createMessage",n.content),await iu.messages.put({uid:n.uid,type:n.type,content:n.content,client:n.client,createdAt:n.createdAt,status:"unread",threadTopic:n.threadTopic})}async getAllMessages(){return(await iu.messages.toArray()).map(r=>({uid:r.uid||"",type:r.type||"",content:r.content||"",client:r.client||"",createdAt:r.createdAt||"",status:r.status||"",threadTopic:r.threadTopic||"",user:{uid:r.userUid||"",nickname:r.userNickname||"",avatar:r.userAvatar||""}}))}async getMessage(n){return await iu.messages.get(n)}async updateMessage(n,r){return await iu.messages.update(n,{content:r})}async deleteMessage(n){return await iu.messages.delete(n)}subscribeMessages(){Wpt(()=>this.messages.toArray()).subscribe({next:r=>{const i=r.map(o=>o.uid);console.log("messagesObservable message uids",i)}})}async createThread(n){var r,i,o;return console.log("useIndexedDB createThread",n.topic),await iu.threads.put({uid:n.uid,type:n.type,topic:n.topic,state:n.state,extra:n.extra,updatedAt:n.updatedAt,userUid:(r=n.user)==null?void 0:r.uid,userNickname:(i=n.user)==null?void 0:i.nickname,userAvatar:(o=n.user)==null?void 0:o.avatar})}async getAllThreads(){return(await iu.threads.toArray()).map(r=>({uid:r.uid||"",type:r.type||"",topic:r.topic||"",status:r.state||"",extra:r.extra||"",createdAt:r.updatedAt||"",user:{uid:r.userUid||"",nickname:r.userNickname||"",avatar:r.userAvatar||""}}))}async getThread(n){return await iu.threads.get(n)}async updateThread(n,r){return await iu.threads.update(n,r)}async deleteThread(n){return await iu.threads.delete(n)}}const iu=new dxe;let Xo,Ml,Il,oy=!1;const Vpt=({uid:e,username:t,accessToken:n})=>{if(n===""||n==null){console.log("accessToken is empty, don't connect mqtt");return}if(Ml=qa.getState().userInfo,Il=Kv.getState().agentInfo,oy){console.log("mqtt is connecting");return}if(Xo&&Xo.connected){console.log("mqtt already connected");return}if(Xo&&Xo.reconnecting){console.log("mqtt already reconnecting");return}oy=!0;const r=qa.getState().deviceUid,o={keepalive:30,clientId:e+"/"+So+"/"+r,username:t,password:n,clean:!1,path:"/websocket",reconnectPeriod:5e3,connectTimeout:30*1e3,reschedulePings:!0,rejectUnauthorized:!1,log(...a){pv&&console.log("mqtt debug log",...a)}};console.log("mqtt start connect:",o),Xo=MAe.connect(I$e(),o),Xo.on("connect",()=>{console.log("mqtt event connected"),oy=!1,Dr.emit(nD)}),Xo.on("message",async function(a,s,l){console.log("mqtt receive message topic:",a,l);const c=_me.Message.deserializeBinary(s),u=Sd.getState().currentThread,d={uid:c.getThread().getUid(),type:c.getThread().getType(),topic:c.getThread().getTopic(),content:c.getContent(),updatedAt:c.getCreatedat(),unreadCount:0,user:{uid:c.getThread().getUser().getUid(),nickname:c.getThread().getUser().getNickname(),avatar:c.getThread().getUser().getAvatar()}},h={uid:c.getUid(),createdAt:c.getCreatedat(),client:c.getClient(),type:c.getType(),status:c.getStatus(),user:{uid:c.getUser().getUid(),nickname:c.getUser().getNickname(),avatar:c.getUser().getAvatar()},content:c.getContent(),threadTopic:c.getThread().getTopic()};if(Ypt(c,Ml,Il))switch(c.getType()){case gD:case mD:mA(c);return;case hD:case pD:return;case VX:return;case qX:console.log("self transfer message"),Rne(h,d);break;case GX:console.log("self transfer accept message"),Ane(h,d);return;case YX:console.log("self transfer reject message"),Nne(h,d);return;case KX:console.log("self recall message"),Dne(h);return;case Qw:console.log("thread closed message"),Sd.getState().closeThread(d.topic);break;default:c.setStatus(dD)}else switch(c.getType()){case gD:case mD:mA(c);return;case hD:case pD:$ne(u,d,c.getType());return;case Yw:$ne(u,d,c.getType());break;case VX:Xpt(c,u,d);return;case VPe:case KPe:case qPe:case GPe:case YPe:case XPe:mA(c);return;case qX:console.log("transfer message"),Rne(h,d);break;case GX:console.log("transfer accept message"),Ane(h,d);return;case YX:console.log("transfer reject message"),Nne(h,d);return;case KX:console.log("recall message"),Dne(h);return;case Xw:case Qw:console.log("thread closed message"),Sd.getState().closeThread(d.topic);break;default:console.log("send receive message type",c.getType()),Qpt(c,u,d)}console.log("mqtt message received",a,h,d),Tp.getState().addMessage(h),Dr.emit(qw,h);const p=Sd.getState().addThreadWithMessage(d,h);console.log("unreadCount",p);try{await iu.createMessage(h),console.log("Sent message stored in IndexedDB:",h)}catch(m){console.error("Error storing sent message in IndexedDB:",m)}}),Xo.on("packetsend",a=>{console.log("mqtt event packetsend",a)}),Xo.on("packetreceive",a=>{console.log("mqtt event packetreceive",a,a.cmd),a.cmd==="publish"||a.cmd==="pingresp"&&console.log("mqtt event packetreceive pingresp")}),Xo.on("reconnect",()=>{console.log("mqtt event reconnect")}),Xo.on("close",()=>{console.log("mqtt event close"),oy=!1,Dr.emit(iD)}),Xo.on("disconnect",()=>{console.error("mqtt event disconnected"),oy=!1,Dr.emit(oD)}),Xo.on("offline",()=>{console.log("mqtt event offline"),oy=!1,Dr.emit(rD)}),Xo.on("error",()=>{console.log("mqtt event error"),Dr.emit(aD)}),Xo.on("end",()=>{console.log("mqtt event end"),Dr.emit(sD)})},Mne=new Set,fxe=(e,t)=>{console.log("mqtt mqttSendReceiptReceivedMessage",e),Mne.has(e)||(Mne.add(e),hxe(iO(),mD,e,t))},Ine=new Set,Kpt=(e,t)=>{console.log("mqtt mqttSendReceiptReadMessage",e),Ine.has(e)||(Ine.add(e),hxe(iO(),gD,e,t))},hxe=async(e,t,n,r)=>{var o,a,s,l,c,u,d,h;console.log("mqtt mqttSendMessage",n);const i=ULe();if(Xo&&Xo.connected){const p=new $Ae.Thread;p.setUid(r.uid),p.setType(r.type),p.setTopic(r.topic);const m=new iZ.User;m.setUid((o=r.user)==null?void 0:o.uid),m.setNickname((a=r.user)==null?void 0:a.nickname),m.setAvatar((s=r.user)==null?void 0:s.avatar),p.setUser(m);const v=new iZ.User;(Il==null?void 0:Il.uid)!=""&&((r==null?void 0:r.type)===BX||(r==null?void 0:r.type)===HX)?(v.setUid(Il.uid),v.setNickname(Il.nickname),v.setAvatar(Il.avatar),v.setType(FX)):(v.setUid(Ml.uid),v.setNickname(Ml.nickname),v.setAvatar(Ml.avatar),v.setType(jX));const y={orgUid:(l=Ml==null?void 0:Ml.currentOrganization)==null?void 0:l.uid},S=new _me.Message;S.setUid(e),S.setType(t),S.setStatus(WX),S.setCreatedat(i),S.setClient(So),S.setContent(n),S.setUser(v),S.setThread(p),S.setExtra(JSON.stringify(y));const b=S.serializeBinary();Xo.publish(r.topic,b);try{const C={uid:S.getUid(),type:S.getType(),content:S.getContent(),client:S.getClient(),createdAt:S.getCreatedat(),status:S.getStatus(),threadTopic:S.getThread().getTopic(),user:{uid:S.getUser().getUid(),nickname:S.getUser().getNickname(),avatar:S.getUser().getAvatar()}};await iu.createMessage(C),console.log("Sent message stored in IndexedDB:",C)}catch(C){console.error("Error storing sent message in IndexedDB:",C)}}else{console.log("mqttClient is disconnect, use http rest api");const p={uid:r.uid,type:r.type,topic:r.topic,user:{uid:(c=r.user)==null?void 0:c.uid,nickname:(u=r.user)==null?void 0:u.nickname,avatar:(d=r.user)==null?void 0:d.avatar}};let m;(Il==null?void 0:Il.uid)!=""&&((r==null?void 0:r.type)===BX||(r==null?void 0:r.type)===HX)?m={uid:Il.uid,nickname:Il.nickname,avatar:Il.avatar,type:FX}:m={uid:Ml.uid,nickname:Ml.nickname,avatar:Ml.avatar,type:jX};const v={orgUid:(h=Ml==null?void 0:Ml.currentOrganization)==null?void 0:h.uid},y={uid:e,type:t,status:WX,createdAt:i,client:So,content:n,extra:JSON.stringify(v),user:m,thread:p};Gpt(y)}},pA=()=>{Xo?Xo.end():console.log("mqttClient is null")},qpt=()=>Xo&&Xo.connected,Gpt=async e=>{const t=JSON.stringify(e),n=await H$e(t);if(console.log("sendHttpMessage:",n.data),n.data.code===200){Tp.getState().updateMessageStatus(e==null?void 0:e.uid,dD);const r={uid:e==null?void 0:e.uid,type:dD};Dr.emit(Gfe,JSON.stringify(r))}else Wn.error(n.data.message)},Ypt=(e,t,n)=>e.getUser().getUid()===(t==null?void 0:t.uid)||e.getUser().getUid()===(n==null?void 0:n.uid);function mA(e){console.log("update message status:",e.getContent(),e.getType()),Tp.getState().updateMessageStatus(e.getContent(),e.getType());const t={uid:e.getContent(),type:e.getType()};Dr.emit(Gfe,JSON.stringify(t))}function $ne(e,t,n){(e==null?void 0:e.topic)===(t==null?void 0:t.topic)&&(n===hD?Dr.emit(lPe):n===pD?Dr.emit(cPe):n===Yw&&Dr.emit(uPe))}function Xpt(e,t,n){(t==null?void 0:t.topic)===(n==null?void 0:n.topic)&&Dr.emit(dPe,e.getContent())}function Rne(e,t){const n={message:e,thread:t};Dr.emit(lD,JSON.stringify(n))}function Ane(e,t){const n=JSON.parse(e==null?void 0:e.content);Tp.getState().updateMessageStatus(n.uid,LPe);const r={message:e,thread:t};Dr.emit(cD,JSON.stringify(r))}function Nne(e,t){const n=JSON.parse(e==null?void 0:e.content);Tp.getState().updateMessageStatus(n.uid,FPe);const r={message:e,thread:t};Dr.emit(uD,JSON.stringify(r))}function Dne(e){console.log("handleRecallMessage",e==null?void 0:e.uid,e==null?void 0:e.content),Tp.getState().recallMessage(e==null?void 0:e.content)}function Qpt(e,t,n){if(!qLe(n==null?void 0:n.topic)&&WLe(e==null?void 0:e.getType())){const r=e==null?void 0:e.getUid();fxe(r,n),(t==null?void 0:t.topic)===(n==null?void 0:n.topic)&&Kpt(r,n)}}const Zpt=Wc()(Kd(qd(Gd(e=>({devices:[],currentDevice:{uid:""},myDevice:{uid:""},addDevice(t){console.log("addDevice",t)},setCurrentDevice:t=>{e({currentDevice:t})},setMyDevice(t){e({myDevice:t})},resetDeviceInfo(){}})),{name:CPe}))),pxe=()=>{C_("https://www.weiyuai.cn/docs/zh-CN/")},C_=e=>{os?window.electronAPI.openUrl(e):window.open(e,"_blank")},Jpt=async()=>{if(os){const e=await window.electronAPI.getSystemInfo();console.log("systemInfo:",e)}else return console.log("not electron"),{platform:"web"}},mxe=async()=>os?await window.electronAPI.getIpAddress():(console.log("not electron"),[]),emt=async()=>{if(os){const e=await window.electronAPI.isWindowActive();return console.log("isWindowActive:",e),e}return null},tmt=(e,t)=>{os&&window.electronAPI.showElectronNotification(e,t)},nmt=e=>{os?window.electronAPI.setThemeMode(e):console.log("not electron")},_j=()=>{os&&window.electronAPI.loginSuccess()},rmt=()=>{os&&window.electronAPI.logoutSuccess()};function gxe(){console.debug("useUserInfo");const[e,t]=f.useState(""),{myDevice:n,setMyDevice:r}=Zpt(k=>({myDevice:k.myDevice,setMyDevice:k.setMyDevice})),{userInfo:i,deviceUid:o,setUserInfo:a,setDeviceUid:s}=qa(k=>({userInfo:k.userInfo,deviceUid:k.deviceUid,setUserInfo:k.setUserInfo,setDeviceUid:k.setDeviceUid})),{agentInfo:l}=Kv(k=>({agentInfo:k.agentInfo})),c=Tp(k=>k.addMessage),u=Sd(k=>k.updateThreadContent),d=f.useRef(!1),[h,p]=f.useState(!1);f.useEffect(()=>{p(!1),i.userOrganizationRoles&&i.userOrganizationRoles.forEach(k=>{k.roles.forEach(M=>{M.name===JPe&&p(!0)})})},[i.userOrganizationRoles]);const[m,v]=f.useState(!1);f.useEffect(()=>{v(!1),i.userOrganizationRoles&&i.userOrganizationRoles.forEach(k=>{k.roles.forEach(M=>{M.name===eMe&&v(!0)})})},[i.userOrganizationRoles]);const[y,S]=f.useState(!1);f.useEffect(()=>{S(!1),i.userOrganizationRoles&&i.userOrganizationRoles.forEach(k=>{k.roles.forEach(M=>{M.name===tMe&&S(!0)})})},[i.userOrganizationRoles]);const[b,C]=f.useState(!1);f.useEffect(()=>{C(!1),i.userOrganizationRoles&&i.userOrganizationRoles.forEach(k=>{k.roles.forEach(M=>{M.name===nMe&&C(!0)})})},[i.userOrganizationRoles]);const _="",T=async()=>{const k=await mxe();console.log("ipAddress",e,k),k.length>0&&(t(k[0]),n.ip=k[0],r(n))},x=async()=>{var M,P;if(d.current)return;d.current=!0;const k=await B$e(l==null?void 0:l.uid);console.log("getAgentMessageUnread response:",k==null?void 0:k.data),(P=(M=k==null?void 0:k.data)==null?void 0:M.data)==null||P.forEach(D=>{console.log("getAgentMessageUnread item:",D),c(D);const R=u(D.threadTopic,D.content);R&&fxe(D==null?void 0:D.uid,R)}),d.current=!1};return f.useEffect(()=>{b&&x()},[b]),f.useEffect(()=>{console.log("useUserInfo useEffect"),(o===void 0||o==="")&&s(iO()),T()},[]),{userInfo:i,setUserInfo:a,agentInfo:l,handleUpdateAgentStatus:async k=>{const M={...l,status:k};Wn.loading("正在更新状态");const P=await j$e(M);console.log("updateAgentStatus:",k,P.data),P.data.code===200?(Wn.destroy(),Wn.success("状态更新成功")):(Wn.destroy(),Wn.error("状态更新失败"))},avatar:_,hasRoleAgent:b,hasRoleSuper:h,hasRoleAdmin:m,hasRoleMember:y}}const qs=f.createContext({}),imt=({children:e})=>{const[t,n]=f.useState(!1),[r,i]=f.useState(!1),o=nE(M=>M.accessToken),a=rMe(M=>M.settings),{userInfo:s,setUserInfo:l,agentInfo:c,handleUpdateAgentStatus:u,hasRoleAgent:d,hasRoleSuper:h,hasRoleAdmin:p,hasRoleMember:m}=gxe(),v=f.useMemo(()=>!!o&&o.trim().length>0,[o]),{themeMode:y,setThemeMode:S,isDarkMode:b}=che(),[C,_]=f.useState(TT),T=M=>{let P;M==="en"?P=eQ:M==="zh-cn"?P=TT:M==="zh-tw"?P=ZMe:P=TT,console.log("changeLocale localeValue:",P),_(P),localStorage.setItem(RX,P.locale)},[x,E]=f.useState(ab),k=M=>{E(M),localStorage.setItem(AX,M)};return f.useEffect(()=>{const M=localStorage.getItem(RX);_(M==="en"?eQ:TT);const P=localStorage.getItem(AX);E(P===ab?ab:P===mv?mv:J8)},[]),U.jsx(qs.Provider,{value:{isCustomServer:t,setIsCustomServer:n,isLoggedIn:v,settings:a,isDarkMode:b,themeMode:y,setThemeMode:S,locale:C,changeLocale:T,mode:x,changeMode:k,isPingLoading:r,setPingLoading:i,userInfo:s,setUserInfo:l,agentInfo:c,handleUpdateAgentStatus:u,hasRoleAgent:d,hasRoleSuper:h,hasRoleAdmin:p,hasRoleMember:m},children:e})};var PP=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},MP=typeof window>"u"||"Deno"in globalThis;function cd(){}function omt(e,t){return typeof e=="function"?e(t):e}function amt(e){return typeof e=="number"&&e>=0&&e!==1/0}function smt(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Lne(e,t){return typeof e=="function"?e(t):e}function lmt(e,t){return typeof e=="function"?e(t):e}function Fne(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(a){if(r){if(t.queryHash!==pV(a,t.options))return!1}else if(!w_(t.queryKey,a))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||i&&i!==t.state.fetchStatus||o&&!o(t))}function jne(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(x_(t.options.mutationKey)!==x_(o))return!1}else if(!w_(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function pV(e,t){return((t==null?void 0:t.queryKeyHashFn)||x_)(e)}function x_(e){return JSON.stringify(e,(t,n)=>Ej(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function w_(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!w_(e[n],t[n])):!1}function vxe(e,t){if(e===t)return e;const n=Bne(e)&&Bne(t);if(n||Ej(e)&&Ej(t)){const r=n?e:Object.keys(e),i=r.length,o=n?t:Object.keys(t),a=o.length,s=n?[]:{};let l=0;for(let c=0;c<a;c++){const u=n?c:o[c];(!n&&r.includes(u)||n)&&e[u]===void 0&&t[u]===void 0?(s[u]=void 0,l++):(s[u]=vxe(e[u],t[u]),s[u]===e[u]&&e[u]!==void 0&&l++)}return i===a&&l===i?e:s}return t}function Bne(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ej(e){if(!Hne(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Hne(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Hne(e){return Object.prototype.toString.call(e)==="[object Object]"}function cmt(e){return new Promise(t=>{setTimeout(t,e)})}function umt(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?vxe(e,t):t}function dmt(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function fmt(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var mV=Symbol();function yxe(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===mV?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var N1,wm,_b,fue,hmt=(fue=class extends PP{constructor(){super();ar(this,N1);ar(this,wm);ar(this,_b);Nn(this,_b,t=>{if(!MP&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){Xe(this,wm)||this.setEventListener(Xe(this,_b))}onUnsubscribe(){var t;this.hasListeners()||((t=Xe(this,wm))==null||t.call(this),Nn(this,wm,void 0))}setEventListener(t){var n;Nn(this,_b,t),(n=Xe(this,wm))==null||n.call(this),Nn(this,wm,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){Xe(this,N1)!==t&&(Nn(this,N1,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof Xe(this,N1)=="boolean"?Xe(this,N1):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},N1=new WeakMap,wm=new WeakMap,_b=new WeakMap,fue),bxe=new hmt,Eb,_m,Tb,hue,pmt=(hue=class extends PP{constructor(){super();ar(this,Eb,!0);ar(this,_m);ar(this,Tb);Nn(this,Tb,t=>{if(!MP&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){Xe(this,_m)||this.setEventListener(Xe(this,Tb))}onUnsubscribe(){var t;this.hasListeners()||((t=Xe(this,_m))==null||t.call(this),Nn(this,_m,void 0))}setEventListener(t){var n;Nn(this,Tb,t),(n=Xe(this,_m))==null||n.call(this),Nn(this,_m,t(this.setOnline.bind(this)))}setOnline(t){Xe(this,Eb)!==t&&(Nn(this,Eb,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return Xe(this,Eb)}},Eb=new WeakMap,_m=new WeakMap,Tb=new WeakMap,hue),ak=new pmt;function mmt(){let e,t;const n=new Promise((i,o)=>{e=i,t=o});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function gmt(e){return Math.min(1e3*2**e,3e4)}function Sxe(e){return(e??"online")==="online"?ak.isOnline():!0}var Cxe=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function gA(e){return e instanceof Cxe}function xxe(e){let t=!1,n=0,r=!1,i;const o=mmt(),a=v=>{var y;r||(h(new Cxe(v)),(y=e.abort)==null||y.call(e))},s=()=>{t=!0},l=()=>{t=!1},c=()=>bxe.isFocused()&&(e.networkMode==="always"||ak.isOnline())&&e.canRun(),u=()=>Sxe(e.networkMode)&&e.canRun(),d=v=>{var y;r||(r=!0,(y=e.onSuccess)==null||y.call(e,v),i==null||i(),o.resolve(v))},h=v=>{var y;r||(r=!0,(y=e.onError)==null||y.call(e,v),i==null||i(),o.reject(v))},p=()=>new Promise(v=>{var y;i=S=>{(r||c())&&v(S)},(y=e.onPause)==null||y.call(e)}).then(()=>{var v;i=void 0,r||(v=e.onContinue)==null||v.call(e)}),m=()=>{if(r)return;let v;const y=n===0?e.initialPromise:void 0;try{v=y??e.fn()}catch(S){v=Promise.reject(S)}Promise.resolve(v).then(d).catch(S=>{var x;if(r)return;const b=e.retry??(MP?0:3),C=e.retryDelay??gmt,_=typeof C=="function"?C(n,S):C,T=b===!0||typeof b=="number"&&n<b||typeof b=="function"&&b(n,S);if(t||!T){h(S);return}n++,(x=e.onFail)==null||x.call(e,n,S),cmt(_).then(()=>c()?void 0:p()).then(()=>{t?h(S):m()})})};return{promise:o,cancel:a,continue:()=>(i==null||i(),o),cancelRetry:s,continueRetry:l,canStart:u,start:()=>(u()?m():p().then(m),o)}}function vmt(){let e=[],t=0,n=s=>{s()},r=s=>{s()},i=s=>setTimeout(s,0);const o=s=>{t?e.push(s):i(()=>{n(s)})},a=()=>{const s=e;e=[],s.length&&i(()=>{r(()=>{s.forEach(l=>{n(l)})})})};return{batch:s=>{let l;t++;try{l=s()}finally{t--,t||a()}return l},batchCalls:s=>(...l)=>{o(()=>{s(...l)})},schedule:o,setNotifyFunction:s=>{n=s},setBatchNotifyFunction:s=>{r=s},setScheduler:s=>{i=s}}}var ul=vmt(),D1,pue,wxe=(pue=class{constructor(){ar(this,D1)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),amt(this.gcTime)&&Nn(this,D1,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(MP?1/0:5*60*1e3))}clearGcTimeout(){Xe(this,D1)&&(clearTimeout(Xe(this,D1)),Nn(this,D1,void 0))}},D1=new WeakMap,pue),kb,Ob,au,Ns,q_,L1,ud,Mh,mue,ymt=(mue=class extends wxe{constructor(t){super();ar(this,ud);ar(this,kb);ar(this,Ob);ar(this,au);ar(this,Ns);ar(this,q_);ar(this,L1);Nn(this,L1,!1),Nn(this,q_,t.defaultOptions),this.setOptions(t.options),this.observers=[],Nn(this,au,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Nn(this,kb,Smt(this.options)),this.state=t.state??Xe(this,kb),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=Xe(this,Ns))==null?void 0:t.promise}setOptions(t){this.options={...Xe(this,q_),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&Xe(this,au).remove(this)}setData(t,n){const r=umt(this.state.data,t,this.options);return Zn(this,ud,Mh).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Zn(this,ud,Mh).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=Xe(this,Ns))==null?void 0:r.promise;return(i=Xe(this,Ns))==null||i.cancel(t),n?n.then(cd).catch(cd):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Xe(this,kb))}isActive(){return this.observers.some(t=>lmt(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===mV||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!smt(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=Xe(this,Ns))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=Xe(this,Ns))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),Xe(this,au).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(Xe(this,Ns)&&(Xe(this,L1)?Xe(this,Ns).cancel({revert:!0}):Xe(this,Ns).cancelRetry()),this.scheduleGc()),Xe(this,au).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Zn(this,ud,Mh).call(this,{type:"invalidate"})}fetch(t,n){var l,c,u;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(Xe(this,Ns))return Xe(this,Ns).continueRetry(),Xe(this,Ns).promise}if(t&&this.setOptions(t),!this.options.queryFn){const d=this.observers.find(h=>h.options.queryFn);d&&this.setOptions(d.options)}const r=new AbortController,i=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(Nn(this,L1,!0),r.signal)})},o=()=>{const d=yxe(this.options,n),h={queryKey:this.queryKey,meta:this.meta};return i(h),Nn(this,L1,!1),this.options.persister?this.options.persister(d,h,this):d(h)},a={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};i(a),(l=this.options.behavior)==null||l.onFetch(a,this),Nn(this,Ob,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=a.fetchOptions)==null?void 0:c.meta))&&Zn(this,ud,Mh).call(this,{type:"fetch",meta:(u=a.fetchOptions)==null?void 0:u.meta});const s=d=>{var h,p,m,v;gA(d)&&d.silent||Zn(this,ud,Mh).call(this,{type:"error",error:d}),gA(d)||((p=(h=Xe(this,au).config).onError)==null||p.call(h,d,this),(v=(m=Xe(this,au).config).onSettled)==null||v.call(m,this.state.data,d,this)),this.scheduleGc()};return Nn(this,Ns,xxe({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:d=>{var h,p,m,v;if(d===void 0){s(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(d)}catch(y){s(y);return}(p=(h=Xe(this,au).config).onSuccess)==null||p.call(h,d,this),(v=(m=Xe(this,au).config).onSettled)==null||v.call(m,d,this.state.error,this),this.scheduleGc()},onError:s,onFail:(d,h)=>{Zn(this,ud,Mh).call(this,{type:"failed",failureCount:d,error:h})},onPause:()=>{Zn(this,ud,Mh).call(this,{type:"pause"})},onContinue:()=>{Zn(this,ud,Mh).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),Xe(this,Ns).start()}},kb=new WeakMap,Ob=new WeakMap,au=new WeakMap,Ns=new WeakMap,q_=new WeakMap,L1=new WeakMap,ud=new WeakSet,Mh=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...bmt(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return gA(i)&&i.revert&&Xe(this,Ob)?{...Xe(this,Ob),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),ul.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),Xe(this,au).notify({query:this,type:"updated",action:t})})},mue);function bmt(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Sxe(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Smt(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var xf,gue,Cmt=(gue=class extends PP{constructor(t={}){super();ar(this,xf);this.config=t,Nn(this,xf,new Map)}build(t,n,r){const i=n.queryKey,o=n.queryHash??pV(i,n);let a=this.get(o);return a||(a=new ymt({cache:this,queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(a)),a}add(t){Xe(this,xf).has(t.queryHash)||(Xe(this,xf).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=Xe(this,xf).get(t.queryHash);n&&(t.destroy(),n===t&&Xe(this,xf).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){ul.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return Xe(this,xf).get(t)}getAll(){return[...Xe(this,xf).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Fne(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Fne(t,r)):n}notify(t){ul.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){ul.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){ul.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},xf=new WeakMap,gue),wf,rl,F1,_f,um,vue,xmt=(vue=class extends wxe{constructor(t){super();ar(this,_f);ar(this,wf);ar(this,rl);ar(this,F1);this.mutationId=t.mutationId,Nn(this,rl,t.mutationCache),Nn(this,wf,[]),this.state=t.state||wmt(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){Xe(this,wf).includes(t)||(Xe(this,wf).push(t),this.clearGcTimeout(),Xe(this,rl).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Nn(this,wf,Xe(this,wf).filter(n=>n!==t)),this.scheduleGc(),Xe(this,rl).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){Xe(this,wf).length||(this.state.status==="pending"?this.scheduleGc():Xe(this,rl).remove(this))}continue(){var t;return((t=Xe(this,F1))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,a,s,l,c,u,d,h,p,m,v,y,S,b,C,_,T,x,E;Nn(this,F1,xxe({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(k,M)=>{Zn(this,_f,um).call(this,{type:"failed",failureCount:k,error:M})},onPause:()=>{Zn(this,_f,um).call(this,{type:"pause"})},onContinue:()=>{Zn(this,_f,um).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>Xe(this,rl).canRun(this)}));const n=this.state.status==="pending",r=!Xe(this,F1).canStart();try{if(!n){Zn(this,_f,um).call(this,{type:"pending",variables:t,isPaused:r}),await((o=(i=Xe(this,rl).config).onMutate)==null?void 0:o.call(i,t,this));const M=await((s=(a=this.options).onMutate)==null?void 0:s.call(a,t));M!==this.state.context&&Zn(this,_f,um).call(this,{type:"pending",context:M,variables:t,isPaused:r})}const k=await Xe(this,F1).start();return await((c=(l=Xe(this,rl).config).onSuccess)==null?void 0:c.call(l,k,t,this.state.context,this)),await((d=(u=this.options).onSuccess)==null?void 0:d.call(u,k,t,this.state.context)),await((p=(h=Xe(this,rl).config).onSettled)==null?void 0:p.call(h,k,null,this.state.variables,this.state.context,this)),await((v=(m=this.options).onSettled)==null?void 0:v.call(m,k,null,t,this.state.context)),Zn(this,_f,um).call(this,{type:"success",data:k}),k}catch(k){try{throw await((S=(y=Xe(this,rl).config).onError)==null?void 0:S.call(y,k,t,this.state.context,this)),await((C=(b=this.options).onError)==null?void 0:C.call(b,k,t,this.state.context)),await((T=(_=Xe(this,rl).config).onSettled)==null?void 0:T.call(_,void 0,k,this.state.variables,this.state.context,this)),await((E=(x=this.options).onSettled)==null?void 0:E.call(x,void 0,k,t,this.state.context)),k}finally{Zn(this,_f,um).call(this,{type:"error",error:k})}}finally{Xe(this,rl).runNext(this)}}},wf=new WeakMap,rl=new WeakMap,F1=new WeakMap,_f=new WeakSet,um=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),ul.batch(()=>{Xe(this,wf).forEach(r=>{r.onMutationUpdate(t)}),Xe(this,rl).notify({mutation:this,type:"updated",action:t})})},vue);function wmt(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var vc,G_,yue,_mt=(yue=class extends PP{constructor(t={}){super();ar(this,vc);ar(this,G_);this.config=t,Nn(this,vc,new Map),Nn(this,G_,Date.now())}build(t,n,r){const i=new xmt({mutationCache:this,mutationId:++jg(this,G_)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){const n=c5(t),r=Xe(this,vc).get(n)??[];r.push(t),Xe(this,vc).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=c5(t);if(Xe(this,vc).has(n)){const i=(r=Xe(this,vc).get(n))==null?void 0:r.filter(o=>o!==t);i&&(i.length===0?Xe(this,vc).delete(n):Xe(this,vc).set(n,i))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=Xe(this,vc).get(c5(t)))==null?void 0:r.find(i=>i.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=Xe(this,vc).get(c5(t)))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){ul.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...Xe(this,vc).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>jne(n,r))}findAll(t={}){return this.getAll().filter(n=>jne(t,n))}notify(t){ul.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return ul.batch(()=>Promise.all(t.map(n=>n.continue().catch(cd))))}},vc=new WeakMap,G_=new WeakMap,yue);function c5(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function zne(e){return{onFetch:(t,n)=>{var u,d,h,p,m;const r=t.options,i=(h=(d=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:d.fetchMore)==null?void 0:h.direction,o=((p=t.state.data)==null?void 0:p.pages)||[],a=((m=t.state.data)==null?void 0:m.pageParams)||[];let s={pages:[],pageParams:[]},l=0;const c=async()=>{let v=!1;const y=C=>{Object.defineProperty(C,"signal",{enumerable:!0,get:()=>(t.signal.aborted?v=!0:t.signal.addEventListener("abort",()=>{v=!0}),t.signal)})},S=yxe(t.options,t.fetchOptions),b=async(C,_,T)=>{if(v)return Promise.reject();if(_==null&&C.pages.length)return Promise.resolve(C);const x={queryKey:t.queryKey,pageParam:_,direction:T?"backward":"forward",meta:t.options.meta};y(x);const E=await S(x),{maxPages:k}=t.options,M=T?fmt:dmt;return{pages:M(C.pages,E,k),pageParams:M(C.pageParams,_,k)}};if(i&&o.length){const C=i==="backward",_=C?Emt:Une,T={pages:o,pageParams:a},x=_(r,T);s=await b(T,x,C)}else{const C=e??o.length;do{const _=l===0?a[0]??r.initialPageParam:Une(r,s);if(l>0&&_==null)break;s=await b(s,_),l++}while(l<C)}return s};t.options.persister?t.fetchFn=()=>{var v,y;return(y=(v=t.options).persister)==null?void 0:y.call(v,c,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function Une(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Emt(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Yo,Em,Tm,Pb,Mb,km,Ib,$b,bue,Tmt=(bue=class{constructor(e={}){ar(this,Yo);ar(this,Em);ar(this,Tm);ar(this,Pb);ar(this,Mb);ar(this,km);ar(this,Ib);ar(this,$b);Nn(this,Yo,e.queryCache||new Cmt),Nn(this,Em,e.mutationCache||new _mt),Nn(this,Tm,e.defaultOptions||{}),Nn(this,Pb,new Map),Nn(this,Mb,new Map),Nn(this,km,0)}mount(){jg(this,km)._++,Xe(this,km)===1&&(Nn(this,Ib,bxe.subscribe(async e=>{e&&(await this.resumePausedMutations(),Xe(this,Yo).onFocus())})),Nn(this,$b,ak.subscribe(async e=>{e&&(await this.resumePausedMutations(),Xe(this,Yo).onOnline())})))}unmount(){var e,t;jg(this,km)._--,Xe(this,km)===0&&((e=Xe(this,Ib))==null||e.call(this),Nn(this,Ib,void 0),(t=Xe(this,$b))==null||t.call(this),Nn(this,$b,void 0))}isFetching(e){return Xe(this,Yo).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return Xe(this,Em).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=Xe(this,Yo).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=Xe(this,Yo).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(Lne(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return Xe(this,Yo).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=Xe(this,Yo).get(r.queryHash),o=i==null?void 0:i.state.data,a=omt(t,o);if(a!==void 0)return Xe(this,Yo).build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return ul.batch(()=>Xe(this,Yo).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=Xe(this,Yo).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=Xe(this,Yo);ul.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=Xe(this,Yo),r={type:"active",...e};return ul.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=ul.batch(()=>Xe(this,Yo).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(cd).catch(cd)}invalidateQueries(e={},t={}){return ul.batch(()=>{if(Xe(this,Yo).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=ul.batch(()=>Xe(this,Yo).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(cd)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(cd)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=Xe(this,Yo).build(this,t);return n.isStaleByTime(Lne(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(cd).catch(cd)}fetchInfiniteQuery(e){return e.behavior=zne(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(cd).catch(cd)}ensureInfiniteQueryData(e){return e.behavior=zne(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return ak.isOnline()?Xe(this,Em).resumePausedMutations():Promise.resolve()}getQueryCache(){return Xe(this,Yo)}getMutationCache(){return Xe(this,Em)}getDefaultOptions(){return Xe(this,Tm)}setDefaultOptions(e){Nn(this,Tm,e)}setQueryDefaults(e,t){Xe(this,Pb).set(x_(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...Xe(this,Pb).values()];let n={};return t.forEach(r=>{w_(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){Xe(this,Mb).set(x_(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...Xe(this,Mb).values()];let n={};return t.forEach(r=>{w_(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...Xe(this,Tm).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=pV(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===mV&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...Xe(this,Tm).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){Xe(this,Yo).clear(),Xe(this,Em).clear()}},Yo=new WeakMap,Em=new WeakMap,Tm=new WeakMap,Pb=new WeakMap,Mb=new WeakMap,km=new WeakMap,Ib=new WeakMap,$b=new WeakMap,bue),kmt=f.createContext(void 0),Omt=({client:e,children:t})=>(f.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),U.jsx(kmt.Provider,{value:e,children:t}));/**
|
||
* @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 Po(){return Po=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},Po.apply(this,arguments)}var xa;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(xa||(xa={}));const Wne="popstate";function Pmt(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:a,hash:s}=r.location;return iS("",{pathname:o,search:a,hash:s},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:ag(i)}return _xe(t,n,null,e)}function Mmt(e){e===void 0&&(e={});function t(i,o){let{pathname:a="/",search:s="",hash:l=""}=Ip(i.location.hash.substr(1));return!a.startsWith("/")&&!a.startsWith(".")&&(a="/"+a),iS("",{pathname:a,search:s,hash:l},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(i,o){let a=i.document.querySelector("base"),s="";if(a&&a.getAttribute("href")){let l=i.location.href,c=l.indexOf("#");s=c===-1?l:l.slice(0,c)}return s+"#"+(typeof o=="string"?o:ag(o))}function r(i,o){kv(i.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(o)+")")}return _xe(t,n,r,e)}function oi(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function kv(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Imt(){return Math.random().toString(36).substr(2,8)}function Vne(e,t){return{usr:e.state,key:e.key,idx:t}}function iS(e,t,n,r){return n===void 0&&(n=null),Po({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ip(t):t,{state:n,key:t&&t.key||r||Imt()})}function ag(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 Ip(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 _xe(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=xa.Pop,l=null,c=u();c==null&&(c=0,a.replaceState(Po({},a.state,{idx:c}),""));function u(){return(a.state||{idx:null}).idx}function d(){s=xa.Pop;let y=u(),S=y==null?null:y-c;c=y,l&&l({action:s,location:v.location,delta:S})}function h(y,S){s=xa.Push;let b=iS(v.location,y,S);n&&n(b,y),c=u()+1;let C=Vne(b,c),_=v.createHref(b);try{a.pushState(C,"",_)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;i.location.assign(_)}o&&l&&l({action:s,location:v.location,delta:1})}function p(y,S){s=xa.Replace;let b=iS(v.location,y,S);n&&n(b,y),c=u();let C=Vne(b,c),_=v.createHref(b);a.replaceState(C,"",_),o&&l&&l({action:s,location:v.location,delta:0})}function m(y){let S=i.location.origin!=="null"?i.location.origin:i.location.href,b=typeof y=="string"?y:ag(y);return b=b.replace(/ $/,"%20"),oi(S,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,S)}let v={get action(){return s},get location(){return e(i,a)},listen(y){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Wne,d),l=y,()=>{i.removeEventListener(Wne,d),l=null}},createHref(y){return t(i,y)},createURL:m,encodeLocation(y){let S=m(y);return{pathname:S.pathname,search:S.search,hash:S.hash}},push:h,replace:p,go(y){return a.go(y)}};return v}var Zi;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Zi||(Zi={}));const $mt=new Set(["lazy","caseSensitive","path","id","index","children"]);function Rmt(e){return e.index===!0}function sk(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,o)=>{let a=[...n,String(o)],s=typeof i.id=="string"?i.id:a.join("-");if(oi(i.index!==!0||!i.children,"Cannot specify children on an index route"),oi(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),Rmt(i)){let l=Po({},i,t(i),{id:s});return r[s]=l,l}else{let l=Po({},i,t(i),{id:s,children:void 0});return r[s]=l,i.children&&(l.children=sk(i.children,t,a,r)),l}})}function p1(e,t,n){return n===void 0&&(n="/"),W3(e,t,n,!1)}function W3(e,t,n,r){let i=typeof t=="string"?Ip(t):t,o=fC(i.pathname||"/",n);if(o==null)return null;let a=Exe(e);Nmt(a);let s=null;for(let l=0;s==null&&l<a.length;++l){let c=Kmt(o);s=Wmt(a[l],c,r)}return s}function Amt(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 Exe(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(o,a,s)=>{let l={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};l.relativePath.startsWith("/")&&(oi(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=tp([r,l.relativePath]),u=n.concat(l);o.children&&o.children.length>0&&(oi(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Exe(o.children,t,u,c)),!(o.path==null&&!o.index)&&t.push({path:c,score:zmt(c,o.index),routesMeta:u})};return e.forEach((o,a)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,a);else for(let l of Txe(o.path))i(o,a,l)}),t}function Txe(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=Txe(r.join("/")),s=[];return s.push(...a.map(l=>l===""?o:[o,l].join("/"))),i&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function Nmt(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Umt(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Dmt=/^:[\w-]+$/,Lmt=3,Fmt=2,jmt=1,Bmt=10,Hmt=-2,Kne=e=>e==="*";function zmt(e,t){let n=e.split("/"),r=n.length;return n.some(Kne)&&(r+=Hmt),t&&(r+=Fmt),n.filter(i=>!Kne(i)).reduce((i,o)=>i+(Dmt.test(o)?Lmt:o===""?jmt:Bmt),r)}function Umt(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 Wmt(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,i={},o="/",a=[];for(let s=0;s<r.length;++s){let l=r[s],c=s===r.length-1,u=o==="/"?t:t.slice(o.length)||"/",d=qne({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},u),h=l.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=qne({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!d)return null;Object.assign(i,d.params),a.push({params:i,pathname:tp([o,d.pathname]),pathnameBase:Ymt(tp([o,d.pathnameBase])),route:h}),d.pathnameBase!=="/"&&(o=tp([o,d.pathnameBase]))}return a}function qne(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Vmt(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:r.reduce((c,u,d)=>{let{paramName:h,isOptional:p}=u;if(h==="*"){let v=s[d]||"";a=o.slice(0,o.length-v.length).replace(/(.)\/+$/,"$1")}const m=s[d];return p&&!m?c[h]=void 0:c[h]=(m||"").replace(/%2F/g,"/"),c},{}),pathname:o,pathnameBase:a,pattern:e}}function Vmt(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),kv(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,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function Kmt(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return kv(!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 fC(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 qmt(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Ip(e):e;return{pathname:n?n.startsWith("/")?n:Gmt(n,t):t,search:Xmt(r),hash:Qmt(i)}}function Gmt(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 vA(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 kxe(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function IP(e,t){let n=kxe(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function $P(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Ip(e):(i=Po({},e),oi(!i.pathname||!i.pathname.includes("?"),vA("?","pathname","search",i)),oi(!i.pathname||!i.pathname.includes("#"),vA("#","pathname","hash",i)),oi(!i.search||!i.search.includes("#"),vA("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,s;if(a==null)s=n;else{let d=t.length-1;if(!r&&a.startsWith("..")){let h=a.split("/");for(;h[0]==="..";)h.shift(),d-=1;i.pathname=h.join("/")}s=d>=0?t[d]:"/"}let l=qmt(i,s),c=a&&a!=="/"&&a.endsWith("/"),u=(o||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const tp=e=>e.join("/").replace(/\/\/+/g,"/"),Ymt=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Xmt=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Qmt=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class lk{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 RP(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Oxe=["post","put","patch","delete"],Zmt=new Set(Oxe),Jmt=["get",...Oxe],egt=new Set(Jmt),tgt=new Set([301,302,303,307,308]),ngt=new Set([307,308]),yA={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},rgt={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ux={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},gV=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,igt=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Pxe="remix-router-transitions";function Mxe(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;oi(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 et=e.detectErrorBoundary;i=ot=>({hasErrorBoundary:et(ot)})}else i=igt;let o={},a=sk(e.routes,i,void 0,o),s,l=e.basename||"/",c=e.dataStrategy||lgt,u=e.patchRoutesOnNavigation,d=Po({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),h=null,p=new Set,m=null,v=null,y=null,S=e.hydrationData!=null,b=p1(a,e.history.location,l),C=null;if(b==null&&!u){let et=Nl(404,{pathname:e.history.location.pathname}),{matches:ot,route:Qe}=ire(a);b=ot,C={[Qe.id]:et}}b&&!e.hydrationData&&an(b,a,e.history.location.pathname).active&&(b=null);let _;if(b)if(b.some(et=>et.route.lazy))_=!1;else if(!b.some(et=>et.route.loader))_=!0;else if(d.v7_partialHydration){let et=e.hydrationData?e.hydrationData.loaderData:null,ot=e.hydrationData?e.hydrationData.errors:null;if(ot){let Qe=b.findIndex(ct=>ot[ct.route.id]!==void 0);_=b.slice(0,Qe+1).every(ct=>!kj(ct.route,et,ot))}else _=b.every(Qe=>!kj(Qe.route,et,ot))}else _=e.hydrationData!=null;else if(_=!1,b=[],d.v7_partialHydration){let et=an(null,a,e.history.location.pathname);et.active&&et.matches&&(b=et.matches)}let T,x={historyAction:e.history.action,location:e.history.location,matches:b,initialized:_,navigation:yA,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||C,fetchers:new Map,blockers:new Map},E=xa.Pop,k=!1,M,P=!1,D=new Map,R=null,A=!1,H=!1,F=[],z=new Set,W=new Map,q=0,Z=-1,N=new Map,B=new Set,V=new Map,Y=new Map,ie=new Set,ce=new Map,fe=new Map,ee;function ne(){if(h=e.history.listen(et=>{let{action:ot,location:Qe,delta:ct}=et;if(ee){ee(),ee=void 0;return}kv(fe.size===0||ct!=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 Nt=Ze({currentLocation:x.location,nextLocation:Qe,historyAction:ot});if(Nt&&ct!=null){let Lt=new Promise(Zt=>{ee=Zt});e.history.go(ct*-1),Je(Nt,{state:"blocked",location:Qe,proceed(){Je(Nt,{state:"proceeding",proceed:void 0,reset:void 0,location:Qe}),Lt.then(()=>e.history.go(ct))},reset(){let Zt=new Map(x.blockers);Zt.set(Nt,Ux),me({blockers:Zt})}});return}return le(ot,Qe)}),n){xgt(t,D);let et=()=>wgt(t,D);t.addEventListener("pagehide",et),R=()=>t.removeEventListener("pagehide",et)}return x.initialized||le(xa.Pop,x.location,{initialHydration:!0}),T}function ue(){h&&h(),R&&R(),p.clear(),M&&M.abort(),x.fetchers.forEach((et,ot)=>Oe(ot)),x.blockers.forEach((et,ot)=>Ue(ot))}function ye(et){return p.add(et),()=>p.delete(et)}function me(et,ot){ot===void 0&&(ot={}),x=Po({},x,et);let Qe=[],ct=[];d.v7_fetcherPersist&&x.fetchers.forEach((Nt,Lt)=>{Nt.state==="idle"&&(ie.has(Lt)?ct.push(Lt):Qe.push(Lt))}),[...p].forEach(Nt=>Nt(x,{deletedFetchers:ct,viewTransitionOpts:ot.viewTransitionOpts,flushSync:ot.flushSync===!0})),d.v7_fetcherPersist&&(Qe.forEach(Nt=>x.fetchers.delete(Nt)),ct.forEach(Nt=>Oe(Nt)))}function pe(et,ot,Qe){var ct,Nt;let{flushSync:Lt}=Qe===void 0?{}:Qe,Zt=x.actionData!=null&&x.navigation.formMethod!=null&&pd(x.navigation.formMethod)&&x.navigation.state==="loading"&&((ct=et.state)==null?void 0:ct._isRedirect)!==!0,Wt;ot.actionData?Object.keys(ot.actionData).length>0?Wt=ot.actionData:Wt=null:Zt?Wt=x.actionData:Wt=null;let At=ot.loaderData?nre(x.loaderData,ot.loaderData,ot.matches||[],ot.errors):x.loaderData,$t=x.blockers;$t.size>0&&($t=new Map($t),$t.forEach((cn,_t)=>$t.set(_t,Ux)));let Gt=k===!0||x.navigation.formMethod!=null&&pd(x.navigation.formMethod)&&((Nt=et.state)==null?void 0:Nt._isRedirect)!==!0;s&&(a=s,s=void 0),A||E===xa.Pop||(E===xa.Push?e.history.push(et,et.state):E===xa.Replace&&e.history.replace(et,et.state));let Ft;if(E===xa.Pop){let cn=D.get(x.location.pathname);cn&&cn.has(et.pathname)?Ft={currentLocation:x.location,nextLocation:et}:D.has(et.pathname)&&(Ft={currentLocation:et,nextLocation:x.location})}else if(P){let cn=D.get(x.location.pathname);cn?cn.add(et.pathname):(cn=new Set([et.pathname]),D.set(x.location.pathname,cn)),Ft={currentLocation:x.location,nextLocation:et}}me(Po({},ot,{actionData:Wt,loaderData:At,historyAction:E,location:et,initialized:!0,navigation:yA,revalidation:"idle",restoreScrollPosition:Dt(et,ot.matches||x.matches),preventScrollReset:Gt,blockers:$t}),{viewTransitionOpts:Ft,flushSync:Lt===!0}),E=xa.Pop,k=!1,P=!1,A=!1,H=!1,F=[]}async function he(et,ot){if(typeof et=="number"){e.history.go(et);return}let Qe=Tj(x.location,x.matches,l,d.v7_prependBasename,et,d.v7_relativeSplatPath,ot==null?void 0:ot.fromRouteId,ot==null?void 0:ot.relative),{path:ct,submission:Nt,error:Lt}=Gne(d.v7_normalizeFormMethod,!1,Qe,ot),Zt=x.location,Wt=iS(x.location,ct,ot&&ot.state);Wt=Po({},Wt,e.history.encodeLocation(Wt));let At=ot&&ot.replace!=null?ot.replace:void 0,$t=xa.Push;At===!0?$t=xa.Replace:At===!1||Nt!=null&&pd(Nt.formMethod)&&Nt.formAction===x.location.pathname+x.location.search&&($t=xa.Replace);let Gt=ot&&"preventScrollReset"in ot?ot.preventScrollReset===!0:void 0,Ft=(ot&&ot.flushSync)===!0,cn=Ze({currentLocation:Zt,nextLocation:Wt,historyAction:$t});if(cn){Je(cn,{state:"blocked",location:Wt,proceed(){Je(cn,{state:"proceeding",proceed:void 0,reset:void 0,location:Wt}),he(et,ot)},reset(){let _t=new Map(x.blockers);_t.set(cn,Ux),me({blockers:_t})}});return}return await le($t,Wt,{submission:Nt,pendingError:Lt,preventScrollReset:Gt,replace:ot&&ot.replace,enableViewTransition:ot&&ot.viewTransition,flushSync:Ft})}function _e(){if(Q(),me({revalidation:"loading"}),x.navigation.state!=="submitting"){if(x.navigation.state==="idle"){le(x.historyAction,x.location,{startUninterruptedRevalidation:!0});return}le(E||x.historyAction,x.navigation.location,{overrideNavigation:x.navigation,enableViewTransition:P===!0})}}async function le(et,ot,Qe){M&&M.abort(),M=null,E=et,A=(Qe&&Qe.startUninterruptedRevalidation)===!0,Bt(x.location,x.matches),k=(Qe&&Qe.preventScrollReset)===!0,P=(Qe&&Qe.enableViewTransition)===!0;let ct=s||a,Nt=Qe&&Qe.overrideNavigation,Lt=p1(ct,ot,l),Zt=(Qe&&Qe.flushSync)===!0,Wt=an(Lt,ct,ot.pathname);if(Wt.active&&Wt.matches&&(Lt=Wt.matches),!Lt){let{error:jt,notFoundMatches:nn,route:Ht}=rt(ot.pathname);pe(ot,{matches:nn,loaderData:{},errors:{[Ht.id]:jt}},{flushSync:Zt});return}if(x.initialized&&!H&&pgt(x.location,ot)&&!(Qe&&Qe.submission&&pd(Qe.submission.formMethod))){pe(ot,{matches:Lt},{flushSync:Zt});return}M=new AbortController;let At=ay(e.history,ot,M.signal,Qe&&Qe.submission),$t;if(Qe&&Qe.pendingError)$t=[m1(Lt).route.id,{type:Zi.error,error:Qe.pendingError}];else if(Qe&&Qe.submission&&pd(Qe.submission.formMethod)){let jt=await xe(At,ot,Qe.submission,Lt,Wt.active,{replace:Qe.replace,flushSync:Zt});if(jt.shortCircuited)return;if(jt.pendingActionResult){let[nn,Ht]=jt.pendingActionResult;if(Cc(Ht)&&RP(Ht.error)&&Ht.error.status===404){M=null,pe(ot,{matches:jt.matches,loaderData:{},errors:{[nn]:Ht.error}});return}}Lt=jt.matches||Lt,$t=jt.pendingActionResult,Nt=bA(ot,Qe.submission),Zt=!1,Wt.active=!1,At=ay(e.history,At.url,At.signal)}let{shortCircuited:Gt,matches:Ft,loaderData:cn,errors:_t}=await we(At,ot,Lt,Wt.active,Nt,Qe&&Qe.submission,Qe&&Qe.fetcherSubmission,Qe&&Qe.replace,Qe&&Qe.initialHydration===!0,Zt,$t);Gt||(M=null,pe(ot,Po({matches:Ft||Lt},rre($t),{loaderData:cn,errors:_t})))}async function xe(et,ot,Qe,ct,Nt,Lt){Lt===void 0&&(Lt={}),Q();let Zt=Sgt(ot,Qe);if(me({navigation:Zt},{flushSync:Lt.flushSync===!0}),Nt){let $t=await Vt(ct,ot.pathname,et.signal);if($t.type==="aborted")return{shortCircuited:!0};if($t.type==="error"){let Gt=m1($t.partialMatches).route.id;return{matches:$t.partialMatches,pendingActionResult:[Gt,{type:Zi.error,error:$t.error}]}}else if($t.matches)ct=$t.matches;else{let{notFoundMatches:Gt,error:Ft,route:cn}=rt(ot.pathname);return{matches:Gt,pendingActionResult:[cn.id,{type:Zi.error,error:Ft}]}}}let Wt,At=P2(ct,ot);if(!At.route.action&&!At.route.lazy)Wt={type:Zi.error,error:Nl(405,{method:et.method,pathname:ot.pathname,routeId:At.route.id})};else if(Wt=(await Ne("action",x,et,[At],ct,null))[At.route.id],et.signal.aborted)return{shortCircuited:!0};if(M1(Wt)){let $t;return Lt&&Lt.replace!=null?$t=Lt.replace:$t=Jne(Wt.response.headers.get("Location"),new URL(et.url),l)===x.location.pathname+x.location.search,await Pe(et,Wt,!0,{submission:Qe,replace:$t}),{shortCircuited:!0}}if(Nm(Wt))throw Nl(400,{type:"defer-action"});if(Cc(Wt)){let $t=m1(ct,At.route.id);return(Lt&&Lt.replace)!==!0&&(E=xa.Push),{matches:ct,pendingActionResult:[$t.route.id,Wt]}}return{matches:ct,pendingActionResult:[At.route.id,Wt]}}async function we(et,ot,Qe,ct,Nt,Lt,Zt,Wt,At,$t,Gt){let Ft=Nt||bA(ot,Lt),cn=Lt||Zt||are(Ft),_t=!A&&(!d.v7_partialHydration||!At);if(ct){if(_t){let j=De(Gt);me(Po({navigation:Ft},j!==void 0?{actionData:j}:{}),{flushSync:$t})}let O=await Vt(Qe,ot.pathname,et.signal);if(O.type==="aborted")return{shortCircuited:!0};if(O.type==="error"){let j=m1(O.partialMatches).route.id;return{matches:O.partialMatches,loaderData:{},errors:{[j]:O.error}}}else if(O.matches)Qe=O.matches;else{let{error:j,notFoundMatches:oe,route:Ae}=rt(ot.pathname);return{matches:oe,loaderData:{},errors:{[Ae.id]:j}}}}let jt=s||a,[nn,Ht]=Xne(e.history,x,Qe,cn,ot,d.v7_partialHydration&&At===!0,d.v7_skipActionErrorRevalidation,H,F,z,ie,V,B,jt,l,Gt);if(qt(O=>!(Qe&&Qe.some(j=>j.route.id===O))||nn&&nn.some(j=>j.route.id===O)),Z=++q,nn.length===0&&Ht.length===0){let O=se();return pe(ot,Po({matches:Qe,loaderData:{},errors:Gt&&Cc(Gt[1])?{[Gt[0]]:Gt[1].error}:null},rre(Gt),O?{fetchers:new Map(x.fetchers)}:{}),{flushSync:$t}),{shortCircuited:!0}}if(_t){let O={};if(!ct){O.navigation=Ft;let j=De(Gt);j!==void 0&&(O.actionData=j)}Ht.length>0&&(O.fetchers=Fe(Ht)),me(O,{flushSync:$t})}Ht.forEach(O=>{Ke(O.key),O.controller&&W.set(O.key,O.controller)});let Tt=()=>Ht.forEach(O=>Ke(O.key));M&&M.signal.addEventListener("abort",Tt);let{loaderResults:gt,fetcherResults:Ve}=await We(x,Qe,nn,Ht,et);if(et.signal.aborted)return{shortCircuited:!0};M&&M.signal.removeEventListener("abort",Tt),Ht.forEach(O=>W.delete(O.key));let Yt=u5(gt);if(Yt)return await Pe(et,Yt.result,!0,{replace:Wt}),{shortCircuited:!0};if(Yt=u5(Ve),Yt)return B.add(Yt.key),await Pe(et,Yt.result,!0,{replace:Wt}),{shortCircuited:!0};let{loaderData:mt,errors:Mt}=tre(x,Qe,gt,Gt,Ht,Ve,ce);ce.forEach((O,j)=>{O.subscribe(oe=>{(oe||O.done)&&ce.delete(j)})}),d.v7_partialHydration&&At&&x.errors&&(Mt=Po({},x.errors,Mt));let zt=se(),Dn=ze(Z),Xn=zt||Dn||Ht.length>0;return Po({matches:Qe,loaderData:mt,errors:Mt},Xn?{fetchers:new Map(x.fetchers)}:{})}function De(et){if(et&&!Cc(et[1]))return{[et[0]]:et[1].data};if(x.actionData)return Object.keys(x.actionData).length===0?null:x.actionData}function Fe(et){return et.forEach(ot=>{let Qe=x.fetchers.get(ot.key),ct=Wx(void 0,Qe?Qe.data:void 0);x.fetchers.set(ot.key,ct)}),new Map(x.fetchers)}function Ce(et,ot,Qe,ct){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.");Ke(et);let Nt=(ct&&ct.flushSync)===!0,Lt=s||a,Zt=Tj(x.location,x.matches,l,d.v7_prependBasename,Qe,d.v7_relativeSplatPath,ot,ct==null?void 0:ct.relative),Wt=p1(Lt,Zt,l),At=an(Wt,Lt,Zt);if(At.active&&At.matches&&(Wt=At.matches),!Wt){J(et,ot,Nl(404,{pathname:Zt}),{flushSync:Nt});return}let{path:$t,submission:Gt,error:Ft}=Gne(d.v7_normalizeFormMethod,!0,Zt,ct);if(Ft){J(et,ot,Ft,{flushSync:Nt});return}let cn=P2(Wt,$t),_t=(ct&&ct.preventScrollReset)===!0;if(Gt&&pd(Gt.formMethod)){Te(et,ot,$t,cn,Wt,At.active,Nt,_t,Gt);return}V.set(et,{routeId:ot,path:$t}),ke(et,ot,$t,cn,Wt,At.active,Nt,_t,Gt)}async function Te(et,ot,Qe,ct,Nt,Lt,Zt,Wt,At){Q(),V.delete(et);function $t(Ge){if(!Ge.route.action&&!Ge.route.lazy){let ft=Nl(405,{method:At.formMethod,pathname:Qe,routeId:ot});return J(et,ot,ft,{flushSync:Zt}),!0}return!1}if(!Lt&&$t(ct))return;let Gt=x.fetchers.get(et);K(et,Cgt(At,Gt),{flushSync:Zt});let Ft=new AbortController,cn=ay(e.history,Qe,Ft.signal,At);if(Lt){let Ge=await Vt(Nt,Qe,cn.signal);if(Ge.type==="aborted")return;if(Ge.type==="error"){J(et,ot,Ge.error,{flushSync:Zt});return}else if(Ge.matches){if(Nt=Ge.matches,ct=P2(Nt,Qe),$t(ct))return}else{J(et,ot,Nl(404,{pathname:Qe}),{flushSync:Zt});return}}W.set(et,Ft);let _t=q,nn=(await Ne("action",x,cn,[ct],Nt,et))[ct.route.id];if(cn.signal.aborted){W.get(et)===Ft&&W.delete(et);return}if(d.v7_fetcherPersist&&ie.has(et)){if(M1(nn)||Cc(nn)){K(et,dm(void 0));return}}else{if(M1(nn))if(W.delete(et),Z>_t){K(et,dm(void 0));return}else return B.add(et),K(et,Wx(At)),Pe(cn,nn,!1,{fetcherSubmission:At,preventScrollReset:Wt});if(Cc(nn)){J(et,ot,nn.error);return}}if(Nm(nn))throw Nl(400,{type:"defer-action"});let Ht=x.navigation.location||x.location,Tt=ay(e.history,Ht,Ft.signal),gt=s||a,Ve=x.navigation.state!=="idle"?p1(gt,x.navigation.location,l):x.matches;oi(Ve,"Didn't find any matches after fetcher action");let Yt=++q;N.set(et,Yt);let mt=Wx(At,nn.data);x.fetchers.set(et,mt);let[Mt,zt]=Xne(e.history,x,Ve,At,Ht,!1,d.v7_skipActionErrorRevalidation,H,F,z,ie,V,B,gt,l,[ct.route.id,nn]);zt.filter(Ge=>Ge.key!==et).forEach(Ge=>{let ft=Ge.key,Jt=x.fetchers.get(ft),on=Wx(void 0,Jt?Jt.data:void 0);x.fetchers.set(ft,on),Ke(ft),Ge.controller&&W.set(ft,Ge.controller)}),me({fetchers:new Map(x.fetchers)});let Dn=()=>zt.forEach(Ge=>Ke(Ge.key));Ft.signal.addEventListener("abort",Dn);let{loaderResults:Xn,fetcherResults:O}=await We(x,Ve,Mt,zt,Tt);if(Ft.signal.aborted)return;Ft.signal.removeEventListener("abort",Dn),N.delete(et),W.delete(et),zt.forEach(Ge=>W.delete(Ge.key));let j=u5(Xn);if(j)return Pe(Tt,j.result,!1,{preventScrollReset:Wt});if(j=u5(O),j)return B.add(j.key),Pe(Tt,j.result,!1,{preventScrollReset:Wt});let{loaderData:oe,errors:Ae}=tre(x,Ve,Xn,void 0,zt,O,ce);if(x.fetchers.has(et)){let Ge=dm(nn.data);x.fetchers.set(et,Ge)}ze(Yt),x.navigation.state==="loading"&&Yt>Z?(oi(E,"Expected pending action"),M&&M.abort(),pe(x.navigation.location,{matches:Ve,loaderData:oe,errors:Ae,fetchers:new Map(x.fetchers)})):(me({errors:Ae,loaderData:nre(x.loaderData,oe,Ve,Ae),fetchers:new Map(x.fetchers)}),H=!1)}async function ke(et,ot,Qe,ct,Nt,Lt,Zt,Wt,At){let $t=x.fetchers.get(et);K(et,Wx(At,$t?$t.data:void 0),{flushSync:Zt});let Gt=new AbortController,Ft=ay(e.history,Qe,Gt.signal);if(Lt){let nn=await Vt(Nt,Qe,Ft.signal);if(nn.type==="aborted")return;if(nn.type==="error"){J(et,ot,nn.error,{flushSync:Zt});return}else if(nn.matches)Nt=nn.matches,ct=P2(Nt,Qe);else{J(et,ot,Nl(404,{pathname:Qe}),{flushSync:Zt});return}}W.set(et,Gt);let cn=q,jt=(await Ne("loader",x,Ft,[ct],Nt,et))[ct.route.id];if(Nm(jt)&&(jt=await vV(jt,Ft.signal,!0)||jt),W.get(et)===Gt&&W.delete(et),!Ft.signal.aborted){if(ie.has(et)){K(et,dm(void 0));return}if(M1(jt))if(Z>cn){K(et,dm(void 0));return}else{B.add(et),await Pe(Ft,jt,!1,{preventScrollReset:Wt});return}if(Cc(jt)){J(et,ot,jt.error);return}oi(!Nm(jt),"Unhandled fetcher deferred data"),K(et,dm(jt.data))}}async function Pe(et,ot,Qe,ct){let{submission:Nt,fetcherSubmission:Lt,preventScrollReset:Zt,replace:Wt}=ct===void 0?{}:ct;ot.response.headers.has("X-Remix-Revalidate")&&(H=!0);let At=ot.response.headers.get("Location");oi(At,"Expected a Location header on the redirect Response"),At=Jne(At,new URL(et.url),l);let $t=iS(x.location,At,{_isRedirect:!0});if(n){let nn=!1;if(ot.response.headers.has("X-Remix-Reload-Document"))nn=!0;else if(gV.test(At)){const Ht=e.history.createURL(At);nn=Ht.origin!==t.location.origin||fC(Ht.pathname,l)==null}if(nn){Wt?t.location.replace(At):t.location.assign(At);return}}M=null;let Gt=Wt===!0||ot.response.headers.has("X-Remix-Replace")?xa.Replace:xa.Push,{formMethod:Ft,formAction:cn,formEncType:_t}=x.navigation;!Nt&&!Lt&&Ft&&cn&&_t&&(Nt=are(x.navigation));let jt=Nt||Lt;if(ngt.has(ot.response.status)&&jt&&pd(jt.formMethod))await le(Gt,$t,{submission:Po({},jt,{formAction:At}),preventScrollReset:Zt||k,enableViewTransition:Qe?P:void 0});else{let nn=bA($t,Nt);await le(Gt,$t,{overrideNavigation:nn,fetcherSubmission:Lt,preventScrollReset:Zt||k,enableViewTransition:Qe?P:void 0})}}async function Ne(et,ot,Qe,ct,Nt,Lt){let Zt,Wt={};try{Zt=await cgt(c,et,ot,Qe,ct,Nt,Lt,o,i)}catch(At){return ct.forEach($t=>{Wt[$t.route.id]={type:Zi.error,error:At}}),Wt}for(let[At,$t]of Object.entries(Zt))if(mgt($t)){let Gt=$t.result;Wt[At]={type:Zi.redirect,response:fgt(Gt,Qe,At,Nt,l,d.v7_relativeSplatPath)}}else Wt[At]=await dgt($t);return Wt}async function We(et,ot,Qe,ct,Nt){let Lt=et.matches,Zt=Ne("loader",et,Nt,Qe,ot,null),Wt=Promise.all(ct.map(async Gt=>{if(Gt.matches&&Gt.match&&Gt.controller){let cn=(await Ne("loader",et,ay(e.history,Gt.path,Gt.controller.signal),[Gt.match],Gt.matches,Gt.key))[Gt.match.route.id];return{[Gt.key]:cn}}else return Promise.resolve({[Gt.key]:{type:Zi.error,error:Nl(404,{pathname:Gt.path})}})})),At=await Zt,$t=(await Wt).reduce((Gt,Ft)=>Object.assign(Gt,Ft),{});return await Promise.all([ygt(ot,At,Nt.signal,Lt,et.loaderData),bgt(ot,$t,ct)]),{loaderResults:At,fetcherResults:$t}}function Q(){H=!0,F.push(...qt()),V.forEach((et,ot)=>{W.has(ot)&&z.add(ot),Ke(ot)})}function K(et,ot,Qe){Qe===void 0&&(Qe={}),x.fetchers.set(et,ot),me({fetchers:new Map(x.fetchers)},{flushSync:(Qe&&Qe.flushSync)===!0})}function J(et,ot,Qe,ct){ct===void 0&&(ct={});let Nt=m1(x.matches,ot);Oe(et),me({errors:{[Nt.route.id]:Qe},fetchers:new Map(x.fetchers)},{flushSync:(ct&&ct.flushSync)===!0})}function be(et){return d.v7_fetcherPersist&&(Y.set(et,(Y.get(et)||0)+1),ie.has(et)&&ie.delete(et)),x.fetchers.get(et)||rgt}function Oe(et){let ot=x.fetchers.get(et);W.has(et)&&!(ot&&ot.state==="loading"&&N.has(et))&&Ke(et),V.delete(et),N.delete(et),B.delete(et),ie.delete(et),z.delete(et),x.fetchers.delete(et)}function Se(et){if(d.v7_fetcherPersist){let ot=(Y.get(et)||0)-1;ot<=0?(Y.delete(et),ie.add(et)):Y.set(et,ot)}else Oe(et);me({fetchers:new Map(x.fetchers)})}function Ke(et){let ot=W.get(et);ot&&(ot.abort(),W.delete(et))}function tt(et){for(let ot of et){let Qe=be(ot),ct=dm(Qe.data);x.fetchers.set(ot,ct)}}function se(){let et=[],ot=!1;for(let Qe of B){let ct=x.fetchers.get(Qe);oi(ct,"Expected fetcher: "+Qe),ct.state==="loading"&&(B.delete(Qe),et.push(Qe),ot=!0)}return tt(et),ot}function ze(et){let ot=[];for(let[Qe,ct]of N)if(ct<et){let Nt=x.fetchers.get(Qe);oi(Nt,"Expected fetcher: "+Qe),Nt.state==="loading"&&(Ke(Qe),N.delete(Qe),ot.push(Qe))}return tt(ot),ot.length>0}function Ye(et,ot){let Qe=x.blockers.get(et)||Ux;return fe.get(et)!==ot&&fe.set(et,ot),Qe}function Ue(et){x.blockers.delete(et),fe.delete(et)}function Je(et,ot){let Qe=x.blockers.get(et)||Ux;oi(Qe.state==="unblocked"&&ot.state==="blocked"||Qe.state==="blocked"&&ot.state==="blocked"||Qe.state==="blocked"&&ot.state==="proceeding"||Qe.state==="blocked"&&ot.state==="unblocked"||Qe.state==="proceeding"&&ot.state==="unblocked","Invalid blocker state transition: "+Qe.state+" -> "+ot.state);let ct=new Map(x.blockers);ct.set(et,ot),me({blockers:ct})}function Ze(et){let{currentLocation:ot,nextLocation:Qe,historyAction:ct}=et;if(fe.size===0)return;fe.size>1&&kv(!1,"A router only supports one blocker at a time");let Nt=Array.from(fe.entries()),[Lt,Zt]=Nt[Nt.length-1],Wt=x.blockers.get(Lt);if(!(Wt&&Wt.state==="proceeding")&&Zt({currentLocation:ot,nextLocation:Qe,historyAction:ct}))return Lt}function rt(et){let ot=Nl(404,{pathname:et}),Qe=s||a,{matches:ct,route:Nt}=ire(Qe);return qt(),{notFoundMatches:ct,route:Nt,error:ot}}function qt(et){let ot=[];return ce.forEach((Qe,ct)=>{(!et||et(ct))&&(Qe.cancel(),ot.push(ct),ce.delete(ct))}),ot}function St(et,ot,Qe){if(m=et,y=ot,v=Qe||null,!S&&x.navigation===yA){S=!0;let ct=Dt(x.location,x.matches);ct!=null&&me({restoreScrollPosition:ct})}return()=>{m=null,y=null,v=null}}function Ot(et,ot){return v&&v(et,ot.map(ct=>Amt(ct,x.loaderData)))||et.key}function Bt(et,ot){if(m&&y){let Qe=Ot(et,ot);m[Qe]=y()}}function Dt(et,ot){if(m){let Qe=Ot(et,ot),ct=m[Qe];if(typeof ct=="number")return ct}return null}function an(et,ot,Qe){if(u)if(et){if(Object.keys(et[0].params).length>0)return{active:!0,matches:W3(ot,Qe,l,!0)}}else return{active:!0,matches:W3(ot,Qe,l,!0)||[]};return{active:!1,matches:null}}async function Vt(et,ot,Qe){if(!u)return{type:"success",matches:et};let ct=et;for(;;){let Nt=s==null,Lt=s||a,Zt=o;try{await u({path:ot,matches:ct,patch:($t,Gt)=>{Qe.aborted||Zne($t,Gt,Lt,Zt,i)}})}catch($t){return{type:"error",error:$t,partialMatches:ct}}finally{Nt&&!Qe.aborted&&(a=[...a])}if(Qe.aborted)return{type:"aborted"};let Wt=p1(Lt,ot,l);if(Wt)return{type:"success",matches:Wt};let At=W3(Lt,ot,l,!0);if(!At||ct.length===At.length&&ct.every(($t,Gt)=>$t.route.id===At[Gt].route.id))return{type:"success",matches:null};ct=At}}function Kt(et){o={},s=sk(et,i,void 0,o)}function Qt(et,ot){let Qe=s==null;Zne(et,ot,s||a,o,i),Qe&&(a=[...a],me({}))}return T={get basename(){return l},get future(){return d},get state(){return x},get routes(){return a},get window(){return t},initialize:ne,subscribe:ye,enableScrollRestoration:St,navigate:he,fetch:Ce,revalidate:_e,createHref:et=>e.history.createHref(et),encodeLocation:et=>e.history.encodeLocation(et),getFetcher:be,deleteFetcher:Se,dispose:ue,getBlocker:Ye,deleteBlocker:Ue,patchRoutes:Qt,_internalFetchControllers:W,_internalActiveDeferreds:ce,_internalSetRoutes:Kt},T}function ogt(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Tj(e,t,n,r,i,o,a,s){let l,c;if(a){l=[];for(let d of t)if(l.push(d),d.route.id===a){c=d;break}}else l=t,c=t[t.length-1];let u=$P(i||".",IP(l,o),fC(e.pathname,n)||e.pathname,s==="path");if(i==null&&(u.search=e.search,u.hash=e.hash),(i==null||i===""||i===".")&&c){let d=yV(u.search);if(c.route.index&&!d)u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&d){let h=new URLSearchParams(u.search),p=h.getAll("index");h.delete("index"),p.filter(v=>v).forEach(v=>h.append("index",v));let m=h.toString();u.search=m?"?"+m:""}}return r&&n!=="/"&&(u.pathname=u.pathname==="/"?n:tp([n,u.pathname])),ag(u)}function Gne(e,t,n,r){if(!r||!ogt(r))return{path:n};if(r.formMethod&&!vgt(r.formMethod))return{path:n,error:Nl(405,{method:r.formMethod})};let i=()=>({path:n,error:Nl(400,{type:"invalid-body"})}),o=r.formMethod||"get",a=e?o.toUpperCase():o.toLowerCase(),s=Rxe(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!pd(a))return i();let h=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((p,m)=>{let[v,y]=m;return""+p+v+"="+y+`
|
||
`},""):String(r.body);return{path:n,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:h}}}else if(r.formEncType==="application/json"){if(!pd(a))return i();try{let h=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:h,text:void 0}}}catch{return i()}}}oi(typeof FormData=="function","FormData is not available in this environment");let l,c;if(r.formData)l=Oj(r.formData),c=r.formData;else if(r.body instanceof FormData)l=Oj(r.body),c=r.body;else if(r.body instanceof URLSearchParams)l=r.body,c=ere(l);else if(r.body==null)l=new URLSearchParams,c=new FormData;else try{l=new URLSearchParams(r.body),c=ere(l)}catch{return i()}let u={formMethod:a,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(pd(u.formMethod))return{path:n,submission:u};let d=Ip(n);return t&&d.search&&yV(d.search)&&l.append("index",""),d.search="?"+l,{path:ag(d),submission:u}}function Yne(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 Xne(e,t,n,r,i,o,a,s,l,c,u,d,h,p,m,v){let y=v?Cc(v[1])?v[1].error:v[1].data:void 0,S=e.createURL(t.location),b=e.createURL(i),C=n;o&&t.errors?C=Yne(n,Object.keys(t.errors)[0],!0):v&&Cc(v[1])&&(C=Yne(n,v[0]));let _=v?v[1].statusCode:void 0,T=a&&_&&_>=400,x=C.filter((k,M)=>{let{route:P}=k;if(P.lazy)return!0;if(P.loader==null)return!1;if(o)return kj(P,t.loaderData,t.errors);if(agt(t.loaderData,t.matches[M],k)||l.some(A=>A===k.route.id))return!0;let D=t.matches[M],R=k;return Qne(k,Po({currentUrl:S,currentParams:D.params,nextUrl:b,nextParams:R.params},r,{actionResult:y,actionStatus:_,defaultShouldRevalidate:T?!1:s||S.pathname+S.search===b.pathname+b.search||S.search!==b.search||Ixe(D,R)}))}),E=[];return d.forEach((k,M)=>{if(o||!n.some(H=>H.route.id===k.routeId)||u.has(M))return;let P=p1(p,k.path,m);if(!P){E.push({key:M,routeId:k.routeId,path:k.path,matches:null,match:null,controller:null});return}let D=t.fetchers.get(M),R=P2(P,k.path),A=!1;h.has(M)?A=!1:c.has(M)?(c.delete(M),A=!0):D&&D.state!=="idle"&&D.data===void 0?A=s:A=Qne(R,Po({currentUrl:S,currentParams:t.matches[t.matches.length-1].params,nextUrl:b,nextParams:n[n.length-1].params},r,{actionResult:y,actionStatus:_,defaultShouldRevalidate:T?!1:s})),A&&E.push({key:M,routeId:k.routeId,path:k.path,matches:P,match:R,controller:new AbortController})}),[x,E]}function kj(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 agt(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function Ixe(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Qne(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function Zne(e,t,n,r,i){var o;let a;if(e){let c=r[e];oi(c,"No route found to patch children into: routeId = "+e),c.children||(c.children=[]),a=c.children}else a=n;let s=t.filter(c=>!a.some(u=>$xe(c,u))),l=sk(s,i,[e||"_","patch",String(((o=a)==null?void 0:o.length)||"0")],r);a.push(...l)}function $xe(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=>$xe(n,o))}):!1}async function sgt(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];oi(i,"No route found in manifest");let o={};for(let a in r){let l=i[a]!==void 0&&a!=="hasErrorBoundary";kv(!l,'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.')),!l&&!$mt.has(a)&&(o[a]=r[a])}Object.assign(i,o),Object.assign(i,Po({},t(i),{lazy:void 0}))}async function lgt(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 cgt(e,t,n,r,i,o,a,s,l,c){let u=o.map(p=>p.route.lazy?sgt(p.route,l,s):void 0),d=o.map((p,m)=>{let v=u[m],y=i.some(b=>b.route.id===p.route.id);return Po({},p,{shouldLoad:y,resolve:async b=>(b&&r.method==="GET"&&(p.route.lazy||p.route.loader)&&(y=!0),y?ugt(t,r,p,v,b,c):Promise.resolve({type:Zi.data,result:void 0}))})}),h=await e({matches:d,request:r,params:o[0].params,fetcherKey:a,context:c});try{await Promise.all(u)}catch{}return h}async function ugt(e,t,n,r,i,o){let a,s,l=c=>{let u,d=new Promise((m,v)=>u=v);s=()=>u(),t.signal.addEventListener("abort",s);let h=m=>typeof c!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):c({request:t,params:n.params,context:o},...m!==void 0?[m]:[]),p=(async()=>{try{return{type:"data",result:await(i?i(v=>h(v)):h())}}catch(m){return{type:"error",result:m}}})();return Promise.race([p,d])};try{let c=n.route[e];if(r)if(c){let u,[d]=await Promise.all([l(c).catch(h=>{u=h}),r]);if(u!==void 0)throw u;a=d}else if(await r,c=n.route[e],c)a=await l(c);else if(e==="action"){let u=new URL(t.url),d=u.pathname+u.search;throw Nl(405,{method:t.method,pathname:d,routeId:n.route.id})}else return{type:Zi.data,result:void 0};else if(c)a=await l(c);else{let u=new URL(t.url),d=u.pathname+u.search;throw Nl(404,{pathname:d})}oi(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(c){return{type:Zi.error,result:c}}finally{s&&t.signal.removeEventListener("abort",s)}return a}async function dgt(e){let{result:t,type:n}=e;if(Axe(t)){let c;try{let u=t.headers.get("Content-Type");u&&/\bapplication\/json\b/.test(u)?t.body==null?c=null:c=await t.json():c=await t.text()}catch(u){return{type:Zi.error,error:u}}return n===Zi.error?{type:Zi.error,error:new lk(t.status,t.statusText,c),statusCode:t.status,headers:t.headers}:{type:Zi.data,data:c,statusCode:t.status,headers:t.headers}}if(n===Zi.error){if(ore(t)){var r;if(t.data instanceof Error){var i;return{type:Zi.error,error:t.data,statusCode:(i=t.init)==null?void 0:i.status}}t=new lk(((r=t.init)==null?void 0:r.status)||500,void 0,t.data)}return{type:Zi.error,error:t,statusCode:RP(t)?t.status:void 0}}if(ggt(t)){var o,a;return{type:Zi.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(ore(t)){var s,l;return{type:Zi.data,data:t.data,statusCode:(s=t.init)==null?void 0:s.status,headers:(l=t.init)!=null&&l.headers?new Headers(t.init.headers):void 0}}return{type:Zi.data,data:t}}function fgt(e,t,n,r,i,o){let a=e.headers.get("Location");if(oi(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!gV.test(a)){let s=r.slice(0,r.findIndex(l=>l.route.id===n)+1);a=Tj(new URL(t.url),s,i,!0,a,o),e.headers.set("Location",a)}return e}function Jne(e,t,n){if(gV.test(e)){let r=e,i=r.startsWith("//")?new URL(t.protocol+r):new URL(r),o=fC(i.pathname,n)!=null;if(i.origin===t.origin&&o)return i.pathname+i.search+i.hash}return e}function ay(e,t,n,r){let i=e.createURL(Rxe(t)).toString(),o={signal:n};if(r&&pd(r.formMethod)){let{formMethod:a,formEncType:s}=r;o.method=a.toUpperCase(),s==="application/json"?(o.headers=new Headers({"Content-Type":s}),o.body=JSON.stringify(r.json)):s==="text/plain"?o.body=r.text:s==="application/x-www-form-urlencoded"&&r.formData?o.body=Oj(r.formData):o.body=r.formData}return new Request(i,o)}function Oj(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function ere(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function hgt(e,t,n,r,i){let o={},a=null,s,l=!1,c={},u=n&&Cc(n[1])?n[1].error:void 0;return e.forEach(d=>{if(!(d.route.id in t))return;let h=d.route.id,p=t[h];if(oi(!M1(p),"Cannot handle redirect results in processLoaderData"),Cc(p)){let m=p.error;u!==void 0&&(m=u,u=void 0),a=a||{};{let v=m1(e,h);a[v.route.id]==null&&(a[v.route.id]=m)}o[h]=void 0,l||(l=!0,s=RP(p.error)?p.error.status:500),p.headers&&(c[h]=p.headers)}else Nm(p)?(r.set(h,p.deferredData),o[h]=p.deferredData.data,p.statusCode!=null&&p.statusCode!==200&&!l&&(s=p.statusCode),p.headers&&(c[h]=p.headers)):(o[h]=p.data,p.statusCode&&p.statusCode!==200&&!l&&(s=p.statusCode),p.headers&&(c[h]=p.headers))}),u!==void 0&&n&&(a={[n[0]]:u},o[n[0]]=void 0),{loaderData:o,errors:a,statusCode:s||200,loaderHeaders:c}}function tre(e,t,n,r,i,o,a){let{loaderData:s,errors:l}=hgt(t,n,r,a);return i.forEach(c=>{let{key:u,match:d,controller:h}=c,p=o[u];if(oi(p,"Did not find corresponding fetcher result"),!(h&&h.signal.aborted))if(Cc(p)){let m=m1(e.matches,d==null?void 0:d.route.id);l&&l[m.route.id]||(l=Po({},l,{[m.route.id]:p.error})),e.fetchers.delete(u)}else if(M1(p))oi(!1,"Unhandled fetcher revalidation redirect");else if(Nm(p))oi(!1,"Unhandled fetcher deferred data");else{let m=dm(p.data);e.fetchers.set(u,m)}}),{loaderData:s,errors:l}}function nre(e,t,n,r){let i=Po({},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 rre(e){return e?Cc(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function m1(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 ire(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 Nl(e,t){let{pathname:n,routeId:r,method:i,type:o,message:a}=t===void 0?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(s="Bad Request",i&&n&&r?l="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"?l="defer() is not supported in actions":o==="invalid-body"&&(l="Unable to encode submission body")):e===403?(s="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(s="Not Found",l='No route matches URL "'+n+'"'):e===405&&(s="Method Not Allowed",i&&n&&r?l="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&&(l='Invalid request method "'+i.toUpperCase()+'"')),new lk(e||500,s,new Error(l),!0)}function u5(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,i]=t[n];if(M1(i))return{key:r,result:i}}}function Rxe(e){let t=typeof e=="string"?Ip(e):e;return ag(Po({},t,{hash:""}))}function pgt(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function mgt(e){return Axe(e.result)&&tgt.has(e.result.status)}function Nm(e){return e.type===Zi.deferred}function Cc(e){return e.type===Zi.error}function M1(e){return(e&&e.type)===Zi.redirect}function ore(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function ggt(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 Axe(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function vgt(e){return egt.has(e.toLowerCase())}function pd(e){return Zmt.has(e.toLowerCase())}async function ygt(e,t,n,r,i){let o=Object.entries(t);for(let a=0;a<o.length;a++){let[s,l]=o[a],c=e.find(h=>(h==null?void 0:h.route.id)===s);if(!c)continue;let u=r.find(h=>h.route.id===c.route.id),d=u!=null&&!Ixe(u,c)&&(i&&i[c.route.id])!==void 0;Nm(l)&&d&&await vV(l,n,!1).then(h=>{h&&(t[s]=h)})}}async function bgt(e,t,n){for(let r=0;r<n.length;r++){let{key:i,routeId:o,controller:a}=n[r],s=t[i];e.find(c=>(c==null?void 0:c.route.id)===o)&&Nm(s)&&(oi(a,"Expected an AbortController for revalidating fetcher deferred result"),await vV(s,a.signal,!0).then(c=>{c&&(t[i]=c)}))}}async function vV(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Zi.data,data:e.deferredData.unwrappedData}}catch(i){return{type:Zi.error,error:i}}return{type:Zi.data,data:e.deferredData.data}}}function yV(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function P2(e,t){let n=typeof t=="string"?Ip(t).search:t.search;if(e[e.length-1].route.index&&yV(n||""))return e[e.length-1];let r=kxe(e);return r[r.length-1]}function are(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 bA(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 Sgt(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 Wx(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 Cgt(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 dm(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 xgt(e,t){try{let n=e.sessionStorage.getItem(Pxe);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 wgt(e,t){if(t.size>0){let n={};for(let[r,i]of t)n[r]=[...i];try{e.sessionStorage.setItem(Pxe,JSON.stringify(n))}catch(r){kv(!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 ck(){return ck=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},ck.apply(this,arguments)}const AP=f.createContext(null),Nxe=f.createContext(null),Sg=f.createContext(null),bV=f.createContext(null),ih=f.createContext({outlet:null,matches:[],isDataRoute:!1}),Dxe=f.createContext(null);function _gt(e,t){let{relative:n}=t===void 0?{}:t;hC()||oi(!1);let{basename:r,navigator:i}=f.useContext(Sg),{hash:o,pathname:a,search:s}=Fxe(e,{relative:n}),l=a;return r!=="/"&&(l=a==="/"?r:tp([r,a])),i.createHref({pathname:l,search:s,hash:o})}function hC(){return f.useContext(bV)!=null}function pC(){return hC()||oi(!1),f.useContext(bV).location}function Lxe(e){f.useContext(Sg).static||f.useLayoutEffect(e)}function ss(){let{isDataRoute:e}=f.useContext(ih);return e?Fgt():Egt()}function Egt(){hC()||oi(!1);let e=f.useContext(AP),{basename:t,future:n,navigator:r}=f.useContext(Sg),{matches:i}=f.useContext(ih),{pathname:o}=pC(),a=JSON.stringify(IP(i,n.v7_relativeSplatPath)),s=f.useRef(!1);return Lxe(()=>{s.current=!0}),f.useCallback(function(c,u){if(u===void 0&&(u={}),!s.current)return;if(typeof c=="number"){r.go(c);return}let d=$P(c,JSON.parse(a),o,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:tp([t,d.pathname])),(u.replace?r.replace:r.push)(d,u.state,u)},[t,r,a,o,e])}const Tgt=f.createContext(null);function kgt(e){let t=f.useContext(ih).outlet;return t&&f.createElement(Tgt.Provider,{value:e},t)}function SV(){let{matches:e}=f.useContext(ih),t=e[e.length-1];return t?t.params:{}}function Fxe(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=f.useContext(Sg),{matches:i}=f.useContext(ih),{pathname:o}=pC(),a=JSON.stringify(IP(i,r.v7_relativeSplatPath));return f.useMemo(()=>$P(e,JSON.parse(a),o,n==="path"),[e,a,o,n])}function Ogt(e,t,n,r){hC()||oi(!1);let{navigator:i}=f.useContext(Sg),{matches:o}=f.useContext(ih),a=o[o.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let c=pC(),u;u=c;let d=u.pathname||"/",h=d;if(l!=="/"){let v=l.replace(/^\//,"").split("/");h="/"+d.replace(/^\//,"").split("/").slice(v.length).join("/")}let p=p1(e,{pathname:h});return Rgt(p&&p.map(v=>Object.assign({},v,{params:Object.assign({},s,v.params),pathname:tp([l,i.encodeLocation?i.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?l:tp([l,i.encodeLocation?i.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),o,n,r)}function Pgt(){let e=Lgt(),t=RP(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 f.createElement(f.Fragment,null,f.createElement("h2",null,"Unexpected Application Error!"),f.createElement("h3",{style:{fontStyle:"italic"}},t),n?f.createElement("pre",{style:i},n):null,null)}const Mgt=f.createElement(Pgt,null);class Igt extends f.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?f.createElement(ih.Provider,{value:this.props.routeContext},f.createElement(Dxe.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function $gt(e){let{routeContext:t,match:n,children:r}=e,i=f.useContext(AP);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),f.createElement(ih.Provider,{value:t},r)}function Rgt(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,s=(i=n)==null?void 0:i.errors;if(s!=null){let u=a.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id])!==void 0);u>=0||oi(!1),a=a.slice(0,Math.min(a.length,u+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u<a.length;u++){let d=a[u];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(c=u),d.route.id){let{loaderData:h,errors:p}=n,m=d.route.loader&&h[d.route.id]===void 0&&(!p||p[d.route.id]===void 0);if(d.route.lazy||m){l=!0,c>=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((u,d,h)=>{let p,m=!1,v=null,y=null;n&&(p=s&&d.route.id?s[d.route.id]:void 0,v=d.route.errorElement||Mgt,l&&(c<0&&h===0?(m=!0,y=null):c===h&&(m=!0,y=d.route.hydrateFallbackElement||null)));let S=t.concat(a.slice(0,h+1)),b=()=>{let C;return p?C=v:m?C=y:d.route.Component?C=f.createElement(d.route.Component,null):d.route.element?C=d.route.element:C=u,f.createElement($gt,{match:d,routeContext:{outlet:u,matches:S,isDataRoute:n!=null},children:C})};return n&&(d.route.ErrorBoundary||d.route.errorElement||h===0)?f.createElement(Igt,{location:n.location,revalidation:n.revalidation,component:v,error:p,children:b(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):b()},null)}var jxe=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(jxe||{}),uk=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}(uk||{});function Agt(e){let t=f.useContext(AP);return t||oi(!1),t}function Ngt(e){let t=f.useContext(Nxe);return t||oi(!1),t}function Dgt(e){let t=f.useContext(ih);return t||oi(!1),t}function Bxe(e){let t=Dgt(),n=t.matches[t.matches.length-1];return n.route.id||oi(!1),n.route.id}function Lgt(){var e;let t=f.useContext(Dxe),n=Ngt(uk.UseRouteError),r=Bxe(uk.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Fgt(){let{router:e}=Agt(jxe.UseNavigateStable),t=Bxe(uk.UseNavigateStable),n=f.useRef(!1);return Lxe(()=>{n.current=!0}),f.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,ck({fromRouteId:t},o)))},[e,t])}const sre={};function jgt(e,t){sre[t]||(sre[t]=!0,console.warn(t))}const sy=(e,t,n)=>jgt(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function Bgt(e,t){e!=null&&e.v7_startTransition||sy("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)&&sy("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),t&&(t.v7_fetcherPersist||sy("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),t.v7_normalizeFormMethod||sy("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),t.v7_partialHydration||sy("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),t.v7_skipActionErrorRevalidation||sy("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"))}function Hgt(e){let{to:t,replace:n,state:r,relative:i}=e;hC()||oi(!1);let{future:o,static:a}=f.useContext(Sg),{matches:s}=f.useContext(ih),{pathname:l}=pC(),c=ss(),u=$P(t,IP(s,o.v7_relativeSplatPath),l,i==="path"),d=JSON.stringify(u);return f.useEffect(()=>c(JSON.parse(d),{replace:n,state:r,relative:i}),[c,d,i,n,r]),null}function NP(e){return kgt(e.context)}function zgt(e){let{basename:t="/",children:n=null,location:r,navigationType:i=xa.Pop,navigator:o,static:a=!1,future:s}=e;hC()&&oi(!1);let l=t.replace(/^\/*/,"/"),c=f.useMemo(()=>({basename:l,navigator:o,static:a,future:ck({v7_relativeSplatPath:!1},s)}),[l,s,o,a]);typeof r=="string"&&(r=Ip(r));let{pathname:u="/",search:d="",hash:h="",state:p=null,key:m="default"}=r,v=f.useMemo(()=>{let y=fC(u,l);return y==null?null:{location:{pathname:y,search:d,hash:h,state:p,key:m},navigationType:i}},[l,u,d,h,p,m,i]);return v==null?null:f.createElement(Sg.Provider,{value:c},f.createElement(bV.Provider,{children:n,value:v}))}new Promise(()=>{});function Hxe(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:f.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:f.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:f.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 oS(){return oS=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},oS.apply(this,arguments)}function Ugt(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Wgt(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Vgt(e,t){return e.button===0&&(!t||t==="_self")&&!Wgt(e)}const Kgt=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],qgt="6";try{window.__reactRouterVersion=qgt}catch{}function Ggt(e,t){return Mxe({basename:t==null?void 0:t.basename,future:oS({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:Pmt({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||zxe(),routes:e,mapRouteProperties:Hxe,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function Ygt(e,t){return Mxe({basename:t==null?void 0:t.basename,future:oS({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:Mmt({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||zxe(),routes:e,mapRouteProperties:Hxe,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function zxe(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=oS({},t,{errors:Xgt(t.errors)})),t}function Xgt(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 lk(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 Qgt=f.createContext({isTransitioning:!1}),Zgt=f.createContext(new Map),Jgt="startTransition",lre=Q_[Jgt],e1t="flushSync",cre=$fe[e1t];function t1t(e){lre?lre(e):e()}function Vx(e){cre?cre(e):e()}class n1t{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 r1t(e){let{fallbackElement:t,router:n,future:r}=e,[i,o]=f.useState(n.state),[a,s]=f.useState(),[l,c]=f.useState({isTransitioning:!1}),[u,d]=f.useState(),[h,p]=f.useState(),[m,v]=f.useState(),y=f.useRef(new Map),{v7_startTransition:S}=r||{},b=f.useCallback(k=>{S?t1t(k):k()},[S]),C=f.useCallback((k,M)=>{let{deletedFetchers:P,flushSync:D,viewTransitionOpts:R}=M;P.forEach(H=>y.current.delete(H)),k.fetchers.forEach((H,F)=>{H.data!==void 0&&y.current.set(F,H.data)});let A=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!R||A){D?Vx(()=>o(k)):b(()=>o(k));return}if(D){Vx(()=>{h&&(u&&u.resolve(),h.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:R.currentLocation,nextLocation:R.nextLocation})});let H=n.window.document.startViewTransition(()=>{Vx(()=>o(k))});H.finished.finally(()=>{Vx(()=>{d(void 0),p(void 0),s(void 0),c({isTransitioning:!1})})}),Vx(()=>p(H));return}h?(u&&u.resolve(),h.skipTransition(),v({state:k,currentLocation:R.currentLocation,nextLocation:R.nextLocation})):(s(k),c({isTransitioning:!0,flushSync:!1,currentLocation:R.currentLocation,nextLocation:R.nextLocation}))},[n.window,h,u,y,b]);f.useLayoutEffect(()=>n.subscribe(C),[n,C]),f.useEffect(()=>{l.isTransitioning&&!l.flushSync&&d(new n1t)},[l]),f.useEffect(()=>{if(u&&a&&n.window){let k=a,M=u.promise,P=n.window.document.startViewTransition(async()=>{b(()=>o(k)),await M});P.finished.finally(()=>{d(void 0),p(void 0),s(void 0),c({isTransitioning:!1})}),p(P)}},[b,a,u,n.window]),f.useEffect(()=>{u&&a&&i.location.key===a.location.key&&u.resolve()},[u,h,i.location,a]),f.useEffect(()=>{!l.isTransitioning&&m&&(s(m.state),c({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),v(void 0))},[l.isTransitioning,m]),f.useEffect(()=>{},[]);let _=f.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:k=>n.navigate(k),push:(k,M,P)=>n.navigate(k,{state:M,preventScrollReset:P==null?void 0:P.preventScrollReset}),replace:(k,M,P)=>n.navigate(k,{replace:!0,state:M,preventScrollReset:P==null?void 0:P.preventScrollReset})}),[n]),T=n.basename||"/",x=f.useMemo(()=>({router:n,navigator:_,static:!1,basename:T}),[n,_,T]),E=f.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return f.useEffect(()=>Bgt(r,n.future),[r,n.future]),f.createElement(f.Fragment,null,f.createElement(AP.Provider,{value:x},f.createElement(Nxe.Provider,{value:i},f.createElement(Zgt.Provider,{value:y.current},f.createElement(Qgt.Provider,{value:l},f.createElement(zgt,{basename:T,location:i.location,navigationType:i.historyAction,navigator:_,future:E},i.initialized||n.future.v7_partialHydration?f.createElement(i1t,{routes:n.routes,future:n.future,state:i}):t))))),null)}const i1t=f.memo(o1t);function o1t(e){let{routes:t,future:n,state:r}=e;return Ogt(t,void 0,r,n)}const a1t=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",s1t=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,l1t=f.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:a,state:s,target:l,to:c,preventScrollReset:u,viewTransition:d}=t,h=Ugt(t,Kgt),{basename:p}=f.useContext(Sg),m,v=!1;if(typeof c=="string"&&s1t.test(c)&&(m=c,a1t))try{let C=new URL(window.location.href),_=c.startsWith("//")?new URL(C.protocol+c):new URL(c),T=fC(_.pathname,p);_.origin===C.origin&&T!=null?c=T+_.search+_.hash:v=!0}catch{}let y=_gt(c,{relative:i}),S=c1t(c,{replace:a,state:s,target:l,preventScrollReset:u,relative:i,viewTransition:d});function b(C){r&&r(C),C.defaultPrevented||S(C)}return f.createElement("a",oS({},h,{href:m||y,onClick:v||o?r:b,ref:n,target:l}))});var ure;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ure||(ure={}));var dre;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(dre||(dre={}));function c1t(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a,viewTransition:s}=t===void 0?{}:t,l=ss(),c=pC(),u=Fxe(e,{relative:a});return f.useCallback(d=>{if(Vgt(d,n)){d.preventDefault();let h=r!==void 0?r:ag(c)===ag(u);l(e,{replace:h,state:i,preventScrollReset:o,relative:a,viewTransition:s})}},[c,l,u,r,i,n,e,o,a,s])}var u1t=G(G({},c1e),{},{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});const Uxe={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]},Pj={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},u1t),timePickerLocale:Object.assign({},Uxe)};Pj.lang.ok="确定";const uc="${label}不是一个有效的${type}",d1t={locale:"zh-cn",Pagination:HSe,DatePicker:Pj,TimePicker:Uxe,Calendar:Pj,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:uc,method:uc,array:uc,object:uc,number:uc,date:uc,boolean:uc,integer:uc,float:uc,regexp:uc,email:uc,url:uc,hex:uc},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:"渐变色"}},Dm=()=>{},xc=Dm(),V3=Object,Oi=e=>e===xc,Df=e=>typeof e=="function",vp=(e,t)=>({...e,...t}),f1t=e=>Df(e.then),d5=new WeakMap;let h1t=0;const __=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let i,o;if(V3(e)===e&&!r&&n!=RegExp){if(i=d5.get(e),i)return i;if(i=++h1t+"~",d5.set(e,i),n==Array){for(i="@",o=0;o<e.length;o++)i+=__(e[o])+",";d5.set(e,i)}if(n==V3){i="#";const a=V3.keys(e).sort();for(;!Oi(o=a.pop());)Oi(e[o])||(i+=o+":"+__(e[o])+",");d5.set(e,i)}}else i=r?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return i},Uh=new WeakMap,SA={},f5={},CV="undefined",DP=typeof window!=CV,Mj=typeof document!=CV,p1t=()=>DP&&typeof window.requestAnimationFrame!=CV,Wxe=(e,t)=>{const n=Uh.get(e);return[()=>!Oi(t)&&e.get(t)||SA,r=>{if(!Oi(t)){const i=e.get(t);t in f5||(f5[t]=i),n[5](t,vp(i,r),i||SA)}},n[6],()=>!Oi(t)&&t in f5?f5[t]:!Oi(t)&&e.get(t)||SA]};let Ij=!0;const m1t=()=>Ij,[$j,Rj]=DP&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Dm,Dm],g1t=()=>{const e=Mj&&document.visibilityState;return Oi(e)||e!=="hidden"},v1t=e=>(Mj&&document.addEventListener("visibilitychange",e),$j("focus",e),()=>{Mj&&document.removeEventListener("visibilitychange",e),Rj("focus",e)}),y1t=e=>{const t=()=>{Ij=!0,e()},n=()=>{Ij=!1};return $j("online",t),$j("offline",n),()=>{Rj("online",t),Rj("offline",n)}},b1t={isOnline:m1t,isVisible:g1t},S1t={initFocus:v1t,initReconnect:y1t},fre=!ge.useId,E_=!DP||"Deno"in window,C1t=e=>p1t()?window.requestAnimationFrame(e):setTimeout(e,1),K3=E_?f.useEffect:f.useLayoutEffect,CA=typeof navigator<"u"&&navigator.connection,hre=!E_&&CA&&(["slow-2g","2g"].includes(CA.effectiveType)||CA.saveData),xV=e=>{if(Df(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?__(e):"",[e,t]};let x1t=0;const Aj=()=>++x1t,Vxe=0,Kxe=1,qxe=2,w1t=3;var Kx={__proto__:null,ERROR_REVALIDATE_EVENT:w1t,FOCUS_EVENT:Vxe,MUTATE_EVENT:qxe,RECONNECT_EVENT:Kxe};async function Gxe(...e){const[t,n,r,i]=e,o=vp({populateCache:!0,throwOnError:!0},typeof i=="boolean"?{revalidate:i}:i||{});let a=o.populateCache;const s=o.rollbackOnError;let l=o.optimisticData;const c=o.revalidate!==!1,u=p=>typeof s=="function"?s(p):s!==!1,d=o.throwOnError;if(Df(n)){const p=n,m=[],v=t.keys();for(const y of v)!/^\$(inf|sub)\$/.test(y)&&p(t.get(y)._k)&&m.push(y);return Promise.all(m.map(h))}return h(n);async function h(p){const[m]=xV(p);if(!m)return;const[v,y]=Wxe(t,m),[S,b,C,_]=Uh.get(t),T=S[m],x=()=>c&&(delete C[m],delete _[m],T&&T[0])?T[0](qxe).then(()=>v().data):v().data;if(e.length<3)return x();let E=r,k;const M=Aj();b[m]=[M,0];const P=!Oi(l),D=v(),R=D.data,A=D._c,H=Oi(A)?R:A;if(P&&(l=Df(l)?l(H,R):l,y({data:l,_c:H})),Df(E))try{E=E(H)}catch(z){k=z}if(E&&f1t(E))if(E=await E.catch(z=>{k=z}),M!==b[m][0]){if(k)throw k;return E}else k&&P&&u(k)&&(a=!0,E=H,y({data:E,_c:xc}));a&&(k||(Df(a)&&(E=a(E,H)),y({data:E,error:xc,_c:xc}))),b[m][1]=Aj();const F=await x();if(y({_c:xc}),k){if(d)throw k;return}return a?F:E}}const pre=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},Yxe=(e,t)=>{if(!Uh.has(e)){const n=vp(S1t,t),r={},i=Gxe.bind(xc,e);let o=Dm;const a={},s=(u,d)=>{const h=a[u]||[];return a[u]=h,h.push(d),()=>h.splice(h.indexOf(d),1)},l=(u,d,h)=>{e.set(u,d);const p=a[u];if(p)for(const m of p)m(d,h)},c=()=>{if(!Uh.has(e)&&(Uh.set(e,[r,{},{},{},i,l,s]),!E_)){const u=n.initFocus(setTimeout.bind(xc,pre.bind(xc,r,Vxe))),d=n.initReconnect(setTimeout.bind(xc,pre.bind(xc,r,Kxe)));o=()=>{u&&u(),d&&d(),Uh.delete(e)}}};return c(),[e,i,c,o]}return[e,Uh.get(e)[4]]},_1t=(e,t,n,r,i)=>{const o=n.errorRetryCount,a=i.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!Oi(o)&&a>o||setTimeout(r,s,i)},E1t=(e,t)=>__(e)==__(t),[wV,T1t]=Yxe(new Map),Xxe=vp({onLoadingSlow:Dm,onSuccess:Dm,onError:Dm,onErrorRetry:_1t,onDiscarded:Dm,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:hre?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:hre?5e3:3e3,compare:E1t,isPaused:()=>!1,cache:wV,mutate:T1t,fallback:{}},b1t),Qxe=(e,t)=>{const n=vp(e,t);if(t){const{use:r,fallback:i}=e,{use:o,fallback:a}=t;r&&o&&(n.use=r.concat(o)),i&&a&&(n.fallback=vp(i,a))}return n},Nj=f.createContext({}),k1t=e=>{const{value:t}=e,n=f.useContext(Nj),r=Df(t),i=f.useMemo(()=>r?t(n):t,[r,n,t]),o=f.useMemo(()=>r?i:Qxe(n,i),[r,n,i]),a=i&&i.provider,s=f.useRef(xc);a&&!s.current&&(s.current=Yxe(a(o.cache||wV),i));const l=s.current;return l&&(o.cache=l[0],o.mutate=l[1]),K3(()=>{if(l)return l[2]&&l[2](),l[3]},[]),f.createElement(Nj.Provider,vp(e,{value:o}))},Zxe=DP&&window.__SWR_DEVTOOLS_USE__,O1t=Zxe?window.__SWR_DEVTOOLS_USE__:[],P1t=()=>{Zxe&&(window.__SWR_DEVTOOLS_REACT__=ge)},M1t=e=>Df(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],_V=()=>vp(Xxe,f.useContext(Nj)),I1t=e=>(t,n,r)=>e(t,n&&((...o)=>{const[a]=xV(t),[,,,s]=Uh.get(wV),l=s[a];return Oi(l)?n(...o):(delete s[a],l)}),r),$1t=O1t.concat(I1t),R1t=e=>function(...n){const r=_V(),[i,o,a]=M1t(n),s=Qxe(r,a);let l=e;const{use:c}=s,u=(c||[]).concat($1t);for(let d=u.length;d--;)l=u[d](l);return l(i,o||s.fetcher||null,s)},A1t=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const i=r.indexOf(n);i>=0&&(r[i]=r[r.length-1],r.pop())}};P1t();const mre=ge.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),xA={dedupe:!0},N1t=(e,t,n)=>{const{cache:r,compare:i,suspense:o,fallbackData:a,revalidateOnMount:s,revalidateIfStale:l,refreshInterval:c,refreshWhenHidden:u,refreshWhenOffline:d,keepPreviousData:h}=n,[p,m,v,y]=Uh.get(r),[S,b]=xV(e),C=f.useRef(!1),_=f.useRef(!1),T=f.useRef(S),x=f.useRef(t),E=f.useRef(n),k=()=>E.current,M=()=>k().isVisible()&&k().isOnline(),[P,D,R,A]=Wxe(r,S),H=f.useRef({}).current,F=Oi(a)?n.fallback[S]:a,z=(pe,he)=>{for(const _e in H){const le=_e;if(le==="data"){if(!i(pe[le],he[le])&&(!Oi(pe[le])||!i(ce,he[le])))return!1}else if(he[le]!==pe[le])return!1}return!0},W=f.useMemo(()=>{const pe=!S||!t?!1:Oi(s)?k().isPaused()||o?!1:Oi(l)?!0:l:s,he=Fe=>{const Ce=vp(Fe);return delete Ce._k,pe?{isValidating:!0,isLoading:!0,...Ce}:Ce},_e=P(),le=A(),xe=he(_e),we=_e===le?xe:he(le);let De=xe;return[()=>{const Fe=he(P());return z(Fe,De)?(De.data=Fe.data,De.isLoading=Fe.isLoading,De.isValidating=Fe.isValidating,De.error=Fe.error,De):(De=Fe,Fe)},()=>we]},[r,S]),q=Lfe.useSyncExternalStore(f.useCallback(pe=>R(S,(he,_e)=>{z(_e,he)||pe()}),[r,S]),W[0],W[1]),Z=!C.current,N=p[S]&&p[S].length>0,B=q.data,V=Oi(B)?F:B,Y=q.error,ie=f.useRef(V),ce=h?Oi(B)?ie.current:B:V,fe=N&&!Oi(Y)?!1:Z&&!Oi(s)?s:k().isPaused()?!1:o?Oi(V)?!1:l:Oi(V)||l,ee=!!(S&&t&&Z&&fe),ne=Oi(q.isValidating)?ee:q.isValidating,ue=Oi(q.isLoading)?ee:q.isLoading,ye=f.useCallback(async pe=>{const he=x.current;if(!S||!he||_.current||k().isPaused())return!1;let _e,le,xe=!0;const we=pe||{},De=!v[S]||!we.dedupe,Fe=()=>fre?!_.current&&S===T.current&&C.current:S===T.current,Ce={isValidating:!1,isLoading:!1},Te=()=>{D(Ce)},ke=()=>{const Ne=v[S];Ne&&Ne[1]===le&&delete v[S]},Pe={isValidating:!0};Oi(P().data)&&(Pe.isLoading=!0);try{if(De&&(D(Pe),n.loadingTimeout&&Oi(P().data)&&setTimeout(()=>{xe&&Fe()&&k().onLoadingSlow(S,n)},n.loadingTimeout),v[S]=[he(b),Aj()]),[_e,le]=v[S],_e=await _e,De&&setTimeout(ke,n.dedupingInterval),!v[S]||v[S][1]!==le)return De&&Fe()&&k().onDiscarded(S),!1;Ce.error=xc;const Ne=m[S];if(!Oi(Ne)&&(le<=Ne[0]||le<=Ne[1]||Ne[1]===0))return Te(),De&&Fe()&&k().onDiscarded(S),!1;const We=P().data;Ce.data=i(We,_e)?We:_e,De&&Fe()&&k().onSuccess(_e,S,n)}catch(Ne){ke();const We=k(),{shouldRetryOnError:Q}=We;We.isPaused()||(Ce.error=Ne,De&&Fe()&&(We.onError(Ne,S,We),(Q===!0||Df(Q)&&Q(Ne))&&M()&&We.onErrorRetry(Ne,S,We,K=>{const J=p[S];J&&J[0]&&J[0](Kx.ERROR_REVALIDATE_EVENT,K)},{retryCount:(we.retryCount||0)+1,dedupe:!0})))}return xe=!1,Te(),!0},[S,r]),me=f.useCallback((...pe)=>Gxe(r,T.current,...pe),[]);if(K3(()=>{x.current=t,E.current=n,Oi(B)||(ie.current=B)}),K3(()=>{if(!S)return;const pe=ye.bind(xc,xA);let he=0;const le=A1t(S,p,(xe,we={})=>{if(xe==Kx.FOCUS_EVENT){const De=Date.now();k().revalidateOnFocus&&De>he&&M()&&(he=De+k().focusThrottleInterval,pe())}else if(xe==Kx.RECONNECT_EVENT)k().revalidateOnReconnect&&M()&&pe();else{if(xe==Kx.MUTATE_EVENT)return ye();if(xe==Kx.ERROR_REVALIDATE_EVENT)return ye(we)}});return _.current=!1,T.current=S,C.current=!0,D({_k:b}),fe&&(Oi(V)||E_?pe():C1t(pe)),()=>{_.current=!0,le()}},[S]),K3(()=>{let pe;function he(){const le=Df(c)?c(P().data):c;le&&pe!==-1&&(pe=setTimeout(_e,le))}function _e(){!P().error&&(u||k().isVisible())&&(d||k().isOnline())?ye(xA).then(he):he()}return he(),()=>{pe&&(clearTimeout(pe),pe=-1)}},[c,u,d,S]),f.useDebugValue(ce),o&&Oi(V)&&S){if(!fre&&E_)throw new Error("Fallback data is required when using suspense in SSR.");x.current=t,E.current=n,_.current=!1;const pe=y[S];if(!Oi(pe)){const he=me(pe);mre(he)}if(Oi(Y)){const he=ye(xA);Oi(ce)||(he.status="fulfilled",he.value=!0),mre(he)}else throw Y}return{mutate:me,get data(){return H.data=!0,ce},get error(){return H.error=!0,Y},get isValidating(){return H.isValidating=!0,ne},get isLoading(){return H.isLoading=!0,ue}}},D1t=V3.defineProperty(k1t,"defaultValue",{value:Xxe}),EV=R1t(N1t),L1t={moneySymbol:"$",form:{lightFilter:{more:"المزيد",clear:"نظف",confirm:"تأكيد",itemUnit:"عناصر"}},tableForm:{search:"ابحث",reset:"إعادة تعيين",submit:"ارسال",collapsed:"مُقلص",expand:"مُوسع",inputPlaceholder:"الرجاء الإدخال",selectPlaceholder:"الرجاء الإختيار"},alert:{clear:"نظف",selected:"محدد",item:"عنصر"},pagination:{total:{range:" ",total:"من",item:"عناصر"}},tableToolBar:{leftPin:"ثبت على اليسار",rightPin:"ثبت على اليمين",noPin:"الغاء التثبيت",leftFixedTitle:"لصق على اليسار",rightFixedTitle:"لصق على اليمين",noFixedTitle:"إلغاء الإلصاق",reset:"إعادة تعيين",columnDisplay:"الأعمدة المعروضة",columnSetting:"الإعدادات",fullScreen:"وضع كامل الشاشة",exitFullScreen:"الخروج من وضع كامل الشاشة",reload:"تحديث",density:"الكثافة",densityDefault:"افتراضي",densityLarger:"أكبر",densityMiddle:"وسط",densitySmall:"مدمج"},stepsForm:{next:"التالي",prev:"السابق",submit:"أنهى"},loginForm:{submitText:"تسجيل الدخول"},editableTable:{action:{save:"أنقذ",cancel:"إلغاء الأمر",delete:"حذف",add:"إضافة صف من البيانات"}},switch:{open:"مفتوح",close:"غلق"}},F1t={moneySymbol:"€",form:{lightFilter:{more:"Més",clear:"Netejar",confirm:"Confirmar",itemUnit:"Elements"}},tableForm:{search:"Cercar",reset:"Netejar",submit:"Enviar",collapsed:"Expandir",expand:"Col·lapsar",inputPlaceholder:"Introduïu valor",selectPlaceholder:"Seleccioneu valor"},alert:{clear:"Netejar",selected:"Seleccionat",item:"Article"},pagination:{total:{range:" ",total:"de",item:"articles"}},tableToolBar:{leftPin:"Pin a l'esquerra",rightPin:"Pin a la dreta",noPin:"Sense Pin",leftFixedTitle:"Fixat a l'esquerra",rightFixedTitle:"Fixat a la dreta",noFixedTitle:"Sense fixar",reset:"Reiniciar",columnDisplay:"Mostrar Columna",columnSetting:"Configuració",fullScreen:"Pantalla Completa",exitFullScreen:"Sortir Pantalla Completa",reload:"Refrescar",density:"Densitat",densityDefault:"Per Defecte",densityLarger:"Llarg",densityMiddle:"Mitjà",densitySmall:"Compacte"},stepsForm:{next:"Següent",prev:"Anterior",submit:"Finalizar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Guardar",cancel:"Cancel·lar",delete:"Eliminar",add:"afegir una fila de dades"}},switch:{open:"obert",close:"tancat"}},j1t={moneySymbol:"Kč",deleteThisLine:"Smazat tento řádek",copyThisLine:"Kopírovat tento řádek",form:{lightFilter:{more:"Víc",clear:"Vymazat",confirm:"Potvrdit",itemUnit:"Položky"}},tableForm:{search:"Dotaz",reset:"Resetovat",submit:"Odeslat",collapsed:"Zvětšit",expand:"Zmenšit",inputPlaceholder:"Zadejte prosím",selectPlaceholder:"Vyberte prosím"},alert:{clear:"Vymazat",selected:"Vybraný",item:"Položka"},pagination:{total:{range:" ",total:"z",item:"položek"}},tableToolBar:{leftPin:"Připnout doleva",rightPin:"Připnout doprava",noPin:"Odepnuto",leftFixedTitle:"Fixováno nalevo",rightFixedTitle:"Fixováno napravo",noFixedTitle:"Neopraveno",reset:"Resetovat",columnDisplay:"Zobrazení sloupců",columnSetting:"Nastavení",fullScreen:"Celá obrazovka",exitFullScreen:"Ukončete celou obrazovku",reload:"Obnovit",density:"Hustota",densityDefault:"Výchozí",densityLarger:"Větší",densityMiddle:"Střední",densitySmall:"Kompaktní"},stepsForm:{next:"Další",prev:"Předchozí",submit:"Dokončit"},loginForm:{submitText:"Přihlásit se"},editableTable:{onlyOneLineEditor:"Upravit lze pouze jeden řádek",action:{save:"Uložit",cancel:"Zrušit",delete:"Vymazat",add:"přidat řádek dat"}},switch:{open:"otevřít",close:"zavřít"}},B1t={moneySymbol:"€",form:{lightFilter:{more:"Mehr",clear:"Zurücksetzen",confirm:"Bestätigen",itemUnit:"Einträge"}},tableForm:{search:"Suchen",reset:"Zurücksetzen",submit:"Absenden",collapsed:"Zeige mehr",expand:"Zeige weniger",inputPlaceholder:"Bitte eingeben",selectPlaceholder:"Bitte auswählen"},alert:{clear:"Zurücksetzen",selected:"Ausgewählt",item:"Eintrag"},pagination:{total:{range:" ",total:"von",item:"Einträgen"}},tableToolBar:{leftPin:"Links anheften",rightPin:"Rechts anheften",noPin:"Nicht angeheftet",leftFixedTitle:"Links fixiert",rightFixedTitle:"Rechts fixiert",noFixedTitle:"Nicht fixiert",reset:"Zurücksetzen",columnDisplay:"Angezeigte Reihen",columnSetting:"Einstellungen",fullScreen:"Vollbild",exitFullScreen:"Vollbild verlassen",reload:"Aktualisieren",density:"Abstand",densityDefault:"Standard",densityLarger:"Größer",densityMiddle:"Mittel",densitySmall:"Kompakt"},stepsForm:{next:"Weiter",prev:"Zurück",submit:"Abschließen"},loginForm:{submitText:"Anmelden"},editableTable:{action:{save:"Retten",cancel:"Abbrechen",delete:"Löschen",add:"Hinzufügen einer Datenzeile"}},switch:{open:"offen",close:"schließen"}},H1t={moneySymbol:"£",form:{lightFilter:{more:"More",clear:"Clear",confirm:"Confirm",itemUnit:"Items"}},tableForm:{search:"Query",reset:"Reset",submit:"Submit",collapsed:"Expand",expand:"Collapse",inputPlaceholder:"Please enter",selectPlaceholder:"Please select"},alert:{clear:"Clear",selected:"Selected",item:"Item"},pagination:{total:{range:" ",total:"of",item:"items"}},tableToolBar:{leftPin:"Pin to left",rightPin:"Pin to right",noPin:"Unpinned",leftFixedTitle:"Fixed to the left",rightFixedTitle:"Fixed to the right",noFixedTitle:"Not Fixed",reset:"Reset",columnDisplay:"Column Display",columnSetting:"Table Settings",fullScreen:"Full Screen",exitFullScreen:"Exit Full Screen",reload:"Refresh",density:"Density",densityDefault:"Default",densityLarger:"Larger",densityMiddle:"Middle",densitySmall:"Compact"},stepsForm:{next:"Next",prev:"Previous",submit:"Finish"},loginForm:{submitText:"Login"},editableTable:{onlyOneLineEditor:"Only one line can be edited",onlyAddOneLine:"Only one line can be added",action:{save:"Save",cancel:"Cancel",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"close"}},z1t={moneySymbol:"$",deleteThisLine:"Delete this line",copyThisLine:"Copy this line",form:{lightFilter:{more:"More",clear:"Clear",confirm:"Confirm",itemUnit:"Items"}},tableForm:{search:"Query",reset:"Reset",submit:"Submit",collapsed:"Expand",expand:"Collapse",inputPlaceholder:"Please enter",selectPlaceholder:"Please select"},alert:{clear:"Clear",selected:"Selected",item:"Item"},pagination:{total:{range:" ",total:"of",item:"items"}},tableToolBar:{leftPin:"Pin to left",rightPin:"Pin to right",noPin:"Unpinned",leftFixedTitle:"Fixed to the left",rightFixedTitle:"Fixed to the right",noFixedTitle:"Not Fixed",reset:"Reset",columnDisplay:"Column Display",columnSetting:"Table Settings",fullScreen:"Full Screen",exitFullScreen:"Exit Full Screen",reload:"Refresh",density:"Density",densityDefault:"Default",densityLarger:"Larger",densityMiddle:"Middle",densitySmall:"Compact"},stepsForm:{next:"Next",prev:"Previous",submit:"Finish"},loginForm:{submitText:"Login"},editableTable:{onlyOneLineEditor:"Only one line can be edited",onlyAddOneLine:"Only one line can be added",action:{save:"Save",cancel:"Cancel",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"close"}},U1t={moneySymbol:"€",form:{lightFilter:{more:"Más",clear:"Limpiar",confirm:"Confirmar",itemUnit:"artículos"}},tableForm:{search:"Buscar",reset:"Limpiar",submit:"Submit",collapsed:"Expandir",expand:"Colapsar",inputPlaceholder:"Ingrese valor",selectPlaceholder:"Seleccione valor"},alert:{clear:"Limpiar",selected:"Seleccionado",item:"Articulo"},pagination:{total:{range:" ",total:"de",item:"artículos"}},tableToolBar:{leftPin:"Pin a la izquierda",rightPin:"Pin a la derecha",noPin:"Sin Pin",leftFixedTitle:"Fijado a la izquierda",rightFixedTitle:"Fijado a la derecha",noFixedTitle:"Sin Fijar",reset:"Reiniciar",columnDisplay:"Mostrar Columna",columnSetting:"Configuración",fullScreen:"Pantalla Completa",exitFullScreen:"Salir Pantalla Completa",reload:"Refrescar",density:"Densidad",densityDefault:"Por Defecto",densityLarger:"Largo",densityMiddle:"Medio",densitySmall:"Compacto"},stepsForm:{next:"Siguiente",prev:"Anterior",submit:"Finalizar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Guardar",cancel:"Descartar",delete:"Borrar",add:"añadir una fila de datos"}},switch:{open:"abrir",close:"cerrar"}},W1t={moneySymbol:"تومان",form:{lightFilter:{more:"بیشتر",clear:"پاک کردن",confirm:"تایید",itemUnit:"مورد"}},tableForm:{search:"جستجو",reset:"بازنشانی",submit:"تایید",collapsed:"نمایش بیشتر",expand:"نمایش کمتر",inputPlaceholder:"پیدا کنید",selectPlaceholder:"انتخاب کنید"},alert:{clear:"پاک سازی",selected:"انتخاب",item:"مورد"},pagination:{total:{range:" ",total:"از",item:"مورد"}},tableToolBar:{leftPin:"سنجاق به چپ",rightPin:"سنجاق به راست",noPin:"سنجاق نشده",leftFixedTitle:"ثابت شده در چپ",rightFixedTitle:"ثابت شده در راست",noFixedTitle:"شناور",reset:"بازنشانی",columnDisplay:"نمایش همه",columnSetting:"تنظیمات",fullScreen:"تمام صفحه",exitFullScreen:"خروج از حالت تمام صفحه",reload:"تازه سازی",density:"تراکم",densityDefault:"پیش فرض",densityLarger:"بزرگ",densityMiddle:"متوسط",densitySmall:"کوچک"},stepsForm:{next:"بعدی",prev:"قبلی",submit:"اتمام"},loginForm:{submitText:"ورود"},editableTable:{action:{save:"ذخیره",cancel:"لغو",delete:"حذف",add:"یک ردیف داده اضافه کنید"}},switch:{open:"باز",close:"نزدیک"}},V1t={moneySymbol:"€",form:{lightFilter:{more:"Plus",clear:"Effacer",confirm:"Confirmer",itemUnit:"Items"}},tableForm:{search:"Rechercher",reset:"Réinitialiser",submit:"Envoyer",collapsed:"Agrandir",expand:"Réduire",inputPlaceholder:"Entrer une valeur",selectPlaceholder:"Sélectionner une valeur"},alert:{clear:"Réinitialiser",selected:"Sélectionné",item:"Item"},pagination:{total:{range:" ",total:"sur",item:"éléments"}},tableToolBar:{leftPin:"Épingler à gauche",rightPin:"Épingler à gauche",noPin:"Sans épingle",leftFixedTitle:"Fixer à gauche",rightFixedTitle:"Fixer à droite",noFixedTitle:"Non fixé",reset:"Réinitialiser",columnDisplay:"Affichage colonne",columnSetting:"Réglages",fullScreen:"Plein écran",exitFullScreen:"Quitter Plein écran",reload:"Rafraichir",density:"Densité",densityDefault:"Par défaut",densityLarger:"Larger",densityMiddle:"Moyenne",densitySmall:"Compacte"},stepsForm:{next:"Suivante",prev:"Précédente",submit:"Finaliser"},loginForm:{submitText:"Se connecter"},editableTable:{action:{save:"Sauvegarder",cancel:"Annuler",delete:"Supprimer",add:"ajouter une ligne de données"}},switch:{open:"ouvert",close:"près"}},K1t={moneySymbol:"₪",deleteThisLine:"מחק שורה זו",copyThisLine:"העתק שורה זו",form:{lightFilter:{more:"יותר",clear:"נקה",confirm:"אישור",itemUnit:"פריטים"}},tableForm:{search:"חיפוש",reset:"איפוס",submit:"שלח",collapsed:"הרחב",expand:"כווץ",inputPlaceholder:"אנא הכנס",selectPlaceholder:"אנא בחר"},alert:{clear:"נקה",selected:"נבחר",item:"פריט"},pagination:{total:{range:" ",total:"מתוך",item:"פריטים"}},tableToolBar:{leftPin:"הצמד לשמאל",rightPin:"הצמד לימין",noPin:"לא מצורף",leftFixedTitle:"מוצמד לשמאל",rightFixedTitle:"מוצמד לימין",noFixedTitle:"לא מוצמד",reset:"איפוס",columnDisplay:"תצוגת עמודות",columnSetting:"הגדרות",fullScreen:"מסך מלא",exitFullScreen:"צא ממסך מלא",reload:"רענן",density:"רזולוציה",densityDefault:"ברירת מחדל",densityLarger:"גדול",densityMiddle:"בינוני",densitySmall:"קטן"},stepsForm:{next:"הבא",prev:"קודם",submit:"סיום"},loginForm:{submitText:"כניסה"},editableTable:{onlyOneLineEditor:"ניתן לערוך רק שורה אחת",action:{save:"שמור",cancel:"ביטול",delete:"מחיקה",add:"הוסף שורת נתונים"}},switch:{open:"פתח",close:"סגור"}},q1t={moneySymbol:"kn",form:{lightFilter:{more:"Više",clear:"Očisti",confirm:"Potvrdi",itemUnit:"Stavke"}},tableForm:{search:"Pretraži",reset:"Poništi",submit:"Potvrdi",collapsed:"Raširi",expand:"Skupi",inputPlaceholder:"Unesite",selectPlaceholder:"Odaberite"},alert:{clear:"Očisti",selected:"Odaberi",item:"stavke"},pagination:{total:{range:" ",total:"od",item:"stavke"}},tableToolBar:{leftPin:"Prikači lijevo",rightPin:"Prikači desno",noPin:"Bez prikačenja",leftFixedTitle:"Fiksiraj lijevo",rightFixedTitle:"Fiksiraj desno",noFixedTitle:"Bez fiksiranja",reset:"Resetiraj",columnDisplay:"Prikaz stupaca",columnSetting:"Postavke",fullScreen:"Puni zaslon",exitFullScreen:"Izađi iz punog zaslona",reload:"Ponovno učitaj",density:"Veličina",densityDefault:"Zadano",densityLarger:"Veliko",densityMiddle:"Srednje",densitySmall:"Malo"},stepsForm:{next:"Sljedeći",prev:"Prethodni",submit:"Kraj"},loginForm:{submitText:"Prijava"},editableTable:{action:{save:"Spremi",cancel:"Odustani",delete:"Obriši",add:"dodajte red podataka"}},switch:{open:"otvori",close:"zatvori"}},G1t={moneySymbol:"RP",form:{lightFilter:{more:"Lebih",clear:"Hapus",confirm:"Konfirmasi",itemUnit:"Unit"}},tableForm:{search:"Cari",reset:"Atur ulang",submit:"Kirim",collapsed:"Lebih sedikit",expand:"Lebih banyak",inputPlaceholder:"Masukkan pencarian",selectPlaceholder:"Pilih"},alert:{clear:"Hapus",selected:"Dipilih",item:"Butir"},pagination:{total:{range:" ",total:"Dari",item:"Butir"}},tableToolBar:{leftPin:"Pin kiri",rightPin:"Pin kanan",noPin:"Tidak ada pin",leftFixedTitle:"Rata kiri",rightFixedTitle:"Rata kanan",noFixedTitle:"Tidak tetap",reset:"Atur ulang",columnDisplay:"Tampilan kolom",columnSetting:"Pengaturan",fullScreen:"Layar penuh",exitFullScreen:"Keluar layar penuh",reload:"Atur ulang",density:"Kerapatan",densityDefault:"Standar",densityLarger:"Lebih besar",densityMiddle:"Sedang",densitySmall:"Rapat"},stepsForm:{next:"Selanjutnya",prev:"Sebelumnya",submit:"Selesai"},loginForm:{submitText:"Login"},editableTable:{action:{save:"simpan",cancel:"batal",delete:"hapus",add:"Tambahkan baris data"}},switch:{open:"buka",close:"tutup"}},Y1t={moneySymbol:"€",form:{lightFilter:{more:"più",clear:"pulisci",confirm:"conferma",itemUnit:"elementi"}},tableForm:{search:"Filtra",reset:"Pulisci",submit:"Invia",collapsed:"Espandi",expand:"Contrai",inputPlaceholder:"Digita",selectPlaceholder:"Seleziona"},alert:{clear:"Rimuovi",selected:"Selezionati",item:"elementi"},pagination:{total:{range:" ",total:"di",item:"elementi"}},tableToolBar:{leftPin:"Fissa a sinistra",rightPin:"Fissa a destra",noPin:"Ripristina posizione",leftFixedTitle:"Fissato a sinistra",rightFixedTitle:"Fissato a destra",noFixedTitle:"Non fissato",reset:"Ripristina",columnDisplay:"Disposizione colonne",columnSetting:"Impostazioni",fullScreen:"Modalità schermo intero",exitFullScreen:"Esci da modalità schermo intero",reload:"Ricarica",density:"Grandezza tabella",densityDefault:"predefinito",densityLarger:"Grande",densityMiddle:"Media",densitySmall:"Compatta"},stepsForm:{next:"successivo",prev:"precedente",submit:"finisci"},loginForm:{submitText:"Accedi"},editableTable:{action:{save:"salva",cancel:"annulla",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"chiudi"}},X1t={moneySymbol:"¥",form:{lightFilter:{more:"更に",clear:"クリア",confirm:"確認",itemUnit:"アイテム"}},tableForm:{search:"検索",reset:"リセット",submit:"送信",collapsed:"拡大",expand:"折畳",inputPlaceholder:"入力してください",selectPlaceholder:"選択してください"},alert:{clear:"クリア",selected:"選択した",item:"アイテム"},pagination:{total:{range:"レコード",total:"/合計",item:" "}},tableToolBar:{leftPin:"左に固定",rightPin:"右に固定",noPin:"キャンセル",leftFixedTitle:"左に固定された項目",rightFixedTitle:"右に固定された項目",noFixedTitle:"固定されてない項目",reset:"リセット",columnDisplay:"表示列",columnSetting:"列表示設定",fullScreen:"フルスクリーン",exitFullScreen:"終了",reload:"更新",density:"行高",densityDefault:"デフォルト",densityLarger:"大",densityMiddle:"中",densitySmall:"小"},stepsForm:{next:"次へ",prev:"前へ",submit:"送信"},loginForm:{submitText:"ログイン"},editableTable:{action:{save:"保存",cancel:"キャンセル",delete:"削除",add:"追加"}},switch:{open:"開く",close:"閉じる"}},Q1t={moneySymbol:"₩",form:{lightFilter:{more:"더보기",clear:"초기화",confirm:"확인",itemUnit:"건수"}},tableForm:{search:"조회",reset:"초기화",submit:"제출",collapsed:"확장",expand:"닫기",inputPlaceholder:"입력해 주세요",selectPlaceholder:"선택해 주세요"},alert:{clear:"취소",selected:"선택",item:"건"},pagination:{total:{range:" ",total:"/ 총",item:"건"}},tableToolBar:{leftPin:"왼쪽으로 핀",rightPin:"오른쪽으로 핀",noPin:"핀 제거",leftFixedTitle:"왼쪽으로 고정",rightFixedTitle:"오른쪽으로 고정",noFixedTitle:"비고정",reset:"초기화",columnDisplay:"컬럼 표시",columnSetting:"설정",fullScreen:"전체 화면",exitFullScreen:"전체 화면 취소",reload:"새로 고침",density:"여백",densityDefault:"기본",densityLarger:"많은 여백",densityMiddle:"중간 여백",densitySmall:"좁은 여백"},stepsForm:{next:"다음",prev:"이전",submit:"종료"},loginForm:{submitText:"로그인"},editableTable:{action:{save:"저장",cancel:"취소",delete:"삭제",add:"데이터 행 추가"}},switch:{open:"열",close:"가까 운"}},Z1t={moneySymbol:"₮",form:{lightFilter:{more:"Илүү",clear:"Цэвэрлэх",confirm:"Баталгаажуулах",itemUnit:"Нэгжүүд"}},tableForm:{search:"Хайх",reset:"Шинэчлэх",submit:"Илгээх",collapsed:"Өргөтгөх",expand:"Хураах",inputPlaceholder:"Утга оруулна уу",selectPlaceholder:"Утга сонгоно уу"},alert:{clear:"Цэвэрлэх",selected:"Сонгогдсон",item:"Нэгж"},pagination:{total:{range:" ",total:"Нийт",item:"мөр"}},tableToolBar:{leftPin:"Зүүн тийш бэхлэх",rightPin:"Баруун тийш бэхлэх",noPin:"Бэхлэхгүй",leftFixedTitle:"Зүүн зэрэгцүүлэх",rightFixedTitle:"Баруун зэрэгцүүлэх",noFixedTitle:"Зэрэгцүүлэхгүй",reset:"Шинэчлэх",columnDisplay:"Баганаар харуулах",columnSetting:"Тохиргоо",fullScreen:"Бүтэн дэлгэцээр",exitFullScreen:"Бүтэн дэлгэц цуцлах",reload:"Шинэчлэх",density:"Хэмжээ",densityDefault:"Хэвийн",densityLarger:"Том",densityMiddle:"Дунд",densitySmall:"Жижиг"},stepsForm:{next:"Дараах",prev:"Өмнөх",submit:"Дуусгах"},loginForm:{submitText:"Нэвтрэх"},editableTable:{action:{save:"Хадгалах",cancel:"Цуцлах",delete:"Устгах",add:"Мөр нэмэх"}},switch:{open:"Нээх",close:"Хаах"}},J1t={moneySymbol:"RM",form:{lightFilter:{more:"Lebih banyak",clear:"Jelas",confirm:"Mengesahkan",itemUnit:"Item"}},tableForm:{search:"Cari",reset:"Menetapkan semula",submit:"Hantar",collapsed:"Kembang",expand:"Kuncup",inputPlaceholder:"Sila masuk",selectPlaceholder:"Sila pilih"},alert:{clear:"Padam",selected:"Dipilih",item:"Item"},pagination:{total:{range:" ",total:"daripada",item:"item"}},tableToolBar:{leftPin:"Pin ke kiri",rightPin:"Pin ke kanan",noPin:"Tidak pin",leftFixedTitle:"Tetap ke kiri",rightFixedTitle:"Tetap ke kanan",noFixedTitle:"Tidak Tetap",reset:"Menetapkan semula",columnDisplay:"Lajur",columnSetting:"Settings",fullScreen:"Full Screen",exitFullScreen:"Keluar Full Screen",reload:"Muat Semula",density:"Densiti",densityDefault:"Biasa",densityLarger:"Besar",densityMiddle:"Tengah",densitySmall:"Kecil"},stepsForm:{next:"Seterusnya",prev:"Sebelumnya",submit:"Selesai"},loginForm:{submitText:"Log Masuk"},editableTable:{action:{save:"Simpan",cancel:"Membatalkan",delete:"Menghapuskan",add:"tambah baris data"}},switch:{open:"Terbuka",close:"Tutup"}},evt={moneySymbol:"€",deleteThisLine:"Verwijder deze regel",copyThisLine:"Kopieer deze regel",form:{lightFilter:{more:"Meer filters",clear:"Wissen",confirm:"Bevestigen",itemUnit:"item"}},tableForm:{search:"Zoeken",reset:"Resetten",submit:"Indienen",collapsed:"Uitvouwen",expand:"Inklappen",inputPlaceholder:"Voer in",selectPlaceholder:"Selecteer"},alert:{clear:"Selectie annuleren",selected:"Geselecteerd",item:"item"},pagination:{total:{range:"Van",total:"items/totaal",item:"items"}},tableToolBar:{leftPin:"Vastzetten aan begin",rightPin:"Vastzetten aan einde",noPin:"Niet vastzetten",leftFixedTitle:"Vastzetten aan de linkerkant",rightFixedTitle:"Vastzetten aan de rechterkant",noFixedTitle:"Niet vastzetten",reset:"Resetten",columnDisplay:"Kolomweergave",columnSetting:"Kolominstellingen",fullScreen:"Volledig scherm",exitFullScreen:"Verlaat volledig scherm",reload:"Vernieuwen",density:"Dichtheid",densityDefault:"Normaal",densityLarger:"Ruim",densityMiddle:"Gemiddeld",densitySmall:"Compact"},stepsForm:{next:"Volgende stap",prev:"Vorige stap",submit:"Indienen"},loginForm:{submitText:"Inloggen"},editableTable:{onlyOneLineEditor:"Slechts één regel tegelijk bewerken",action:{save:"Opslaan",cancel:"Annuleren",delete:"Verwijderen",add:"Een regel toevoegen"}},switch:{open:"Openen",close:"Sluiten"}},tvt={moneySymbol:"zł",form:{lightFilter:{more:"Więcej",clear:"Wyczyść",confirm:"Potwierdź",itemUnit:"Ilość"}},tableForm:{search:"Szukaj",reset:"Reset",submit:"Zatwierdź",collapsed:"Pokaż wiecej",expand:"Pokaż mniej",inputPlaceholder:"Proszę podać",selectPlaceholder:"Proszę wybrać"},alert:{clear:"Wyczyść",selected:"Wybrane",item:"Wpis"},pagination:{total:{range:" ",total:"z",item:"Wpisów"}},tableToolBar:{leftPin:"Przypnij do lewej",rightPin:"Przypnij do prawej",noPin:"Odepnij",leftFixedTitle:"Przypięte do lewej",rightFixedTitle:"Przypięte do prawej",noFixedTitle:"Nieprzypięte",reset:"Reset",columnDisplay:"Wyświetlane wiersze",columnSetting:"Ustawienia",fullScreen:"Pełen ekran",exitFullScreen:"Zamknij pełen ekran",reload:"Odśwież",density:"Odstęp",densityDefault:"Standard",densityLarger:"Wiekszy",densityMiddle:"Sredni",densitySmall:"Kompaktowy"},stepsForm:{next:"Weiter",prev:"Zurück",submit:"Abschließen"},loginForm:{submitText:"Zaloguj się"},editableTable:{action:{save:"Zapisać",cancel:"Anuluj",delete:"Usunąć",add:"dodawanie wiersza danych"}},switch:{open:"otwierać",close:"zamykać"}},nvt={moneySymbol:"R$",form:{lightFilter:{more:"Mais",clear:"Limpar",confirm:"Confirmar",itemUnit:"Itens"}},tableForm:{search:"Filtrar",reset:"Limpar",submit:"Confirmar",collapsed:"Expandir",expand:"Colapsar",inputPlaceholder:"Por favor insira",selectPlaceholder:"Por favor selecione"},alert:{clear:"Limpar",selected:"Selecionado(s)",item:"Item(s)"},pagination:{total:{range:" ",total:"de",item:"itens"}},tableToolBar:{leftPin:"Fixar à esquerda",rightPin:"Fixar à direita",noPin:"Desfixado",leftFixedTitle:"Fixado à esquerda",rightFixedTitle:"Fixado à direita",noFixedTitle:"Não fixado",reset:"Limpar",columnDisplay:"Mostrar Coluna",columnSetting:"Configurações",fullScreen:"Tela Cheia",exitFullScreen:"Sair da Tela Cheia",reload:"Atualizar",density:"Densidade",densityDefault:"Padrão",densityLarger:"Largo",densityMiddle:"Médio",densitySmall:"Compacto"},stepsForm:{next:"Próximo",prev:"Anterior",submit:"Enviar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Salvar",cancel:"Cancelar",delete:"Apagar",add:"adicionar uma linha de dados"}},switch:{open:"abrir",close:"fechar"}},rvt={moneySymbol:"RON",deleteThisLine:"Șterge acest rând",copyThisLine:"Copiază acest rând",form:{lightFilter:{more:"Mai multe filtre",clear:"Curăță",confirm:"Confirmă",itemUnit:"elemente"}},tableForm:{search:"Caută",reset:"Resetează",submit:"Trimite",collapsed:"Extinde",expand:"Restrânge",inputPlaceholder:"Introduceți",selectPlaceholder:"Selectați"},alert:{clear:"Anulează selecția",selected:"Selectat",item:"elemente"},pagination:{total:{range:"De la",total:"elemente/total",item:"elemente"}},tableToolBar:{leftPin:"Fixează la început",rightPin:"Fixează la sfârșit",noPin:"Nu fixa",leftFixedTitle:"Fixează în stânga",rightFixedTitle:"Fixează în dreapta",noFixedTitle:"Nu fixa",reset:"Resetează",columnDisplay:"Afișare coloane",columnSetting:"Setări coloane",fullScreen:"Ecran complet",exitFullScreen:"Ieși din ecran complet",reload:"Reîncarcă",density:"Densitate",densityDefault:"Normal",densityLarger:"Larg",densityMiddle:"Mediu",densitySmall:"Compact"},stepsForm:{next:"Pasul următor",prev:"Pasul anterior",submit:"Trimite"},loginForm:{submitText:"Autentificare"},editableTable:{onlyOneLineEditor:"Se poate edita doar un rând simultan",action:{save:"Salvează",cancel:"Anulează",delete:"Șterge",add:"Adaugă un rând"}},switch:{open:"Deschide",close:"Închide"}},ivt={moneySymbol:"₽",form:{lightFilter:{more:"Еще",clear:"Очистить",confirm:"ОК",itemUnit:"Позиции"}},tableForm:{search:"Найти",reset:"Сброс",submit:"Отправить",collapsed:"Развернуть",expand:"Свернуть",inputPlaceholder:"Введите значение",selectPlaceholder:"Выберите значение"},alert:{clear:"Очистить",selected:"Выбрано",item:"элементов"},pagination:{total:{range:" ",total:"из",item:"элементов"}},tableToolBar:{leftPin:"Закрепить слева",rightPin:"Закрепить справа",noPin:"Открепить",leftFixedTitle:"Закреплено слева",rightFixedTitle:"Закреплено справа",noFixedTitle:"Не закреплено",reset:"Сброс",columnDisplay:"Отображение столбца",columnSetting:"Настройки",fullScreen:"Полный экран",exitFullScreen:"Выйти из полноэкранного режима",reload:"Обновить",density:"Размер",densityDefault:"По умолчанию",densityLarger:"Большой",densityMiddle:"Средний",densitySmall:"Сжатый"},stepsForm:{next:"Следующий",prev:"Предыдущий",submit:"Завершить"},loginForm:{submitText:"Вход"},editableTable:{action:{save:"Сохранить",cancel:"Отменить",delete:"Удалить",add:"добавить ряд данных"}},switch:{open:"Открытый чемпионат мира по теннису",close:"По адресу:"}},ovt={moneySymbol:"€",deleteThisLine:"Odstrániť tento riadok",copyThisLine:"Skopírujte tento riadok",form:{lightFilter:{more:"Viac",clear:"Vyčistiť",confirm:"Potvrďte",itemUnit:"Položky"}},tableForm:{search:"Vyhladať",reset:"Resetovať",submit:"Odoslať",collapsed:"Rozbaliť",expand:"Zbaliť",inputPlaceholder:"Prosím, zadajte",selectPlaceholder:"Prosím, vyberte"},alert:{clear:"Vyčistiť",selected:"Vybraný",item:"Položka"},pagination:{total:{range:" ",total:"z",item:"položiek"}},tableToolBar:{leftPin:"Pripnúť vľavo",rightPin:"Pripnúť vpravo",noPin:"Odopnuté",leftFixedTitle:"Fixované na ľavo",rightFixedTitle:"Fixované na pravo",noFixedTitle:"Nefixované",reset:"Resetovať",columnDisplay:"Zobrazenie stĺpcov",columnSetting:"Nastavenia",fullScreen:"Celá obrazovka",exitFullScreen:"Ukončiť celú obrazovku",reload:"Obnoviť",density:"Hustota",densityDefault:"Predvolené",densityLarger:"Väčšie",densityMiddle:"Stredné",densitySmall:"Kompaktné"},stepsForm:{next:"Ďalšie",prev:"Predchádzajúce",submit:"Potvrdiť"},loginForm:{submitText:"Prihlásiť sa"},editableTable:{onlyOneLineEditor:"Upravovať možno iba jeden riadok",action:{save:"Uložiť",cancel:"Zrušiť",delete:"Odstrániť",add:"pridať riadok údajov"}},switch:{open:"otvoriť",close:"zavrieť"}},avt={moneySymbol:"RSD",form:{lightFilter:{more:"Više",clear:"Očisti",confirm:"Potvrdi",itemUnit:"Stavke"}},tableForm:{search:"Pronađi",reset:"Resetuj",submit:"Pošalji",collapsed:"Proširi",expand:"Skupi",inputPlaceholder:"Molimo unesite",selectPlaceholder:"Molimo odaberite"},alert:{clear:"Očisti",selected:"Odabrano",item:"Stavka"},pagination:{total:{range:" ",total:"od",item:"stavki"}},tableToolBar:{leftPin:"Zakači levo",rightPin:"Zakači desno",noPin:"Nije zakačeno",leftFixedTitle:"Fiksirano levo",rightFixedTitle:"Fiksirano desno",noFixedTitle:"Nije fiksirano",reset:"Resetuj",columnDisplay:"Prikaz kolona",columnSetting:"Podešavanja",fullScreen:"Pun ekran",exitFullScreen:"Zatvori pun ekran",reload:"Osveži",density:"Veličina",densityDefault:"Podrazumevana",densityLarger:"Veća",densityMiddle:"Srednja",densitySmall:"Kompaktna"},stepsForm:{next:"Dalje",prev:"Nazad",submit:"Gotovo"},loginForm:{submitText:"Prijavi se"},editableTable:{action:{save:"Sačuvaj",cancel:"Poništi",delete:"Obriši",add:"dodajte red podataka"}},switch:{open:"Отворите",close:"Затворите"}},svt={moneySymbol:"SEK",deleteThisLine:"Radera denna rad",copyThisLine:"Kopiera denna rad",form:{lightFilter:{more:"Fler filter",clear:"Rensa",confirm:"Bekräfta",itemUnit:"objekt"}},tableForm:{search:"Sök",reset:"Återställ",submit:"Skicka",collapsed:"Expandera",expand:"Fäll ihop",inputPlaceholder:"Vänligen ange",selectPlaceholder:"Vänligen välj"},alert:{clear:"Avbryt val",selected:"Vald",item:"objekt"},pagination:{total:{range:"Från",total:"objekt/totalt",item:"objekt"}},tableToolBar:{leftPin:"Fäst till vänster",rightPin:"Fäst till höger",noPin:"Inte fäst",leftFixedTitle:"Fäst till vänster",rightFixedTitle:"Fäst till höger",noFixedTitle:"Inte fäst",reset:"Återställ",columnDisplay:"Kolumnvisning",columnSetting:"Kolumninställningar",fullScreen:"Fullskärm",exitFullScreen:"Avsluta fullskärm",reload:"Ladda om",density:"Täthet",densityDefault:"Normal",densityLarger:"Lös",densityMiddle:"Medium",densitySmall:"Kompakt"},stepsForm:{next:"Nästa steg",prev:"Föregående steg",submit:"Skicka"},loginForm:{submitText:"Logga in"},editableTable:{onlyOneLineEditor:"Endast en rad kan redigeras åt gången",action:{save:"Spara",cancel:"Avbryt",delete:"Radera",add:"Lägg till en rad"}},switch:{open:"Öppna",close:"Stäng"}},lvt={moneySymbol:"฿",deleteThisLine:"ลบบรรทัดนี้",copyThisLine:"คัดลอกบรรทัดนี้",form:{lightFilter:{more:"มากกว่า",clear:"ชัดเจน",confirm:"ยืนยัน",itemUnit:"รายการ"}},tableForm:{search:"สอบถาม",reset:"รีเซ็ต",submit:"ส่ง",collapsed:"ขยาย",expand:"ทรุด",inputPlaceholder:"กรุณาป้อน",selectPlaceholder:"โปรดเลือก"},alert:{clear:"ชัดเจน",selected:"เลือกแล้ว",item:"รายการ"},pagination:{total:{range:" ",total:"ของ",item:"รายการ"}},tableToolBar:{leftPin:"ปักหมุดไปทางซ้าย",rightPin:"ปักหมุดไปทางขวา",noPin:"เลิกตรึงแล้ว",leftFixedTitle:"แก้ไขด้านซ้าย",rightFixedTitle:"แก้ไขด้านขวา",noFixedTitle:"ไม่คงที่",reset:"รีเซ็ต",columnDisplay:"การแสดงคอลัมน์",columnSetting:"การตั้งค่า",fullScreen:"เต็มจอ",exitFullScreen:"ออกจากโหมดเต็มหน้าจอ",reload:"รีเฟรช",density:"ความหนาแน่น",densityDefault:"ค่าเริ่มต้น",densityLarger:"ขนาดใหญ่ขึ้น",densityMiddle:"กลาง",densitySmall:"กะทัดรัด"},stepsForm:{next:"ถัดไป",prev:"ก่อนหน้า",submit:"เสร็จ"},loginForm:{submitText:"เข้าสู่ระบบ"},editableTable:{onlyOneLineEditor:"แก้ไขได้เพียงบรรทัดเดียวเท่านั้น",action:{save:"บันทึก",cancel:"ยกเลิก",delete:"ลบ",add:"เพิ่มแถวของข้อมูล"}},switch:{open:"เปิด",close:"ปิด"}},cvt={moneySymbol:"₺",form:{lightFilter:{more:"Daha Fazla",clear:"Temizle",confirm:"Onayla",itemUnit:"Öğeler"}},tableForm:{search:"Filtrele",reset:"Sıfırla",submit:"Gönder",collapsed:"Daha fazla",expand:"Daha az",inputPlaceholder:"Filtrelemek için bir değer girin",selectPlaceholder:"Filtrelemek için bir değer seçin"},alert:{clear:"Temizle",selected:"Seçili",item:"Öğe"},pagination:{total:{range:" ",total:"Toplam",item:"Öğe"}},tableToolBar:{leftPin:"Sola sabitle",rightPin:"Sağa sabitle",noPin:"Sabitlemeyi kaldır",leftFixedTitle:"Sola sabitlendi",rightFixedTitle:"Sağa sabitlendi",noFixedTitle:"Sabitlenmedi",reset:"Sıfırla",columnDisplay:"Kolon Görünümü",columnSetting:"Ayarlar",fullScreen:"Tam Ekran",exitFullScreen:"Tam Ekrandan Çık",reload:"Yenile",density:"Kalınlık",densityDefault:"Varsayılan",densityLarger:"Büyük",densityMiddle:"Orta",densitySmall:"Küçük"},stepsForm:{next:"Sıradaki",prev:"Önceki",submit:"Gönder"},loginForm:{submitText:"Giriş Yap"},editableTable:{action:{save:"Kaydet",cancel:"Vazgeç",delete:"Sil",add:"foegje in rige gegevens ta"}},switch:{open:"açık",close:"kapatmak"}},uvt={moneySymbol:"₴",deleteThisLine:"Видатили рядок",copyThisLine:"Скопіювати рядок",form:{lightFilter:{more:"Ще",clear:"Очистити",confirm:"Ок",itemUnit:"Позиції"}},tableForm:{search:"Пошук",reset:"Очистити",submit:"Відправити",collapsed:"Розгорнути",expand:"Згорнути",inputPlaceholder:"Введіть значення",selectPlaceholder:"Оберіть значення"},alert:{clear:"Очистити",selected:"Обрано",item:"елементів"},pagination:{total:{range:" ",total:"з",item:"елементів"}},tableToolBar:{leftPin:"Закріпити зліва",rightPin:"Закріпити справа",noPin:"Відкріпити",leftFixedTitle:"Закріплено зліва",rightFixedTitle:"Закріплено справа",noFixedTitle:"Не закріплено",reset:"Скинути",columnDisplay:"Відображення стовпців",columnSetting:"Налаштування",fullScreen:"Повноекранний режим",exitFullScreen:"Вийти з повноекранного режиму",reload:"Оновити",density:"Розмір",densityDefault:"За замовчуванням",densityLarger:"Великий",densityMiddle:"Середній",densitySmall:"Стислий"},stepsForm:{next:"Наступний",prev:"Попередній",submit:"Завершити"},loginForm:{submitText:"Вхіх"},editableTable:{onlyOneLineEditor:"Тільки один рядок може бути редагований одночасно",action:{save:"Зберегти",cancel:"Відмінити",delete:"Видалити",add:"додати рядок"}},switch:{open:"Відкрито",close:"Закрито"}},dvt={moneySymbol:"UZS",form:{lightFilter:{more:"Yana",clear:"Tozalash",confirm:"OK",itemUnit:"Pozitsiyalar"}},tableForm:{search:"Qidirish",reset:"Qayta tiklash",submit:"Yuborish",collapsed:"Yig‘ish",expand:"Kengaytirish",inputPlaceholder:"Qiymatni kiriting",selectPlaceholder:"Qiymatni tanlang"},alert:{clear:"Tozalash",selected:"Tanlangan",item:"elementlar"},pagination:{total:{range:" ",total:"dan",item:"elementlar"}},tableToolBar:{leftPin:"Chapga mahkamlash",rightPin:"O‘ngga mahkamlash",noPin:"Mahkamlashni olib tashlash",leftFixedTitle:"Chapga mahkamlangan",rightFixedTitle:"O‘ngga mahkamlangan",noFixedTitle:"Mahkamlashsiz",reset:"Qayta tiklash",columnDisplay:"Ustunni ko‘rsatish",columnSetting:"Sozlamalar",fullScreen:"To‘liq ekran",exitFullScreen:"To‘liq ekrandan chiqish",reload:"Yangilash",density:"O‘lcham",densityDefault:"Standart",densityLarger:"Katta",densityMiddle:"O‘rtacha",densitySmall:"Kichik"},stepsForm:{next:"Keyingi",prev:"Oldingi",submit:"Tugatish"},loginForm:{submitText:"Kirish"},editableTable:{action:{save:"Saqlash",cancel:"Bekor qilish",delete:"O‘chirish",add:"maʼlumotlar qatorini qo‘shish"}},switch:{open:"Ochish",close:"Yopish"}},fvt={moneySymbol:"₫",form:{lightFilter:{more:"Nhiều hơn",clear:"Trong",confirm:"Xác nhận",itemUnit:"Mục"}},tableForm:{search:"Tìm kiếm",reset:"Làm lại",submit:"Gửi đi",collapsed:"Mở rộng",expand:"Thu gọn",inputPlaceholder:"nhập dữ liệu",selectPlaceholder:"Vui lòng chọn"},alert:{clear:"Xóa",selected:"đã chọn",item:"mục"},pagination:{total:{range:" ",total:"trên",item:"mặt hàng"}},tableToolBar:{leftPin:"Ghim trái",rightPin:"Ghim phải",noPin:"Bỏ ghim",leftFixedTitle:"Cố định trái",rightFixedTitle:"Cố định phải",noFixedTitle:"Chưa cố định",reset:"Làm lại",columnDisplay:"Cột hiển thị",columnSetting:"Cấu hình",fullScreen:"Chế độ toàn màn hình",exitFullScreen:"Thoát chế độ toàn màn hình",reload:"Làm mới",density:"Mật độ hiển thị",densityDefault:"Mặc định",densityLarger:"Mặc định",densityMiddle:"Trung bình",densitySmall:"Chật"},stepsForm:{next:"Sau",prev:"Trước",submit:"Kết thúc"},loginForm:{submitText:"Đăng nhập"},editableTable:{action:{save:"Cứu",cancel:"Hủy",delete:"Xóa",add:"thêm một hàng dữ liệu"}},switch:{open:"mở",close:"đóng"}},hvt={moneySymbol:"¥",deleteThisLine:"删除此项",copyThisLine:"复制此项",form:{lightFilter:{more:"更多筛选",clear:"清除",confirm:"确认",itemUnit:"项"}},tableForm:{search:"查询",reset:"重置",submit:"提交",collapsed:"展开",expand:"收起",inputPlaceholder:"请输入",selectPlaceholder:"请选择"},alert:{clear:"取消选择",selected:"已选择",item:"项"},pagination:{total:{range:"第",total:"条/总共",item:"条"}},tableToolBar:{leftPin:"固定在列首",rightPin:"固定在列尾",noPin:"不固定",leftFixedTitle:"固定在左侧",rightFixedTitle:"固定在右侧",noFixedTitle:"不固定",reset:"重置",columnDisplay:"列展示",columnSetting:"列设置",fullScreen:"全屏",exitFullScreen:"退出全屏",reload:"刷新",density:"密度",densityDefault:"正常",densityLarger:"宽松",densityMiddle:"中等",densitySmall:"紧凑"},stepsForm:{next:"下一步",prev:"上一步",submit:"提交"},loginForm:{submitText:"登录"},editableTable:{onlyOneLineEditor:"只能同时编辑一行",action:{save:"保存",cancel:"取消",delete:"删除",add:"添加一行数据"}},switch:{open:"打开",close:"关闭"}},pvt={moneySymbol:"NT$",deleteThisLine:"刪除此项",copyThisLine:"複製此项",form:{lightFilter:{more:"更多篩選",clear:"清除",confirm:"確認",itemUnit:"項"}},tableForm:{search:"查詢",reset:"重置",submit:"提交",collapsed:"展開",expand:"收起",inputPlaceholder:"請輸入",selectPlaceholder:"請選擇"},alert:{clear:"取消選擇",selected:"已選擇",item:"項"},pagination:{total:{range:"第",total:"條/總共",item:"條"}},tableToolBar:{leftPin:"固定到左邊",rightPin:"固定到右邊",noPin:"不固定",leftFixedTitle:"固定在左側",rightFixedTitle:"固定在右側",noFixedTitle:"不固定",reset:"重置",columnDisplay:"列展示",columnSetting:"列設置",fullScreen:"全屏",exitFullScreen:"退出全屏",reload:"刷新",density:"密度",densityDefault:"正常",densityLarger:"寬鬆",densityMiddle:"中等",densitySmall:"緊湊"},stepsForm:{next:"下一步",prev:"上一步",submit:"完成"},loginForm:{submitText:"登入"},editableTable:{onlyOneLineEditor:"只能同時編輯一行",action:{save:"保存",cancel:"取消",delete:"刪除",add:"新增一行資料"}},switch:{open:"打開",close:"關閉"}};var Ii=function(t,n){return{getMessage:function(i,o){var a=Bo(n,i.replace(/\[(\d+)\]/g,".$1").split("."))||"";if(a)return a;var s=t.replace("_","-");if(s==="zh-CN")return o;var l=Ov["zh-CN"];return l?l.getMessage(i,o):o},locale:t}},mvt=Ii("mn_MN",Z1t),gvt=Ii("ar_EG",L1t),mb=Ii("zh_CN",hvt),vvt=Ii("en_US",z1t),yvt=Ii("en_GB",H1t),bvt=Ii("vi_VN",fvt),Svt=Ii("it_IT",Y1t),Cvt=Ii("ja_JP",X1t),xvt=Ii("es_ES",U1t),wvt=Ii("ca_ES",F1t),_vt=Ii("ru_RU",ivt),Evt=Ii("sr_RS",avt),Tvt=Ii("ms_MY",J1t),kvt=Ii("zh_TW",pvt),Ovt=Ii("fr_FR",V1t),Pvt=Ii("pt_BR",nvt),Mvt=Ii("ko_KR",Q1t),Ivt=Ii("id_ID",G1t),$vt=Ii("de_DE",B1t),Rvt=Ii("fa_IR",W1t),Avt=Ii("tr_TR",cvt),Nvt=Ii("pl_PL",tvt),Dvt=Ii("hr_",q1t),Lvt=Ii("th_TH",lvt),Fvt=Ii("cs_cz",j1t),jvt=Ii("sk_SK",ovt),Bvt=Ii("he_IL",K1t),Hvt=Ii("uk_UA",uvt),zvt=Ii("uz_UZ",dvt),Uvt=Ii("nl_NL",evt),Wvt=Ii("ro_RO",rvt),Vvt=Ii("sv_SE",svt),Ov={"mn-MN":mvt,"ar-EG":gvt,"zh-CN":mb,"en-US":vvt,"en-GB":yvt,"vi-VN":bvt,"it-IT":Svt,"ja-JP":Cvt,"es-ES":xvt,"ca-ES":wvt,"ru-RU":_vt,"sr-RS":Evt,"ms-MY":Tvt,"zh-TW":kvt,"fr-FR":Ovt,"pt-BR":Pvt,"ko-KR":Mvt,"id-ID":Ivt,"de-DE":$vt,"fa-IR":Rvt,"tr-TR":Avt,"pl-PL":Nvt,"hr-HR":Dvt,"th-TH":Lvt,"cs-CZ":Fvt,"sk-SK":jvt,"he-IL":Bvt,"uk-UA":Hvt,"uz-UZ":zvt,"nl-NL":Uvt,"ro-RO":Wvt,"sv-SE":Vvt},Kvt=Object.keys(Ov),Jxe=function(t){var n=(t||"zh-CN").toLocaleLowerCase();return Kvt.find(function(r){var i=r.toLocaleLowerCase();return i.includes(n)})};function Ss(e,t){qvt(e)&&(e="100%");var n=Gvt(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 h5(e){return Math.min(1,Math.max(0,e))}function qvt(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Gvt(e){return typeof e=="string"&&e.indexOf("%")!==-1}function e2e(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function p5(e){return e<=1?"".concat(Number(e)*100,"%"):e}function I1(e){return e.length===1?"0"+e:String(e)}function Yvt(e,t,n){return{r:Ss(e,255)*255,g:Ss(t,255)*255,b:Ss(n,255)*255}}function gre(e,t,n){e=Ss(e,255),t=Ss(t,255),n=Ss(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o=0,a=0,s=(r+i)/2;if(r===i)a=0,o=0;else{var l=r-i;switch(a=s>.5?l/(2-r-i):l/(r+i),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:a,l:s}}function wA(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 Xvt(e,t,n){var r,i,o;if(e=Ss(e,360),t=Ss(t,100),n=Ss(n,100),t===0)i=n,o=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;r=wA(s,a,e+1/3),i=wA(s,a,e),o=wA(s,a,e-1/3)}return{r:r*255,g:i*255,b:o*255}}function Dj(e,t,n){e=Ss(e,255),t=Ss(t,255),n=Ss(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o=0,a=r,s=r-i,l=r===0?0:s/r;if(r===i)o=0;else{switch(r){case e:o=(t-n)/s+(t<n?6:0);break;case t:o=(n-e)/s+2;break;case n:o=(e-t)/s+4;break}o/=6}return{h:o,s:l,v:a}}function Qvt(e,t,n){e=Ss(e,360)*6,t=Ss(t,100),n=Ss(n,100);var r=Math.floor(e),i=e-r,o=n*(1-t),a=n*(1-i*t),s=n*(1-(1-i)*t),l=r%6,c=[n,a,o,o,s,n][l],u=[s,n,n,a,o,o][l],d=[o,o,s,n,n,a][l];return{r:c*255,g:u*255,b:d*255}}function Lj(e,t,n,r){var i=[I1(Math.round(e).toString(16)),I1(Math.round(t).toString(16)),I1(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 Zvt(e,t,n,r,i){var o=[I1(Math.round(e).toString(16)),I1(Math.round(t).toString(16)),I1(Math.round(n).toString(16)),I1(Jvt(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 Jvt(e){return Math.round(parseFloat(e)*255).toString(16)}function vre(e){return dc(e)/255}function dc(e){return parseInt(e,16)}function e0t(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Fj={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 Sy(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,o=null,a=!1,s=!1;return typeof e=="string"&&(e=r0t(e)),typeof e=="object"&&(Sh(e.r)&&Sh(e.g)&&Sh(e.b)?(t=Yvt(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Sh(e.h)&&Sh(e.s)&&Sh(e.v)?(r=p5(e.s),i=p5(e.v),t=Qvt(e.h,r,i),a=!0,s="hsv"):Sh(e.h)&&Sh(e.s)&&Sh(e.l)&&(r=p5(e.s),o=p5(e.l),t=Xvt(e.h,r,o),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=e2e(n),{ok:a,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var t0t="[-\\+]?\\d+%?",n0t="[-\\+]?\\d*\\.\\d+%?",Lm="(?:".concat(n0t,")|(?:").concat(t0t,")"),_A="[\\s|\\(]+(".concat(Lm,")[,|\\s]+(").concat(Lm,")[,|\\s]+(").concat(Lm,")\\s*\\)?"),EA="[\\s|\\(]+(".concat(Lm,")[,|\\s]+(").concat(Lm,")[,|\\s]+(").concat(Lm,")[,|\\s]+(").concat(Lm,")\\s*\\)?"),rd={CSS_UNIT:new RegExp(Lm),rgb:new RegExp("rgb"+_A),rgba:new RegExp("rgba"+EA),hsl:new RegExp("hsl"+_A),hsla:new RegExp("hsla"+EA),hsv:new RegExp("hsv"+_A),hsva:new RegExp("hsva"+EA),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 r0t(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Fj[e])e=Fj[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=rd.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=rd.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=rd.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=rd.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=rd.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=rd.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=rd.hex8.exec(e),n?{r:dc(n[1]),g:dc(n[2]),b:dc(n[3]),a:vre(n[4]),format:t?"name":"hex8"}:(n=rd.hex6.exec(e),n?{r:dc(n[1]),g:dc(n[2]),b:dc(n[3]),format:t?"name":"hex"}:(n=rd.hex4.exec(e),n?{r:dc(n[1]+n[1]),g:dc(n[2]+n[2]),b:dc(n[3]+n[3]),a:vre(n[4]+n[4]),format:t?"name":"hex8"}:(n=rd.hex3.exec(e),n?{r:dc(n[1]+n[1]),g:dc(n[2]+n[2]),b:dc(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Sh(e){return!!rd.CSS_UNIT.exec(String(e))}var i0t=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=e0t(t)),this.originalInput=t;var i=Sy(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,s=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),s<=.03928?i=s/12.92:i=Math.pow((s+.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=e2e(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=Dj(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=Dj(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=gre(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=gre(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),Lj(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),Zvt(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(Ss(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(Ss(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="#"+Lj(this.r,this.g,this.b,!1),n=0,r=Object.entries(Fj);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=h5(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=h5(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=h5(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=h5(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=[],s=1/t;t--;)a.push(new e({h:r,s:i,v:o})),o=(o+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),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}(),TA,T_={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",colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff7875",colorInfo:"#1677ff",colorTextBase:"#000",colorBgBase:"#fff",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'",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)",motionEaseInQuint:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:4,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,"blue-1":"#e6f4ff","blue-2":"#bae0ff","blue-3":"#91caff","blue-4":"#69b1ff","blue-5":"#4096ff","blue-6":"#1677ff","blue-7":"#0958d9","blue-8":"#003eb3","blue-9":"#002c8c","blue-10":"#001d66","purple-1":"#f9f0ff","purple-2":"#efdbff","purple-3":"#d3adf7","purple-4":"#b37feb","purple-5":"#9254de","purple-6":"#722ed1","purple-7":"#531dab","purple-8":"#391085","purple-9":"#22075e","purple-10":"#120338","cyan-1":"#e6fffb","cyan-2":"#b5f5ec","cyan-3":"#87e8de","cyan-4":"#5cdbd3","cyan-5":"#36cfc9","cyan-6":"#13c2c2","cyan-7":"#08979c","cyan-8":"#006d75","cyan-9":"#00474f","cyan-10":"#002329","green-1":"#f6ffed","green-2":"#d9f7be","green-3":"#b7eb8f","green-4":"#95de64","green-5":"#73d13d","green-6":"#52c41a","green-7":"#389e0d","green-8":"#237804","green-9":"#135200","green-10":"#092b00","magenta-1":"#fff0f6","magenta-2":"#ffd6e7","magenta-3":"#ffadd2","magenta-4":"#ff85c0","magenta-5":"#f759ab","magenta-6":"#eb2f96","magenta-7":"#c41d7f","magenta-8":"#9e1068","magenta-9":"#780650","magenta-10":"#520339","pink-1":"#fff0f6","pink-2":"#ffd6e7","pink-3":"#ffadd2","pink-4":"#ff85c0","pink-5":"#f759ab","pink-6":"#eb2f96","pink-7":"#c41d7f","pink-8":"#9e1068","pink-9":"#780650","pink-10":"#520339","red-1":"#fff1f0","red-2":"#ffccc7","red-3":"#ffa39e","red-4":"#ff7875","red-5":"#ff4d4f","red-6":"#f5222d","red-7":"#cf1322","red-8":"#a8071a","red-9":"#820014","red-10":"#5c0011","orange-1":"#fff7e6","orange-2":"#ffe7ba","orange-3":"#ffd591","orange-4":"#ffc069","orange-5":"#ffa940","orange-6":"#fa8c16","orange-7":"#d46b08","orange-8":"#ad4e00","orange-9":"#873800","orange-10":"#612500","yellow-1":"#feffe6","yellow-2":"#ffffb8","yellow-3":"#fffb8f","yellow-4":"#fff566","yellow-5":"#ffec3d","yellow-6":"#fadb14","yellow-7":"#d4b106","yellow-8":"#ad8b00","yellow-9":"#876800","yellow-10":"#614700","volcano-1":"#fff2e8","volcano-2":"#ffd8bf","volcano-3":"#ffbb96","volcano-4":"#ff9c6e","volcano-5":"#ff7a45","volcano-6":"#fa541c","volcano-7":"#d4380d","volcano-8":"#ad2102","volcano-9":"#871400","volcano-10":"#610b00","geekblue-1":"#f0f5ff","geekblue-2":"#d6e4ff","geekblue-3":"#adc6ff","geekblue-4":"#85a5ff","geekblue-5":"#597ef7","geekblue-6":"#2f54eb","geekblue-7":"#1d39c4","geekblue-8":"#10239e","geekblue-9":"#061178","geekblue-10":"#030852","gold-1":"#fffbe6","gold-2":"#fff1b8","gold-3":"#ffe58f","gold-4":"#ffd666","gold-5":"#ffc53d","gold-6":"#faad14","gold-7":"#d48806","gold-8":"#ad6800","gold-9":"#874d00","gold-10":"#613400","lime-1":"#fcffe6","lime-2":"#f4ffb8","lime-3":"#eaff8f","lime-4":"#d3f261","lime-5":"#bae637","lime-6":"#a0d911","lime-7":"#7cb305","lime-8":"#5b8c00","lime-9":"#3f6600","lime-10":"#254000",colorText:"rgba(0, 0, 0, 0.88)",colorTextSecondary:"rgba(0, 0, 0, 0.65)",colorTextTertiary:"rgba(0, 0, 0, 0.45)",colorTextQuaternary:"rgba(0, 0, 0, 0.25)",colorFill:"rgba(0, 0, 0, 0.15)",colorFillSecondary:"rgba(0, 0, 0, 0.06)",colorFillTertiary:"rgba(0, 0, 0, 0.04)",colorFillQuaternary:"rgba(0, 0, 0, 0.02)",colorBgLayout:"hsl(220,23%,97%)",colorBgContainer:"#ffffff",colorBgElevated:"#ffffff",colorBgSpotlight:"rgba(0, 0, 0, 0.85)",colorBorder:"#d9d9d9",colorBorderSecondary:"#f0f0f0",colorPrimaryBg:"#e6f4ff",colorPrimaryBgHover:"#bae0ff",colorPrimaryBorder:"#91caff",colorPrimaryBorderHover:"#69b1ff",colorPrimaryHover:"#4096ff",colorPrimaryActive:"#0958d9",colorPrimaryTextHover:"#4096ff",colorPrimaryText:"#1677ff",colorPrimaryTextActive:"#0958d9",colorSuccessBg:"#f6ffed",colorSuccessBgHover:"#d9f7be",colorSuccessBorder:"#b7eb8f",colorSuccessBorderHover:"#95de64",colorSuccessHover:"#95de64",colorSuccessActive:"#389e0d",colorSuccessTextHover:"#73d13d",colorSuccessText:"#52c41a",colorSuccessTextActive:"#389e0d",colorErrorBg:"#fff2f0",colorErrorBgHover:"#fff1f0",colorErrorBorder:"#ffccc7",colorErrorBorderHover:"#ffa39e",colorErrorHover:"#ffa39e",colorErrorActive:"#d9363e",colorErrorTextHover:"#ff7875",colorErrorText:"#ff4d4f",colorErrorTextActive:"#d9363e",colorWarningBg:"#fffbe6",colorWarningBgHover:"#fff1b8",colorWarningBorder:"#ffe58f",colorWarningBorderHover:"#ffd666",colorWarningHover:"#ffd666",colorWarningActive:"#d48806",colorWarningTextHover:"#ffc53d",colorWarningText:"#faad14",colorWarningTextActive:"#d48806",colorInfoBg:"#e6f4ff",colorInfoBgHover:"#bae0ff",colorInfoBorder:"#91caff",colorInfoBorderHover:"#69b1ff",colorInfoHover:"#69b1ff",colorInfoActive:"#0958d9",colorInfoTextHover:"#4096ff",colorInfoText:"#1677ff",colorInfoTextActive:"#0958d9",colorBgMask:"rgba(0, 0, 0, 0.45)",colorWhite:"#fff",sizeXXL:48,sizeXL:32,sizeLG:24,sizeMD:20,sizeMS:16,size:16,sizeSM:12,sizeXS:8,sizeXXS:4,controlHeightSM:24,controlHeightXS:16,controlHeightLG:40,motionDurationFast:"0.1s",motionDurationMid:"0.2s",motionDurationSlow:"0.3s",fontSizes:[12,14,16,20,24,30,38,46,56,68],lineHeights:[1.6666666666666667,1.5714285714285714,1.5,1.4,1.3333333333333333,1.2666666666666666,1.2105263157894737,1.173913043478261,1.1428571428571428,1.1176470588235294],lineWidthBold:2,borderRadiusXS:1,borderRadiusSM:4,borderRadiusLG:8,borderRadiusOuter:4,colorLink:"#1677ff",colorLinkHover:"#69b1ff",colorLinkActive:"#0958d9",colorFillContent:"rgba(0, 0, 0, 0.06)",colorFillContentHover:"rgba(0, 0, 0, 0.15)",colorFillAlter:"rgba(0, 0, 0, 0.02)",colorBgContainerDisabled:"rgba(0, 0, 0, 0.04)",colorBorderBg:"#ffffff",colorSplit:"rgba(5, 5, 5, 0.06)",colorTextPlaceholder:"rgba(0, 0, 0, 0.25)",colorTextDisabled:"rgba(0, 0, 0, 0.25)",colorTextHeading:"rgba(0, 0, 0, 0.88)",colorTextLabel:"rgba(0, 0, 0, 0.65)",colorTextDescription:"rgba(0, 0, 0, 0.45)",colorTextLightSolid:"#fff",colorHighlight:"#ff7875",colorBgTextHover:"rgba(0, 0, 0, 0.06)",colorBgTextActive:"rgba(0, 0, 0, 0.15)",colorIcon:"rgba(0, 0, 0, 0.45)",colorIconHover:"rgba(0, 0, 0, 0.88)",colorErrorOutline:"rgba(255, 38, 5, 0.06)",colorWarningOutline:"rgba(255, 215, 5, 0.1)",fontSizeSM:12,fontSizeLG:16,fontSizeXL:20,fontSizeHeading1:38,fontSizeHeading2:30,fontSizeHeading3:24,fontSizeHeading4:20,fontSizeHeading5:16,fontSizeIcon:12,lineHeight:1.5714285714285714,lineHeightLG:1.5,lineHeightSM:1.6666666666666667,lineHeightHeading1:1.2105263157894737,lineHeightHeading2:1.2666666666666666,lineHeightHeading3:1.3333333333333333,lineHeightHeading4:1.4,lineHeightHeading5:1.5,controlOutlineWidth:2,controlInteractiveSize:16,controlItemBgHover:"rgba(0, 0, 0, 0.04)",controlItemBgActive:"#e6f4ff",controlItemBgActiveHover:"#bae0ff",controlItemBgActiveDisabled:"rgba(0, 0, 0, 0.15)",controlTmpOutline:"rgba(0, 0, 0, 0.02)",controlOutline:"rgba(5, 145, 255, 0.1)",fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:4,paddingXS:8,paddingSM:12,padding:16,paddingMD:20,paddingLG:24,paddingXL:32,paddingContentHorizontalLG:24,paddingContentVerticalLG:16,paddingContentHorizontal:16,paddingContentVertical:12,paddingContentHorizontalSM:16,paddingContentVerticalSM:8,marginXXS:4,marginXS:8,marginSM:12,margin:16,marginMD:20,marginLG:24,marginXL:32,marginXXL:48,boxShadow:"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)",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)",screenXS:480,screenXSMin:480,screenXSMax:479,screenSM:576,screenSMMin:576,screenSMMax:575,screenMD:768,screenMDMin:768,screenMDMax:767,screenLG:992,screenLGMin:992,screenLGMax:991,screenXL:1200,screenXLMin:1200,screenXLMax:1199,screenXXL:1600,screenXXLMin:1600,screenXXLMax:1599,boxShadowPopoverArrow:"3px 3px 7px rgba(0, 0, 0, 0.1)",boxShadowCard:"0 1px 2px -2px rgba(0, 0, 0, 0.16),0 3px 6px 0 rgba(0, 0, 0, 0.12),0 5px 12px 4px rgba(0, 0, 0, 0.09)",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)",_tokenKey:"19w80ff",_hashId:"css-dev-only-do-not-override-i2zu9q"},t2e=function(t){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,r=3735928559^n,i=1103547991^n,o=0,a;o<t.length;o++)a=t.charCodeAt(o),r=Math.imul(r^a,2654435761),i=Math.imul(i^a,1597334677);return r=Math.imul(r^r>>>16,2246822507)^Math.imul(i^i>>>13,3266489909),i=Math.imul(i^i>>>16,2246822507)^Math.imul(r^r>>>13,3266489909),4294967296*(2097151&i)+(r>>>0)},TV=yv(function(e){return e}),n2e={theme:TV,token:G(G({},T_),al==null||(TA=al.defaultAlgorithm)===null||TA===void 0?void 0:TA.call(al,al==null?void 0:al.defaultSeed)),hashId:"pro-".concat(t2e(JSON.stringify(T_)))},o0t=function(){return n2e};const a0t=Object.freeze(Object.defineProperty({__proto__:null,defaultToken:T_,emptyTheme:TV,hashCode:t2e,token:n2e,useToken:o0t},Symbol.toStringTag,{value:"Module"}));var fc=function(t,n){return new i0t(t).setAlpha(n).toRgbString()},s0t=function(){return typeof al>"u"||!al?a0t:al},Gf=s0t(),q3=Gf.useToken,kA=function(t){return{boxSizing:"border-box",margin:0,padding:0,color:t.colorText,fontSize:t.fontSize,lineHeight:t.lineHeight,listStyle:"none"}};function ro(e,t){var n,r=f.useContext(Pd),i=r.token,o=i===void 0?{}:i,a=f.useContext(Pd),s=a.hashed,l=q3(),c=l.token,u=l.hashId,d=f.useContext(Pd),h=d.theme,p=f.useContext(or.ConfigContext),m=p.getPrefixCls,v=p.csp;return o.layout||(o=G({},c)),o.proComponentsCls=(n=o.proComponentsCls)!==null&&n!==void 0?n:".".concat(m("pro")),o.antCls=".".concat(m()),{wrapSSR:u_({theme:h,token:o,path:[e],nonce:v==null?void 0:v.nonce,layer:{name:"antd-pro",dependencies:["antd"]}},function(){return t(o)}),hashId:s?u:""}}var l0t=function(t,n){var r,i,o,a,s,l=G({},t);return G(G({bgLayout:"linear-gradient(".concat(n.colorBgContainer,", ").concat(n.colorBgLayout," 28%)"),colorTextAppListIcon:n.colorTextSecondary,appListIconHoverBgColor:l==null||(r=l.sider)===null||r===void 0?void 0:r.colorBgMenuItemSelected,colorBgAppListIconHover:fc(n.colorTextBase,.04),colorTextAppListIconHover:n.colorTextBase},l),{},{header:G({colorBgHeader:fc(n.colorBgElevated,.6),colorBgScrollHeader:fc(n.colorBgElevated,.8),colorHeaderTitle:n.colorText,colorBgMenuItemHover:fc(n.colorTextBase,.03),colorBgMenuItemSelected:"transparent",colorBgMenuElevated:(l==null||(i=l.header)===null||i===void 0?void 0:i.colorBgHeader)!=="rgba(255, 255, 255, 0.6)"?(o=l.header)===null||o===void 0?void 0:o.colorBgHeader:n.colorBgElevated,colorTextMenuSelected:fc(n.colorTextBase,.95),colorBgRightActionsItemHover:fc(n.colorTextBase,.03),colorTextRightActionsItem:n.colorTextTertiary,heightLayoutHeader:56,colorTextMenu:n.colorTextSecondary,colorTextMenuSecondary:n.colorTextTertiary,colorTextMenuTitle:n.colorText,colorTextMenuActive:n.colorText},l.header),sider:G({paddingInlineLayoutMenu:8,paddingBlockLayoutMenu:0,colorBgCollapsedButton:n.colorBgElevated,colorTextCollapsedButtonHover:n.colorTextSecondary,colorTextCollapsedButton:fc(n.colorTextBase,.25),colorMenuBackground:"transparent",colorMenuItemDivider:fc(n.colorTextBase,.06),colorBgMenuItemHover:fc(n.colorTextBase,.03),colorBgMenuItemSelected:fc(n.colorTextBase,.04),colorTextMenuItemHover:n.colorText,colorTextMenuSelected:fc(n.colorTextBase,.95),colorTextMenuActive:n.colorText,colorTextMenu:n.colorTextSecondary,colorTextMenuSecondary:n.colorTextTertiary,colorTextMenuTitle:n.colorText,colorTextSubMenuSelected:fc(n.colorTextBase,.95)},l.sider),pageContainer:G({colorBgPageContainer:"transparent",paddingInlinePageContainerContent:((a=l.pageContainer)===null||a===void 0?void 0:a.marginInlinePageContainerContent)||40,paddingBlockPageContainerContent:((s=l.pageContainer)===null||s===void 0?void 0:s.marginBlockPageContainerContent)||32,colorBgPageContainerFixed:n.colorBgElevated},l.pageContainer)})},c0t=function(){for(var t={},n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];for(var o=r.length,a,s=0;s<o;s+=1)for(a in r[s])r[s].hasOwnProperty(a)&&(ln(t[a])==="object"&&ln(r[s][a])==="object"&&t[a]!==void 0&&t[a]!==null&&!Array.isArray(t[a])&&!Array.isArray(r[s][a])?t[a]=G(G({},t[a]),r[s][a]):t[a]=r[s][a]);return t},u0t={exports:{}};(function(e,t){(function(n,r){e.exports=r(mye)})(yo,function(n){function r(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var i=r(n),o={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(a,s){return s==="W"?a+"周":a+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(a,s){var l=100*a+s;return l<600?"凌晨":l<900?"早上":l<1100?"上午":l<1300?"中午":l<1800?"下午":"晚上"}};return i.default.locale(o,null,!0),o})})(u0t);var d0t=["locale","getPrefixCls"],f0t=["locale","theme"],h0t=function(t){var n={};if(Object.keys(t||{}).forEach(function(r){t[r]!==void 0&&(n[r]=t[r])}),!(Object.keys(n).length<1))return n},gb=function(){var t,n;return!(typeof process<"u"&&(((t="production")===null||t===void 0?void 0:t.toUpperCase())==="TEST"||((n="production")===null||n===void 0?void 0:n.toUpperCase())==="DEV"))},sg=ge.createContext({intl:G(G({},mb),{},{locale:"default"}),valueTypeMap:{},theme:TV,hashed:!0,dark:!1,token:T_});sg.Consumer;var p0t=function(){var t=_V(),n=t.cache;return f.useEffect(function(){return function(){n.clear()}},[]),null},m0t=function(t){var n,r=t.children,i=t.dark,o=t.valueTypeMap,a=t.autoClearCache,s=a===void 0?!1:a,l=t.token,c=t.prefixCls,u=t.intl,d=f.useContext(or.ConfigContext),h=d.locale,p=d.getPrefixCls,m=tn(d,d0t),v=(n=Gf.useToken)===null||n===void 0?void 0:n.call(Gf),y=f.useContext(sg),S=c?".".concat(c):".".concat(p(),"-pro"),b="."+p(),C="".concat(S),_=f.useMemo(function(){return l0t(l||{},v.token||T_)},[l,v.token]),T=f.useMemo(function(){var z,W=h==null?void 0:h.locale,q=Jxe(W),Z=u??(W&&((z=y.intl)===null||z===void 0?void 0:z.locale)==="default"?Ov[q]:y.intl||Ov[q]);return G(G({},y),{},{dark:i??y.dark,token:c0t(y.token,v.token,{proComponentsCls:S,antCls:b,themeId:v.theme.id,layout:_}),intl:Z||mb})},[h==null?void 0:h.locale,y,i,v.token,v.theme.id,S,b,_,u]),x=G(G({},T.token||{}),{},{proComponentsCls:S}),E=kU(v.theme,[v.token,x??{}],{salt:C,override:x}),k=Le(E,2),M=k[0],P=k[1],D=f.useMemo(function(){return!(t.hashed===!1||y.hashed===!1)},[y.hashed,t.hashed]),R=f.useMemo(function(){return t.hashed===!1||y.hashed===!1||gb()===!1?"":v.hashId?v.hashId:P},[P,y.hashed,t.hashed]);f.useEffect(function(){Fr.locale((h==null?void 0:h.locale)||"zh-cn")},[h==null?void 0:h.locale]);var A=f.useMemo(function(){return G(G({},m.theme),{},{hashId:R,hashed:D&&gb()})},[m.theme,R,D,gb()]),H=f.useMemo(function(){return G(G({},T),{},{valueTypeMap:o||(T==null?void 0:T.valueTypeMap),token:M,theme:v.theme,hashed:D,hashId:R})},[T,o,M,v.theme,D,R]),F=f.useMemo(function(){return U.jsx(or,G(G({},m),{},{theme:A,children:U.jsx(sg.Provider,{value:H,children:U.jsxs(U.Fragment,{children:[s&&U.jsx(p0t,{}),r]})})}))},[m,A,H,s,r]);return s?U.jsx(D1t,{value:{provider:function(){return new Map}},children:F}):F},LP=function(t){var n=t.needDeps,r=t.dark,i=t.token,o=f.useContext(sg),a=f.useContext(or.ConfigContext),s=a.locale,l=a.theme,c=tn(a,f0t),u=n&&o.hashId!==void 0&&Object.keys(t).sort().join("-")==="children-needDeps";if(u)return U.jsx(U.Fragment,{children:t.children});var d=function(){var m=r??o.dark;return m&&!Array.isArray(l==null?void 0:l.algorithm)?[Gf.darkAlgorithm,l==null?void 0:l.algorithm].filter(Boolean):m&&Array.isArray(l==null?void 0:l.algorithm)?[Gf.darkAlgorithm].concat(pt((l==null?void 0:l.algorithm)||[])).filter(Boolean):l==null?void 0:l.algorithm},h=G(G({},c),{},{locale:s||d1t,theme:h0t(G(G({},l),{},{algorithm:d()}))});return U.jsx(or,G(G({},h),{},{children:U.jsx(m0t,G(G({},t),{},{token:i}))}))};function Vo(){var e=f.useContext(or.ConfigContext),t=e.locale,n=f.useContext(sg),r=n.intl;return r&&r.locale!=="default"?r||mb:t!=null&&t.locale&&Ov[Jxe(t.locale)]||mb}sg.displayName="ProProvider";var Pd=sg,g0t=function(t){return ae({},t.componentCls,{display:"flex",justifyContent:"space-between",paddingBlock:8,paddingInlineStart:8,paddingInlineEnd:8,borderBlockStart:"1px solid ".concat(t.colorSplit)})};function v0t(e){return ro("DropdownFooter",function(t){var n=G(G({},t),{},{componentCls:".".concat(e)});return[g0t(n)]})}var y0t=function(t){var n=Vo(),r=t.onClear,i=t.onConfirm,o=t.disabled,a=t.footerRender,s=f.useContext(or.ConfigContext),l=s.getPrefixCls,c=l("pro-core-dropdown-footer"),u=v0t(c),d=u.wrapSSR,h=u.hashId,p=[U.jsx(hr,{style:{visibility:r?"visible":"hidden"},type:"link",size:"small",disabled:o,onClick:function(y){r&&r(y),y.stopPropagation()},children:n.getMessage("form.lightFilter.clear","清除")},"clear"),U.jsx(hr,{"data-type":"confirm",type:"primary",size:"small",onClick:i,disabled:o,children:n.getMessage("form.lightFilter.confirm","确认")},"confirm")];if(a===!1||(a==null?void 0:a(i,r))===!1)return null;var m=(a==null?void 0:a(i,r))||p;return d(U.jsx("div",{className:Re(c,h),onClick:function(y){return y.target.getAttribute("data-type")!=="confirm"&&y.stopPropagation()},children:m}))},b0t=function(e){Xs(n,e);var t=Sl(n);function n(){var r;pi(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)),ae(On(r),"state",{hasError:!1,errorInfo:""}),r}return mi(n,[{key:"componentDidCatch",value:function(i,o){console.log(i,o)}},{key:"render",value:function(){return this.state.hasError?U.jsx(BE,{status:"error",title:"Something went wrong.",extra:this.state.errorInfo}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(i){return{hasError:!0,errorInfo:i.message}}}]),n}(ge.Component),S0t=function(t){return ae({},t.componentCls,ae(ae(ae(ae(ae(ae(ae(ae({display:"inline-flex",gap:t.marginXXS,alignItems:"center",height:"30px",paddingBlock:0,paddingInline:8,fontSize:t.fontSize,lineHeight:"30px",borderRadius:"2px",cursor:"pointer","&:hover":{backgroundColor:t.colorBgTextHover},"&-active":ae({paddingBlock:0,paddingInline:8,backgroundColor:t.colorBgTextHover},"&".concat(t.componentCls,"-allow-clear:hover:not(").concat(t.componentCls,"-disabled)"),ae(ae({},"".concat(t.componentCls,"-arrow"),{display:"none"}),"".concat(t.componentCls,"-close"),{display:"inline-flex"}))},"".concat(t.antCls,"-select"),ae({},"".concat(t.antCls,"-select-clear"),{borderRadius:"50%"})),"".concat(t.antCls,"-picker"),ae({},"".concat(t.antCls,"-picker-clear"),{borderRadius:"50%"})),"&-icon",ae(ae({color:t.colorIcon,transition:"color 0.3s",fontSize:12,verticalAlign:"middle"},"&".concat(t.componentCls,"-close"),{display:"none",fontSize:12,alignItems:"center",justifyContent:"center",color:t.colorTextPlaceholder,borderRadius:"50%"}),"&:hover",{color:t.colorIconHover})),"&-disabled",ae({color:t.colorTextPlaceholder,cursor:"not-allowed"},"".concat(t.componentCls,"-icon"),{color:t.colorTextPlaceholder})),"&-small",ae(ae(ae({height:"24px",paddingBlock:0,paddingInline:4,fontSize:t.fontSizeSM,lineHeight:"24px"},"&".concat(t.componentCls,"-active"),{paddingBlock:0,paddingInline:8}),"".concat(t.componentCls,"-icon"),{paddingBlock:0,paddingInline:0}),"".concat(t.componentCls,"-close"),{marginBlockStart:"-2px",paddingBlock:4,paddingInline:4,fontSize:"6px"})),"&-bordered",{height:"32px",paddingBlock:0,paddingInline:8,border:"".concat(t.lineWidth,"px solid ").concat(t.colorBorder),borderRadius:"@border-radius-base"}),"&-bordered&-small",{height:"24px",paddingBlock:0,paddingInline:8}),"&-bordered&-active",{backgroundColor:t.colorBgContainer}))};function C0t(e){return ro("FieldLabel",function(t){var n=G(G({},t),{},{componentCls:".".concat(e)});return[S0t(n)]})}var x0t=function(t,n){var r,i,o,a=t.label,s=t.onClear,l=t.value,c=t.disabled,u=t.onLabelClick,d=t.ellipsis,h=t.placeholder,p=t.className,m=t.formatter,v=t.bordered,y=t.style,S=t.downIcon,b=t.allowClear,C=b===void 0?!0:b,_=t.valueMaxLength,T=_===void 0?41:_,x=(or==null||(r=or.useConfig)===null||r===void 0?void 0:r.call(or))||{componentSize:"middle"},E=x.componentSize,k=E,M=f.useContext(or.ConfigContext),P=M.getPrefixCls,D=P("pro-core-field-label"),R=C0t(D),A=R.wrapSSR,H=R.hashId,F=Vo(),z=f.useRef(null),W=f.useRef(null);f.useImperativeHandle(n,function(){return{labelRef:W,clearRef:z}});var q=function(V){return V.every(function(Y){return typeof Y=="string"})?V.join(","):V.map(function(Y,ie){var ce=ie===V.length-1?"":",";return typeof Y=="string"?U.jsxs("span",{children:[Y,ce]},ie):U.jsxs("span",{style:{display:"flex"},children:[Y,ce]},ie)})},Z=function(V){return m?m(V):Array.isArray(V)?q(V):V},N=function(V,Y){if(Y!=null&&Y!==""&&(!Array.isArray(Y)||Y.length)){var ie,ce,fe=V?U.jsxs("span",{onClick:function(){u==null||u()},className:"".concat(D,"-text"),children:[V,": "]}):"",ee=Z(Y);if(!d)return U.jsxs("span",{style:{display:"inline-flex",alignItems:"center"},children:[fe,Z(Y)]});var ne=function(){var me=Array.isArray(Y)&&Y.length>1,pe=F.getMessage("form.lightFilter.itemUnit","项");return typeof ee=="string"&&ee.length>T&&me?"...".concat(Y.length).concat(pe):""},ue=ne();return U.jsxs("span",{title:typeof ee=="string"?ee:void 0,style:{display:"inline-flex",alignItems:"center"},children:[fe,U.jsx("span",{style:{paddingInlineStart:4,display:"flex"},children:typeof ee=="string"?ee==null||(ie=ee.toString())===null||ie===void 0||(ce=ie.slice)===null||ce===void 0?void 0:ce.call(ie,0,T):ee}),ue]})}return V||h};return A(U.jsxs("span",{className:Re(D,H,"".concat(D,"-").concat((i=(o=t.size)!==null&&o!==void 0?o:k)!==null&&i!==void 0?i:"middle"),ae(ae(ae(ae({},"".concat(D,"-active"),(Array.isArray(l)?l.length>0:!!l)||l===0),"".concat(D,"-disabled"),c),"".concat(D,"-bordered"),v),"".concat(D,"-allow-clear"),C),p),style:y,ref:W,onClick:function(){var V;t==null||(V=t.onClick)===null||V===void 0||V.call(t)},children:[N(a,l),(l||l===0)&&C&&U.jsx(th,{role:"button",title:F.getMessage("form.lightFilter.clear","清除"),className:Re("".concat(D,"-icon"),H,"".concat(D,"-close")),onClick:function(V){c||s==null||s(),V.stopPropagation()},ref:z}),S!==!1?S??U.jsx(TE,{className:Re("".concat(D,"-icon"),H,"".concat(D,"-arrow"))}):null]}))},$p=ge.forwardRef(x0t),pu=function(t){var n={};if(Object.keys(t||{}).forEach(function(r){t[r]!==void 0&&(n[r]=t[r])}),!(Object.keys(n).length<1))return n},w0t=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,yre=function(t){return t==="*"||t==="x"||t==="X"},bre=function(t){var n=parseInt(t,10);return isNaN(n)?t:n},_0t=function(t,n){return ln(t)!==ln(n)?[String(t),String(n)]:[t,n]},E0t=function(t,n){if(yre(t)||yre(n))return 0;var r=_0t(bre(t),bre(n)),i=Le(r,2),o=i[0],a=i[1];return o>a?1:o<a?-1:0},T0t=function(t,n){for(var r=0;r<Math.max(t.length,n.length);r++){var i=E0t(t[r]||"0",n[r]||"0");if(i!==0)return i}return 0},Sre=function(t){var n,r=t.match(w0t);return r==null||(n=r.shift)===null||n===void 0||n.call(r),r},WE=function(t,n){var r=Sre(t),i=Sre(n),o=r.pop(),a=i.pop(),s=T0t(r,i);return s!==0?s:o||a?o?-1:1:0},r2e=function(){var t;return typeof process>"u"?fp:((t=process)===null||t===void 0||(t=t.env)===null||t===void 0?void 0:t.ANTD_VERSION)||fp},FP=function(t,n){var r=WE(r2e(),"4.23.0")>-1?{open:t,onOpenChange:n}:{visible:t,onVisibleChange:n};return pu(r)},k0t=function(t){return ae(ae(ae({},"".concat(t.componentCls,"-label"),{cursor:"pointer"}),"".concat(t.componentCls,"-overlay"),{minWidth:"200px",marginBlockStart:"4px"}),"".concat(t.componentCls,"-content"),{paddingBlock:16,paddingInline:16})};function O0t(e){return ro("FilterDropdown",function(t){var n=G(G({},t),{},{componentCls:".".concat(e)});return[k0t(n)]})}var P0t=function(t){var n=t.children,r=t.label,i=t.footer,o=t.open,a=t.onOpenChange,s=t.disabled,l=t.onVisibleChange,c=t.visible,u=t.footerRender,d=t.placement,h=f.useContext(or.ConfigContext),p=h.getPrefixCls,m=p("pro-core-field-dropdown"),v=O0t(m),y=v.wrapSSR,S=v.hashId,b=FP(o||c||!1,a||l),C=f.useRef(null);return y(U.jsx(Ou,G(G({placement:d,trigger:["click"]},b),{},{overlayInnerStyle:{padding:0},content:U.jsxs("div",{ref:C,className:Re("".concat(m,"-overlay"),ae(ae({},"".concat(m,"-overlay-").concat(d),d),"hashId",S)),children:[U.jsx(or,{getPopupContainer:function(){return C.current||document.body},children:U.jsx("div",{className:"".concat(m,"-content ").concat(S).trim(),children:n})}),i&&U.jsx(y0t,G({disabled:s,footerRender:u},i))]}),children:U.jsx("span",{className:"".concat(m,"-label ").concat(S).trim(),children:r})})))},M0t=function(t){return ae({},t.componentCls,{display:"inline-flex",alignItems:"center",maxWidth:"100%","&-icon":{display:"block",marginInlineStart:"4px",cursor:"pointer","&:hover":{color:t.colorPrimary}},"&-title":{display:"inline-flex",flex:"1"},"&-subtitle ":{marginInlineStart:8,color:t.colorTextSecondary,fontWeight:"normal",fontSize:t.fontSize,whiteSpace:"nowrap"},"&-title-ellipsis":{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",wordBreak:"keep-all"}})};function I0t(e){return ro("LabelIconTip",function(t){var n=G(G({},t),{},{componentCls:".".concat(e)});return[M0t(n)]})}var $0t=ge.memo(function(e){var t=e.label,n=e.tooltip,r=e.ellipsis,i=e.subTitle,o=f.useContext(or.ConfigContext),a=o.getPrefixCls,s=a("pro-core-label-tip"),l=I0t(s),c=l.wrapSSR,u=l.hashId;if(!n&&!i)return U.jsx(U.Fragment,{children:t});var d=typeof n=="string"||ge.isValidElement(n)?{title:n}:n,h=(d==null?void 0:d.icon)||U.jsx(Dlt,{});return c(U.jsxs("div",{className:Re(s,u),onMouseDown:function(m){return m.stopPropagation()},onMouseLeave:function(m){return m.stopPropagation()},onMouseMove:function(m){return m.stopPropagation()},children:[U.jsx("div",{className:Re("".concat(s,"-title"),u,ae({},"".concat(s,"-title-ellipsis"),r)),children:t}),i&&U.jsx("div",{className:"".concat(s,"-subtitle ").concat(u).trim(),children:i}),n&&U.jsx(ta,G(G({},d),{},{children:U.jsx("span",{className:"".concat(s,"-icon ").concat(u).trim(),children:h})}))]}))}),i2e=ge.createContext({}),o2e={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(yo,function(){var n="month",r="quarter";return function(i,o){var a=o.prototype;a.quarter=function(c){return this.$utils().u(c)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(c-1))};var s=a.add;a.add=function(c,u){return c=Number(c),this.$utils().p(u)===r?this.add(3*c,n):s.bind(this)(c,u)};var l=a.startOf;a.startOf=function(c,u){var d=this.$utils(),h=!!d.u(u)||u;if(d.p(c)===r){var p=this.quarter()-1;return h?this.month(3*p).startOf(n).startOf("day"):this.month(3*p+2).endOf(n).endOf("day")}return l.bind(this)(c,u)}}})})(o2e);var R0t=o2e.exports;const A0t=hi(R0t);var Pv=function(t){return t==null};Fr.extend(A0t);var a2e={time:"HH:mm:ss",timeRange:"HH:mm:ss",date:"YYYY-MM-DD",dateWeek:"YYYY-wo",dateMonth:"YYYY-MM",dateQuarter:"YYYY-[Q]Q",dateYear:"YYYY",dateRange:"YYYY-MM-DD",dateTime:"YYYY-MM-DD HH:mm:ss",dateTimeRange:"YYYY-MM-DD HH:mm:ss"};function Cre(e){return Object.prototype.toString.call(e)==="[object Object]"}function N0t(e){if(Cre(e)===!1)return!1;var t=e.constructor;if(t===void 0)return!0;var n=t.prototype;return!(Cre(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)}var jj=function(t){return!!(t!=null&&t._isAMomentObject)},xre=function(t,n,r){if(!n)return t;if(Fr.isDayjs(t)||jj(t)){if(n==="number")return t.valueOf();if(n==="string")return t.format(a2e[r]||"YYYY-MM-DD HH:mm:ss");if(typeof n=="string"&&n!=="string")return t.format(n);if(typeof n=="function")return n(t,r)}return t},D0t=function e(t,n,r,i,o){var a={};return typeof window>"u"||ln(t)!=="object"||Pv(t)||t instanceof Blob||Array.isArray(t)?t:(Object.keys(t).forEach(function(s){var l=o?[o,s].flat(1):[s],c=Bo(r,l)||"text",u="text",d;typeof c=="string"?u=c:c&&(u=c.valueType,d=c.dateFormat);var h=t[s];if(!(Pv(h)&&i)){if(N0t(h)&&!Array.isArray(h)&&!Fr.isDayjs(h)&&!jj(h)){a[s]=e(h,n,r,i,l);return}if(Array.isArray(h)){a[s]=h.map(function(p,m){return Fr.isDayjs(p)||jj(p)?xre(p,d||n,u):e(p,n,r,i,[s,"".concat(m)].flat(1))});return}a[s]=xre(h,d||n,u)}}),a)},wre=function(t,n){return typeof n=="function"?n(Fr(t)):Fr(t).format(n)},L0t=function(t,n){var r=Array.isArray(t)?t:[],i=Le(r,2),o=i[0],a=i[1],s,l;Array.isArray(n)?(s=n[0],l=n[1]):ln(n)==="object"&&n.type==="mask"?(s=n.format,l=n.format):(s=n,l=n);var c=o?wre(o,s):"",u=a?wre(a,l):"",d=c&&u?"".concat(c," ~ ").concat(u):"";return d};function aS(e){if(typeof e=="function"){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,n)}return e}function s2e(e){if(WE(r2e(),"5.6.0")<0)return e;var t={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",colorItemBgSelected:"itemSelectedBg",colorItemBgSelectedHorizontal:"horizontalItemSelectedBg",colorActiveBarWidth:"activeBarWidth",colorActiveBarHeight:"activeBarHeight",colorActiveBarBorderSize:"activeBarBorderWidth"},n=G({},e);return Object.keys(t).forEach(function(r){n[r]!==void 0&&(n[t[r]]=n[r],delete n[r])}),n}var Md=function(t){var n=f.useRef(null);return n.current=t,f.useCallback(function(){for(var r,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(r=n.current)===null||r===void 0?void 0:r.call.apply(r,[n].concat(pt(o)))},[])};function F0t(e,t){var n=Md(e),r=f.useRef(),i=f.useCallback(function(){r.current&&(clearTimeout(r.current),r.current=null)},[]),o=f.useCallback(Jo(Hr().mark(function a(){var s,l,c,u=arguments;return Hr().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:for(s=u.length,l=new Array(s),c=0;c<s;c++)l[c]=u[c];{h.next=3;break}case 3:return i(),h.abrupt("return",new Promise(function(p){r.current=setTimeout(Jo(Hr().mark(function m(){return Hr().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.t0=p,y.next=3,n.apply(void 0,l);case 3:return y.t1=y.sent,(0,y.t0)(y.t1),y.abrupt("return");case 6:case"end":return y.stop()}},m)})),t)}));case 5:case"end":return h.stop()}},a)})),[n,i,t]);return f.useEffect(function(){return i},[i]),{run:o,cancel:i}}var j0t=function(t){var n=f.useRef(t);return n.current=t,n};function B0t(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100,n=arguments.length>2?arguments[2]:void 0,r=f.useState(e),i=Le(r,2),o=i[0],a=i[1],s=j0t(e);return f.useEffect(function(){var l=setTimeout(function(){a(s.current)},t);return function(){return clearTimeout(l)}},n?[t].concat(pt(n)):void 0),o}function ev(e,t,n,r){if(e===t)return!0;if(e&&t&&ln(e)==="object"&&ln(t)==="object"){if(e.constructor!==t.constructor)return!1;var i,o,a;if(Array.isArray(e)){if(i=e.length,i!=t.length)return!1;for(o=i;o--!==0;)if(!ev(e[o],t[o],n,r))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;var s=Af(e.entries()),l;try{for(s.s();!(l=s.n()).done;)if(o=l.value,!t.has(o[0]))return!1}catch(m){s.e(m)}finally{s.f()}var c=Af(e.entries()),u;try{for(c.s();!(u=c.n()).done;)if(o=u.value,!ev(o[1],t.get(o[0]),n,r))return!1}catch(m){c.e(m)}finally{c.f()}return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;var d=Af(e.entries()),h;try{for(d.s();!(h=d.n()).done;)if(o=h.value,!t.has(o[0]))return!1}catch(m){d.e(m)}finally{d.f()}return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(i=e.length,i!=t.length)return!1;for(o=i;o--!==0;)if(e[o]!==t[o])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&e.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&e.toString)return e.toString()===t.toString();if(a=Object.keys(e),i=a.length,i!==Object.keys(t).length)return!1;for(o=i;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[o]))return!1;for(o=i;o--!==0;){var p=a[o];if(!(n!=null&&n.includes(p))&&!(p==="_owner"&&e.$$typeof)&&!ev(e[p],t[p],n,r))return!1}return!0}return e!==e&&t!==t}var H0t=function(t,n,r){return ev(t,n,r)};function l2e(e,t){var n=f.useRef();return H0t(e,n.current,t)||(n.current=e),n.current}function z0t(e,t,n){f.useEffect(e,l2e(t||[],n))}function Rl(e,t){return ge.useMemo(e,l2e(t))}var U0t=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,kV=function(){return typeof process<"u",typeof window<"u"&&typeof window.document<"u"&&typeof window.matchMedia<"u"&&!U0t};function W0t(e,t){var n=typeof e.pageName=="string"?e.title:t;f.useEffect(function(){kV()&&n&&(document.title=n)},[e.title,n])}var OA=0;function V0t(e){var t=f.useRef(null),n=f.useState(function(){return e.proFieldKey?e.proFieldKey.toString():(OA+=1,OA.toString())}),r=Le(n,1),i=r[0],o=f.useRef(i),a=function(){var u=Jo(Hr().mark(function d(){var h,p,m,v;return Hr().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return(h=t.current)===null||h===void 0||h.abort(),m=new AbortController,t.current=m,S.next=5,Promise.race([(p=e.request)===null||p===void 0?void 0:p.call(e,e.params,e),new Promise(function(b,C){var _;(_=t.current)===null||_===void 0||(_=_.signal)===null||_===void 0||_.addEventListener("abort",function(){C(new Error("aborted"))})})]);case 5:return v=S.sent,S.abrupt("return",v);case 7:case"end":return S.stop()}},d)}));return function(){return u.apply(this,arguments)}}();f.useEffect(function(){return function(){OA+=1}},[]);var s=EV([o.current,e.params],a,{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),l=s.data,c=s.error;return[l||c]}var K0t=function(t){var n=f.useRef();return f.useEffect(function(){n.current=t}),n.current},q0t=function(t){var n=!1;return(typeof t=="string"&&t.startsWith("date")&&!t.endsWith("Range")||t==="select"||t==="time")&&(n=!0),n};function G0t(e){return/\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(e)}var OV=function(t){if(!t||!t.startsWith("http"))return!1;try{var n=new URL(t);return!!n}catch{return!1}},c2e=function(){for(var t={},n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];for(var o=r.length,a,s=0;s<o;s+=1)for(a in r[s])r[s].hasOwnProperty(a)&&(ln(t[a])==="object"&&ln(r[s][a])==="object"&&t[a]!==void 0&&t[a]!==null&&!Array.isArray(t[a])&&!Array.isArray(r[s][a])?t[a]=G(G({},t[a]),r[s][a]):t[a]=r[s][a]);return t},_re=0,Ere=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:21;if(typeof window>"u"||!window.crypto)return(_re+=1).toFixed(0);for(var n="",r=crypto.getRandomValues(new Uint8Array(t));t--;){var i=63&r[t];n+=i<36?i.toString(36):i<62?(i-26).toString(36).toUpperCase():i<63?"_":"-"}return n},dk=function(){return typeof window>"u"?Ere():window.crypto&&window.crypto.randomUUID&&typeof crypto.randomUUID=="function"?crypto.randomUUID():Ere()};Fr.extend(Eye);var Tre=function(t){return!!(t!=null&&t._isAMomentObject)},VE=function e(t,n){return Pv(t)||Fr.isDayjs(t)||Tre(t)?Tre(t)?Fr(t):t:Array.isArray(t)?t.map(function(r){return e(r,n)}):typeof t=="number"?Fr(t):Fr(t,n)},Y0t=["colon","dependencies","extra","getValueFromEvent","getValueProps","hasFeedback","help","htmlFor","initialValue","noStyle","label","labelAlign","labelCol","name","preserve","normalize","required","rules","shouldUpdate","trigger","validateFirst","validateStatus","validateTrigger","valuePropName","wrapperCol","hidden","addonBefore","addonAfter","addonWarpStyle"];function X0t(e){var t={};return Y0t.forEach(function(n){e[n]!==void 0&&(t[n]=e[n])}),t}var Q0t="valueType request plain renderFormItem render text formItemProps valueEnum",Z0t="fieldProps isDefaultDom groupProps contentRender submitterProps submitter";function u2e(e){var t="".concat(Q0t," ").concat(Z0t).split(/[\s\n]+/),n={};return Object.keys(e||{}).forEach(function(r){t.includes(r)||(n[r]=e[r])}),n}function J0t(e){var t=Object.prototype.toString.call(e).match(/^\[object (.*)\]$/)[1].toLowerCase();return t==="string"&&ln(e)==="object"?"object":e===null?"null":e===void 0?"undefined":t}var eyt=function(t){var n=t.color,r=t.children;return U.jsx(Al,{color:n,text:r})},Rp=function(t){return J0t(t)==="map"?t:new Map(Object.entries(t||{}))},tyt={Success:function(t){var n=t.children;return U.jsx(Al,{status:"success",text:n})},Error:function(t){var n=t.children;return U.jsx(Al,{status:"error",text:n})},Default:function(t){var n=t.children;return U.jsx(Al,{status:"default",text:n})},Processing:function(t){var n=t.children;return U.jsx(Al,{status:"processing",text:n})},Warning:function(t){var n=t.children;return U.jsx(Al,{status:"warning",text:n})},success:function(t){var n=t.children;return U.jsx(Al,{status:"success",text:n})},error:function(t){var n=t.children;return U.jsx(Al,{status:"error",text:n})},default:function(t){var n=t.children;return U.jsx(Al,{status:"default",text:n})},processing:function(t){var n=t.children;return U.jsx(Al,{status:"processing",text:n})},warning:function(t){var n=t.children;return U.jsx(Al,{status:"warning",text:n})}},mC=function e(t,n,r){if(Array.isArray(t))return U.jsx(ma,{split:",",size:2,wrap:!0,children:t.map(function(c,u){return e(c,n,u)})},r);var i=Rp(n);if(!i.has(t)&&!i.has("".concat(t)))return(t==null?void 0:t.label)||t;var o=i.get(t)||i.get("".concat(t));if(!o)return U.jsx(ge.Fragment,{children:(t==null?void 0:t.label)||t},r);var a=o.status,s=o.color,l=tyt[a||"Init"];return l?U.jsx(l,{children:o.text},r):s?U.jsx(eyt,{color:s,children:o.text},r):U.jsx(ge.Fragment,{children:o.text||o},r)},Bj={exports:{}};(function(e,t){const{hasOwnProperty:n}=Object.prototype,r=S();r.configure=S,r.stringify=r,r.default=r,t.stringify=r,t.configure=S,e.exports=r;const i=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function o(b){return b.length<5e3&&!i.test(b)?`"${b}"`:JSON.stringify(b)}function a(b,C){if(b.length>200||C)return b.sort(C);for(let _=1;_<b.length;_++){const T=b[_];let x=_;for(;x!==0&&b[x-1]>T;)b[x]=b[x-1],x--;b[x]=T}return b}const s=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function l(b){return s.call(b)!==void 0&&b.length!==0}function c(b,C,_){b.length<_&&(_=b.length);const T=C===","?"":" ";let x=`"0":${T}${b[0]}`;for(let E=1;E<_;E++)x+=`${C}"${E}":${T}${b[E]}`;return x}function u(b){if(n.call(b,"circularValue")){const C=b.circularValue;if(typeof C=="string")return`"${C}"`;if(C==null)return C;if(C===Error||C===TypeError)return{toString(){throw new TypeError("Converting circular structure to JSON")}};throw new TypeError('The "circularValue" argument must be of type string or the value null or undefined')}return'"[Circular]"'}function d(b){let C;if(n.call(b,"deterministic")&&(C=b.deterministic,typeof C!="boolean"&&typeof C!="function"))throw new TypeError('The "deterministic" argument must be of type boolean or comparator function');return C===void 0?!0:C}function h(b,C){let _;if(n.call(b,C)&&(_=b[C],typeof _!="boolean"))throw new TypeError(`The "${C}" argument must be of type boolean`);return _===void 0?!0:_}function p(b,C){let _;if(n.call(b,C)){if(_=b[C],typeof _!="number")throw new TypeError(`The "${C}" argument must be of type number`);if(!Number.isInteger(_))throw new TypeError(`The "${C}" argument must be an integer`);if(_<1)throw new RangeError(`The "${C}" argument must be >= 1`)}return _===void 0?1/0:_}function m(b){return b===1?"1 item":`${b} items`}function v(b){const C=new Set;for(const _ of b)(typeof _=="string"||typeof _=="number")&&C.add(String(_));return C}function y(b){if(n.call(b,"strict")){const C=b.strict;if(typeof C!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(C)return _=>{let T=`Object can not safely be stringified. Received type ${typeof _}`;throw typeof _!="function"&&(T+=` (${_.toString()})`),new Error(T)}}}function S(b){b={...b};const C=y(b);C&&(b.bigint===void 0&&(b.bigint=!1),"circularValue"in b||(b.circularValue=Error));const _=u(b),T=h(b,"bigint"),x=d(b),E=typeof x=="function"?x:void 0,k=p(b,"maximumDepth"),M=p(b,"maximumBreadth");function P(F,z,W,q,Z,N){let B=z[F];switch(typeof B=="object"&&B!==null&&typeof B.toJSON=="function"&&(B=B.toJSON(F)),B=q.call(z,F,B),typeof B){case"string":return o(B);case"object":{if(B===null)return"null";if(W.indexOf(B)!==-1)return _;let V="",Y=",";const ie=N;if(Array.isArray(B)){if(B.length===0)return"[]";if(k<W.length+1)return'"[Array]"';W.push(B),Z!==""&&(N+=Z,V+=`
|
||
${N}`,Y=`,
|
||
${N}`);const ye=Math.min(B.length,M);let me=0;for(;me<ye-1;me++){const he=P(String(me),B,W,q,Z,N);V+=he!==void 0?he:"null",V+=Y}const pe=P(String(me),B,W,q,Z,N);if(V+=pe!==void 0?pe:"null",B.length-1>M){const he=B.length-M-1;V+=`${Y}"... ${m(he)} not stringified"`}return Z!==""&&(V+=`
|
||
${ie}`),W.pop(),`[${V}]`}let ce=Object.keys(B);const fe=ce.length;if(fe===0)return"{}";if(k<W.length+1)return'"[Object]"';let ee="",ne="";Z!==""&&(N+=Z,Y=`,
|
||
${N}`,ee=" ");const ue=Math.min(fe,M);x&&!l(B)&&(ce=a(ce,E)),W.push(B);for(let ye=0;ye<ue;ye++){const me=ce[ye],pe=P(me,B,W,q,Z,N);pe!==void 0&&(V+=`${ne}${o(me)}:${ee}${pe}`,ne=Y)}if(fe>M){const ye=fe-M;V+=`${ne}"...":${ee}"${m(ye)} not stringified"`,ne=Y}return Z!==""&&ne.length>1&&(V=`
|
||
${N}${V}
|
||
${ie}`),W.pop(),`{${V}}`}case"number":return isFinite(B)?String(B):C?C(B):"null";case"boolean":return B===!0?"true":"false";case"undefined":return;case"bigint":if(T)return String(B);default:return C?C(B):void 0}}function D(F,z,W,q,Z,N){switch(typeof z=="object"&&z!==null&&typeof z.toJSON=="function"&&(z=z.toJSON(F)),typeof z){case"string":return o(z);case"object":{if(z===null)return"null";if(W.indexOf(z)!==-1)return _;const B=N;let V="",Y=",";if(Array.isArray(z)){if(z.length===0)return"[]";if(k<W.length+1)return'"[Array]"';W.push(z),Z!==""&&(N+=Z,V+=`
|
||
${N}`,Y=`,
|
||
${N}`);const fe=Math.min(z.length,M);let ee=0;for(;ee<fe-1;ee++){const ue=D(String(ee),z[ee],W,q,Z,N);V+=ue!==void 0?ue:"null",V+=Y}const ne=D(String(ee),z[ee],W,q,Z,N);if(V+=ne!==void 0?ne:"null",z.length-1>M){const ue=z.length-M-1;V+=`${Y}"... ${m(ue)} not stringified"`}return Z!==""&&(V+=`
|
||
${B}`),W.pop(),`[${V}]`}W.push(z);let ie="";Z!==""&&(N+=Z,Y=`,
|
||
${N}`,ie=" ");let ce="";for(const fe of q){const ee=D(fe,z[fe],W,q,Z,N);ee!==void 0&&(V+=`${ce}${o(fe)}:${ie}${ee}`,ce=Y)}return Z!==""&&ce.length>1&&(V=`
|
||
${N}${V}
|
||
${B}`),W.pop(),`{${V}}`}case"number":return isFinite(z)?String(z):C?C(z):"null";case"boolean":return z===!0?"true":"false";case"undefined":return;case"bigint":if(T)return String(z);default:return C?C(z):void 0}}function R(F,z,W,q,Z){switch(typeof z){case"string":return o(z);case"object":{if(z===null)return"null";if(typeof z.toJSON=="function"){if(z=z.toJSON(F),typeof z!="object")return R(F,z,W,q,Z);if(z===null)return"null"}if(W.indexOf(z)!==-1)return _;const N=Z;if(Array.isArray(z)){if(z.length===0)return"[]";if(k<W.length+1)return'"[Array]"';W.push(z),Z+=q;let ee=`
|
||
${Z}`;const ne=`,
|
||
${Z}`,ue=Math.min(z.length,M);let ye=0;for(;ye<ue-1;ye++){const pe=R(String(ye),z[ye],W,q,Z);ee+=pe!==void 0?pe:"null",ee+=ne}const me=R(String(ye),z[ye],W,q,Z);if(ee+=me!==void 0?me:"null",z.length-1>M){const pe=z.length-M-1;ee+=`${ne}"... ${m(pe)} not stringified"`}return ee+=`
|
||
${N}`,W.pop(),`[${ee}]`}let B=Object.keys(z);const V=B.length;if(V===0)return"{}";if(k<W.length+1)return'"[Object]"';Z+=q;const Y=`,
|
||
${Z}`;let ie="",ce="",fe=Math.min(V,M);l(z)&&(ie+=c(z,Y,M),B=B.slice(z.length),fe-=z.length,ce=Y),x&&(B=a(B,E)),W.push(z);for(let ee=0;ee<fe;ee++){const ne=B[ee],ue=R(ne,z[ne],W,q,Z);ue!==void 0&&(ie+=`${ce}${o(ne)}: ${ue}`,ce=Y)}if(V>M){const ee=V-M;ie+=`${ce}"...": "${m(ee)} not stringified"`,ce=Y}return ce!==""&&(ie=`
|
||
${Z}${ie}
|
||
${N}`),W.pop(),`{${ie}}`}case"number":return isFinite(z)?String(z):C?C(z):"null";case"boolean":return z===!0?"true":"false";case"undefined":return;case"bigint":if(T)return String(z);default:return C?C(z):void 0}}function A(F,z,W){switch(typeof z){case"string":return o(z);case"object":{if(z===null)return"null";if(typeof z.toJSON=="function"){if(z=z.toJSON(F),typeof z!="object")return A(F,z,W);if(z===null)return"null"}if(W.indexOf(z)!==-1)return _;let q="";const Z=z.length!==void 0;if(Z&&Array.isArray(z)){if(z.length===0)return"[]";if(k<W.length+1)return'"[Array]"';W.push(z);const ie=Math.min(z.length,M);let ce=0;for(;ce<ie-1;ce++){const ee=A(String(ce),z[ce],W);q+=ee!==void 0?ee:"null",q+=","}const fe=A(String(ce),z[ce],W);if(q+=fe!==void 0?fe:"null",z.length-1>M){const ee=z.length-M-1;q+=`,"... ${m(ee)} not stringified"`}return W.pop(),`[${q}]`}let N=Object.keys(z);const B=N.length;if(B===0)return"{}";if(k<W.length+1)return'"[Object]"';let V="",Y=Math.min(B,M);Z&&l(z)&&(q+=c(z,",",M),N=N.slice(z.length),Y-=z.length,V=","),x&&(N=a(N,E)),W.push(z);for(let ie=0;ie<Y;ie++){const ce=N[ie],fe=A(ce,z[ce],W);fe!==void 0&&(q+=`${V}${o(ce)}:${fe}`,V=",")}if(B>M){const ie=B-M;q+=`${V}"...":"${m(ie)} not stringified"`}return W.pop(),`{${q}}`}case"number":return isFinite(z)?String(z):C?C(z):"null";case"boolean":return z===!0?"true":"false";case"undefined":return;case"bigint":if(T)return String(z);default:return C?C(z):void 0}}function H(F,z,W){if(arguments.length>1){let q="";if(typeof W=="number"?q=" ".repeat(Math.min(W,10)):typeof W=="string"&&(q=W.slice(0,10)),z!=null){if(typeof z=="function")return P("",{"":F},[],z,q,"");if(Array.isArray(z))return D("",F,[],v(z),q,"")}if(q.length!==0)return R("",F,[],q,"")}return A("",F,[])}return H}})(Bj,Bj.exports);var nyt=Bj.exports;const ryt=hi(nyt),iyt=ryt.configure;var kre=iyt({bigint:!0,circularValue:"Magic circle!",deterministic:!1,maximumDepth:4});function oyt(){this.__data__=[],this.size=0}function jP(e,t){return e===t||e!==e&&t!==t}function BP(e,t){for(var n=e.length;n--;)if(jP(e[n][0],t))return n;return-1}var ayt=Array.prototype,syt=ayt.splice;function lyt(e){var t=this.__data__,n=BP(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():syt.call(t,n,1),--this.size,!0}function cyt(e){var t=this.__data__,n=BP(t,e);return n<0?void 0:t[n][1]}function uyt(e){return BP(this.__data__,e)>-1}function dyt(e,t){var n=this.__data__,r=BP(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Ap(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ap.prototype.clear=oyt;Ap.prototype.delete=lyt;Ap.prototype.get=cyt;Ap.prototype.has=uyt;Ap.prototype.set=dyt;function fyt(){this.__data__=new Ap,this.size=0}function hyt(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function pyt(e){return this.__data__.get(e)}function myt(e){return this.__data__.has(e)}var d2e=typeof global=="object"&&global&&global.Object===Object&&global,gyt=typeof self=="object"&&self&&self.Object===Object&&self,t0=d2e||gyt||Function("return this")(),fk=t0.Symbol,f2e=Object.prototype,vyt=f2e.hasOwnProperty,yyt=f2e.toString,qx=fk?fk.toStringTag:void 0;function byt(e){var t=vyt.call(e,qx),n=e[qx];try{e[qx]=void 0;var r=!0}catch{}var i=yyt.call(e);return r&&(t?e[qx]=n:delete e[qx]),i}var Syt=Object.prototype,Cyt=Syt.toString;function xyt(e){return Cyt.call(e)}var wyt="[object Null]",_yt="[object Undefined]",Ore=fk?fk.toStringTag:void 0;function KE(e){return e==null?e===void 0?_yt:wyt:Ore&&Ore in Object(e)?byt(e):xyt(e)}function Vd(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Eyt="[object AsyncFunction]",Tyt="[object Function]",kyt="[object GeneratorFunction]",Oyt="[object Proxy]";function PV(e){if(!Vd(e))return!1;var t=KE(e);return t==Tyt||t==kyt||t==Eyt||t==Oyt}var PA=t0["__core-js_shared__"],Pre=function(){var e=/[^.]+$/.exec(PA&&PA.keys&&PA.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Pyt(e){return!!Pre&&Pre in e}var Myt=Function.prototype,Iyt=Myt.toString;function $yt(e){if(e!=null){try{return Iyt.call(e)}catch{}try{return e+""}catch{}}return""}var Ryt=/[\\^$.*+?()[\]{}|]/g,Ayt=/^\[object .+?Constructor\]$/,Nyt=Function.prototype,Dyt=Object.prototype,Lyt=Nyt.toString,Fyt=Dyt.hasOwnProperty,jyt=RegExp("^"+Lyt.call(Fyt).replace(Ryt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Byt(e){if(!Vd(e)||Pyt(e))return!1;var t=PV(e)?jyt:Ayt;return t.test($yt(e))}function Hyt(e,t){return e==null?void 0:e[t]}function MV(e,t){var n=Hyt(e,t);return Byt(n)?n:void 0}var h2e=MV(t0,"Map"),k_=MV(Object,"create");function zyt(){this.__data__=k_?k_(null):{},this.size=0}function Uyt(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Wyt="__lodash_hash_undefined__",Vyt=Object.prototype,Kyt=Vyt.hasOwnProperty;function qyt(e){var t=this.__data__;if(k_){var n=t[e];return n===Wyt?void 0:n}return Kyt.call(t,e)?t[e]:void 0}var Gyt=Object.prototype,Yyt=Gyt.hasOwnProperty;function Xyt(e){var t=this.__data__;return k_?t[e]!==void 0:Yyt.call(t,e)}var Qyt="__lodash_hash_undefined__";function Zyt(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=k_&&t===void 0?Qyt:t,this}function Mv(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Mv.prototype.clear=zyt;Mv.prototype.delete=Uyt;Mv.prototype.get=qyt;Mv.prototype.has=Xyt;Mv.prototype.set=Zyt;function Jyt(){this.size=0,this.__data__={hash:new Mv,map:new(h2e||Ap),string:new Mv}}function ebt(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function HP(e,t){var n=e.__data__;return ebt(t)?n[typeof t=="string"?"string":"hash"]:n.map}function tbt(e){var t=HP(this,e).delete(e);return this.size-=t?1:0,t}function nbt(e){return HP(this,e).get(e)}function rbt(e){return HP(this,e).has(e)}function ibt(e,t){var n=HP(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function gC(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}gC.prototype.clear=Jyt;gC.prototype.delete=tbt;gC.prototype.get=nbt;gC.prototype.has=rbt;gC.prototype.set=ibt;var obt=200;function abt(e,t){var n=this.__data__;if(n instanceof Ap){var r=n.__data__;if(!h2e||r.length<obt-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new gC(r)}return n.set(e,t),this.size=n.size,this}function vC(e){var t=this.__data__=new Ap(e);this.size=t.size}vC.prototype.clear=fyt;vC.prototype.delete=hyt;vC.prototype.get=pyt;vC.prototype.has=myt;vC.prototype.set=abt;var hk=function(){try{var e=MV(Object,"defineProperty");return e({},"",{}),e}catch{}}();function IV(e,t,n){t=="__proto__"&&hk?hk(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Hj(e,t,n){(n!==void 0&&!jP(e[t],n)||n===void 0&&!(t in e))&&IV(e,t,n)}function sbt(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[++i];if(n(o[l],l,o)===!1)break}return t}}var lbt=sbt(),p2e=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Mre=p2e&&typeof module=="object"&&module&&!module.nodeType&&module,cbt=Mre&&Mre.exports===p2e,Ire=cbt?t0.Buffer:void 0,$re=Ire?Ire.allocUnsafe:void 0;function ubt(e,t){if(t)return e.slice();var n=e.length,r=$re?$re(n):new e.constructor(n);return e.copy(r),r}var Rre=t0.Uint8Array;function dbt(e){var t=new e.constructor(e.byteLength);return new Rre(t).set(new Rre(e)),t}function fbt(e,t){var n=t?dbt(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function hbt(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var Are=Object.create,pbt=function(){function e(){}return function(t){if(!Vd(t))return{};if(Are)return Are(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function mbt(e,t){return function(n){return e(t(n))}}var m2e=mbt(Object.getPrototypeOf,Object),gbt=Object.prototype;function g2e(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||gbt;return e===n}function vbt(e){return typeof e.constructor=="function"&&!g2e(e)?pbt(m2e(e)):{}}function yC(e){return e!=null&&typeof e=="object"}var ybt="[object Arguments]";function Nre(e){return yC(e)&&KE(e)==ybt}var v2e=Object.prototype,bbt=v2e.hasOwnProperty,Sbt=v2e.propertyIsEnumerable,zj=Nre(function(){return arguments}())?Nre:function(e){return yC(e)&&bbt.call(e,"callee")&&!Sbt.call(e,"callee")},Uj=Array.isArray,Cbt=9007199254740991;function y2e(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Cbt}function $V(e){return e!=null&&y2e(e.length)&&!PV(e)}function xbt(e){return yC(e)&&$V(e)}function wbt(){return!1}var b2e=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Dre=b2e&&typeof module=="object"&&module&&!module.nodeType&&module,_bt=Dre&&Dre.exports===b2e,Lre=_bt?t0.Buffer:void 0,Ebt=Lre?Lre.isBuffer:void 0,S2e=Ebt||wbt,Tbt="[object Object]",kbt=Function.prototype,Obt=Object.prototype,C2e=kbt.toString,Pbt=Obt.hasOwnProperty,Mbt=C2e.call(Object);function Ibt(e){if(!yC(e)||KE(e)!=Tbt)return!1;var t=m2e(e);if(t===null)return!0;var n=Pbt.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&C2e.call(n)==Mbt}var $bt="[object Arguments]",Rbt="[object Array]",Abt="[object Boolean]",Nbt="[object Date]",Dbt="[object Error]",Lbt="[object Function]",Fbt="[object Map]",jbt="[object Number]",Bbt="[object Object]",Hbt="[object RegExp]",zbt="[object Set]",Ubt="[object String]",Wbt="[object WeakMap]",Vbt="[object ArrayBuffer]",Kbt="[object DataView]",qbt="[object Float32Array]",Gbt="[object Float64Array]",Ybt="[object Int8Array]",Xbt="[object Int16Array]",Qbt="[object Int32Array]",Zbt="[object Uint8Array]",Jbt="[object Uint8ClampedArray]",eSt="[object Uint16Array]",tSt="[object Uint32Array]",mo={};mo[qbt]=mo[Gbt]=mo[Ybt]=mo[Xbt]=mo[Qbt]=mo[Zbt]=mo[Jbt]=mo[eSt]=mo[tSt]=!0;mo[$bt]=mo[Rbt]=mo[Vbt]=mo[Abt]=mo[Kbt]=mo[Nbt]=mo[Dbt]=mo[Lbt]=mo[Fbt]=mo[jbt]=mo[Bbt]=mo[Hbt]=mo[zbt]=mo[Ubt]=mo[Wbt]=!1;function nSt(e){return yC(e)&&y2e(e.length)&&!!mo[KE(e)]}function rSt(e){return function(t){return e(t)}}var x2e=typeof exports=="object"&&exports&&!exports.nodeType&&exports,aw=x2e&&typeof module=="object"&&module&&!module.nodeType&&module,iSt=aw&&aw.exports===x2e,MA=iSt&&d2e.process,Fre=function(){try{var e=aw&&aw.require&&aw.require("util").types;return e||MA&&MA.binding&&MA.binding("util")}catch{}}(),jre=Fre&&Fre.isTypedArray,w2e=jre?rSt(jre):nSt;function Wj(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var oSt=Object.prototype,aSt=oSt.hasOwnProperty;function sSt(e,t,n){var r=e[t];(!(aSt.call(e,t)&&jP(r,n))||n===void 0&&!(t in e))&&IV(e,t,n)}function lSt(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=void 0;l===void 0&&(l=e[s]),i?IV(n,s,l):sSt(n,s,l)}return n}function cSt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var uSt=9007199254740991,dSt=/^(?:0|[1-9]\d*)$/;function _2e(e,t){var n=typeof e;return t=t??uSt,!!t&&(n=="number"||n!="symbol"&&dSt.test(e))&&e>-1&&e%1==0&&e<t}var fSt=Object.prototype,hSt=fSt.hasOwnProperty;function pSt(e,t){var n=Uj(e),r=!n&&zj(e),i=!n&&!r&&S2e(e),o=!n&&!r&&!i&&w2e(e),a=n||r||i||o,s=a?cSt(e.length,String):[],l=s.length;for(var c in e)(t||hSt.call(e,c))&&!(a&&(c=="length"||i&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||_2e(c,l)))&&s.push(c);return s}function mSt(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var gSt=Object.prototype,vSt=gSt.hasOwnProperty;function ySt(e){if(!Vd(e))return mSt(e);var t=g2e(e),n=[];for(var r in e)r=="constructor"&&(t||!vSt.call(e,r))||n.push(r);return n}function E2e(e){return $V(e)?pSt(e,!0):ySt(e)}function bSt(e){return lSt(e,E2e(e))}function SSt(e,t,n,r,i,o,a){var s=Wj(e,n),l=Wj(t,n),c=a.get(l);if(c){Hj(e,n,c);return}var u=o?o(s,l,n+"",e,t,a):void 0,d=u===void 0;if(d){var h=Uj(l),p=!h&&S2e(l),m=!h&&!p&&w2e(l);u=l,h||p||m?Uj(s)?u=s:xbt(s)?u=hbt(s):p?(d=!1,u=ubt(l,!0)):m?(d=!1,u=fbt(l,!0)):u=[]:Ibt(l)||zj(l)?(u=s,zj(s)?u=bSt(s):(!Vd(s)||PV(s))&&(u=vbt(l))):d=!1}d&&(a.set(l,u),i(u,l,r,o,a),a.delete(l)),Hj(e,n,u)}function T2e(e,t,n,r,i){e!==t&&lbt(t,function(o,a){if(i||(i=new vC),Vd(o))SSt(e,t,a,n,T2e,r,i);else{var s=r?r(Wj(e,a),o,a+"",e,t,i):void 0;s===void 0&&(s=o),Hj(e,a,s)}},E2e)}function k2e(e){return e}function CSt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var Bre=Math.max;function xSt(e,t,n){return t=Bre(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=Bre(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),CSt(e,this,s)}}function wSt(e){return function(){return e}}var _St=hk?function(e,t){return hk(e,"toString",{configurable:!0,enumerable:!1,value:wSt(t),writable:!0})}:k2e,ESt=800,TSt=16,kSt=Date.now;function OSt(e){var t=0,n=0;return function(){var r=kSt(),i=TSt-(r-n);if(n=r,i>0){if(++t>=ESt)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var PSt=OSt(_St);function MSt(e,t){return PSt(xSt(e,t,k2e),e+"")}function ISt(e,t,n){if(!Vd(n))return!1;var r=typeof t;return(r=="number"?$V(n)&&_2e(t,n.length):r=="string"&&t in n)?jP(n[t],e):!1}function $St(e){return MSt(function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,a&&ISt(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,o)}return t})}var RSt=$St(function(e,t,n){T2e(e,t,n)});function ASt(e){return ln(e)!=="object"?!1:e===null?!0:!(ge.isValidElement(e)||e.constructor===RegExp||e instanceof Map||e instanceof Set||e instanceof HTMLElement||e instanceof Blob||e instanceof File||Array.isArray(e))}var NSt=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,i=Object.keys(n).reduce(function(s,l){var c=n[l];return Pv(c)||(s[l]=c),s},{});if(Object.keys(i).length<1||typeof window>"u"||ln(t)!=="object"||Pv(t)||t instanceof Blob)return t;var o=Array.isArray(t)?[]:{},a=function s(l,c){var u=Array.isArray(l),d=u?[]:{};return l==null||l===void 0?d:(Object.keys(l).forEach(function(h){var p=function C(_,T){return Array.isArray(_)&&_.forEach(function(x,E){if(x){var k=T==null?void 0:T[E];typeof x=="function"&&(T[E]=x(T,h,l)),ln(x)==="object"&&!Array.isArray(x)&&Object.keys(x).forEach(function(M){var P=k==null?void 0:k[M];if(typeof x[M]=="function"&&P){var D=x[M](k[M],h,l);k[M]=ln(D)==="object"?D[M]:D}else ln(x[M])==="object"&&Array.isArray(x[M])&&P&&C(x[M],P)}),ln(x)==="object"&&Array.isArray(x)&&k&&C(x,k)}}),h},m=c?[c,h].flat(1):[h].flat(1),v=l[h],y=Bo(i,m),S=function(){var _,T,x=!1;if(typeof y=="function"){T=y==null?void 0:y(v,h,l);var E=ln(T);E!=="object"&&E!=="undefined"?(_=h,x=!0):_=T}else _=p(y,v);if(Array.isArray(_)){d=ua(d,_,v);return}ln(_)==="object"&&!Array.isArray(o)?o=RSt(o,_):ln(_)==="object"&&Array.isArray(o)?d=G(G({},d),_):(_!==null||_!==void 0)&&(d=ua(d,[_],x?T:v))};if(y&&typeof y=="function"&&S(),!(typeof window>"u")){if(ASt(v)){var b=s(v,m);if(Object.keys(b).length<1)return;d=ua(d,[h],b);return}S()}}),r?d:l)};return o=Array.isArray(t)&&Array.isArray(o)?pt(a(t)):c2e({},a(t),o),o},jc=function(t){return t===void 0?{}:WE(fp,"5.13.0")<=0?{bordered:t}:{variant:t?void 0:"borderless"}};function ly(e){var t=typeof window>"u",n=f.useState(function(){return t?!1:window.matchMedia(e).matches}),r=Le(n,2),i=r[0],o=r[1];return f.useLayoutEffect(function(){if(!t){var a=window.matchMedia(e),s=function(c){return o(c.matches)};return a.addListener(s),function(){return a.removeListener(s)}}},[e]),i}var ym={xs:{maxWidth:575,matchMedia:"(max-width: 575px)"},sm:{minWidth:576,maxWidth:767,matchMedia:"(min-width: 576px) and (max-width: 767px)"},md:{minWidth:768,maxWidth:991,matchMedia:"(min-width: 768px) and (max-width: 991px)"},lg:{minWidth:992,maxWidth:1199,matchMedia:"(min-width: 992px) and (max-width: 1199px)"},xl:{minWidth:1200,maxWidth:1599,matchMedia:"(min-width: 1200px) and (max-width: 1599px)"},xxl:{minWidth:1600,matchMedia:"(min-width: 1600px)"}},DSt=function(){var t=void 0;if(typeof window>"u")return t;var n=Object.keys(ym).find(function(r){var i=ym[r].matchMedia;return!!window.matchMedia(i).matches});return t=n,t},LSt=function(){var t=ly(ym.md.matchMedia),n=ly(ym.lg.matchMedia),r=ly(ym.xxl.matchMedia),i=ly(ym.xl.matchMedia),o=ly(ym.sm.matchMedia),a=ly(ym.xs.matchMedia),s=f.useState(DSt()),l=Le(s,2),c=l[0],u=l[1];return f.useEffect(function(){if(r){u("xxl");return}if(i){u("xl");return}if(n){u("lg");return}if(t){u("md");return}if(o){u("sm");return}if(a){u("xs");return}u("md")},[t,n,r,i,o,a]),c},O2e=f.createContext({}),m5=2,Hre=.16,FSt=.05,jSt=.05,BSt=.15,P2e=5,M2e=4,HSt=[{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 zre(e){var t=e.r,n=e.g,r=e.b,i=Dj(t,n,r);return{h:i.h*360,s:i.s,v:i.v}}function g5(e){var t=e.r,n=e.g,r=e.b;return"#".concat(Lj(t,n,r,!1))}function zSt(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 Ure(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-m5*t:Math.round(e.h)+m5*t:r=n?Math.round(e.h)+m5*t:Math.round(e.h)-m5*t,r<0?r+=360:r>=360&&(r-=360),r}function Wre(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Hre*t:t===M2e?r=e.s+Hre:r=e.s+FSt*t,r>1&&(r=1),n&&t===P2e&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function Vre(e,t,n){var r;return n?r=e.v+jSt*t:r=e.v-BSt*t,r>1&&(r=1),Number(r.toFixed(2))}function Vj(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Sy(e),i=P2e;i>0;i-=1){var o=zre(r),a=g5(Sy({h:Ure(o,i,!0),s:Wre(o,i,!0),v:Vre(o,i,!0)}));n.push(a)}n.push(g5(r));for(var s=1;s<=M2e;s+=1){var l=zre(r),c=g5(Sy({h:Ure(l,s),s:Wre(l,s),v:Vre(l,s)}));n.push(c)}return t.theme==="dark"?HSt.map(function(u){var d=u.index,h=u.opacity,p=g5(zSt(Sy(t.backgroundColor||"#141414"),Sy(n[d]),h*100));return p}):n}var IA={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},$A={},RA={};Object.keys(IA).forEach(function(e){$A[e]=Vj(IA[e]),$A[e].primary=$A[e][5],RA[e]=Vj(IA[e],{theme:"dark",backgroundColor:"#141414"}),RA[e].primary=RA[e][5]});var USt=typeof yo=="object"&&yo&&yo.Object===Object&&yo,I2e=USt,WSt=I2e,VSt=typeof self=="object"&&self&&self.Object===Object&&self,KSt=WSt||VSt||Function("return this")(),tf=KSt,qSt=tf,GSt=qSt.Symbol,qE=GSt;function YSt(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var $2e=YSt,XSt=Array.isArray,Kc=XSt,Kre=qE,R2e=Object.prototype,QSt=R2e.hasOwnProperty,ZSt=R2e.toString,Gx=Kre?Kre.toStringTag:void 0;function JSt(e){var t=QSt.call(e,Gx),n=e[Gx];try{e[Gx]=void 0;var r=!0}catch{}var i=ZSt.call(e);return r&&(t?e[Gx]=n:delete e[Gx]),i}var eCt=JSt,tCt=Object.prototype,nCt=tCt.toString;function rCt(e){return nCt.call(e)}var iCt=rCt,qre=qE,oCt=eCt,aCt=iCt,sCt="[object Null]",lCt="[object Undefined]",Gre=qre?qre.toStringTag:void 0;function cCt(e){return e==null?e===void 0?lCt:sCt:Gre&&Gre in Object(e)?oCt(e):aCt(e)}var n0=cCt;function uCt(e){return e!=null&&typeof e=="object"}var oh=uCt,dCt=n0,fCt=oh,hCt="[object Symbol]";function pCt(e){return typeof e=="symbol"||fCt(e)&&dCt(e)==hCt}var zP=pCt,Yre=qE,mCt=$2e,gCt=Kc,vCt=zP,yCt=1/0,Xre=Yre?Yre.prototype:void 0,Qre=Xre?Xre.toString:void 0;function A2e(e){if(typeof e=="string")return e;if(gCt(e))return mCt(e,A2e)+"";if(vCt(e))return Qre?Qre.call(e):"";var t=e+"";return t=="0"&&1/e==-yCt?"-0":t}var bCt=A2e,SCt=bCt;function CCt(e){return e==null?"":SCt(e)}var GE=CCt;function xCt(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}var wCt=xCt,_Ct=wCt;function ECt(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:_Ct(e,t,n)}var TCt=ECt,kCt="\\ud800-\\udfff",OCt="\\u0300-\\u036f",PCt="\\ufe20-\\ufe2f",MCt="\\u20d0-\\u20ff",ICt=OCt+PCt+MCt,$Ct="\\ufe0e\\ufe0f",RCt="\\u200d",ACt=RegExp("["+RCt+kCt+ICt+$Ct+"]");function NCt(e){return ACt.test(e)}var N2e=NCt;function DCt(e){return e.split("")}var LCt=DCt,D2e="\\ud800-\\udfff",FCt="\\u0300-\\u036f",jCt="\\ufe20-\\ufe2f",BCt="\\u20d0-\\u20ff",HCt=FCt+jCt+BCt,zCt="\\ufe0e\\ufe0f",UCt="["+D2e+"]",Kj="["+HCt+"]",qj="\\ud83c[\\udffb-\\udfff]",WCt="(?:"+Kj+"|"+qj+")",L2e="[^"+D2e+"]",F2e="(?:\\ud83c[\\udde6-\\uddff]){2}",j2e="[\\ud800-\\udbff][\\udc00-\\udfff]",VCt="\\u200d",B2e=WCt+"?",H2e="["+zCt+"]?",KCt="(?:"+VCt+"(?:"+[L2e,F2e,j2e].join("|")+")"+H2e+B2e+")*",qCt=H2e+B2e+KCt,GCt="(?:"+[L2e+Kj+"?",Kj,F2e,j2e,UCt].join("|")+")",YCt=RegExp(qj+"(?="+qj+")|"+GCt+qCt,"g");function XCt(e){return e.match(YCt)||[]}var QCt=XCt,ZCt=LCt,JCt=N2e,ext=QCt;function txt(e){return JCt(e)?ext(e):ZCt(e)}var nxt=txt,rxt=TCt,ixt=N2e,oxt=nxt,axt=GE;function sxt(e){return function(t){t=axt(t);var n=ixt(t)?oxt(t):void 0,r=n?n[0]:t.charAt(0),i=n?rxt(n,1).join(""):t.slice(1);return r[e]()+i}}var lxt=sxt,cxt=lxt,uxt=cxt("toUpperCase"),dxt=uxt,fxt=GE,hxt=dxt;function pxt(e){return hxt(fxt(e).toLowerCase())}var mxt=pxt;function gxt(e,t,n,r){var i=-1,o=e==null?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}var vxt=gxt;function yxt(e){return function(t){return e==null?void 0:e[t]}}var bxt=yxt,Sxt=bxt,Cxt={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},xxt=Sxt(Cxt),wxt=xxt,_xt=wxt,Ext=GE,Txt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,kxt="\\u0300-\\u036f",Oxt="\\ufe20-\\ufe2f",Pxt="\\u20d0-\\u20ff",Mxt=kxt+Oxt+Pxt,Ixt="["+Mxt+"]",$xt=RegExp(Ixt,"g");function Rxt(e){return e=Ext(e),e&&e.replace(Txt,_xt).replace($xt,"")}var Axt=Rxt,Nxt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Dxt(e){return e.match(Nxt)||[]}var Lxt=Dxt,Fxt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function jxt(e){return Fxt.test(e)}var Bxt=jxt,z2e="\\ud800-\\udfff",Hxt="\\u0300-\\u036f",zxt="\\ufe20-\\ufe2f",Uxt="\\u20d0-\\u20ff",Wxt=Hxt+zxt+Uxt,U2e="\\u2700-\\u27bf",W2e="a-z\\xdf-\\xf6\\xf8-\\xff",Vxt="\\xac\\xb1\\xd7\\xf7",Kxt="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",qxt="\\u2000-\\u206f",Gxt=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",V2e="A-Z\\xc0-\\xd6\\xd8-\\xde",Yxt="\\ufe0e\\ufe0f",K2e=Vxt+Kxt+qxt+Gxt,q2e="['’]",Zre="["+K2e+"]",Xxt="["+Wxt+"]",G2e="\\d+",Qxt="["+U2e+"]",Y2e="["+W2e+"]",X2e="[^"+z2e+K2e+G2e+U2e+W2e+V2e+"]",Zxt="\\ud83c[\\udffb-\\udfff]",Jxt="(?:"+Xxt+"|"+Zxt+")",e2t="[^"+z2e+"]",Q2e="(?:\\ud83c[\\udde6-\\uddff]){2}",Z2e="[\\ud800-\\udbff][\\udc00-\\udfff]",Cy="["+V2e+"]",t2t="\\u200d",Jre="(?:"+Y2e+"|"+X2e+")",n2t="(?:"+Cy+"|"+X2e+")",eie="(?:"+q2e+"(?:d|ll|m|re|s|t|ve))?",tie="(?:"+q2e+"(?:D|LL|M|RE|S|T|VE))?",J2e=Jxt+"?",ewe="["+Yxt+"]?",r2t="(?:"+t2t+"(?:"+[e2t,Q2e,Z2e].join("|")+")"+ewe+J2e+")*",i2t="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",o2t="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",a2t=ewe+J2e+r2t,s2t="(?:"+[Qxt,Q2e,Z2e].join("|")+")"+a2t,l2t=RegExp([Cy+"?"+Y2e+"+"+eie+"(?="+[Zre,Cy,"$"].join("|")+")",n2t+"+"+tie+"(?="+[Zre,Cy+Jre,"$"].join("|")+")",Cy+"?"+Jre+"+"+eie,Cy+"+"+tie,o2t,i2t,G2e,s2t].join("|"),"g");function c2t(e){return e.match(l2t)||[]}var u2t=c2t,d2t=Lxt,f2t=Bxt,h2t=GE,p2t=u2t;function m2t(e,t,n){return e=h2t(e),t=n?void 0:t,t===void 0?f2t(e)?p2t(e):d2t(e):e.match(t)||[]}var g2t=m2t,v2t=vxt,y2t=Axt,b2t=g2t,S2t="['’]",C2t=RegExp(S2t,"g");function x2t(e){return function(t){return v2t(b2t(y2t(t).replace(C2t,"")),e,"")}}var w2t=x2t,_2t=mxt,E2t=w2t,T2t=E2t(function(e,t,n){return t=t.toLowerCase(),e+(n?_2t(t):t)}),k2t=T2t;const O2t=hi(k2t);function P2t(e,t){WS(e,"[@ant-design/icons] ".concat(t))}function nie(e){return ln(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(ln(e.icon)==="object"||typeof e.icon=="function")}function rie(){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[O2t(n)]=r}return t},{})}function Gj(e,t,n){return n?ge.createElement(e.tag,G(G({key:t},rie(e.attrs)),n),(e.children||[]).map(function(r,i){return Gj(r,"".concat(t,"-").concat(e.tag,"-").concat(i))})):ge.createElement(e.tag,G({key:t},rie(e.attrs)),(e.children||[]).map(function(r,i){return Gj(r,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function twe(e){return Vj(e)[0]}function nwe(e){return e?Array.isArray(e)?e:[e]:[]}var M2t=`
|
||
.anticon {
|
||
display: inline-flex;
|
||
alignItems: 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);
|
||
}
|
||
}
|
||
`,I2t=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:M2t,n=f.useContext(O2e),r=n.csp;f.useEffect(function(){q1(t,"@ant-design-icons",{prepend:!0,csp:r})},[])},$2t=["icon","className","onClick","style","primaryColor","secondaryColor"],sw={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function R2t(e){var t=e.primaryColor,n=e.secondaryColor;sw.primaryColor=t,sw.secondaryColor=n||twe(t),sw.calculated=!!n}function A2t(){return G({},sw)}var bC=function(t){var n=t.icon,r=t.className,i=t.onClick,o=t.style,a=t.primaryColor,s=t.secondaryColor,l=tn(t,$2t),c=sw;if(a&&(c={primaryColor:a,secondaryColor:s||twe(a)}),I2t(),P2t(nie(n),"icon should be icon definiton, but got ".concat(n)),!nie(n))return null;var u=n;return u&&typeof u.icon=="function"&&(u=G(G({},u),{},{icon:u.icon(c.primaryColor,c.secondaryColor)})),Gj(u.icon,"svg-".concat(u.name),G({className:r,onClick:i,style:o,"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l))};bC.displayName="IconReact";bC.getTwoToneColors=A2t;bC.setTwoToneColors=R2t;function rwe(e){var t=nwe(e),n=Le(t,2),r=n[0],i=n[1];return bC.setTwoToneColors({primaryColor:r,secondaryColor:i})}function N2t(){var e=bC.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var D2t=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];rwe("#1890ff");var Di=f.forwardRef(function(e,t){var n=e.className,r=e.icon,i=e.spin,o=e.rotate,a=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=tn(e,D2t),u=f.useContext(O2e),d=u.prefixCls,h=d===void 0?"anticon":d,p=u.rootClassName,m=Re(p,h,ae(ae({},"".concat(h,"-").concat(r.name),!!r.name),"".concat(h,"-spin"),!!i||r.name==="loading"),n),v=a;v===void 0&&s&&(v=-1);var y=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,S=nwe(l),b=Le(S,2),C=b[0],_=b[1];return f.createElement("span",G(G({role:"img","aria-label":r.name},c),{},{ref:t,tabIndex:v,onClick:s,className:m}),f.createElement(bC,{icon:r,primaryColor:C,secondaryColor:_,style:y}))});Di.displayName="AntdIcon";Di.getTwoToneColor=N2t;Di.setTwoToneColor=rwe;var L2t=function(t,n){return f.createElement(Di,G(G({},t),{},{ref:n,icon:Wst}))},iwe=f.forwardRef(L2t),F2t=function(t,n){return f.createElement(Di,G(G({},t),{},{ref:n,icon:Vst}))},j2t=f.forwardRef(F2t),B2t=function(t,n){return f.createElement(Di,G(G({},t),{},{ref:n,icon:tye}))},owe=f.forwardRef(B2t),H2t=function(t,n){return f.createElement(Di,G(G({},t),{},{ref:n,icon:O0e}))},vb=f.forwardRef(H2t),z2t=function(t,n){return f.createElement(Di,G(G({},t),{},{ref:n,icon:hCe}))},RV=f.forwardRef(z2t),U2t=function(t,n){return f.createElement(Di,G(G({},t),{},{ref:n,icon:pCe}))},pk=f.forwardRef(U2t),W2t=function(t,n){return f.createElement(Di,G(G({},t),{},{ref:n,icon:tSe}))},awe=f.forwardRef(W2t),V2t=function(t,n){return f.createElement(Di,G(G({},t),{},{ref:n,icon:mCe}))},swe=f.forwardRef(V2t),K2t=function(t,n){return f.createElement(Di,G(G({},t),{},{ref:n,icon:Oit}))},q2t=f.forwardRef(K2t),G2t=function(t,n){return f.createElement(Di,G(G({},t),{},{ref:n,icon:Mlt}))},Y2t=f.forwardRef(G2t),X2t=function(t,n){return f.createElement(Di,G(G({},t),{},{ref:n,icon:Llt}))},r0=f.forwardRef(X2t),Q2t=function(t,n){return f.createElement(Di,G(G({},t),{},{ref:n,icon:Flt}))},Z2t=f.forwardRef(Q2t),J2t=function(t,n){return f.createElement(Di,G(G({},t),{},{ref:n,icon:zlt}))},lwe=f.forwardRef(J2t),ewt=function(t,n){return f.createElement(Di,G(G({},t),{},{ref:n,icon:Klt}))},YE=f.forwardRef(ewt),twt=function(t,n){return f.createElement(Di,G(G({},t),{},{ref:n,icon:qlt}))},nwt=f.forwardRef(twt),rwt=function(t,n){return f.createElement(Di,G(G({},t),{},{ref:n,icon:pbe}))},XE=f.forwardRef(rwt),iwt=function(t,n){return f.createElement(Di,G(G({},t),{},{ref:n,icon:rct}))},cwe=f.forwardRef(iwt),owt=function(t,n){return f.createElement(Di,G(G({},t),{},{ref:n,icon:sct}))},awt=f.forwardRef(owt),swt=function(t,n){return f.createElement(Di,G(G({},t),{},{ref:n,icon:lct}))},uwe=f.forwardRef(swt),lwt=function(t,n){return f.createElement(Di,G(G({},t),{},{ref:n,icon:cct}))},cwt=f.forwardRef(lwt),uwt=function(t,n){return f.createElement(Di,G(G({},t),{},{ref:n,icon:uct}))},UP=f.forwardRef(uwt),dwt=function(t,n){return f.createElement(Di,G(G({},t),{},{ref:n,icon:dct}))},fwt=f.forwardRef(dwt),hwt=function(t,n){return f.createElement(Di,G(G({},t),{},{ref:n,icon:vCe}))},O_=f.forwardRef(hwt),pwt=function(t,n){return f.createElement(Di,G(G({},t),{},{ref:n,icon:pct}))},P_=f.forwardRef(pwt),mwt=function(t,n){return f.createElement(Di,G(G({},t),{},{ref:n,icon:mct}))},AV=f.forwardRef(mwt),gwt=function(t,n){return f.createElement(Di,G(G({},t),{},{ref:n,icon:gct}))},NV=f.forwardRef(gwt),vwt=function(t,n){return f.createElement(Di,G(G({},t),{},{ref:n,icon:vct}))},DV=f.forwardRef(vwt),lw=function(){return lw=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},lw.apply(this,arguments)};function ywt(e){var t,n=(typeof window<"u"?window:{}).URL,r=new n((t=window==null?void 0:window.location)===null||t===void 0?void 0:t.href);return Object.keys(e).forEach(function(i){var o=e[i];o!=null?Array.isArray(o)?(r.searchParams.delete(i),o.forEach(function(a){r.searchParams.append(i,a)})):o instanceof Date?Number.isNaN(o.getTime())||r.searchParams.set(i,o.toISOString()):typeof o=="object"?r.searchParams.set(i,JSON.stringify(o)):r.searchParams.set(i,o):r.searchParams.delete(i)}),r}function bwt(e,t){var n;e===void 0&&(e={}),t===void 0&&(t={disabled:!1});var r=f.useState(),i=r[1],o=typeof window<"u"&&((n=window==null?void 0:window.location)===null||n===void 0?void 0:n.search),a=f.useMemo(function(){return t.disabled?{}:new URLSearchParams(o||{})},[t.disabled,o]),s=f.useMemo(function(){if(t.disabled)return{};if(typeof window>"u"||!window.URL)return{};var u=[];a.forEach(function(h,p){u.push({key:p,value:h})}),u=u.reduce(function(h,p){return(h[p.key]=h[p.key]||[]).push(p),h},{}),u=Object.keys(u).map(function(h){var p=u[h];return p.length===1?[h,p[0].value]:[h,p.map(function(m){var v=m.value;return v})]});var d=lw({},e);return u.forEach(function(h){var p=h[0],m=h[1];d[p]=Cwt(p,m,{},e)}),d},[t.disabled,e,a]);function l(u){if(!(typeof window>"u"||!window.URL)){var d=ywt(u);window.location.search!==d.search&&window.history.replaceState({},"",d.toString()),a.toString()!==d.searchParams.toString()&&i({})}}f.useEffect(function(){t.disabled||typeof window>"u"||!window.URL||l(lw(lw({},e),s))},[t.disabled,s]);var c=function(u){l(u)};return f.useEffect(function(){if(t.disabled)return function(){};if(typeof window>"u"||!window.URL)return function(){};var u=function(){i({})};return window.addEventListener("popstate",u),function(){window.removeEventListener("popstate",u)}},[t.disabled]),[s,c]}var Swt={true:!0,false:!1};function Cwt(e,t,n,r){if(!n)return t;var i=n[e],o=t===void 0?r[e]:t;return i===Number?Number(o):i===Boolean||t==="true"||t==="false"?Swt[o]:Array.isArray(i)?i.find(function(a){return a==o})||r[e]:o}var SC=ge.createContext({}),xwt=["children","Wrapper"],wwt=["children","Wrapper"],dwe=f.createContext({grid:!1,colProps:void 0,rowProps:void 0}),_wt=function(t){var n=t.grid,r=t.rowProps,i=t.colProps;return{grid:!!n,RowWrapper:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=a.children,l=a.Wrapper,c=tn(a,xwt);return n?U.jsx(DE,G(G(G({gutter:8},r),c),{},{children:s})):l?U.jsx(l,{children:s}):s},ColWrapper:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=a.children,l=a.Wrapper,c=tn(a,wwt),u=f.useMemo(function(){var d=G(G({},i),c);return typeof d.span>"u"&&typeof d.xs>"u"&&(d.xs=24),d},[c]);return n?U.jsx(_v,G(G({},u),{},{children:s})):l?U.jsx(l,{children:s}):s}}},LV=function(t){var n=f.useMemo(function(){return ln(t)==="object"?t:{grid:t}},[t]),r=f.useContext(dwe),i=r.grid,o=r.colProps;return f.useMemo(function(){return _wt({grid:!!(i||n.grid),rowProps:n==null?void 0:n.rowProps,colProps:(n==null?void 0:n.colProps)||o,Wrapper:n==null?void 0:n.Wrapper})},[n==null?void 0:n.Wrapper,n.grid,i,JSON.stringify([o,n==null?void 0:n.colProps,n==null?void 0:n.rowProps])])},Ewt=["valueType","customLightMode","lightFilterLabelFormatter","valuePropName","ignoreWidth","defaultProps"],Twt=["label","tooltip","placeholder","width","bordered","messageVariables","ignoreFormItem","transform","convertValue","readonly","allowClear","colSize","getFormItemProps","getFieldProps","filedConfig","cacheForSwr","proFieldProps"],iie={xs:104,s:216,sm:216,m:328,md:328,l:440,lg:440,xl:552},kwt=["switch","radioButton","radio","rate"];function FV(e,t){e.displayName="ProFormComponent";var n=function(o){var a=G(G({},o==null?void 0:o.filedConfig),t),s=a.valueType,l=a.customLightMode,c=a.lightFilterLabelFormatter,u=a.valuePropName,d=u===void 0?"value":u,h=a.ignoreWidth,p=a.defaultProps,m=tn(a,Ewt),v=G(G({},p),o),y=v.label,S=v.tooltip,b=v.placeholder,C=v.width,_=v.bordered,T=v.messageVariables,x=v.ignoreFormItem,E=v.transform,k=v.convertValue,M=v.readonly,P=v.allowClear;v.colSize;var D=v.getFormItemProps,R=v.getFieldProps;v.filedConfig;var A=v.cacheForSwr,H=v.proFieldProps,F=tn(v,Twt),z=s||F.valueType,W=f.useMemo(function(){return h||kwt.includes(z)},[h,z]),q=f.useState(),Z=Le(q,2),N=Z[1],B=f.useState(),V=Le(B,2),Y=V[0],ie=V[1],ce=ge.useContext(SC),fe=Rl(function(){return{formItemProps:D==null?void 0:D(),fieldProps:R==null?void 0:R()}},[R,D,F.dependenciesValues,Y]),ee=Rl(function(){var Pe=G(G(G(G({},x?pu({value:F.value}):{}),{},{placeholder:b,disabled:o.disabled},ce.fieldProps),fe.fieldProps),F.fieldProps);return Pe.style=pu(Pe==null?void 0:Pe.style),Pe},[x,F.value,F.fieldProps,b,o.disabled,ce.fieldProps,fe.fieldProps]),ne=X0t(F),ue=Rl(function(){return G(G(G(G({},ce.formItemProps),ne),fe.formItemProps),F.formItemProps)},[fe.formItemProps,ce.formItemProps,F.formItemProps,ne]),ye=Rl(function(){return G(G({messageVariables:T},m),ue)},[m,ue,T]);f9(!F.defaultValue,"请不要在 Form 中使用 defaultXXX。如果需要默认值请使用 initialValues 和 initialValue。");var me=f.useContext(rg),pe=me.prefixName,he=Rl(function(){var Pe,Ne=ye==null?void 0:ye.name;Array.isArray(Ne)&&(Ne=Ne.join("_")),Array.isArray(pe)&&Ne&&(Ne="".concat(pe.join("."),".").concat(Ne));var We=Ne&&"form-".concat((Pe=ce.formKey)!==null&&Pe!==void 0?Pe:"","-field-").concat(Ne);return We},[kre(ye==null?void 0:ye.name),pe,ce.formKey]),_e=Md(function(){var Pe;D||R?ie([]):F.renderFormItem&&N([]);for(var Ne=arguments.length,We=new Array(Ne),Q=0;Q<Ne;Q++)We[Q]=arguments[Q];ee==null||(Pe=ee.onChange)===null||Pe===void 0||Pe.call.apply(Pe,[ee].concat(We))}),le=Rl(function(){var Pe=G({width:C&&!iie[C]?C:ce.grid?"100%":void 0},ee==null?void 0:ee.style);return W&&Reflect.deleteProperty(Pe,"width"),pu(Pe)},[kre(ee==null?void 0:ee.style),ce.grid,W,C]),xe=Rl(function(){var Pe=C&&iie[C];return Re(ee==null?void 0:ee.className,ae({"pro-field":Pe},"pro-field-".concat(C),Pe&&!W))||void 0},[C,ee==null?void 0:ee.className,W]),we=Rl(function(){return pu(G(G({},ce.proFieldProps),{},{mode:F==null?void 0:F.mode,readonly:M,params:F.params,proFieldKey:he,cacheForSwr:A},H))},[ce.proFieldProps,F==null?void 0:F.mode,F.params,M,he,A,H]),De=Rl(function(){return G(G({onChange:_e,allowClear:P},ee),{},{style:le,className:xe})},[P,xe,_e,ee,le]),Fe=Rl(function(){return U.jsx(e,G(G({},F),{},{fieldProps:De,proFieldProps:we,ref:o==null?void 0:o.fieldRef}),o.proFormFieldKey||o.name)},[we,De,F]),Ce=Rl(function(){var Pe,Ne,We,Q;return U.jsx(g_e,G(G({label:y&&(H==null?void 0:H.light)!==!0?y:void 0,tooltip:(H==null?void 0:H.light)!==!0&&S,valuePropName:d},ye),{},{ignoreFormItem:x,transform:E,dataFormat:ee==null?void 0:ee.format,valueType:z,messageVariables:G({label:y||""},ye==null?void 0:ye.messageVariables),convertValue:k,lightProps:pu(G(G(G({},ee),{},{valueType:z,bordered:_,allowClear:(Ne=Fe==null||(We=Fe.props)===null||We===void 0?void 0:We.allowClear)!==null&&Ne!==void 0?Ne:P,light:H==null?void 0:H.light,label:y,customLightMode:l,labelFormatter:c,valuePropName:d,footerRender:Fe==null||(Q=Fe.props)===null||Q===void 0?void 0:Q.footerRender},F.lightProps),ye.lightProps)),children:Fe}),o.proFormFieldKey||((Pe=ye.name)===null||Pe===void 0?void 0:Pe.toString()))},[y,H==null?void 0:H.light,S,d,o.proFormFieldKey,ye,x,E,ee,z,k,_,Fe,P,l,c,F.lightProps]),Te=LV(F),ke=Te.ColWrapper;return U.jsx(ke,{children:Ce})},r=function(o){var a=o.dependencies;return a?U.jsx(m_e,{name:a,originDependencies:o==null?void 0:o.originDependencies,children:function(l){return U.jsx(n,G({dependenciesValues:l,dependencies:a},o))}}):U.jsx(n,G({dependencies:a},o))};return r}var Owt=["rules","name","phoneName","fieldProps","onTiming","captchaTextRender","captchaProps"],Pwt=ge.forwardRef(function(e,t){var n=Or.useFormInstance(),r=f.useState(e.countDown||60),i=Le(r,2),o=i[0],a=i[1],s=f.useState(!1),l=Le(s,2),c=l[0],u=l[1],d=f.useState(),h=Le(d,2),p=h[0],m=h[1];e.rules,e.name;var v=e.phoneName,y=e.fieldProps,S=e.onTiming,b=e.captchaTextRender,C=b===void 0?function(E,k){return E?"".concat(k," 秒后重新获取"):"获取验证码"}:b,_=e.captchaProps,T=tn(e,Owt),x=function(){var E=Jo(Hr().mark(function k(M){return Hr().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return D.prev=0,m(!0),D.next=4,T.onGetCaptcha(M);case 4:m(!1),u(!0),D.next=13;break;case 8:D.prev=8,D.t0=D.catch(0),u(!1),m(!1),console.log(D.t0);case 13:case"end":return D.stop()}},k,null,[[0,8]])}));return function(M){return E.apply(this,arguments)}}();return f.useImperativeHandle(t,function(){return{startTiming:function(){return u(!0)},endTiming:function(){return u(!1)}}}),f.useEffect(function(){var E=0,k=e.countDown;return c&&(E=window.setInterval(function(){a(function(M){return M<=1?(u(!1),clearInterval(E),k||60):M-1})},1e3)),function(){return clearInterval(E)}},[c]),f.useEffect(function(){S&&S(o)},[o,S]),U.jsxs("div",{style:G(G({},y==null?void 0:y.style),{},{display:"flex",alignItems:"center"}),ref:t,children:[U.jsx($i,G(G({},y),{},{style:G({flex:1,transition:"width .3s",marginRight:8},y==null?void 0:y.style)})),U.jsx(hr,G(G({style:{display:"block"},disabled:c,loading:p},_),{},{onClick:Jo(Hr().mark(function E(){var k;return Hr().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(P.prev=0,!v){P.next=9;break}return P.next=4,n.validateFields([v].flat(1));case 4:return k=n.getFieldValue([v].flat(1)),P.next=7,x(k);case 7:P.next=11;break;case 9:return P.next=11,x("");case 11:P.next=16;break;case 13:P.prev=13,P.t0=P.catch(0),console.log(P.t0);case 16:case"end":return P.stop()}},E,null,[[0,13]])})),children:C(c,o)}))]})}),QE=FV(Pwt),Mwt=["label","prefixCls","onChange","value","mode","children","defaultValue","size","showSearch","disabled","style","className","bordered","options","onSearch","allowClear","labelInValue","fieldNames","lightLabel","labelTrigger","optionFilterProp","optionLabelProp","valueMaxLength","fetchDataOnSearch","fetchData"],oie=function(t,n){return ln(n)!=="object"?t[n]||n:t[n==null?void 0:n.value]||n.label},Iwt=function(t,n){var r=t.label,i=t.prefixCls,o=t.onChange,a=t.value,s=t.mode;t.children,t.defaultValue;var l=t.size,c=t.showSearch,u=t.disabled,d=t.style,h=t.className,p=t.bordered,m=t.options,v=t.onSearch,y=t.allowClear,S=t.labelInValue,b=t.fieldNames,C=t.lightLabel,_=t.labelTrigger,T=t.optionFilterProp,x=t.optionLabelProp,E=x===void 0?"":x,k=t.valueMaxLength,M=k===void 0?41:k,P=t.fetchDataOnSearch,D=P===void 0?!1:P,R=t.fetchData,A=tn(t,Mwt),H=t.placeholder,F=H===void 0?r:H,z=b||{},W=z.label,q=W===void 0?"label":W,Z=z.value,N=Z===void 0?"value":Z,B=f.useContext(or.ConfigContext),V=B.getPrefixCls,Y=V("pro-field-select-light-select"),ie=f.useState(!1),ce=Le(ie,2),fe=ce[0],ee=ce[1],ne=f.useState(""),ue=Le(ne,2),ye=ue[0],me=ue[1],pe=ro("LightSelect",function(De){return ae({},".".concat(Y),ae(ae({},"".concat(De.antCls,"-select"),{position:"absolute",width:"153px",height:"28px",visibility:"hidden","&-selector":{height:28}}),"&.".concat(Y,"-searchable"),ae({},"".concat(De.antCls,"-select"),{width:"200px","&-selector":{height:28}})))}),he=pe.wrapSSR,_e=pe.hashId,le=f.useMemo(function(){var De={};return m==null||m.forEach(function(Fe){var Ce=Fe[E]||Fe[q],Te=Fe[N];De[Te]=Ce||Te}),De},[q,m,N,E]),xe=f.useMemo(function(){return Reflect.has(A,"open")?A==null?void 0:A.open:fe},[fe,A]),we=Array.isArray(a)?a.map(function(De){return oie(le,De)}):oie(le,a);return he(U.jsxs("div",{className:Re(Y,_e,ae({},"".concat(Y,"-searchable"),c),"".concat(Y,"-container-").concat(A.placement||"bottomLeft"),h),style:d,onClick:function(Fe){var Ce;if(!u){var Te=C==null||(Ce=C.current)===null||Ce===void 0||(Ce=Ce.labelRef)===null||Ce===void 0||(Ce=Ce.current)===null||Ce===void 0?void 0:Ce.contains(Fe.target);Te&&ee(!fe)}},children:[U.jsx(bs,G(G(G({},A),{},{allowClear:y,value:a,mode:s,labelInValue:S,size:l,disabled:u,onChange:function(Fe,Ce){o==null||o(Fe,Ce),s!=="multiple"&&ee(!1)}},jc(p)),{},{showSearch:c,onSearch:c?function(De){D&&R&&R(De),v==null||v(De)}:void 0,style:d,dropdownRender:function(Fe){return U.jsxs("div",{ref:n,children:[c&&U.jsx("div",{style:{margin:"4px 8px"},children:U.jsx($i,{value:ye,allowClear:!!y,onChange:function(Te){me(Te.target.value),D&&R&&R(Te.target.value),v==null||v(Te.target.value)},onKeyDown:function(Te){if(Te.key==="Backspace"){Te.stopPropagation();return}(Te.key==="ArrowUp"||Te.key==="ArrowDown")&&Te.preventDefault()},style:{width:"100%"},prefix:U.jsx(XO,{})})}),Fe]})},open:xe,onDropdownVisibleChange:function(Fe){var Ce;Fe||me(""),_||ee(Fe),A==null||(Ce=A.onDropdownVisibleChange)===null||Ce===void 0||Ce.call(A,Fe)},prefixCls:i,options:v||!ye?m:m==null?void 0:m.filter(function(De){var Fe,Ce;return T?Uo(De[T]).join("").toLowerCase().includes(ye):((Fe=String(De[q]))===null||Fe===void 0||(Fe=Fe.toLowerCase())===null||Fe===void 0?void 0:Fe.includes(ye==null?void 0:ye.toLowerCase()))||((Ce=De[N])===null||Ce===void 0||(Ce=Ce.toString())===null||Ce===void 0||(Ce=Ce.toLowerCase())===null||Ce===void 0?void 0:Ce.includes(ye==null?void 0:ye.toLowerCase()))})})),U.jsx($p,{ellipsis:!0,label:r,placeholder:F,disabled:u,bordered:p,allowClear:!!y,value:we||(a==null?void 0:a.label)||a,onClear:function(){o==null||o(void 0,void 0)},ref:C,valueMaxLength:M})]}))};const $wt=ge.forwardRef(Iwt);var Rwt=["optionItemRender","mode","onSearch","onFocus","onChange","autoClearSearchValue","searchOnFocus","resetAfterSelect","fetchDataOnSearch","optionFilterProp","optionLabelProp","className","disabled","options","fetchData","resetData","prefixCls","onClear","searchValue","showSearch","fieldNames","defaultSearchValue","preserveOriginalLabel"],Awt=["className","optionType"],Nwt=function(t,n){var r=t.optionItemRender,i=t.mode,o=t.onSearch,a=t.onFocus,s=t.onChange,l=t.autoClearSearchValue,c=l===void 0?!0:l,u=t.searchOnFocus,d=u===void 0?!1:u,h=t.resetAfterSelect,p=h===void 0?!1:h,m=t.fetchDataOnSearch,v=m===void 0?!0:m,y=t.optionFilterProp,S=y===void 0?"label":y,b=t.optionLabelProp,C=b===void 0?"label":b,_=t.className,T=t.disabled,x=t.options,E=t.fetchData,k=t.resetData,M=t.prefixCls,P=t.onClear,D=t.searchValue,R=t.showSearch,A=t.fieldNames,H=t.defaultSearchValue,F=t.preserveOriginalLabel,z=F===void 0?!1:F,W=tn(t,Rwt),q=A||{},Z=q.label,N=Z===void 0?"label":Z,B=q.value,V=B===void 0?"value":B,Y=q.options,ie=Y===void 0?"options":Y,ce=f.useState(D??H),fe=Le(ce,2),ee=fe[0],ne=fe[1],ue=f.useRef();f.useImperativeHandle(n,function(){return ue.current}),f.useEffect(function(){if(W.autoFocus){var xe;ue==null||(xe=ue.current)===null||xe===void 0||xe.focus()}},[W.autoFocus]),f.useEffect(function(){ne(D)},[D]);var ye=f.useContext(or.ConfigContext),me=ye.getPrefixCls,pe=me("pro-filed-search-select",M),he=Re(pe,_,ae({},"".concat(pe,"-disabled"),T)),_e=function(we,De){return Array.isArray(we)&&Array.isArray(De)&&we.length>0?we.map(function(Fe,Ce){var Te=De==null?void 0:De[Ce],ke=(Te==null?void 0:Te["data-item"])||{};return G(G(G({},ke),Fe),{},{label:z?ke.label:Fe.label})}):[]},le=function xe(we){return we.map(function(De,Fe){var Ce,Te=De,ke=Te.className,Pe=Te.optionType,Ne=tn(Te,Awt),We=De[N],Q=De[V],K=(Ce=De[ie])!==null&&Ce!==void 0?Ce:[];return Pe==="optGroup"||De.options?G(G({label:We},Ne),{},{data_title:We,title:We,key:Q??"".concat(We==null?void 0:We.toString(),"-").concat(Fe,"-").concat(dk()),children:xe(K)}):G(G({title:We},Ne),{},{data_title:We,value:Q??Fe,key:Q??"".concat(We==null?void 0:We.toString(),"-").concat(Fe,"-").concat(dk()),"data-item":De,className:"".concat(pe,"-option ").concat(ke||"").trim(),label:(r==null?void 0:r(De))||We})})};return U.jsx(bs,G(G({ref:ue,className:he,allowClear:!0,autoClearSearchValue:c,disabled:T,mode:i,showSearch:R,searchValue:ee,optionFilterProp:S,optionLabelProp:C,onClear:function(){P==null||P(),E(void 0),R&&ne(void 0)}},W),{},{filterOption:W.filterOption==!1?!1:function(xe,we){var De,Fe,Ce;return W.filterOption&&typeof W.filterOption=="function"?W.filterOption(xe,G(G({},we),{},{label:we==null?void 0:we.data_title})):!!(we!=null&&(De=we.data_title)!==null&&De!==void 0&&De.toString().toLowerCase().includes(xe.toLowerCase())||we!=null&&(Fe=we.label)!==null&&Fe!==void 0&&Fe.toString().toLowerCase().includes(xe.toLowerCase())||we!=null&&(Ce=we.value)!==null&&Ce!==void 0&&Ce.toString().toLowerCase().includes(xe.toLowerCase()))},onSearch:R?function(xe){v&&E(xe),o==null||o(xe),ne(xe)}:void 0,onChange:function(we,De){R&&c&&(E(void 0),o==null||o(""),ne(void 0));for(var Fe=arguments.length,Ce=new Array(Fe>2?Fe-2:0),Te=2;Te<Fe;Te++)Ce[Te-2]=arguments[Te];if(!t.labelInValue){s==null||s.apply(void 0,[we,De].concat(Ce));return}if(i!=="multiple"&&!Array.isArray(De)){var ke=De&&De["data-item"];if(!we||!ke){var Pe=we&&G(G({},we),{},{label:z?ke==null?void 0:ke.label:we.label});s==null||s.apply(void 0,[Pe,De].concat(Ce))}else s==null||s.apply(void 0,[G(G(G({},we),ke),{},{label:z?ke.label:we.label}),De].concat(Ce));return}var Ne=_e(we,De);s==null||s.apply(void 0,[Ne,De].concat(Ce)),p&&k()},onFocus:function(we){d&&E(ee),a==null||a(we)},options:le(x||[])}))};const Dwt=ge.forwardRef(Nwt);var Lwt=["value","text"],Fwt=["mode","valueEnum","render","renderFormItem","request","fieldProps","plain","children","light","proFieldKey","params","label","bordered","id","lightLabel","labelTrigger"],jwt=function(t){for(var n=t.label,r=t.words,i=f.useContext(or.ConfigContext),o=i.getPrefixCls,a=o("pro-select-item-option-content-light"),s=o("pro-select-item-option-content"),l=ro("Highlight",function(y){return ae(ae({},".".concat(a),{color:y.colorPrimary}),".".concat(s),{flex:"auto",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"})}),c=l.wrapSSR,u=new RegExp(r.map(function(y){return y.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}).join("|"),"gi"),d=n,h=[];d.length;){var p=u.exec(d);if(!p){h.push(d);break}var m=p.index,v=p[0].length+m;h.push(d.slice(0,m),ge.createElement("span",{className:a},d.slice(m,v))),d=d.slice(v)}return c(ge.createElement.apply(ge,["div",{title:n,className:s}].concat(h)))};function Yj(e,t){var n,r;if(!t||e!=null&&(n=e.label)!==null&&n!==void 0&&n.toString().toLowerCase().includes(t.toLowerCase())||e!=null&&(r=e.value)!==null&&r!==void 0&&r.toString().toLowerCase().includes(t.toLowerCase()))return!0;if(e.children||e.options){var i=[].concat(pt(e.children||[]),[e.options||[]]).find(function(o){return Yj(o,t)});if(i)return!0}return!1}var Bwt=function(t){var n=[],r=Rp(t);return r.forEach(function(i,o){var a=r.get(o)||r.get("".concat(o));if(a){if(ln(a)==="object"&&a!==null&&a!==void 0&&a.text){n.push({text:a==null?void 0:a.text,value:o,label:a==null?void 0:a.text,disabled:a.disabled});return}n.push({text:a,value:o})}}),n},CC=function(t){var n,r,i,o,a=t.cacheForSwr,s=t.fieldProps,l=f.useState(t.defaultKeyWords),c=Le(l,2),u=c[0],d=c[1],h=f.useState(function(){return t.proFieldKey?t.proFieldKey.toString():t.request?dk():"no-fetch"}),p=Le(h,1),m=p[0],v=f.useRef(m),y=Md(function(R){return Bwt(Rp(R)).map(function(A){var H=A.value,F=A.text,z=tn(A,Lwt);return G({label:F,value:H,key:H},z)})}),S=Rl(function(){if(s){var R=(s==null?void 0:s.options)||(s==null?void 0:s.treeData);if(R){var A=s.fieldNames||{},H=A.children,F=A.label,z=A.value,W=function q(Z,N){if(Z!=null&&Z.length)for(var B=Z.length,V=0;V<B;){var Y=Z[V++];(Y[H]||Y[F]||Y[z])&&(Y[N]=Y[N==="children"?H:N==="label"?F:z],q(Y[H],N))}};return H&&W(R,"children"),F&&W(R,"label"),z&&W(R,"value"),R}}},[s]),b=Jn(function(){return t.valueEnum?y(t.valueEnum):[]},{value:S}),C=Le(b,2),_=C[0],T=C[1];z0t(function(){var R,A;!t.valueEnum||(R=t.fieldProps)!==null&&R!==void 0&&R.options||(A=t.fieldProps)!==null&&A!==void 0&&A.treeData||T(y(t.valueEnum))},[t.valueEnum]);var x=B0t([v.current,t.params,u],(n=(r=t.debounceTime)!==null&&r!==void 0?r:t==null||(i=t.fieldProps)===null||i===void 0?void 0:i.debounceTime)!==null&&n!==void 0?n:0,[t.params,u]),E=EV(function(){return t.request?x:null},function(R){var A=Le(R,3),H=A[1],F=A[2];return t.request(G(G({},H),{},{keyWords:F}),t)},{revalidateIfStale:!a,revalidateOnReconnect:a,shouldRetryOnError:!1,revalidateOnFocus:!1}),k=E.data,M=E.mutate,P=E.isValidating,D=f.useMemo(function(){var R,A,H=_==null?void 0:_.map(function(F){if(typeof F=="string")return{label:F,value:F};if(F.children||F.options){var z=[].concat(pt(F.children||[]),pt(F.options||[])).filter(function(W){return Yj(W,u)});return G(G({},F),{},{children:z,options:z})}return F});return((R=t.fieldProps)===null||R===void 0?void 0:R.filterOption)===!0||((A=t.fieldProps)===null||A===void 0?void 0:A.filterOption)===void 0?H==null?void 0:H.filter(function(F){return F?u?Yj(F,u):!0:!1}):H},[_,u,(o=t.fieldProps)===null||o===void 0?void 0:o.filterOption]);return[P,t.request?k:D,function(R){d(R)},function(){d(void 0),M([],!1)}]},Hwt=function(t,n){var r,i=t.mode,o=t.valueEnum,a=t.render,s=t.renderFormItem;t.request;var l=t.fieldProps;t.plain,t.children;var c=t.light;t.proFieldKey,t.params;var u=t.label,d=t.bordered,h=t.id,p=t.lightLabel,m=t.labelTrigger,v=tn(t,Fwt),y=f.useRef(),S=Vo(),b=f.useRef(""),C=l.fieldNames;f.useEffect(function(){b.current=l==null?void 0:l.searchValue},[l==null?void 0:l.searchValue]);var _=CC(t),T=Le(_,4),x=T[0],E=T[1],k=T[2],M=T[3],P=(or==null||(r=or.useConfig)===null||r===void 0?void 0:r.call(or))||{componentSize:"middle"},D=P.componentSize;f.useImperativeHandle(n,function(){return G(G({},y.current||{}),{},{fetchData:function(Z){return k(Z)}})},[k]);var R=f.useMemo(function(){if(i==="read"){var q=C||{},Z=q.label,N=Z===void 0?"label":Z,B=q.value,V=B===void 0?"value":B,Y=q.options,ie=Y===void 0?"options":Y,ce=new Map,fe=function ee(ne){if(!(ne!=null&&ne.length))return ce;for(var ue=ne.length,ye=0;ye<ue;){var me=ne[ye++];ce.set(me[V],me[N]),ee(me[ie])}return ce};return fe(E)}},[C,i,E]);if(i==="read"){var A=U.jsx(U.Fragment,{children:mC(v.text,Rp(o||R))});if(a){var H;return(H=a(A,G({mode:i},l),A))!==null&&H!==void 0?H:null}return A}if(i==="edit"||i==="update"){var F=function(){return c?U.jsx($wt,G(G({},jc(d)),{},{id:h,loading:x,ref:y,allowClear:!0,size:D,options:E,label:u,placeholder:S.getMessage("tableForm.selectPlaceholder","请选择"),lightLabel:p,labelTrigger:m,fetchData:k},l)):U.jsx(Dwt,G(G(G({className:v.className,style:G({minWidth:100},v.style)},jc(d)),{},{id:h,loading:x,ref:y,allowClear:!0,defaultSearchValue:t.defaultKeyWords,notFoundContent:x?U.jsx(Cl,{size:"small"}):l==null?void 0:l.notFoundContent,fetchData:function(N){b.current=N??"",k(N)},resetData:M,preserveOriginalLabel:!0,optionItemRender:function(N){return typeof N.label=="string"&&b.current?U.jsx(jwt,{label:N.label,words:[b.current]}):N.label},placeholder:S.getMessage("tableForm.selectPlaceholder","请选择"),label:u},l),{},{options:E}),"SearchSelect")},z=F();if(s){var W;return(W=s(v.text,G(G({mode:i},l),{},{options:E,loading:x}),z))!==null&&W!==void 0?W:null}return z}return null};const zwt=ge.forwardRef(Hwt);var Uwt=["radioType","renderFormItem","mode","render","label","light"],Wwt=function(t,n){var r;t.radioType;var i=t.renderFormItem,o=t.mode,a=t.render,s=t.label,l=t.light,c=tn(t,Uwt),u=f.useContext(or.ConfigContext),d=u.getPrefixCls,h=d("pro-field-cascader"),p=CC(c),m=Le(p,3),v=m[0],y=m[1],S=m[2],b=Vo(),C=f.useRef(),_=f.useState(!1),T=Le(_,2),x=T[0],E=T[1];f.useImperativeHandle(n,function(){return G(G({},C.current||{}),{},{fetchData:function(N){return S(N)}})},[S]);var k=f.useMemo(function(){var Z;if(o==="read"){var N=((Z=c.fieldProps)===null||Z===void 0?void 0:Z.fieldNames)||{},B=N.value,V=B===void 0?"value":B,Y=N.label,ie=Y===void 0?"label":Y,ce=N.children,fe=ce===void 0?"children":ce,ee=new Map,ne=function ue(ye){if(!(ye!=null&&ye.length))return ee;for(var me=ye.length,pe=0;pe<me;){var he=ye[pe++];ee.set(he[V],he[ie]),ue(he[fe])}return ee};return ne(y)}},[o,y,(r=c.fieldProps)===null||r===void 0?void 0:r.fieldNames]);if(o==="read"){var M=U.jsx(U.Fragment,{children:mC(c.text,Rp(c.valueEnum||k))});if(a){var P;return(P=a(c.text,G({mode:o},c.fieldProps),M))!==null&&P!==void 0?P:null}return M}if(o==="edit"){var D,R,A=U.jsx(oC,G(G(G({},jc(!l)),{},{ref:C,open:x,suffixIcon:v?U.jsx(Bd,{}):void 0,placeholder:b.getMessage("tableForm.selectPlaceholder","请选择"),allowClear:((D=c.fieldProps)===null||D===void 0?void 0:D.allowClear)!==!1},c.fieldProps),{},{onDropdownVisibleChange:function(N){var B,V;c==null||(B=c.fieldProps)===null||B===void 0||(V=B.onDropdownVisibleChange)===null||V===void 0||V.call(B,N),E(N)},className:Re((R=c.fieldProps)===null||R===void 0?void 0:R.className,h),options:y}));if(i){var H;A=(H=i(c.text,G(G({mode:o},c.fieldProps),{},{options:y,loading:v}),A))!==null&&H!==void 0?H:null}if(l){var F=c.fieldProps,z=F.disabled,W=F.value,q=!!W&&(W==null?void 0:W.length)!==0;return U.jsx($p,{label:s,disabled:z,bordered:c.bordered,value:q||x?A:null,style:q?{paddingInlineEnd:0}:void 0,allowClear:!1,downIcon:q||x?!1:void 0,onClick:function(){var N,B;E(!0),c==null||(N=c.fieldProps)===null||N===void 0||(B=N.onDropdownVisibleChange)===null||B===void 0||B.call(N,!0)}})}return A}return null};const Vwt=ge.forwardRef(Wwt);var Kwt=["layout","renderFormItem","mode","render"],qwt=["fieldNames"],Gwt=function(t,n){var r,i,o=t.layout,a=o===void 0?"horizontal":o,s=t.renderFormItem,l=t.mode,c=t.render,u=tn(t,Kwt),d=f.useContext(or.ConfigContext),h=d.getPrefixCls,p=h("pro-field-checkbox"),m=(r=Or.Item)===null||r===void 0||(i=r.useStatus)===null||i===void 0?void 0:i.call(r),v=CC(u),y=Le(v,3),S=y[0],b=y[1],C=y[2],_=ro("Checkbox",function(q){return ae({},".".concat(p),{"&-error":{span:{color:q.colorError}},"&-warning":{span:{color:q.colorWarning}},"&-vertical":ae(ae(ae({},"&".concat(q.antCls,"-checkbox-group"),{display:"inline-block"}),"".concat(q.antCls,"-checkbox-wrapper+").concat(q.antCls,"-checkbox-wrapper"),{"margin-inline-start":"0 !important"}),"".concat(q.antCls,"-checkbox-group-item"),{display:"flex",marginInlineEnd:0})})}),T=_.wrapSSR,x=_.hashId,E=q3==null?void 0:q3(),k=E.token,M=f.useRef();if(f.useImperativeHandle(n,function(){return G(G({},M.current||{}),{},{fetchData:function(Z){return C(Z)}})},[C]),S)return U.jsx(Cl,{size:"small"});if(l==="read"){var P=b!=null&&b.length?b==null?void 0:b.reduce(function(q,Z){var N;return G(G({},q),{},ae({},(N=Z.value)!==null&&N!==void 0?N:"",Z.label))},{}):void 0,D=mC(u.text,Rp(u.valueEnum||P));if(c){var R;return(R=c(u.text,G({mode:l},u.fieldProps),U.jsx(U.Fragment,{children:D})))!==null&&R!==void 0?R:null}return U.jsx("div",{style:{display:"flex",flexWrap:"wrap",alignItems:"center",gap:k.marginSM},children:D})}if(l==="edit"){var A,H=u.fieldProps||{};H.fieldNames;var F=tn(H,qwt),z=T(U.jsx(mp.Group,G(G({},F),{},{className:Re((A=u.fieldProps)===null||A===void 0?void 0:A.className,x,"".concat(p,"-").concat(a),ae(ae({},"".concat(p,"-error"),(m==null?void 0:m.status)==="error"),"".concat(p,"-warning"),(m==null?void 0:m.status)==="warning")),options:b})));if(s){var W;return(W=s(u.text,G(G({mode:l},u.fieldProps),{},{options:b,loading:S}),z))!==null&&W!==void 0?W:null}return z}return null};const Ywt=ge.forwardRef(Gwt);var Xwt=function(t,n){if(typeof t!="string")return t;try{if(n==="json")return JSON.stringify(JSON.parse(t),null,2)}catch{}return t},Qwt=function(t,n){var r=t.text,i=t.mode,o=t.render,a=t.language,s=a===void 0?"text":a,l=t.renderFormItem,c=t.plain,u=t.fieldProps,d=Xwt(r,s),h=Gf.useToken(),p=h.token;if(i==="read"){var m=U.jsx("pre",G(G({ref:n},u),{},{style:G({padding:16,overflow:"auto",fontSize:"85%",lineHeight:1.45,color:p.colorTextSecondary,fontFamily:p.fontFamilyCode,backgroundColor:"rgba(150, 150, 150, 0.1)",borderRadius:3,width:"min-content"},u.style),children:U.jsx("code",{children:d})}));return o?o(d,G(G({mode:i},u),{},{ref:n}),m):m}if(i==="edit"||i==="update"){u.value=d;var v=U.jsx($i.TextArea,G(G({rows:5},u),{},{ref:n}));if(c&&(v=U.jsx($i,G(G({},u),{},{ref:n}))),l){var y;return(y=l(d,G(G({mode:i},u),{},{ref:n}),v))!==null&&y!==void 0?y:null}return v}return null};const aie=ge.forwardRef(Qwt);var mu={},ZE={},Zwt=n0,Jwt=Kc,e_t=oh,t_t="[object String]";function n_t(e){return typeof e=="string"||!Jwt(e)&&e_t(e)&&Zwt(e)==t_t}var r_t=n_t;function i_t(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(n(o[l],l,o)===!1)break}return t}}var o_t=i_t,a_t=o_t,s_t=a_t(),fwe=s_t;function l_t(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var c_t=l_t,u_t=n0,d_t=oh,f_t="[object Arguments]";function h_t(e){return d_t(e)&&u_t(e)==f_t}var p_t=h_t,sie=p_t,m_t=oh,hwe=Object.prototype,g_t=hwe.hasOwnProperty,v_t=hwe.propertyIsEnumerable,y_t=sie(function(){return arguments}())?sie:function(e){return m_t(e)&&g_t.call(e,"callee")&&!v_t.call(e,"callee")},jV=y_t,mk={exports:{}};function b_t(){return!1}var S_t=b_t;mk.exports;(function(e,t){var n=tf,r=S_t,i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a?n.Buffer:void 0,l=s?s.isBuffer:void 0,c=l||r;e.exports=c})(mk,mk.exports);var WP=mk.exports,C_t=9007199254740991,x_t=/^(?:0|[1-9]\d*)$/;function w_t(e,t){var n=typeof e;return t=t??C_t,!!t&&(n=="number"||n!="symbol"&&x_t.test(e))&&e>-1&&e%1==0&&e<t}var BV=w_t,__t=9007199254740991;function E_t(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=__t}var HV=E_t,T_t=n0,k_t=HV,O_t=oh,P_t="[object Arguments]",M_t="[object Array]",I_t="[object Boolean]",$_t="[object Date]",R_t="[object Error]",A_t="[object Function]",N_t="[object Map]",D_t="[object Number]",L_t="[object Object]",F_t="[object RegExp]",j_t="[object Set]",B_t="[object String]",H_t="[object WeakMap]",z_t="[object ArrayBuffer]",U_t="[object DataView]",W_t="[object Float32Array]",V_t="[object Float64Array]",K_t="[object Int8Array]",q_t="[object Int16Array]",G_t="[object Int32Array]",Y_t="[object Uint8Array]",X_t="[object Uint8ClampedArray]",Q_t="[object Uint16Array]",Z_t="[object Uint32Array]",go={};go[W_t]=go[V_t]=go[K_t]=go[q_t]=go[G_t]=go[Y_t]=go[X_t]=go[Q_t]=go[Z_t]=!0;go[P_t]=go[M_t]=go[z_t]=go[I_t]=go[U_t]=go[$_t]=go[R_t]=go[A_t]=go[N_t]=go[D_t]=go[L_t]=go[F_t]=go[j_t]=go[B_t]=go[H_t]=!1;function J_t(e){return O_t(e)&&k_t(e.length)&&!!go[T_t(e)]}var eEt=J_t;function tEt(e){return function(t){return e(t)}}var zV=tEt,gk={exports:{}};gk.exports;(function(e,t){var n=I2e,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,a=o&&n.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s})(gk,gk.exports);var UV=gk.exports,nEt=eEt,rEt=zV,lie=UV,cie=lie&&lie.isTypedArray,iEt=cie?rEt(cie):nEt,WV=iEt,oEt=c_t,aEt=jV,sEt=Kc,lEt=WP,cEt=BV,uEt=WV,dEt=Object.prototype,fEt=dEt.hasOwnProperty;function hEt(e,t){var n=sEt(e),r=!n&&aEt(e),i=!n&&!r&&lEt(e),o=!n&&!r&&!i&&uEt(e),a=n||r||i||o,s=a?oEt(e.length,String):[],l=s.length;for(var c in e)(t||fEt.call(e,c))&&!(a&&(c=="length"||i&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||cEt(c,l)))&&s.push(c);return s}var pwe=hEt,pEt=Object.prototype;function mEt(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||pEt;return e===n}var VV=mEt;function gEt(e,t){return function(n){return e(t(n))}}var mwe=gEt,vEt=mwe,yEt=vEt(Object.keys,Object),bEt=yEt,SEt=VV,CEt=bEt,xEt=Object.prototype,wEt=xEt.hasOwnProperty;function _Et(e){if(!SEt(e))return CEt(e);var t=[];for(var n in Object(e))wEt.call(e,n)&&n!="constructor"&&t.push(n);return t}var EEt=_Et;function TEt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Lu=TEt,kEt=n0,OEt=Lu,PEt="[object AsyncFunction]",MEt="[object Function]",IEt="[object GeneratorFunction]",$Et="[object Proxy]";function REt(e){if(!OEt(e))return!1;var t=kEt(e);return t==MEt||t==IEt||t==PEt||t==$Et}var KV=REt,AEt=KV,NEt=HV;function DEt(e){return e!=null&&NEt(e.length)&&!AEt(e)}var xC=DEt,LEt=pwe,FEt=EEt,jEt=xC;function BEt(e){return jEt(e)?LEt(e):FEt(e)}var JE=BEt,HEt=fwe,zEt=JE;function UEt(e,t){return e&&HEt(e,t,zEt)}var gwe=UEt;function WEt(e){return e}var VP=WEt,VEt=VP;function KEt(e){return typeof e=="function"?e:VEt}var vwe=KEt,qEt=gwe,GEt=vwe;function YEt(e,t){return e&&qEt(e,GEt(t))}var qV=YEt,XEt=mwe,QEt=XEt(Object.getPrototypeOf,Object),GV=QEt,ZEt=n0,JEt=GV,e4t=oh,t4t="[object Object]",n4t=Function.prototype,r4t=Object.prototype,ywe=n4t.toString,i4t=r4t.hasOwnProperty,o4t=ywe.call(Object);function a4t(e){if(!e4t(e)||ZEt(e)!=t4t)return!1;var t=JEt(e);if(t===null)return!0;var n=i4t.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&ywe.call(n)==o4t}var bwe=a4t;function s4t(){this.__data__=[],this.size=0}var l4t=s4t;function c4t(e,t){return e===t||e!==e&&t!==t}var e4=c4t,u4t=e4;function d4t(e,t){for(var n=e.length;n--;)if(u4t(e[n][0],t))return n;return-1}var KP=d4t,f4t=KP,h4t=Array.prototype,p4t=h4t.splice;function m4t(e){var t=this.__data__,n=f4t(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():p4t.call(t,n,1),--this.size,!0}var g4t=m4t,v4t=KP;function y4t(e){var t=this.__data__,n=v4t(t,e);return n<0?void 0:t[n][1]}var b4t=y4t,S4t=KP;function C4t(e){return S4t(this.__data__,e)>-1}var x4t=C4t,w4t=KP;function _4t(e,t){var n=this.__data__,r=w4t(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var E4t=_4t,T4t=l4t,k4t=g4t,O4t=b4t,P4t=x4t,M4t=E4t;function wC(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}wC.prototype.clear=T4t;wC.prototype.delete=k4t;wC.prototype.get=O4t;wC.prototype.has=P4t;wC.prototype.set=M4t;var qP=wC,I4t=qP;function $4t(){this.__data__=new I4t,this.size=0}var R4t=$4t;function A4t(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var N4t=A4t;function D4t(e){return this.__data__.get(e)}var L4t=D4t;function F4t(e){return this.__data__.has(e)}var j4t=F4t,B4t=tf,H4t=B4t["__core-js_shared__"],z4t=H4t,AA=z4t,uie=function(){var e=/[^.]+$/.exec(AA&&AA.keys&&AA.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function U4t(e){return!!uie&&uie in e}var W4t=U4t,V4t=Function.prototype,K4t=V4t.toString;function q4t(e){if(e!=null){try{return K4t.call(e)}catch{}try{return e+""}catch{}}return""}var Swe=q4t,G4t=KV,Y4t=W4t,X4t=Lu,Q4t=Swe,Z4t=/[\\^$.*+?()[\]{}|]/g,J4t=/^\[object .+?Constructor\]$/,eTt=Function.prototype,tTt=Object.prototype,nTt=eTt.toString,rTt=tTt.hasOwnProperty,iTt=RegExp("^"+nTt.call(rTt).replace(Z4t,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function oTt(e){if(!X4t(e)||Y4t(e))return!1;var t=G4t(e)?iTt:J4t;return t.test(Q4t(e))}var aTt=oTt;function sTt(e,t){return e==null?void 0:e[t]}var lTt=sTt,cTt=aTt,uTt=lTt;function dTt(e,t){var n=uTt(e,t);return cTt(n)?n:void 0}var i0=dTt,fTt=i0,hTt=tf,pTt=fTt(hTt,"Map"),YV=pTt,mTt=i0,gTt=mTt(Object,"create"),GP=gTt,die=GP;function vTt(){this.__data__=die?die(null):{},this.size=0}var yTt=vTt;function bTt(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var STt=bTt,CTt=GP,xTt="__lodash_hash_undefined__",wTt=Object.prototype,_Tt=wTt.hasOwnProperty;function ETt(e){var t=this.__data__;if(CTt){var n=t[e];return n===xTt?void 0:n}return _Tt.call(t,e)?t[e]:void 0}var TTt=ETt,kTt=GP,OTt=Object.prototype,PTt=OTt.hasOwnProperty;function MTt(e){var t=this.__data__;return kTt?t[e]!==void 0:PTt.call(t,e)}var ITt=MTt,$Tt=GP,RTt="__lodash_hash_undefined__";function ATt(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=$Tt&&t===void 0?RTt:t,this}var NTt=ATt,DTt=yTt,LTt=STt,FTt=TTt,jTt=ITt,BTt=NTt;function _C(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}_C.prototype.clear=DTt;_C.prototype.delete=LTt;_C.prototype.get=FTt;_C.prototype.has=jTt;_C.prototype.set=BTt;var HTt=_C,fie=HTt,zTt=qP,UTt=YV;function WTt(){this.size=0,this.__data__={hash:new fie,map:new(UTt||zTt),string:new fie}}var VTt=WTt;function KTt(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var qTt=KTt,GTt=qTt;function YTt(e,t){var n=e.__data__;return GTt(t)?n[typeof t=="string"?"string":"hash"]:n.map}var YP=YTt,XTt=YP;function QTt(e){var t=XTt(this,e).delete(e);return this.size-=t?1:0,t}var ZTt=QTt,JTt=YP;function e5t(e){return JTt(this,e).get(e)}var t5t=e5t,n5t=YP;function r5t(e){return n5t(this,e).has(e)}var i5t=r5t,o5t=YP;function a5t(e,t){var n=o5t(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var s5t=a5t,l5t=VTt,c5t=ZTt,u5t=t5t,d5t=i5t,f5t=s5t;function EC(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}EC.prototype.clear=l5t;EC.prototype.delete=c5t;EC.prototype.get=u5t;EC.prototype.has=d5t;EC.prototype.set=f5t;var XV=EC,h5t=qP,p5t=YV,m5t=XV,g5t=200;function v5t(e,t){var n=this.__data__;if(n instanceof h5t){var r=n.__data__;if(!p5t||r.length<g5t-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new m5t(r)}return n.set(e,t),this.size=n.size,this}var y5t=v5t,b5t=qP,S5t=R4t,C5t=N4t,x5t=L4t,w5t=j4t,_5t=y5t;function TC(e){var t=this.__data__=new b5t(e);this.size=t.size}TC.prototype.clear=S5t;TC.prototype.delete=C5t;TC.prototype.get=x5t;TC.prototype.has=w5t;TC.prototype.set=_5t;var XP=TC,E5t="__lodash_hash_undefined__";function T5t(e){return this.__data__.set(e,E5t),this}var k5t=T5t;function O5t(e){return this.__data__.has(e)}var P5t=O5t,M5t=XV,I5t=k5t,$5t=P5t;function vk(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new M5t;++t<n;)this.add(e[t])}vk.prototype.add=vk.prototype.push=I5t;vk.prototype.has=$5t;var R5t=vk;function A5t(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var N5t=A5t;function D5t(e,t){return e.has(t)}var L5t=D5t,F5t=R5t,j5t=N5t,B5t=L5t,H5t=1,z5t=2;function U5t(e,t,n,r,i,o){var a=n&H5t,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var d=-1,h=!0,p=n&z5t?new F5t:void 0;for(o.set(e,t),o.set(t,e);++d<s;){var m=e[d],v=t[d];if(r)var y=a?r(v,m,d,t,e,o):r(m,v,d,e,t,o);if(y!==void 0){if(y)continue;h=!1;break}if(p){if(!j5t(t,function(S,b){if(!B5t(p,b)&&(m===S||i(m,S,n,r,o)))return p.push(b)})){h=!1;break}}else if(!(m===v||i(m,v,n,r,o))){h=!1;break}}return o.delete(e),o.delete(t),h}var Cwe=U5t,W5t=tf,V5t=W5t.Uint8Array,xwe=V5t;function K5t(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var q5t=K5t;function G5t(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Y5t=G5t,hie=qE,pie=xwe,X5t=e4,Q5t=Cwe,Z5t=q5t,J5t=Y5t,e3t=1,t3t=2,n3t="[object Boolean]",r3t="[object Date]",i3t="[object Error]",o3t="[object Map]",a3t="[object Number]",s3t="[object RegExp]",l3t="[object Set]",c3t="[object String]",u3t="[object Symbol]",d3t="[object ArrayBuffer]",f3t="[object DataView]",mie=hie?hie.prototype:void 0,NA=mie?mie.valueOf:void 0;function h3t(e,t,n,r,i,o,a){switch(n){case f3t:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case d3t:return!(e.byteLength!=t.byteLength||!o(new pie(e),new pie(t)));case n3t:case r3t:case a3t:return X5t(+e,+t);case i3t:return e.name==t.name&&e.message==t.message;case s3t:case c3t:return e==t+"";case o3t:var s=Z5t;case l3t:var l=r&e3t;if(s||(s=J5t),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=t3t,a.set(e,t);var u=Q5t(s(e),s(t),r,i,o,a);return a.delete(e),u;case u3t:if(NA)return NA.call(e)==NA.call(t)}return!1}var p3t=h3t;function m3t(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var wwe=m3t,g3t=wwe,v3t=Kc;function y3t(e,t,n){var r=t(e);return v3t(e)?r:g3t(r,n(e))}var _we=y3t;function b3t(e,t){for(var n=-1,r=e==null?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}var S3t=b3t;function C3t(){return[]}var Ewe=C3t,x3t=S3t,w3t=Ewe,_3t=Object.prototype,E3t=_3t.propertyIsEnumerable,gie=Object.getOwnPropertySymbols,T3t=gie?function(e){return e==null?[]:(e=Object(e),x3t(gie(e),function(t){return E3t.call(e,t)}))}:w3t,QV=T3t,k3t=_we,O3t=QV,P3t=JE;function M3t(e){return k3t(e,P3t,O3t)}var Twe=M3t,vie=Twe,I3t=1,$3t=Object.prototype,R3t=$3t.hasOwnProperty;function A3t(e,t,n,r,i,o){var a=n&I3t,s=vie(e),l=s.length,c=vie(t),u=c.length;if(l!=u&&!a)return!1;for(var d=l;d--;){var h=s[d];if(!(a?h in t:R3t.call(t,h)))return!1}var p=o.get(e),m=o.get(t);if(p&&m)return p==t&&m==e;var v=!0;o.set(e,t),o.set(t,e);for(var y=a;++d<l;){h=s[d];var S=e[h],b=t[h];if(r)var C=a?r(b,S,h,t,e,o):r(S,b,h,e,t,o);if(!(C===void 0?S===b||i(S,b,n,r,o):C)){v=!1;break}y||(y=h=="constructor")}if(v&&!y){var _=e.constructor,T=t.constructor;_!=T&&"constructor"in e&&"constructor"in t&&!(typeof _=="function"&&_ instanceof _&&typeof T=="function"&&T instanceof T)&&(v=!1)}return o.delete(e),o.delete(t),v}var N3t=A3t,D3t=i0,L3t=tf,F3t=D3t(L3t,"DataView"),j3t=F3t,B3t=i0,H3t=tf,z3t=B3t(H3t,"Promise"),U3t=z3t,W3t=i0,V3t=tf,K3t=W3t(V3t,"Set"),q3t=K3t,G3t=i0,Y3t=tf,X3t=G3t(Y3t,"WeakMap"),Q3t=X3t,Xj=j3t,Qj=YV,Zj=U3t,Jj=q3t,eB=Q3t,kwe=n0,kC=Swe,yie="[object Map]",Z3t="[object Object]",bie="[object Promise]",Sie="[object Set]",Cie="[object WeakMap]",xie="[object DataView]",J3t=kC(Xj),e8t=kC(Qj),t8t=kC(Zj),n8t=kC(Jj),r8t=kC(eB),s1=kwe;(Xj&&s1(new Xj(new ArrayBuffer(1)))!=xie||Qj&&s1(new Qj)!=yie||Zj&&s1(Zj.resolve())!=bie||Jj&&s1(new Jj)!=Sie||eB&&s1(new eB)!=Cie)&&(s1=function(e){var t=kwe(e),n=t==Z3t?e.constructor:void 0,r=n?kC(n):"";if(r)switch(r){case J3t:return xie;case e8t:return yie;case t8t:return bie;case n8t:return Sie;case r8t:return Cie}return t});var QP=s1,DA=XP,i8t=Cwe,o8t=p3t,a8t=N3t,wie=QP,_ie=Kc,Eie=WP,s8t=WV,l8t=1,Tie="[object Arguments]",kie="[object Array]",v5="[object Object]",c8t=Object.prototype,Oie=c8t.hasOwnProperty;function u8t(e,t,n,r,i,o){var a=_ie(e),s=_ie(t),l=a?kie:wie(e),c=s?kie:wie(t);l=l==Tie?v5:l,c=c==Tie?v5:c;var u=l==v5,d=c==v5,h=l==c;if(h&&Eie(e)){if(!Eie(t))return!1;a=!0,u=!1}if(h&&!u)return o||(o=new DA),a||s8t(e)?i8t(e,t,n,r,i,o):o8t(e,t,l,n,r,i,o);if(!(n&l8t)){var p=u&&Oie.call(e,"__wrapped__"),m=d&&Oie.call(t,"__wrapped__");if(p||m){var v=p?e.value():e,y=m?t.value():t;return o||(o=new DA),i(v,y,n,r,o)}}return h?(o||(o=new DA),a8t(e,t,n,r,i,o)):!1}var d8t=u8t,f8t=d8t,Pie=oh;function Owe(e,t,n,r,i){return e===t?!0:e==null||t==null||!Pie(e)&&!Pie(t)?e!==e&&t!==t:f8t(e,t,n,r,Owe,i)}var Pwe=Owe,h8t=XP,p8t=Pwe,m8t=1,g8t=2;function v8t(e,t,n,r){var i=n.length,o=i,a=!r;if(e==null)return!o;for(e=Object(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){s=n[i];var l=s[0],c=e[l],u=s[1];if(a&&s[2]){if(c===void 0&&!(l in e))return!1}else{var d=new h8t;if(r)var h=r(c,u,l,e,t,d);if(!(h===void 0?p8t(u,c,m8t|g8t,r,d):h))return!1}}return!0}var y8t=v8t,b8t=Lu;function S8t(e){return e===e&&!b8t(e)}var Mwe=S8t,C8t=Mwe,x8t=JE;function w8t(e){for(var t=x8t(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,C8t(i)]}return t}var _8t=w8t;function E8t(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var Iwe=E8t,T8t=y8t,k8t=_8t,O8t=Iwe;function P8t(e){var t=k8t(e);return t.length==1&&t[0][2]?O8t(t[0][0],t[0][1]):function(n){return n===e||T8t(n,e,t)}}var M8t=P8t,I8t=Kc,$8t=zP,R8t=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,A8t=/^\w*$/;function N8t(e,t){if(I8t(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||$8t(e)?!0:A8t.test(e)||!R8t.test(e)||t!=null&&e in Object(t)}var ZV=N8t,$we=XV,D8t="Expected a function";function JV(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(D8t);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(JV.Cache||$we),n}JV.Cache=$we;var L8t=JV,F8t=L8t,j8t=500;function B8t(e){var t=F8t(e,function(r){return n.size===j8t&&n.clear(),r}),n=t.cache;return t}var H8t=B8t,z8t=H8t,U8t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,W8t=/\\(\\)?/g,V8t=z8t(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(U8t,function(n,r,i,o){t.push(i?o.replace(W8t,"$1"):r||n)}),t}),K8t=V8t,q8t=Kc,G8t=ZV,Y8t=K8t,X8t=GE;function Q8t(e,t){return q8t(e)?e:G8t(e,t)?[e]:Y8t(X8t(e))}var Rwe=Q8t,Z8t=zP,J8t=1/0;function e9t(e){if(typeof e=="string"||Z8t(e))return e;var t=e+"";return t=="0"&&1/e==-J8t?"-0":t}var ZP=e9t,t9t=Rwe,n9t=ZP;function r9t(e,t){t=t9t(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[n9t(t[n++])];return n&&n==r?e:void 0}var Awe=r9t,i9t=Awe;function o9t(e,t,n){var r=e==null?void 0:i9t(e,t);return r===void 0?n:r}var a9t=o9t;function s9t(e,t){return e!=null&&t in Object(e)}var l9t=s9t,c9t=Rwe,u9t=jV,d9t=Kc,f9t=BV,h9t=HV,p9t=ZP;function m9t(e,t,n){t=c9t(t,e);for(var r=-1,i=t.length,o=!1;++r<i;){var a=p9t(t[r]);if(!(o=e!=null&&n(e,a)))break;e=e[a]}return o||++r!=i?o:(i=e==null?0:e.length,!!i&&h9t(i)&&f9t(a,i)&&(d9t(e)||u9t(e)))}var g9t=m9t,v9t=l9t,y9t=g9t;function b9t(e,t){return e!=null&&y9t(e,t,v9t)}var S9t=b9t,C9t=Pwe,x9t=a9t,w9t=S9t,_9t=ZV,E9t=Mwe,T9t=Iwe,k9t=ZP,O9t=1,P9t=2;function M9t(e,t){return _9t(e)&&E9t(t)?T9t(k9t(e),t):function(n){var r=x9t(n,e);return r===void 0&&r===t?w9t(n,e):C9t(t,r,O9t|P9t)}}var I9t=M9t;function $9t(e){return function(t){return t==null?void 0:t[e]}}var R9t=$9t,A9t=Awe;function N9t(e){return function(t){return A9t(t,e)}}var D9t=N9t,L9t=R9t,F9t=D9t,j9t=ZV,B9t=ZP;function H9t(e){return j9t(e)?L9t(B9t(e)):F9t(e)}var z9t=H9t,U9t=M8t,W9t=I9t,V9t=VP,K9t=Kc,q9t=z9t;function G9t(e){return typeof e=="function"?e:e==null?V9t:typeof e=="object"?K9t(e)?W9t(e[0],e[1]):U9t(e):q9t(e)}var Y9t=G9t,X9t=xC;function Q9t(e,t){return function(n,r){if(n==null)return n;if(!X9t(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Object(n);(t?o--:++o<i)&&r(a[o],o,a)!==!1;);return n}}var Z9t=Q9t,J9t=gwe,ekt=Z9t,tkt=ekt(J9t),Nwe=tkt,nkt=Nwe,rkt=xC;function ikt(e,t){var n=-1,r=rkt(e)?Array(e.length):[];return nkt(e,function(i,o,a){r[++n]=t(i,o,a)}),r}var okt=ikt,akt=$2e,skt=Y9t,lkt=okt,ckt=Kc;function ukt(e,t){var n=ckt(e)?akt:lkt;return n(e,skt(t))}var dkt=ukt;Object.defineProperty(ZE,"__esModule",{value:!0});ZE.flattenNames=void 0;var fkt=r_t,hkt=JP(fkt),pkt=qV,mkt=JP(pkt),gkt=bwe,vkt=JP(gkt),ykt=dkt,bkt=JP(ykt);function JP(e){return e&&e.__esModule?e:{default:e}}var Skt=ZE.flattenNames=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[];return(0,bkt.default)(t,function(r){Array.isArray(r)?e(r).map(function(i){return n.push(i)}):(0,vkt.default)(r)?(0,mkt.default)(r,function(i,o){i===!0&&n.push(o),n.push(o+"-"+i)}):(0,hkt.default)(r)&&n.push(r)}),n};ZE.default=Skt;var t4={};function Ckt(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var Dwe=Ckt,xkt=i0,wkt=function(){try{var e=xkt(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Lwe=wkt,Mie=Lwe;function _kt(e,t,n){t=="__proto__"&&Mie?Mie(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var eK=_kt,Ekt=eK,Tkt=e4,kkt=Object.prototype,Okt=kkt.hasOwnProperty;function Pkt(e,t,n){var r=e[t];(!(Okt.call(e,t)&&Tkt(r,n))||n===void 0&&!(t in e))&&Ekt(e,t,n)}var Fwe=Pkt,Mkt=Fwe,Ikt=eK;function $kt(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=r?r(n[s],e[s],s,n,e):void 0;l===void 0&&(l=e[s]),i?Ikt(n,s,l):Mkt(n,s,l)}return n}var n4=$kt,Rkt=n4,Akt=JE;function Nkt(e,t){return e&&Rkt(t,Akt(t),e)}var Dkt=Nkt;function Lkt(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Fkt=Lkt,jkt=Lu,Bkt=VV,Hkt=Fkt,zkt=Object.prototype,Ukt=zkt.hasOwnProperty;function Wkt(e){if(!jkt(e))return Hkt(e);var t=Bkt(e),n=[];for(var r in e)r=="constructor"&&(t||!Ukt.call(e,r))||n.push(r);return n}var Vkt=Wkt,Kkt=pwe,qkt=Vkt,Gkt=xC;function Ykt(e){return Gkt(e)?Kkt(e,!0):qkt(e)}var r4=Ykt,Xkt=n4,Qkt=r4;function Zkt(e,t){return e&&Xkt(t,Qkt(t),e)}var Jkt=Zkt,yk={exports:{}};yk.exports;(function(e,t){var n=tf,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,a=o?n.Buffer:void 0,s=a?a.allocUnsafe:void 0;function l(c,u){if(u)return c.slice();var d=c.length,h=s?s(d):new c.constructor(d);return c.copy(h),h}e.exports=l})(yk,yk.exports);var jwe=yk.exports;function e6t(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var Bwe=e6t,t6t=n4,n6t=QV;function r6t(e,t){return t6t(e,n6t(e),t)}var i6t=r6t,o6t=wwe,a6t=GV,s6t=QV,l6t=Ewe,c6t=Object.getOwnPropertySymbols,u6t=c6t?function(e){for(var t=[];e;)o6t(t,s6t(e)),e=a6t(e);return t}:l6t,Hwe=u6t,d6t=n4,f6t=Hwe;function h6t(e,t){return d6t(e,f6t(e),t)}var p6t=h6t,m6t=_we,g6t=Hwe,v6t=r4;function y6t(e){return m6t(e,v6t,g6t)}var b6t=y6t,S6t=Object.prototype,C6t=S6t.hasOwnProperty;function x6t(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&C6t.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var w6t=x6t,Iie=xwe;function _6t(e){var t=new e.constructor(e.byteLength);return new Iie(t).set(new Iie(e)),t}var tK=_6t,E6t=tK;function T6t(e,t){var n=t?E6t(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var k6t=T6t,O6t=/\w*$/;function P6t(e){var t=new e.constructor(e.source,O6t.exec(e));return t.lastIndex=e.lastIndex,t}var M6t=P6t,$ie=qE,Rie=$ie?$ie.prototype:void 0,Aie=Rie?Rie.valueOf:void 0;function I6t(e){return Aie?Object(Aie.call(e)):{}}var $6t=I6t,R6t=tK;function A6t(e,t){var n=t?R6t(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var zwe=A6t,N6t=tK,D6t=k6t,L6t=M6t,F6t=$6t,j6t=zwe,B6t="[object Boolean]",H6t="[object Date]",z6t="[object Map]",U6t="[object Number]",W6t="[object RegExp]",V6t="[object Set]",K6t="[object String]",q6t="[object Symbol]",G6t="[object ArrayBuffer]",Y6t="[object DataView]",X6t="[object Float32Array]",Q6t="[object Float64Array]",Z6t="[object Int8Array]",J6t="[object Int16Array]",eOt="[object Int32Array]",tOt="[object Uint8Array]",nOt="[object Uint8ClampedArray]",rOt="[object Uint16Array]",iOt="[object Uint32Array]";function oOt(e,t,n){var r=e.constructor;switch(t){case G6t:return N6t(e);case B6t:case H6t:return new r(+e);case Y6t:return D6t(e,n);case X6t:case Q6t:case Z6t:case J6t:case eOt:case tOt:case nOt:case rOt:case iOt:return j6t(e,n);case z6t:return new r;case U6t:case K6t:return new r(e);case W6t:return L6t(e);case V6t:return new r;case q6t:return F6t(e)}}var aOt=oOt,sOt=Lu,Nie=Object.create,lOt=function(){function e(){}return function(t){if(!sOt(t))return{};if(Nie)return Nie(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),cOt=lOt,uOt=cOt,dOt=GV,fOt=VV;function hOt(e){return typeof e.constructor=="function"&&!fOt(e)?uOt(dOt(e)):{}}var Uwe=hOt,pOt=QP,mOt=oh,gOt="[object Map]";function vOt(e){return mOt(e)&&pOt(e)==gOt}var yOt=vOt,bOt=yOt,SOt=zV,Die=UV,Lie=Die&&Die.isMap,COt=Lie?SOt(Lie):bOt,xOt=COt,wOt=QP,_Ot=oh,EOt="[object Set]";function TOt(e){return _Ot(e)&&wOt(e)==EOt}var kOt=TOt,OOt=kOt,POt=zV,Fie=UV,jie=Fie&&Fie.isSet,MOt=jie?POt(jie):OOt,IOt=MOt,$Ot=XP,ROt=Dwe,AOt=Fwe,NOt=Dkt,DOt=Jkt,LOt=jwe,FOt=Bwe,jOt=i6t,BOt=p6t,HOt=Twe,zOt=b6t,UOt=QP,WOt=w6t,VOt=aOt,KOt=Uwe,qOt=Kc,GOt=WP,YOt=xOt,XOt=Lu,QOt=IOt,ZOt=JE,JOt=r4,ePt=1,tPt=2,nPt=4,Wwe="[object Arguments]",rPt="[object Array]",iPt="[object Boolean]",oPt="[object Date]",aPt="[object Error]",Vwe="[object Function]",sPt="[object GeneratorFunction]",lPt="[object Map]",cPt="[object Number]",Kwe="[object Object]",uPt="[object RegExp]",dPt="[object Set]",fPt="[object String]",hPt="[object Symbol]",pPt="[object WeakMap]",mPt="[object ArrayBuffer]",gPt="[object DataView]",vPt="[object Float32Array]",yPt="[object Float64Array]",bPt="[object Int8Array]",SPt="[object Int16Array]",CPt="[object Int32Array]",xPt="[object Uint8Array]",wPt="[object Uint8ClampedArray]",_Pt="[object Uint16Array]",EPt="[object Uint32Array]",oo={};oo[Wwe]=oo[rPt]=oo[mPt]=oo[gPt]=oo[iPt]=oo[oPt]=oo[vPt]=oo[yPt]=oo[bPt]=oo[SPt]=oo[CPt]=oo[lPt]=oo[cPt]=oo[Kwe]=oo[uPt]=oo[dPt]=oo[fPt]=oo[hPt]=oo[xPt]=oo[wPt]=oo[_Pt]=oo[EPt]=!0;oo[aPt]=oo[Vwe]=oo[pPt]=!1;function G3(e,t,n,r,i,o){var a,s=t&ePt,l=t&tPt,c=t&nPt;if(n&&(a=i?n(e,r,i,o):n(e)),a!==void 0)return a;if(!XOt(e))return e;var u=qOt(e);if(u){if(a=WOt(e),!s)return FOt(e,a)}else{var d=UOt(e),h=d==Vwe||d==sPt;if(GOt(e))return LOt(e,s);if(d==Kwe||d==Wwe||h&&!i){if(a=l||h?{}:KOt(e),!s)return l?BOt(e,DOt(a,e)):jOt(e,NOt(a,e))}else{if(!oo[d])return i?e:{};a=VOt(e,d,s)}}o||(o=new $Ot);var p=o.get(e);if(p)return p;o.set(e,a),QOt(e)?e.forEach(function(y){a.add(G3(y,t,n,y,e,o))}):YOt(e)&&e.forEach(function(y,S){a.set(S,G3(y,t,n,S,e,o))});var m=c?l?zOt:HOt:l?JOt:ZOt,v=u?void 0:m(e);return ROt(v||e,function(y,S){v&&(S=y,y=e[S]),AOt(a,S,G3(y,t,n,S,e,o))}),a}var TPt=G3,kPt=TPt,OPt=1,PPt=4;function MPt(e){return kPt(e,OPt|PPt)}var IPt=MPt;Object.defineProperty(t4,"__esModule",{value:!0});t4.mergeClasses=void 0;var $Pt=qV,RPt=qwe($Pt),APt=IPt,NPt=qwe(APt),DPt=Object.assign||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};function qwe(e){return e&&e.__esModule?e:{default:e}}var LPt=t4.mergeClasses=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=t.default&&(0,NPt.default)(t.default)||{};return n.map(function(i){var o=t[i];return o&&(0,RPt.default)(o,function(a,s){r[s]||(r[s]={}),r[s]=DPt({},r[s],o[s])}),i}),r};t4.default=LPt;var i4={};Object.defineProperty(i4,"__esModule",{value:!0});i4.autoprefix=void 0;var FPt=qV,Bie=BPt(FPt),jPt=Object.assign||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};function BPt(e){return e&&e.__esModule?e:{default:e}}var HPt={borderRadius:function(t){return{msBorderRadius:t,MozBorderRadius:t,OBorderRadius:t,WebkitBorderRadius:t,borderRadius:t}},boxShadow:function(t){return{msBoxShadow:t,MozBoxShadow:t,OBoxShadow:t,WebkitBoxShadow:t,boxShadow:t}},userSelect:function(t){return{WebkitTouchCallout:t,KhtmlUserSelect:t,MozUserSelect:t,msUserSelect:t,WebkitUserSelect:t,userSelect:t}},flex:function(t){return{WebkitBoxFlex:t,MozBoxFlex:t,WebkitFlex:t,msFlex:t,flex:t}},flexBasis:function(t){return{WebkitFlexBasis:t,flexBasis:t}},justifyContent:function(t){return{WebkitJustifyContent:t,justifyContent:t}},transition:function(t){return{msTransition:t,MozTransition:t,OTransition:t,WebkitTransition:t,transition:t}},transform:function(t){return{msTransform:t,MozTransform:t,OTransform:t,WebkitTransform:t,transform:t}},absolute:function(t){var n=t&&t.split(" ");return{position:"absolute",top:n&&n[0],right:n&&n[1],bottom:n&&n[2],left:n&&n[3]}},extend:function(t,n){var r=n[t];return r||{extend:t}}},zPt=i4.autoprefix=function(t){var n={};return(0,Bie.default)(t,function(r,i){var o={};(0,Bie.default)(r,function(a,s){var l=HPt[s];l?o=jPt({},o,l(a)):o[s]=a}),n[i]=o}),n};i4.default=zPt;var o4={};Object.defineProperty(o4,"__esModule",{value:!0});o4.hover=void 0;var UPt=Object.assign||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},WPt=f,LA=VPt(WPt);function VPt(e){return e&&e.__esModule?e:{default:e}}function KPt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hie(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function qPt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var GPt=o4.hover=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){qPt(i,r);function i(){var o,a,s,l;KPt(this,i);for(var c=arguments.length,u=Array(c),d=0;d<c;d++)u[d]=arguments[d];return l=(a=(s=Hie(this,(o=i.__proto__||Object.getPrototypeOf(i)).call.apply(o,[this].concat(u))),s),s.state={hover:!1},s.handleMouseOver=function(){return s.setState({hover:!0})},s.handleMouseOut=function(){return s.setState({hover:!1})},s.render=function(){return LA.default.createElement(n,{onMouseOver:s.handleMouseOver,onMouseOut:s.handleMouseOut},LA.default.createElement(t,UPt({},s.props,s.state)))},a),Hie(s,l)}return i}(LA.default.Component)};o4.default=GPt;var a4={};Object.defineProperty(a4,"__esModule",{value:!0});a4.active=void 0;var YPt=Object.assign||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},XPt=f,FA=QPt(XPt);function QPt(e){return e&&e.__esModule?e:{default:e}}function ZPt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zie(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function JPt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var eMt=a4.active=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){JPt(i,r);function i(){var o,a,s,l;ZPt(this,i);for(var c=arguments.length,u=Array(c),d=0;d<c;d++)u[d]=arguments[d];return l=(a=(s=zie(this,(o=i.__proto__||Object.getPrototypeOf(i)).call.apply(o,[this].concat(u))),s),s.state={active:!1},s.handleMouseDown=function(){return s.setState({active:!0})},s.handleMouseUp=function(){return s.setState({active:!1})},s.render=function(){return FA.default.createElement(n,{onMouseDown:s.handleMouseDown,onMouseUp:s.handleMouseUp},FA.default.createElement(t,YPt({},s.props,s.state)))},a),zie(s,l)}return i}(FA.default.Component)};a4.default=eMt;var nK={};Object.defineProperty(nK,"__esModule",{value:!0});var tMt=function(t,n){var r={},i=function(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;r[a]=s};return t===0&&i("first-child"),t===n-1&&i("last-child"),(t===0||t%2===0)&&i("even"),Math.abs(t%2)===1&&i("odd"),i("nth-child",t),r};nK.default=tMt;Object.defineProperty(mu,"__esModule",{value:!0});mu.ReactCSS=mu.loop=mu.handleActive=mu.handleHover=mu.hover=void 0;var nMt=ZE,rMt=OC(nMt),iMt=t4,oMt=OC(iMt),aMt=i4,sMt=OC(aMt),lMt=o4,Gwe=OC(lMt),cMt=a4,uMt=OC(cMt),dMt=nK,fMt=OC(dMt);function OC(e){return e&&e.__esModule?e:{default:e}}mu.hover=Gwe.default;mu.handleHover=Gwe.default;mu.handleActive=uMt.default;mu.loop=fMt.default;var hMt=mu.ReactCSS=function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o=(0,rMt.default)(r),a=(0,oMt.default)(t,o);return(0,sMt.default)(a)},Cg=mu.default=hMt,pMt=eK,mMt=e4;function gMt(e,t,n){(n!==void 0&&!mMt(e[t],n)||n===void 0&&!(t in e))&&pMt(e,t,n)}var Ywe=gMt,vMt=xC,yMt=oh;function bMt(e){return yMt(e)&&vMt(e)}var SMt=bMt;function CMt(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Xwe=CMt,xMt=n4,wMt=r4;function _Mt(e){return xMt(e,wMt(e))}var EMt=_Mt,Uie=Ywe,TMt=jwe,kMt=zwe,OMt=Bwe,PMt=Uwe,Wie=jV,Vie=Kc,MMt=SMt,IMt=WP,$Mt=KV,RMt=Lu,AMt=bwe,NMt=WV,Kie=Xwe,DMt=EMt;function LMt(e,t,n,r,i,o,a){var s=Kie(e,n),l=Kie(t,n),c=a.get(l);if(c){Uie(e,n,c);return}var u=o?o(s,l,n+"",e,t,a):void 0,d=u===void 0;if(d){var h=Vie(l),p=!h&&IMt(l),m=!h&&!p&&NMt(l);u=l,h||p||m?Vie(s)?u=s:MMt(s)?u=OMt(s):p?(d=!1,u=TMt(l,!0)):m?(d=!1,u=kMt(l,!0)):u=[]:AMt(l)||Wie(l)?(u=s,Wie(s)?u=DMt(s):(!RMt(s)||$Mt(s))&&(u=PMt(l))):d=!1}d&&(a.set(l,u),i(u,l,r,o,a),a.delete(l)),Uie(e,n,u)}var FMt=LMt,jMt=XP,BMt=Ywe,HMt=fwe,zMt=FMt,UMt=Lu,WMt=r4,VMt=Xwe;function Qwe(e,t,n,r,i){e!==t&&HMt(t,function(o,a){if(i||(i=new jMt),UMt(o))zMt(e,t,a,n,Qwe,r,i);else{var s=r?r(VMt(e,a),o,a+"",e,t,i):void 0;s===void 0&&(s=o),BMt(e,a,s)}},WMt)}var KMt=Qwe;function qMt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var GMt=qMt,YMt=GMt,qie=Math.max;function XMt(e,t,n){return t=qie(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=qie(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),YMt(e,this,s)}}var QMt=XMt;function ZMt(e){return function(){return e}}var JMt=ZMt,eIt=JMt,Gie=Lwe,tIt=VP,nIt=Gie?function(e,t){return Gie(e,"toString",{configurable:!0,enumerable:!1,value:eIt(t),writable:!0})}:tIt,rIt=nIt,iIt=800,oIt=16,aIt=Date.now;function sIt(e){var t=0,n=0;return function(){var r=aIt(),i=oIt-(r-n);if(n=r,i>0){if(++t>=iIt)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var lIt=sIt,cIt=rIt,uIt=lIt,dIt=uIt(cIt),fIt=dIt,hIt=VP,pIt=QMt,mIt=fIt;function gIt(e,t){return mIt(pIt(e,t,hIt),e+"")}var vIt=gIt,yIt=e4,bIt=xC,SIt=BV,CIt=Lu;function xIt(e,t,n){if(!CIt(n))return!1;var r=typeof t;return(r=="number"?bIt(n)&&SIt(t,n.length):r=="string"&&t in n)?yIt(n[t],e):!1}var wIt=xIt,_It=vIt,EIt=wIt;function TIt(e){return _It(function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,a&&EIt(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,o)}return t})}var kIt=TIt,OIt=KMt,PIt=kIt,MIt=PIt(function(e,t,n){OIt(e,t,n)}),IIt=MIt;const $It=hi(IIt);var RIt=function(t,n,r,i,o){var a=o.clientWidth,s=o.clientHeight,l=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,c=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,u=l-(o.getBoundingClientRect().left+window.pageXOffset),d=c-(o.getBoundingClientRect().top+window.pageYOffset);if(r==="vertical"){var h;if(d<0?h=0:d>s?h=1:h=Math.round(d*100/s)/100,n.a!==h)return{h:n.h,s:n.s,l:n.l,a:h,source:"rgb"}}else{var p;if(u<0?p=0:u>a?p=1:p=Math.round(u*100/a)/100,i!==p)return{h:n.h,s:n.s,l:n.l,a:p,source:"rgb"}}return null},jA={},AIt=function(t,n,r,i){if(typeof document>"u"&&!i)return null;var o=i?new i:document.createElement("canvas");o.width=r*2,o.height=r*2;var a=o.getContext("2d");return a?(a.fillStyle=t,a.fillRect(0,0,o.width,o.height),a.fillStyle=n,a.fillRect(0,0,r,r),a.translate(r,r),a.fillRect(0,0,r,r),o.toDataURL()):null},NIt=function(t,n,r,i){var o="".concat(t,"-").concat(n,"-").concat(r).concat(i?"-server":"");if(jA[o])return jA[o];var a=AIt(t,n,r,i);return jA[o]=a,a};function M_(e){"@babel/helpers - typeof";return M_=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},M_(e)}function Yie(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 y5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Yie(Object(n),!0).forEach(function(r){DIt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yie(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function DIt(e,t,n){return t=LIt(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LIt(e){var t=FIt(e,"string");return M_(t)==="symbol"?t:String(t)}function FIt(e,t){if(M_(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(M_(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var eM=function(t){var n=t.white,r=t.grey,i=t.size,o=t.renderers,a=t.borderRadius,s=t.boxShadow,l=t.children,c=Cg({default:{grid:{borderRadius:a,boxShadow:s,absolute:"0px 0px 0px 0px",background:"url(".concat(NIt(n,r,i,o.canvas),") center left")}}});return f.isValidElement(l)?ge.cloneElement(l,y5(y5({},l.props),{},{style:y5(y5({},l.props.style),c.grid)})):ge.createElement("div",{style:c.grid})};eM.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};function sS(e){"@babel/helpers - typeof";return sS=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},sS(e)}function Xie(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 jIt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Xie(Object(n),!0).forEach(function(r){BIt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xie(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function BIt(e,t,n){return t=Zwe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HIt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zIt(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,Zwe(r.key),r)}}function UIt(e,t,n){return t&&zIt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zwe(e){var t=WIt(e,"string");return sS(t)==="symbol"?t:String(t)}function WIt(e,t){if(sS(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(sS(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function VIt(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&&tB(e,t)}function tB(e,t){return tB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},tB(e,t)}function KIt(e){var t=YIt();return function(){var r=bk(e),i;if(t){var o=bk(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return qIt(this,i)}}function qIt(e,t){if(t&&(sS(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return GIt(e)}function GIt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function YIt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function bk(e){return bk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},bk(e)}var XIt=function(e){VIt(n,e);var t=KIt(n);function n(){var r;HIt(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)),r.handleChange=function(s){var l=RIt(s,r.props.hsl,r.props.direction,r.props.a,r.container);l&&typeof r.props.onChange=="function"&&r.props.onChange(l,s)},r.handleMouseDown=function(s){r.handleChange(s),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleChange),window.removeEventListener("mouseup",r.handleMouseUp)},r}return UIt(n,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var i=this,o=this.props.rgb,a=Cg({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba(".concat(o.r,",").concat(o.g,",").concat(o.b,`, 0) 0%,
|
||
rgba(`).concat(o.r,",").concat(o.g,",").concat(o.b,", 1) 100%)"),boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:"".concat(o.a*100,"%")},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba(".concat(o.r,",").concat(o.g,",").concat(o.b,`, 0) 0%,
|
||
rgba(`).concat(o.r,",").concat(o.g,",").concat(o.b,", 1) 100%)")},pointer:{left:0,top:"".concat(o.a*100,"%")}},overwrite:jIt({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return ge.createElement("div",{style:a.alpha},ge.createElement("div",{style:a.checkboard},ge.createElement(eM,{renderers:this.props.renderers})),ge.createElement("div",{style:a.gradient}),ge.createElement("div",{style:a.container,ref:function(l){return i.container=l},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},ge.createElement("div",{style:a.pointer},this.props.pointer?ge.createElement(this.props.pointer,this.props):ge.createElement("div",{style:a.slider}))))}}]),n}(f.PureComponent||f.Component),QIt=function(t,n,r,i){var o=i.clientWidth,a=i.clientHeight,s=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,l=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,c=s-(i.getBoundingClientRect().left+window.pageXOffset),u=l-(i.getBoundingClientRect().top+window.pageYOffset);if(n==="vertical"){var d;if(u<0)d=359;else if(u>a)d=0;else{var h=-(u*100/a)+100;d=360*h/100}if(r.h!==d)return{h:d,s:r.s,l:r.l,a:r.a,source:"hsl"}}else{var p;if(c<0)p=0;else if(c>o)p=359;else{var m=c*100/o;p=360*m/100}if(r.h!==p)return{h:p,s:r.s,l:r.l,a:r.a,source:"hsl"}}return null};function lS(e){"@babel/helpers - typeof";return lS=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},lS(e)}function ZIt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JIt(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,t$t(r.key),r)}}function e$t(e,t,n){return t&&JIt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function t$t(e){var t=n$t(e,"string");return lS(t)==="symbol"?t:String(t)}function n$t(e,t){if(lS(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(lS(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function r$t(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&&nB(e,t)}function nB(e,t){return nB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},nB(e,t)}function i$t(e){var t=s$t();return function(){var r=Sk(e),i;if(t){var o=Sk(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return o$t(this,i)}}function o$t(e,t){if(t&&(lS(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return a$t(e)}function a$t(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s$t(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Sk(e){return Sk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Sk(e)}var l$t=function(e){r$t(n,e);var t=i$t(n);function n(){var r;ZIt(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)),r.handleChange=function(s){var l=QIt(s,r.props.direction,r.props.hsl,r.container);l&&typeof r.props.onChange=="function"&&r.props.onChange(l,s)},r.handleMouseDown=function(s){r.handleChange(s),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},r}return e$t(n,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var i=this,o=this.props.direction,a=o===void 0?"horizontal":o,s=Cg({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:"".concat(this.props.hsl.h*100/360,"%")},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:"".concat(-(this.props.hsl.h*100/360)+100,"%")}}},{vertical:a==="vertical"});return ge.createElement("div",{style:s.hue},ge.createElement("div",{className:"hue-".concat(a),style:s.container,ref:function(c){return i.container=c},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},ge.createElement("style",null,`
|
||
.hue-horizontal {
|
||
background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0
|
||
33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
|
||
background: -webkit-linear-gradient(to right, #f00 0%, #ff0
|
||
17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
|
||
}
|
||
|
||
.hue-vertical {
|
||
background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,
|
||
#0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
|
||
background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,
|
||
#0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
|
||
}
|
||
`),ge.createElement("div",{style:s.pointer},this.props.pointer?ge.createElement(this.props.pointer,this.props):ge.createElement("div",{style:s.slider}))))}}]),n}(f.PureComponent||f.Component),c$t=tf,u$t=function(){return c$t.Date.now()},d$t=u$t,f$t=/\s/;function h$t(e){for(var t=e.length;t--&&f$t.test(e.charAt(t)););return t}var p$t=h$t,m$t=p$t,g$t=/^\s+/;function v$t(e){return e&&e.slice(0,m$t(e)+1).replace(g$t,"")}var y$t=v$t,b$t=y$t,Qie=Lu,S$t=zP,Zie=NaN,C$t=/^[-+]0x[0-9a-f]+$/i,x$t=/^0b[01]+$/i,w$t=/^0o[0-7]+$/i,_$t=parseInt;function E$t(e){if(typeof e=="number")return e;if(S$t(e))return Zie;if(Qie(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Qie(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=b$t(e);var n=x$t.test(e);return n||w$t.test(e)?_$t(e.slice(2),n?2:8):C$t.test(e)?Zie:+e}var T$t=E$t,k$t=Lu,BA=d$t,Jie=T$t,O$t="Expected a function",P$t=Math.max,M$t=Math.min;function I$t(e,t,n){var r,i,o,a,s,l,c=0,u=!1,d=!1,h=!0;if(typeof e!="function")throw new TypeError(O$t);t=Jie(t)||0,k$t(n)&&(u=!!n.leading,d="maxWait"in n,o=d?P$t(Jie(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h);function p(x){var E=r,k=i;return r=i=void 0,c=x,a=e.apply(k,E),a}function m(x){return c=x,s=setTimeout(S,t),u?p(x):a}function v(x){var E=x-l,k=x-c,M=t-E;return d?M$t(M,o-k):M}function y(x){var E=x-l,k=x-c;return l===void 0||E>=t||E<0||d&&k>=o}function S(){var x=BA();if(y(x))return b(x);s=setTimeout(S,v(x))}function b(x){return s=void 0,h&&r?p(x):(r=i=void 0,a)}function C(){s!==void 0&&clearTimeout(s),c=0,r=l=i=s=void 0}function _(){return s===void 0?a:b(BA())}function T(){var x=BA(),E=y(x);if(r=arguments,i=this,l=x,E){if(s===void 0)return m(l);if(d)return clearTimeout(s),s=setTimeout(S,t),p(l)}return s===void 0&&(s=setTimeout(S,t)),a}return T.cancel=C,T.flush=_,T}var Jwe=I$t;const $$t=hi(Jwe);var R$t=Jwe,A$t=Lu,N$t="Expected a function";function D$t(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(N$t);return A$t(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),R$t(e,t,{leading:r,maxWait:t,trailing:i})}var L$t=D$t;const F$t=hi(L$t);var j$t=function(t,n,r){var i=r.getBoundingClientRect(),o=i.width,a=i.height,s=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,l=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,c=s-(r.getBoundingClientRect().left+window.pageXOffset),u=l-(r.getBoundingClientRect().top+window.pageYOffset);c<0?c=0:c>o&&(c=o),u<0?u=0:u>a&&(u=a);var d=c/o,h=1-u/a;return{h:n.h,s:d,v:h,a:n.a,source:"hsv"}};function cS(e){"@babel/helpers - typeof";return cS=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},cS(e)}function B$t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function H$t(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,U$t(r.key),r)}}function z$t(e,t,n){return t&&H$t(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function U$t(e){var t=W$t(e,"string");return cS(t)==="symbol"?t:String(t)}function W$t(e,t){if(cS(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(cS(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function V$t(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&&rB(e,t)}function rB(e,t){return rB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},rB(e,t)}function K$t(e){var t=Y$t();return function(){var r=Ck(e),i;if(t){var o=Ck(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return q$t(this,i)}}function q$t(e,t){if(t&&(cS(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return G$t(e)}function G$t(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Y$t(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ck(e){return Ck=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ck(e)}var X$t=function(e){V$t(n,e);var t=K$t(n);function n(r){var i;return B$t(this,n),i=t.call(this,r),i.handleChange=function(o){typeof i.props.onChange=="function"&&i.throttle(i.props.onChange,j$t(o,i.props.hsl,i.container),o)},i.handleMouseDown=function(o){i.handleChange(o);var a=i.getContainerRenderWindow();a.addEventListener("mousemove",i.handleChange),a.addEventListener("mouseup",i.handleMouseUp)},i.handleMouseUp=function(){i.unbindEventListeners()},i.throttle=F$t(function(o,a,s){o(a,s)},50),i}return z$t(n,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var i=this.container,o=window;!o.document.contains(i)&&o.parent!==o;)o=o.parent;return o}},{key:"unbindEventListeners",value:function(){var i=this.getContainerRenderWindow();i.removeEventListener("mousemove",this.handleChange),i.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var i=this,o=this.props.style||{},a=o.color,s=o.white,l=o.black,c=o.pointer,u=o.circle,d=Cg({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl(".concat(this.props.hsl.h,",100%, 50%)"),borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:"".concat(-(this.props.hsv.v*100)+100,"%"),left:"".concat(this.props.hsv.s*100,"%"),cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:`0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),
|
||
0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:a,white:s,black:l,pointer:c,circle:u}},{custom:!!this.props.style});return ge.createElement("div",{style:d.color,ref:function(p){return i.container=p},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},ge.createElement("style",null,`
|
||
.saturation-white {
|
||
background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));
|
||
background: linear-gradient(to right, #fff, rgba(255,255,255,0));
|
||
}
|
||
.saturation-black {
|
||
background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));
|
||
background: linear-gradient(to top, #000, rgba(0,0,0,0));
|
||
}
|
||
`),ge.createElement("div",{style:d.white,className:"saturation-white"},ge.createElement("div",{style:d.black,className:"saturation-black"}),ge.createElement("div",{style:d.pointer},this.props.pointer?ge.createElement(this.props.pointer,this.props):ge.createElement("div",{style:d.circle}))))}}]),n}(f.PureComponent||f.Component),Q$t=Dwe,Z$t=Nwe,J$t=vwe,eRt=Kc;function tRt(e,t){var n=eRt(e)?Q$t:Z$t;return n(e,J$t(t))}var nRt=tRt,rRt=nRt;const iRt=hi(rRt);function xk(e){"@babel/helpers - typeof";return xk=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},xk(e)}var oRt=/^\s+/,aRt=/\s+$/;function gr(e,t){if(e=e||"",t=t||{},e instanceof gr)return e;if(!(this instanceof gr))return new gr(e,t);var n=sRt(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.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._ok=n.ok}gr.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),n,r,i,o,a,s;return n=t.r/255,r=t.g/255,i=t.b/255,n<=.03928?o=n/12.92:o=Math.pow((n+.055)/1.055,2.4),r<=.03928?a=r/12.92:a=Math.pow((r+.055)/1.055,2.4),i<=.03928?s=i/12.92:s=Math.pow((i+.055)/1.055,2.4),.2126*o+.7152*a+.0722*s},setAlpha:function(t){return this._a=e_e(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=toe(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=toe(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("+n+", "+r+"%, "+i+"%)":"hsva("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var t=eoe(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=eoe(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("+n+", "+r+"%, "+i+"%)":"hsla("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHex:function(t){return noe(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return dRt(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(Mo(this._r,255)*100)+"%",g:Math.round(Mo(this._g,255)*100)+"%",b:Math.round(Mo(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Mo(this._r,255)*100)+"%, "+Math.round(Mo(this._g,255)*100)+"%, "+Math.round(Mo(this._b,255)*100)+"%)":"rgba("+Math.round(Mo(this._r,255)*100)+"%, "+Math.round(Mo(this._g,255)*100)+"%, "+Math.round(Mo(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:wRt[noe(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var n="#"+roe(this._r,this._g,this._b,this._a),r=n,i=this._gradientType?"GradientType = 1, ":"";if(t){var o=gr(t);r="#"+roe(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+n+",endColorstr="+r+")"},toString:function(t){var n=!!t;t=t||this._format;var r=!1,i=this._a<1&&this._a>=0,o=!n&&i&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||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())},clone:function(){return gr(this.toString())},_applyModification:function(t,n){var r=t.apply(null,[this].concat([].slice.call(n)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(mRt,arguments)},brighten:function(){return this._applyModification(gRt,arguments)},darken:function(){return this._applyModification(vRt,arguments)},desaturate:function(){return this._applyModification(fRt,arguments)},saturate:function(){return this._applyModification(hRt,arguments)},greyscale:function(){return this._applyModification(pRt,arguments)},spin:function(){return this._applyModification(yRt,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(CRt,arguments)},complement:function(){return this._applyCombination(bRt,arguments)},monochromatic:function(){return this._applyCombination(xRt,arguments)},splitcomplement:function(){return this._applyCombination(SRt,arguments)},triad:function(){return this._applyCombination(ioe,[3])},tetrad:function(){return this._applyCombination(ioe,[4])}};gr.fromRatio=function(e,t){if(xk(e)=="object"){var n={};for(var r in e)e.hasOwnProperty(r)&&(r==="a"?n[r]=e[r]:n[r]=M2(e[r]));e=n}return gr(e,t)};function sRt(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,o=null,a=!1,s=!1;return typeof e=="string"&&(e=kRt(e)),xk(e)=="object"&&(Ch(e.r)&&Ch(e.g)&&Ch(e.b)?(t=lRt(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Ch(e.h)&&Ch(e.s)&&Ch(e.v)?(r=M2(e.s),i=M2(e.v),t=uRt(e.h,r,i),a=!0,s="hsv"):Ch(e.h)&&Ch(e.s)&&Ch(e.l)&&(r=M2(e.s),o=M2(e.l),t=cRt(e.h,r,o),a=!0,s="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=e_e(n),{ok:a,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}function lRt(e,t,n){return{r:Mo(e,255)*255,g:Mo(t,255)*255,b:Mo(n,255)*255}}function eoe(e,t,n){e=Mo(e,255),t=Mo(t,255),n=Mo(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o,a,s=(r+i)/2;if(r==i)o=a=0;else{var l=r-i;switch(a=s>.5?l/(2-r-i):l/(r+i),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:a,l:s}}function cRt(e,t,n){var r,i,o;e=Mo(e,360),t=Mo(t,100),n=Mo(n,100);function a(c,u,d){return d<0&&(d+=1),d>1&&(d-=1),d<1/6?c+(u-c)*6*d:d<1/2?u:d<2/3?c+(u-c)*(2/3-d)*6:c}if(t===0)r=i=o=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;r=a(l,s,e+1/3),i=a(l,s,e),o=a(l,s,e-1/3)}return{r:r*255,g:i*255,b:o*255}}function toe(e,t,n){e=Mo(e,255),t=Mo(t,255),n=Mo(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o,a,s=r,l=r-i;if(a=r===0?0:l/r,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:a,v:s}}function uRt(e,t,n){e=Mo(e,360)*6,t=Mo(t,100),n=Mo(n,100);var r=Math.floor(e),i=e-r,o=n*(1-t),a=n*(1-i*t),s=n*(1-(1-i)*t),l=r%6,c=[n,a,o,o,s,n][l],u=[s,n,n,a,o,o][l],d=[o,o,s,n,n,a][l];return{r:c*255,g:u*255,b:d*255}}function noe(e,t,n,r){var i=[Cd(Math.round(e).toString(16)),Cd(Math.round(t).toString(16)),Cd(Math.round(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function dRt(e,t,n,r,i){var o=[Cd(Math.round(e).toString(16)),Cd(Math.round(t).toString(16)),Cd(Math.round(n).toString(16)),Cd(t_e(r))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function roe(e,t,n,r){var i=[Cd(t_e(r)),Cd(Math.round(e).toString(16)),Cd(Math.round(t).toString(16)),Cd(Math.round(n).toString(16))];return i.join("")}gr.equals=function(e,t){return!e||!t?!1:gr(e).toRgbString()==gr(t).toRgbString()};gr.random=function(){return gr.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function fRt(e,t){t=t===0?0:t||10;var n=gr(e).toHsl();return n.s-=t/100,n.s=tM(n.s),gr(n)}function hRt(e,t){t=t===0?0:t||10;var n=gr(e).toHsl();return n.s+=t/100,n.s=tM(n.s),gr(n)}function pRt(e){return gr(e).desaturate(100)}function mRt(e,t){t=t===0?0:t||10;var n=gr(e).toHsl();return n.l+=t/100,n.l=tM(n.l),gr(n)}function gRt(e,t){t=t===0?0:t||10;var n=gr(e).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)))),gr(n)}function vRt(e,t){t=t===0?0:t||10;var n=gr(e).toHsl();return n.l-=t/100,n.l=tM(n.l),gr(n)}function yRt(e,t){var n=gr(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,gr(n)}function bRt(e){var t=gr(e).toHsl();return t.h=(t.h+180)%360,gr(t)}function ioe(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=gr(e).toHsl(),r=[gr(e)],i=360/t,o=1;o<t;o++)r.push(gr({h:(n.h+o*i)%360,s:n.s,l:n.l}));return r}function SRt(e){var t=gr(e).toHsl(),n=t.h;return[gr(e),gr({h:(n+72)%360,s:t.s,l:t.l}),gr({h:(n+216)%360,s:t.s,l:t.l})]}function CRt(e,t,n){t=t||6,n=n||30;var r=gr(e).toHsl(),i=360/n,o=[gr(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(gr(r));return o}function xRt(e,t){t=t||6;for(var n=gr(e).toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/t;t--;)a.push(gr({h:r,s:i,v:o})),o=(o+s)%1;return a}gr.mix=function(e,t,n){n=n===0?0:n||50;var r=gr(e).toRgb(),i=gr(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 gr(a)};gr.readability=function(e,t){var n=gr(e),r=gr(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)};gr.isReadable=function(e,t,n){var r=gr.readability(e,t),i,o;switch(o=!1,i=ORt(n),i.level+i.size){case"AAsmall":case"AAAlarge":o=r>=4.5;break;case"AAlarge":o=r>=3;break;case"AAAsmall":o=r>=7;break}return o};gr.mostReadable=function(e,t,n){var r=null,i=0,o,a,s,l;n=n||{},a=n.includeFallbackColors,s=n.level,l=n.size;for(var c=0;c<t.length;c++)o=gr.readability(e,t[c]),o>i&&(i=o,r=gr(t[c]));return gr.isReadable(e,r,{level:s,size:l})||!a?r:(n.includeFallbackColors=!1,gr.mostReadable(e,["#fff","#000"],n))};var iB=gr.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",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:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",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:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",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:"f00",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:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},wRt=gr.hexNames=_Rt(iB);function _Rt(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function e_e(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Mo(e,t){ERt(e)&&(e="100%");var n=TRt(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function tM(e){return Math.min(1,Math.max(0,e))}function hc(e){return parseInt(e,16)}function ERt(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function TRt(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Cd(e){return e.length==1?"0"+e:""+e}function M2(e){return e<=1&&(e=e*100+"%"),e}function t_e(e){return Math.round(parseFloat(e)*255).toString(16)}function ooe(e){return hc(e)/255}var id=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",i="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+i),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 Ch(e){return!!id.CSS_UNIT.exec(e)}function kRt(e){e=e.replace(oRt,"").replace(aRt,"").toLowerCase();var t=!1;if(iB[e])e=iB[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=id.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=id.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=id.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=id.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=id.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=id.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=id.hex8.exec(e))?{r:hc(n[1]),g:hc(n[2]),b:hc(n[3]),a:ooe(n[4]),format:t?"name":"hex8"}:(n=id.hex6.exec(e))?{r:hc(n[1]),g:hc(n[2]),b:hc(n[3]),format:t?"name":"hex"}:(n=id.hex4.exec(e))?{r:hc(n[1]+""+n[1]),g:hc(n[2]+""+n[2]),b:hc(n[3]+""+n[3]),a:ooe(n[4]+""+n[4]),format:t?"name":"hex8"}:(n=id.hex3.exec(e))?{r:hc(n[1]+""+n[1]),g:hc(n[2]+""+n[2]),b:hc(n[3]+""+n[3]),format:t?"name":"hex"}:!1}function ORt(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:t,size:n}}var aoe=function(t){var n=["r","g","b","a","h","s","l","v"],r=0,i=0;return iRt(n,function(o){if(t[o]&&(r+=1,isNaN(t[o])||(i+=1),o==="s"||o==="l")){var a=/^\d+%$/;a.test(t[o])&&(i+=1)}}),r===i?t:!1},b5=function(t,n){var r=t.hex?gr(t.hex):gr(t),i=r.toHsl(),o=r.toHsv(),a=r.toRgb(),s=r.toHex();i.s===0&&(i.h=n||0,o.h=n||0);var l=s==="000000"&&a.a===0;return{hsl:i,hex:l?"transparent":"#".concat(s),rgb:a,hsv:o,oldHue:t.h||n||i.h,source:t.source}},PRt=function(t){if(t==="transparent")return!0;var n=String(t).charAt(0)==="#"?1:0;return t.length!==4+n&&t.length<7+n&&gr(t).isValid()};function uS(e){"@babel/helpers - typeof";return uS=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},uS(e)}function oB(){return oB=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},oB.apply(this,arguments)}function soe(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 Yx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?soe(Object(n),!0).forEach(function(r){MRt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):soe(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function MRt(e,t,n){return t=n_e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IRt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function loe(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,n_e(r.key),r)}}function $Rt(e,t,n){return t&&loe(e.prototype,t),n&&loe(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function n_e(e){var t=RRt(e,"string");return uS(t)==="symbol"?t:String(t)}function RRt(e,t){if(uS(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(uS(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ARt(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&&aB(e,t)}function aB(e,t){return aB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},aB(e,t)}function NRt(e){var t=FRt();return function(){var r=wk(e),i;if(t){var o=wk(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return DRt(this,i)}}function DRt(e,t){if(t&&(uS(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return LRt(e)}function LRt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function FRt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function wk(e){return wk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},wk(e)}var jRt=function(t){var n=function(r){ARt(o,r);var i=NRt(o);function o(a){var s;return IRt(this,o),s=i.call(this),s.handleChange=function(l,c){var u=aoe(l);if(u){var d=b5(l,l.h||s.state.oldHue);s.setState(d),s.props.onChangeComplete&&s.debounce(s.props.onChangeComplete,d,c),s.props.onChange&&s.props.onChange(d,c)}},s.handleSwatchHover=function(l,c){var u=aoe(l);if(u){var d=b5(l,l.h||s.state.oldHue);s.props.onSwatchHover&&s.props.onSwatchHover(d,c)}},s.state=Yx({},b5(a.color,0)),s.debounce=$$t(function(l,c,u){l(c,u)},100),s}return $Rt(o,[{key:"render",value:function(){var s={};return this.props.onSwatchHover&&(s.onSwatchHover=this.handleSwatchHover),ge.createElement(t,oB({},this.props,this.state,{onChange:this.handleChange},s))}}],[{key:"getDerivedStateFromProps",value:function(s,l){return Yx({},b5(s.color,l.oldHue))}}]),o}(f.PureComponent||f.Component);return n.propTypes=Yx({},t.propTypes),n.defaultProps=Yx(Yx({},t.defaultProps),{},{color:{h:250,s:.5,l:.2,a:1}}),n};function dS(e){"@babel/helpers - typeof";return dS=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},dS(e)}function BRt(e,t,n){return t=r_e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HRt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zRt(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,r_e(r.key),r)}}function URt(e,t,n){return t&&zRt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function r_e(e){var t=WRt(e,"string");return dS(t)==="symbol"?t:String(t)}function WRt(e,t){if(dS(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(dS(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function VRt(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&&sB(e,t)}function sB(e,t){return sB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},sB(e,t)}function KRt(e){var t=YRt();return function(){var r=_k(e),i;if(t){var o=_k(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return qRt(this,i)}}function qRt(e,t){if(t&&(dS(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return GRt(e)}function GRt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function YRt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _k(e){return _k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_k(e)}var XRt=1,i_e=38,QRt=40,ZRt=[i_e,QRt],JRt=function(t){return ZRt.indexOf(t)>-1},eAt=function(t){return Number(String(t).replace(/%/g,""))},tAt=1,Xx=function(e){VRt(n,e);var t=KRt(n);function n(r){var i;return HRt(this,n),i=t.call(this),i.handleBlur=function(){i.state.blurValue&&i.setState({value:i.state.blurValue,blurValue:null})},i.handleChange=function(o){i.setUpdatedValue(o.target.value,o)},i.handleKeyDown=function(o){var a=eAt(o.target.value);if(!isNaN(a)&&JRt(o.keyCode)){var s=i.getArrowOffset(),l=o.keyCode===i_e?a+s:a-s;i.setUpdatedValue(l,o)}},i.handleDrag=function(o){if(i.props.dragLabel){var a=Math.round(i.props.value+o.movementX);a>=0&&a<=i.props.dragMax&&i.props.onChange&&i.props.onChange(i.getValueObjectWithLabel(a),o)}},i.handleMouseDown=function(o){i.props.dragLabel&&(o.preventDefault(),i.handleDrag(o),window.addEventListener("mousemove",i.handleDrag),window.addEventListener("mouseup",i.handleMouseUp))},i.handleMouseUp=function(){i.unbindEventListeners()},i.unbindEventListeners=function(){window.removeEventListener("mousemove",i.handleDrag),window.removeEventListener("mouseup",i.handleMouseUp)},i.state={value:String(r.value).toUpperCase(),blurValue:String(r.value).toUpperCase()},i.inputId="rc-editable-input-".concat(tAt++),i}return URt(n,[{key:"componentDidUpdate",value:function(i,o){this.props.value!==this.state.value&&(i.value!==this.props.value||o.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(i){return BRt({},this.props.label,i)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||XRt}},{key:"setUpdatedValue",value:function(i,o){var a=this.props.label?this.getValueObjectWithLabel(i):i;this.props.onChange&&this.props.onChange(a,o),this.setState({value:i})}},{key:"render",value:function(){var i=this,o=Cg({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return ge.createElement("div",{style:o.wrap},ge.createElement("input",{id:this.inputId,style:o.input,ref:function(s){return i.input=s},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?ge.createElement("label",{htmlFor:this.inputId,style:o.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),n}(f.PureComponent||f.Component);function fS(e){"@babel/helpers - typeof";return fS=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},fS(e)}function lB(){return lB=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},lB.apply(this,arguments)}function nAt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rAt(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,oAt(r.key),r)}}function iAt(e,t,n){return t&&rAt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function oAt(e){var t=aAt(e,"string");return fS(t)==="symbol"?t:String(t)}function aAt(e,t){if(fS(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(fS(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function sAt(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&&cB(e,t)}function cB(e,t){return cB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},cB(e,t)}function lAt(e){var t=dAt();return function(){var r=Ek(e),i;if(t){var o=Ek(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return cAt(this,i)}}function cAt(e,t){if(t&&(fS(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return uAt(e)}function uAt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dAt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ek(e){return Ek=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ek(e)}var fAt=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){sAt(o,r);var i=lAt(o);function o(){var a;nAt(this,o);for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return a=i.call.apply(i,[this].concat(l)),a.state={focus:!1},a.handleFocus=function(){return a.setState({focus:!0})},a.handleBlur=function(){return a.setState({focus:!1})},a}return iAt(o,[{key:"render",value:function(){return ge.createElement(n,{onFocus:this.handleFocus,onBlur:this.handleBlur},ge.createElement(t,lB({},this.props,this.state)))}}]),o}(ge.Component)};function I_(e){"@babel/helpers - typeof";return I_=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},I_(e)}function uB(){return uB=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},uB.apply(this,arguments)}function coe(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 uoe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?coe(Object(n),!0).forEach(function(r){hAt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):coe(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hAt(e,t,n){return t=pAt(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pAt(e){var t=mAt(e,"string");return I_(t)==="symbol"?t:String(t)}function mAt(e,t){if(I_(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(I_(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gAt=13,vAt=function(t){var n=t.color,r=t.style,i=t.onClick,o=i===void 0?function(){}:i,a=t.onHover,s=t.title,l=s===void 0?n:s,c=t.children,u=t.focus,d=t.focusStyle,h=d===void 0?{}:d,p=n==="transparent",m=Cg({default:{swatch:uoe(uoe({background:n,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},r),u?h:{})}}),v=function(_){return o(n,_)},y=function(_){return _.keyCode===gAt&&o(n,_)},S=function(_){return a(n,_)},b={};return a&&(b.onMouseOver=S),ge.createElement("div",uB({style:m.swatch,onClick:v,title:l,tabIndex:0,onKeyDown:y},b),c,p&&ge.createElement(eM,{borderRadius:m.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))};const yAt=fAt(vAt);var bAt=function(t){var n=t.onChange,r=t.rgb,i=t.hsl,o=t.hex,a=t.disableAlpha,s=Cg({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:a}),l=function(u,d){u.hex?PRt(u.hex)&&(n==null||n({hex:u.hex,source:"hex"},d)):u.r||u.g||u.b?n==null||n({r:u.r||(r==null?void 0:r.r),g:u.g||(r==null?void 0:r.g),b:u.b||(r==null?void 0:r.b),a:r==null?void 0:r.a,source:"rgb"},d):u.a&&(u.a<0?u.a=0:u.a>100&&(u.a=100),u.a/=100,n==null||n({h:i==null?void 0:i.h,s:i==null?void 0:i.s,l:i==null?void 0:i.l,a:u.a,source:"rgb"},d))};return ge.createElement("div",{style:s.fields,className:"flexbox-fix"},ge.createElement("div",{style:s.double},ge.createElement(Xx,{style:{input:s.input,label:s.label},label:"hex",value:o==null?void 0:o.replace("#",""),onChange:l})),ge.createElement("div",{style:s.single},ge.createElement(Xx,{style:{input:s.input,label:s.label},label:"r",value:r==null?void 0:r.r,onChange:l,dragLabel:"true",dragMax:"255"})),ge.createElement("div",{style:s.single},ge.createElement(Xx,{style:{input:s.input,label:s.label},label:"g",value:r==null?void 0:r.g,onChange:l,dragLabel:"true",dragMax:"255"})),ge.createElement("div",{style:s.single},ge.createElement(Xx,{style:{input:s.input,label:s.label},label:"b",value:r==null?void 0:r.b,onChange:l,dragLabel:"true",dragMax:"255"})),ge.createElement("div",{style:s.alpha},ge.createElement(Xx,{style:{input:s.input,label:s.label},label:"a",value:Math.round(((r==null?void 0:r.a)||0)*100),onChange:l,dragLabel:"true",dragMax:"100"})))};function $_(e){"@babel/helpers - typeof";return $_=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},$_(e)}function doe(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 foe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?doe(Object(n),!0).forEach(function(r){SAt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):doe(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function SAt(e,t,n){return t=CAt(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CAt(e){var t=xAt(e,"string");return $_(t)==="symbol"?t:String(t)}function xAt(e,t){if($_(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if($_(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var wAt=function(t){var n=t.colors,r=t.onClick,i=r===void 0?function(){}:r,o=t.onSwatchHover,a={colors:{margin:"0 -10px",padding:"10px 0 0 10px",borderTop:"1px solid #eee",display:"flex",flexWrap:"wrap",position:"relative"},swatchWrap:{width:"16px",height:"16px",margin:"0 10px 10px 0"},swatch:{msBorderRadius:"3px",MozBorderRadius:"3px",OBorderRadius:"3px",WebkitBorderRadius:"3px",borderRadius:"3px",msBoxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)",MozBoxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)",OBoxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)",WebkitBoxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)"}},s=function(c,u){i==null||i({hex:c,source:"hex"},u)};return ge.createElement("div",{style:a.colors,className:"flexbox-fix"},n==null?void 0:n.map(function(l){var c=typeof l=="string"?{color:l,title:void 0}:l,u="".concat(c.color).concat((c==null?void 0:c.title)||"");return ge.createElement("div",{key:u,style:a.swatchWrap},ge.createElement(yAt,foe(foe({},c),{},{style:a.swatch,onClick:s,onHover:o,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px ".concat(c.color)}})))}))};function R_(e){"@babel/helpers - typeof";return R_=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},R_(e)}function hoe(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 _At(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hoe(Object(n),!0).forEach(function(r){EAt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hoe(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function EAt(e,t,n){return t=TAt(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TAt(e){var t=kAt(e,"string");return R_(t)==="symbol"?t:String(t)}function kAt(e,t){if(R_(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(R_(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var o_e=function(t){var n=t.width,r=t.rgb,i=t.hex,o=t.hsv,a=t.hsl,s=t.onChange,l=t.onSwatchHover,c=t.disableAlpha,u=t.presetColors,d=t.renderers,h=t.styles,p=h===void 0?{}:h,m=t.className,v=m===void 0?"":m,y=Cg($It({default:_At({picker:{width:n,padding:"10px 10px 0",boxSizing:"initial",background:"#fff",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"},saturation:{width:"100%",paddingBottom:"75%",position:"relative",overflow:"hidden"},Saturation:{radius:"3px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},controls:{display:"flex"},sliders:{padding:"4px 0",flex:"1"},color:{width:"24px",height:"24px",position:"relative",marginTop:"4px",marginLeft:"4px",borderRadius:"3px"},activeColor:{absolute:"0px 0px 0px 0px",borderRadius:"2px",background:"rgba(".concat(r.r,",").concat(r.g,",").concat(r.b,",").concat(r.a,")"),boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hue:{position:"relative",height:"10px",overflow:"hidden"},Hue:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},alpha:{position:"relative",height:"10px",marginTop:"4px",overflow:"hidden"},Alpha:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}},p),disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},p),{disableAlpha:c});return ge.createElement("div",{style:y.picker,className:"sketch-picker ".concat(v)},ge.createElement("div",{style:y.saturation},ge.createElement(X$t,{style:y.Saturation,hsl:a,hsv:o,onChange:s})),ge.createElement("div",{style:y.controls,className:"flexbox-fix"},ge.createElement("div",{style:y.sliders},ge.createElement("div",{style:y.hue},ge.createElement(l$t,{style:y.Hue,hsl:a,onChange:s})),ge.createElement("div",{style:y.alpha},ge.createElement(XIt,{style:y.Alpha,rgb:r,hsl:a,renderers:d,onChange:s}))),ge.createElement("div",{style:y.color},ge.createElement(eM,null),ge.createElement("div",{style:y.activeColor}))),ge.createElement(bAt,{rgb:r,hsl:a,hex:i,onChange:s,disableAlpha:c}),ge.createElement(wAt,{colors:u,onClick:s,onSwatchHover:l}))};o_e.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]};var OAt=jRt(o_e),PAt=["mode","popoverProps"],MAt=["#FF9D4E","#5BD8A6","#5B8FF9","#F7664E","#FF86B7","#2B9E9D","#9270CA","#6DC8EC","#667796","#F6BD16"],IAt=ge.forwardRef(function(e,t){var n=e.mode,r=e.popoverProps,i=tn(e,PAt),o=f.useContext(or.ConfigContext),a=o.getPrefixCls,s=a("pro-field-color-picker"),l=Gf.useToken(),c=l.token,u=Jn("#1890ff",{value:i.value,onChange:i.onChange}),d=Le(u,2),h=d[0],p=d[1],m=ro("ProFiledColorPicker"+h,function(){return ae({},".".concat(s),{width:32,height:32,display:"flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box",border:"1px solid ".concat(c.colorSplit),borderRadius:c.borderRadius,"&:hover":{borderColor:h}})}),v=m.wrapSSR,y=m.hashId,S=v(U.jsx("div",{className:"".concat(s," ").concat(y).trim(),style:{cursor:i.disabled?"not-allowed":"pointer",backgroundColor:i.disabled?c.colorBgContainerDisabled:c.colorBgContainer},children:U.jsx("div",{style:{backgroundColor:h,width:24,boxSizing:"border-box",height:24,borderRadius:c.borderRadius}})}));return f.useImperativeHandle(t,function(){}),n==="read"||i.disabled?S:U.jsx(Ou,G(G({trigger:"click",placement:"right"},r),{},{content:U.jsx("div",{style:{margin:"-12px -16px"},children:U.jsx(OAt,G(G({},i),{},{presetColors:i.colors||i.presetColors||MAt,color:h,onChange:function(C){var _=C.hex,T=C.rgb,x=T.r,E=T.g,k=T.b,M=T.a;if(M&&M<1){p("rgba(".concat(x,", ").concat(E,", ").concat(k,", ").concat(M,")"));return}p(_)}}))}),children:S}))}),$At={label:"Recommended",colors:["#F5222D","#FA8C16","#FADB14","#8BBB11","#52C41A","#13A8A8","#1677FF","#2F54EB","#722ED1","#EB2F96","#F5222D4D","#FA8C164D","#FADB144D","#8BBB114D","#52C41A4D","#13A8A84D","#1677FF4D","#2F54EB4D","#722ED14D","#EB2F964D"]};function a_e(){return WE(fp,"5.5.0")>-1}function RAt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return(typeof e>"u"||e===!1)&&a_e()?qW:IAt}var AAt=function(t,n){var r=t.text,i=t.mode,o=t.render,a=t.renderFormItem,s=t.fieldProps,l=t.old,c=f.useContext(or.ConfigContext),u=c.getPrefixCls,d=ge.useMemo(function(){return RAt(l)},[l]),h=u("pro-field-color-picker"),p=f.useMemo(function(){return l?"":Re(ae({},h,a_e()))},[h,l]);if(i==="read"){var m=U.jsx(d,{value:r,mode:"read",ref:n,className:p,open:!1});return o?o(r,G({mode:i},s),m):m}if(i==="edit"||i==="update"){var v=G({display:"table-cell"},s.style),y=U.jsx(d,G(G({ref:n,presets:[$At]},s),{},{style:v,className:p}));return a?a(r,G(G({mode:i},s),{},{style:v}),y):y}return null};const NAt=ge.forwardRef(AAt);Fr.extend(TW);var DAt=function(t,n){return t?typeof n=="function"?n(Fr(t)):Fr(t).format((Array.isArray(n)?n[0]:n)||"YYYY-MM-DD"):"-"},LAt=function(t,n){var r=t.text,i=t.mode,o=t.format,a=t.label,s=t.light,l=t.render,c=t.renderFormItem,u=t.plain,d=t.showTime,h=t.fieldProps,p=t.picker,m=t.bordered,v=t.lightLabel,y=Vo(),S=f.useState(!1),b=Le(S,2),C=b[0],_=b[1];if(i==="read"){var T=DAt(r,h.format||o);return l?l(r,G({mode:i},h),U.jsx(U.Fragment,{children:T})):U.jsx(U.Fragment,{children:T})}if(i==="edit"||i==="update"){var x,E=h.disabled,k=h.value,M=h.placeholder,P=M===void 0?y.getMessage("tableForm.selectPlaceholder","请选择"):M,D=VE(k);return s?x=U.jsx($p,{label:a,onClick:function(){var A;h==null||(A=h.onOpenChange)===null||A===void 0||A.call(h,!0),_(!0)},style:D?{paddingInlineEnd:0}:void 0,disabled:E,value:D||C?U.jsx(Pu,G(G(G({picker:p,showTime:d,format:o,ref:n},h),{},{value:D,onOpenChange:function(A){var H;_(A),h==null||(H=h.onOpenChange)===null||H===void 0||H.call(h,A)}},jc(!1)),{},{open:C})):void 0,allowClear:!1,downIcon:D||C?!1:void 0,bordered:m,ref:v}):x=U.jsx(Pu,G(G(G({picker:p,showTime:d,format:o,placeholder:P},jc(u===void 0?!0:!u)),{},{ref:n},h),{},{value:D})),c?c(r,G({mode:i},h),x):x}return null};const cy=ge.forwardRef(LAt);var FAt=function(t,n){var r=t.text,i=t.mode,o=t.render,a=t.placeholder,s=t.renderFormItem,l=t.fieldProps,c=Vo(),u=a||c.getMessage("tableForm.inputPlaceholder","请输入"),d=f.useCallback(function(S){var b=S??void 0;return!l.stringMode&&typeof b=="string"&&(b=Number(b)),typeof b=="number"&&!Pv(b)&&!Pv(l.precision)&&(b=Number(b.toFixed(l.precision))),b},[l]);if(i==="read"){var h,p={};l!=null&&l.precision&&(p={minimumFractionDigits:Number(l.precision),maximumFractionDigits:Number(l.precision)});var m=new Intl.NumberFormat(void 0,G(G({},p),(l==null?void 0:l.intlProps)||{})).format(Number(r)),v=l!=null&&l.stringMode?U.jsx("span",{children:r}):U.jsx("span",{ref:n,children:(l==null||(h=l.formatter)===null||h===void 0?void 0:h.call(l,m))||m});return o?o(r,G({mode:i},l),v):v}if(i==="edit"||i==="update"){var y=U.jsx(gp,G(G({ref:n,min:0,placeholder:u},Pr(l,["onChange","onBlur"])),{},{onChange:function(b){var C;return l==null||(C=l.onChange)===null||C===void 0?void 0:C.call(l,d(b))},onBlur:function(b){var C;return l==null||(C=l.onBlur)===null||C===void 0?void 0:C.call(l,d(b.target.value))}}));return s?s(r,G({mode:i},l),y):y}return null};const jAt=ge.forwardRef(FAt);var BAt=function(t,n){var r=t.text,i=t.mode,o=t.render,a=t.placeholder,s=t.renderFormItem,l=t.fieldProps,c=t.separator,u=c===void 0?"~":c,d=t.separatorWidth,h=d===void 0?30:d,p=l.value,m=l.defaultValue,v=l.onChange,y=l.id,S=Vo(),b=Gf.useToken(),C=b.token,_=Jn(function(){return m},{value:p,onChange:v}),T=Le(_,2),x=T[0],E=T[1];if(i==="read"){var k=function(q){var Z,N=new Intl.NumberFormat(void 0,G({minimumSignificantDigits:2},(l==null?void 0:l.intlProps)||{})).format(Number(q));return(l==null||(Z=l.formatter)===null||Z===void 0?void 0:Z.call(l,N))||N},M=U.jsxs("span",{ref:n,children:[k(r[0])," ",u," ",k(r[1])]});return o?o(r,G({mode:i},l),M):M}if(i==="edit"||i==="update"){var P=function(){if(Array.isArray(x)){var q=Le(x,2),Z=q[0],N=q[1];typeof Z=="number"&&typeof N=="number"&&Z>N?E([N,Z]):Z===void 0&&N===void 0&&E(void 0)}},D=function(q,Z){var N=pt(x||[]);N[q]=Z===null?void 0:Z,E(N)},R=(l==null?void 0:l.placeholder)||a||[S.getMessage("tableForm.inputPlaceholder","请输入"),S.getMessage("tableForm.inputPlaceholder","请输入")],A=function(q){return Array.isArray(R)?R[q]:R},H=ma.Compact||$i.Group,F=ma.Compact?{}:{compact:!0},z=U.jsxs(H,G(G({},F),{},{onBlur:P,children:[U.jsx(gp,G(G({},l),{},{placeholder:A(0),id:y??"".concat(y,"-0"),style:{width:"calc((100% - ".concat(h,"px) / 2)")},value:x==null?void 0:x[0],defaultValue:m==null?void 0:m[0],onChange:function(q){return D(0,q)}})),U.jsx($i,{style:{width:h,textAlign:"center",borderInlineStart:0,borderInlineEnd:0,pointerEvents:"none",backgroundColor:C==null?void 0:C.colorBgContainer},placeholder:u,disabled:!0}),U.jsx(gp,G(G({},l),{},{placeholder:A(1),id:y??"".concat(y,"-1"),style:{width:"calc((100% - ".concat(h,"px) / 2)"),borderInlineStart:0},value:x==null?void 0:x[1],defaultValue:m==null?void 0:m[1],onChange:function(q){return D(1,q)}}))]}));return s?s(r,G({mode:i},l),z):z}return null};const HAt=ge.forwardRef(BAt);var s_e={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(yo,function(){return function(n,r,i){n=n||{};var o=r.prototype,a={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function s(c,u,d,h){return o.fromToBase(c,u,d,h)}i.en.relativeTime=a,o.fromToBase=function(c,u,d,h,p){for(var m,v,y,S=d.$locale().relativeTime||a,b=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],C=b.length,_=0;_<C;_+=1){var T=b[_];T.d&&(m=h?i(c).diff(d,T.d,!0):d.diff(c,T.d,!0));var x=(n.rounding||Math.round)(Math.abs(m));if(y=m>0,x<=T.r||!T.r){x<=1&&_>0&&(T=b[_-1]);var E=S[T.l];p&&(x=p(""+x)),v=typeof E=="string"?E.replace("%d",x):E(x,u,T.l,y);break}}if(u)return v;var k=y?S.future:S.past;return typeof k=="function"?k(v):k.replace("%s",v)},o.to=function(c,u){return s(c,u,this,!0)},o.from=function(c,u){return s(c,u,this)};var l=function(c){return c.$u?i.utc():i()};o.toNow=function(c){return this.to(l(this),c)},o.fromNow=function(c){return this.from(l(this),c)}}})})(s_e);var zAt=s_e.exports;const UAt=hi(zAt);Fr.extend(UAt);var WAt=function(t,n){var r=t.text,i=t.mode,o=t.plain,a=t.render,s=t.renderFormItem,l=t.format,c=t.fieldProps,u=Vo();if(i==="read"){var d=U.jsx(ta,{title:Fr(r).format((c==null?void 0:c.format)||l||"YYYY-MM-DD HH:mm:ss"),children:Fr(r).fromNow()});return a?a(r,G({mode:i},c),U.jsx(U.Fragment,{children:d})):U.jsx(U.Fragment,{children:d})}if(i==="edit"||i==="update"){var h=u.getMessage("tableForm.selectPlaceholder","请选择"),p=VE(c.value),m=U.jsx(Pu,G(G(G({ref:n,placeholder:h,showTime:!0},jc(o===void 0?!0:!o)),c),{},{value:p}));return s?s(r,G({mode:i},c),m):m}return null};const VAt=ge.forwardRef(WAt);var l_e=ge.forwardRef(function(e,t){var n=e.text,r=e.mode,i=e.render,o=e.renderFormItem,a=e.fieldProps,s=e.placeholder,l=e.width,c=Vo(),u=s||c.getMessage("tableForm.inputPlaceholder","请输入");if(r==="read"){var d=U.jsx(jSe,G({ref:t,width:l||32,src:n},a));return i?i(n,G({mode:r},a),d):d}if(r==="edit"||r==="update"){var h=U.jsx($i,G({ref:t,placeholder:u},a));return o?o(n,G({mode:r},a),h):h}return null}),KAt=function(t,n){var r=t.border,i=r===void 0?!1:r,o=t.children,a=f.useContext(or.ConfigContext),s=a.getPrefixCls,l=s("pro-field-index-column"),c=ro("IndexColumn",function(){return ae({},".".concat(l),{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"18px",height:"18px","&-border":{color:"#fff",fontSize:"12px",lineHeight:"12px",backgroundColor:"#314659",borderRadius:"9px","&.top-three":{backgroundColor:"#979797"}}})}),u=c.wrapSSR,d=c.hashId;return u(U.jsx("div",{ref:n,className:Re(l,d,ae(ae({},"".concat(l,"-border"),i),"top-three",o>3)),children:o}))};const poe=ge.forwardRef(KAt);var qAt=["contentRender","numberFormatOptions","numberPopoverRender","open"],GAt=["text","mode","render","renderFormItem","fieldProps","proFieldKey","plain","valueEnum","placeholder","locale","customSymbol","numberFormatOptions","numberPopoverRender"],c_e=new Intl.NumberFormat("zh-Hans-CN",{currency:"CNY",style:"currency"}),YAt={style:"currency",currency:"USD"},XAt={style:"currency",currency:"RUB"},QAt={style:"currency",currency:"RSD"},ZAt={style:"currency",currency:"MYR"},JAt={style:"currency",currency:"BRL"},eNt={default:c_e,"zh-Hans-CN":{currency:"CNY",style:"currency"},"en-US":YAt,"ru-RU":XAt,"ms-MY":ZAt,"sr-RS":QAt,"pt-BR":JAt},moe=function(t,n,r,i){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"",a=n==null?void 0:n.toString().replaceAll(",","");if(typeof a=="string"){var s=Number(a);if(Number.isNaN(s))return a;a=s}if(!a&&a!==0)return"";var l=!1;try{l=t!==!1&&Intl.NumberFormat.supportedLocalesOf([t.replace("_","-")],{localeMatcher:"lookup"}).length>0}catch{}try{var c=new Intl.NumberFormat(l&&t!==!1&&(t==null?void 0:t.replace("_","-"))||"zh-Hans-CN",G(G({},eNt[t||"zh-Hans-CN"]||c_e),{},{maximumFractionDigits:r},i)),u=c.format(a),d=function(S){var b=S.match(/\d+/);if(b){var C=b[0];return S.slice(S.indexOf(C))}else return S},h=d(u),p=u||"",m=Le(p,1),v=m[0];return["+","-"].includes(v)?"".concat(o||"").concat(v).concat(h):"".concat(o||"").concat(h)}catch{return a}},HA=2,tNt=ge.forwardRef(function(e,t){var n=e.contentRender;e.numberFormatOptions,e.numberPopoverRender;var r=e.open,i=tn(e,qAt),o=Jn(function(){return i.defaultValue},{value:i.value,onChange:i.onChange}),a=Le(o,2),s=a[0],l=a[1],c=n==null?void 0:n(G(G({},i),{},{value:s})),u=FP(c?r:!1);return U.jsx(Ou,G(G({placement:"topLeft"},u),{},{trigger:["focus","click"],content:c,getPopupContainer:function(h){return(h==null?void 0:h.parentElement)||document.body},children:U.jsx(gp,G(G({ref:t},i),{},{value:s,onChange:l}))}))}),nNt=function(t,n){var r,i=t.text,o=t.mode,a=t.render,s=t.renderFormItem,l=t.fieldProps;t.proFieldKey,t.plain,t.valueEnum;var c=t.placeholder,u=t.locale,d=t.customSymbol,h=d===void 0?l.customSymbol:d,p=t.numberFormatOptions,m=p===void 0?l==null?void 0:l.numberFormatOptions:p,v=t.numberPopoverRender,y=v===void 0?(l==null?void 0:l.numberPopoverRender)||!1:v,S=tn(t,GAt),b=(r=l==null?void 0:l.precision)!==null&&r!==void 0?r:HA,C=Vo();u&&Ov[u]&&(C=Ov[u]);var _=c||C.getMessage("tableForm.inputPlaceholder","请输入"),T=f.useMemo(function(){if(h)return h;if(!(S.moneySymbol===!1||l.moneySymbol===!1))return C.getMessage("moneySymbol","¥")},[h,l.moneySymbol,C,S.moneySymbol]),x=f.useCallback(function(M){var P=new RegExp("\\B(?=(\\d{".concat(3+Math.max(b-HA,0),"})+(?!\\d))"),"g"),D=String(M).split("."),R=Le(D,2),A=R[0],H=R[1],F=A.replace(P,","),z="";return H&&b>0&&(z=".".concat(H.slice(0,b===void 0?HA:b))),"".concat(F).concat(z)},[b]);if(o==="read"){var E=U.jsx("span",{ref:n,children:moe(u||!1,i,b,m??l.numberFormatOptions,T)});return a?a(i,G({mode:o},l),E):E}if(o==="edit"||o==="update"){var k=U.jsx(tNt,G(G({contentRender:function(P){if(y===!1||!P.value)return null;var D=moe(T||u||!1,"".concat(x(P.value)),b,G(G({},m),{},{notation:"compact"}),T);return typeof y=="function"?y==null?void 0:y(P,D):D},ref:n,precision:b,formatter:function(P){return P&&T?"".concat(T," ").concat(x(P)):P==null?void 0:P.toString()},parser:function(P){return T&&P?P.replace(new RegExp("\\".concat(T,"\\s?|(,*)"),"g"),""):P},placeholder:_},Pr(l,["numberFormatOptions","precision","numberPopoverRender","customSymbol","moneySymbol","visible","open"])),{},{onBlur:l.onBlur?function(M){var P,D=M.target.value;T&&D&&(D=D.replace(new RegExp("\\".concat(T,"\\s?|(,*)"),"g"),"")),(P=l.onBlur)===null||P===void 0||P.call(l,D)}:void 0}));return s?s(i,G({mode:o},l),k):k}return null};const u_e=ge.forwardRef(nNt);var goe=function(t){return t.map(function(n,r){var i;return ge.isValidElement(n)?ge.cloneElement(n,G(G({key:r},n==null?void 0:n.props),{},{style:G({},n==null||(i=n.props)===null||i===void 0?void 0:i.style)})):U.jsx(ge.Fragment,{children:n},r)})},rNt=function(t,n){var r=t.text,i=t.mode,o=t.render,a=t.fieldProps,s=f.useContext(or.ConfigContext),l=s.getPrefixCls,c=l("pro-field-option"),u=Gf.useToken(),d=u.token;if(f.useImperativeHandle(n,function(){return{}}),o){var h=o(r,G({mode:i},a),U.jsx(U.Fragment,{}));return!h||(h==null?void 0:h.length)<1||!Array.isArray(h)?null:U.jsx("div",{style:{display:"flex",gap:d.margin,alignItems:"center"},className:c,children:goe(h)})}return!r||!Array.isArray(r)?ge.isValidElement(r)?r:null:U.jsx("div",{style:{display:"flex",gap:d.margin,alignItems:"center"},className:c,children:goe(r)})};const iNt=ge.forwardRef(rNt);var oNt=["text","mode","render","renderFormItem","fieldProps","proFieldKey"],aNt=function(t,n){var r=t.text,i=t.mode,o=t.render,a=t.renderFormItem,s=t.fieldProps;t.proFieldKey;var l=tn(t,oNt),c=Vo(),u=Jn(function(){return l.open||l.visible||!1},{value:l.open||l.visible,onChange:l.onOpenChange||l.onVisible}),d=Le(u,2),h=d[0],p=d[1];if(i==="read"){var m=U.jsx(U.Fragment,{children:"-"});return r&&(m=U.jsxs(ma,{children:[U.jsx("span",{ref:n,children:h?r:"********"}),U.jsx("a",{onClick:function(){return p(!h)},children:h?U.jsx(vP,{}):U.jsx(eSe,{})})]})),o?o(r,G({mode:i},s),m):m}if(i==="edit"||i==="update"){var v=U.jsx($i.Password,G({placeholder:c.getMessage("tableForm.inputPlaceholder","请输入"),ref:n},s));return a?a(r,G({mode:i},s),v):v}return null};const sNt=ge.forwardRef(aNt);function lNt(e){return e===0?null:e>0?"+":"-"}function cNt(e){return e===0?"#595959":e>0?"#ff4d4f":"#52c41a"}function uNt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return t>=0?e==null?void 0:e.toFixed(t):e}function Tk(e){return ln(e)==="symbol"||e instanceof Symbol?NaN:Number(e)}var dNt=function(t,n){var r=t.text,i=t.prefix,o=t.precision,a=t.suffix,s=a===void 0?"%":a,l=t.mode,c=t.showColor,u=c===void 0?!1:c,d=t.render,h=t.renderFormItem,p=t.fieldProps,m=t.placeholder,v=t.showSymbol,y=Vo(),S=m||y.getMessage("tableForm.inputPlaceholder","请输入"),b=f.useMemo(function(){return typeof r=="string"&&r.includes("%")?Tk(r.replace("%","")):Tk(r)},[r]),C=f.useMemo(function(){return typeof v=="function"?v==null?void 0:v(r):v},[v,r]);if(l==="read"){var _=u?{color:cNt(b)}:{},T=U.jsxs("span",{style:_,ref:n,children:[i&&U.jsx("span",{children:i}),C&&U.jsxs(f.Fragment,{children:[lNt(b)," "]}),uNt(Math.abs(b),o),s&&s]});return d?d(r,G(G({mode:l},p),{},{prefix:i,precision:o,showSymbol:C,suffix:s}),T):T}if(l==="edit"||l==="update"){var x=U.jsx(gp,G({ref:n,formatter:function(k){return k&&i?"".concat(i," ").concat(k).replace(/\B(?=(\d{3})+(?!\d)$)/g,","):k},parser:function(k){return k?k.replace(/.*\s|,/g,""):""},placeholder:S},p));return h?h(r,G({mode:l},p),x):x}return null};const d_e=ge.forwardRef(dNt);function fNt(e){return e===100?"success":e<0?"exception":e<100?"active":"normal"}var hNt=function(t,n){var r=t.text,i=t.mode,o=t.render,a=t.plain,s=t.renderFormItem,l=t.fieldProps,c=t.placeholder,u=Vo(),d=c||u.getMessage("tableForm.inputPlaceholder","请输入"),h=f.useMemo(function(){return typeof r=="string"&&r.includes("%")?Tk(r.replace("%","")):Tk(r)},[r]);if(i==="read"){var p=U.jsx(tCe,G({ref:n,size:"small",style:{minWidth:100,maxWidth:320},percent:h,steps:a?10:void 0,status:fNt(h)},l));return o?o(h,G({mode:i},l),p):p}if(i==="edit"||i==="update"){var m=U.jsx(gp,G({ref:n,placeholder:d},l));return s?s(r,G({mode:i},l),m):m}return null};const f_e=ge.forwardRef(hNt);var pNt=["radioType","renderFormItem","mode","render"],mNt=function(t,n){var r,i,o=t.radioType,a=t.renderFormItem,s=t.mode,l=t.render,c=tn(t,pNt),u=f.useContext(or.ConfigContext),d=u.getPrefixCls,h=d("pro-field-radio"),p=CC(c),m=Le(p,3),v=m[0],y=m[1],S=m[2],b=f.useRef(),C=(r=Or.Item)===null||r===void 0||(i=r.useStatus)===null||i===void 0?void 0:i.call(r);f.useImperativeHandle(n,function(){return G(G({},b.current||{}),{},{fetchData:function(H){return S(H)}})},[S]);var _=ro("FieldRadioRadio",function(A){return ae(ae(ae({},".".concat(h,"-error"),{span:{color:A.colorError}}),".".concat(h,"-warning"),{span:{color:A.colorWarning}}),".".concat(h,"-vertical"),ae({},"".concat(A.antCls,"-radio-wrapper"),{display:"flex",marginInlineEnd:0}))}),T=_.wrapSSR,x=_.hashId;if(v)return U.jsx(Cl,{size:"small"});if(s==="read"){var E=y!=null&&y.length?y==null?void 0:y.reduce(function(A,H){var F;return G(G({},A),{},ae({},(F=H.value)!==null&&F!==void 0?F:"",H.label))},{}):void 0,k=U.jsx(U.Fragment,{children:mC(c.text,Rp(c.valueEnum||E))});if(l){var M;return(M=l(c.text,G({mode:s},c.fieldProps),k))!==null&&M!==void 0?M:null}return k}if(s==="edit"){var P,D=T(U.jsx(ti.Group,G(G({ref:b,optionType:o},c.fieldProps),{},{className:Re((P=c.fieldProps)===null||P===void 0?void 0:P.className,ae(ae({},"".concat(h,"-error"),(C==null?void 0:C.status)==="error"),"".concat(h,"-warning"),(C==null?void 0:C.status)==="warning"),x,"".concat(h,"-").concat(c.fieldProps.layout||"horizontal")),options:y})));if(a){var R;return(R=a(c.text,G(G({mode:s},c.fieldProps),{},{options:y,loading:v}),D))!==null&&R!==void 0?R:null}return D}return null};const voe=ge.forwardRef(mNt);var gNt=function(t,n){var r=t.text,i=t.mode,o=t.light,a=t.label,s=t.format,l=t.render,c=t.picker,u=t.renderFormItem,d=t.plain,h=t.showTime,p=t.lightLabel,m=t.bordered,v=t.fieldProps,y=Vo(),S=Array.isArray(r)?r:[],b=Le(S,2),C=b[0],_=b[1],T=ge.useState(!1),x=Le(T,2),E=x[0],k=x[1],M=f.useCallback(function(z){if(typeof(v==null?void 0:v.format)=="function"){var W;return v==null||(W=v.format)===null||W===void 0?void 0:W.call(v,z)}return(v==null?void 0:v.format)||s||"YYYY-MM-DD"},[v,s]),P=C?Fr(C).format(M(Fr(C))):"",D=_?Fr(_).format(M(Fr(_))):"";if(i==="read"){var R=U.jsxs("div",{ref:n,style:{display:"flex",flexWrap:"wrap",gap:8,alignItems:"center"},children:[U.jsx("div",{children:P||"-"}),U.jsx("div",{children:D||"-"})]});return l?l(r,G({mode:i},v),U.jsx("span",{children:R})):R}if(i==="edit"||i==="update"){var A=VE(v.value),H;if(o){var F;H=U.jsx($p,{label:a,onClick:function(){var W;v==null||(W=v.onOpenChange)===null||W===void 0||W.call(v,!0),k(!0)},style:A?{paddingInlineEnd:0}:void 0,disabled:v.disabled,value:A||E?U.jsx(Pu.RangePicker,G(G(G({picker:c,showTime:h,format:s},jc(!1)),v),{},{placeholder:(F=v.placeholder)!==null&&F!==void 0?F:[y.getMessage("tableForm.selectPlaceholder","请选择"),y.getMessage("tableForm.selectPlaceholder","请选择")],onClear:function(){var W;k(!1),v==null||(W=v.onClear)===null||W===void 0||W.call(v)},value:A,onOpenChange:function(W){var q;A&&k(W),v==null||(q=v.onOpenChange)===null||q===void 0||q.call(v,W)}})):null,allowClear:!1,bordered:m,ref:p,downIcon:A||E?!1:void 0})}else H=U.jsx(Pu.RangePicker,G(G(G({ref:n,format:s,showTime:h,placeholder:[y.getMessage("tableForm.selectPlaceholder","请选择"),y.getMessage("tableForm.selectPlaceholder","请选择")]},jc(d===void 0?!0:!d)),v),{},{value:A}));return u?u(r,G({mode:i},v),H):H}return null};const uy=ge.forwardRef(gNt);var vNt=function(t,n){var r=t.text,i=t.mode,o=t.render,a=t.renderFormItem,s=t.fieldProps;if(i==="read"){var l=U.jsx(Vte,G(G({allowHalf:!0,disabled:!0,ref:n},s),{},{value:r}));return o?o(r,G({mode:i},s),U.jsx(U.Fragment,{children:l})):l}if(i==="edit"||i==="update"){var c=U.jsx(Vte,G({allowHalf:!0,ref:n},s));return a?a(r,G({mode:i},s),c):c}return null};const yNt=ge.forwardRef(vNt);function bNt(e){var t=e,n="",r=!1;t<0&&(t=-t,r=!0);var i=Math.floor(t/(3600*24)),o=Math.floor(t/3600%24),a=Math.floor(t/60%60),s=Math.floor(t%60);return n="".concat(s,"秒"),a>0&&(n="".concat(a,"分钟").concat(n)),o>0&&(n="".concat(o,"小时").concat(n)),i>0&&(n="".concat(i,"天").concat(n)),r&&(n+="前"),n}var SNt=function(t,n){var r=t.text,i=t.mode,o=t.render,a=t.renderFormItem,s=t.fieldProps,l=t.placeholder,c=Vo(),u=l||c.getMessage("tableForm.inputPlaceholder","请输入");if(i==="read"){var d=bNt(Number(r)),h=U.jsx("span",{ref:n,children:d});return o?o(r,G({mode:i},s),h):h}if(i==="edit"||i==="update"){var p=U.jsx(gp,G({ref:n,min:0,style:{width:"100%"},placeholder:u},s));return a?a(r,G({mode:i},s),p):p}return null};const CNt=ge.forwardRef(SNt);var xNt=["mode","render","renderFormItem","fieldProps","emptyText"],wNt=function(t,n){var r=t.mode,i=t.render,o=t.renderFormItem,a=t.fieldProps,s=t.emptyText,l=s===void 0?"-":s,c=tn(t,xNt),u=f.useRef(),d=CC(t),h=Le(d,3),p=h[0],m=h[1],v=h[2];if(f.useImperativeHandle(n,function(){return G(G({},u.current||{}),{},{fetchData:function(T){return v(T)}})},[v]),p)return U.jsx(Cl,{size:"small"});if(r==="read"){var y=m!=null&&m.length?m==null?void 0:m.reduce(function(_,T){var x;return G(G({},_),{},ae({},(x=T.value)!==null&&x!==void 0?x:"",T.label))},{}):void 0,S=U.jsx(U.Fragment,{children:mC(c.text,Rp(c.valueEnum||y))});if(i){var b;return(b=i(c.text,G({mode:r},a),U.jsx(U.Fragment,{children:S})))!==null&&b!==void 0?b:l}return S}if(r==="edit"||r==="update"){var C=U.jsx(Vbe,G(G({ref:u},Pr(a||{},["allowClear"])),{},{options:m}));return o?o(c.text,G(G({mode:r},a),{},{options:m,loading:p}),C):C}return null};const _Nt=ge.forwardRef(wNt);var ENt=function(t,n){var r=t.text,i=t.mode,o=t.render,a=t.renderFormItem,s=t.fieldProps;if(i==="read"){var l=r;return o?o(r,G({mode:i},s),U.jsx(U.Fragment,{children:l})):U.jsx(U.Fragment,{children:l})}if(i==="edit"||i==="update"){var c=U.jsx(aSe,G(G({ref:n},s),{},{style:G({minWidth:120},s==null?void 0:s.style)}));return a?a(r,G({mode:i},s),c):c}return null};const TNt=ge.forwardRef(ENt);var kNt=function(t,n){var r=t.text,i=t.mode,o=t.render,a=t.light,s=t.label,l=t.renderFormItem,c=t.fieldProps,u=Vo(),d=f.useMemo(function(){var y,S;return r==null||"".concat(r).length<1?"-":r?(y=c==null?void 0:c.checkedChildren)!==null&&y!==void 0?y:u.getMessage("switch.open","打开"):(S=c==null?void 0:c.unCheckedChildren)!==null&&S!==void 0?S:u.getMessage("switch.close","关闭")},[c==null?void 0:c.checkedChildren,c==null?void 0:c.unCheckedChildren,r]);if(i==="read")return o?o(r,G({mode:i},c),U.jsx(U.Fragment,{children:d})):d??"-";if(i==="edit"||i==="update"){var h,p=U.jsx(rk,G(G({ref:n,size:a?"small":void 0},Pr(c,["value"])),{},{checked:(h=c==null?void 0:c.checked)!==null&&h!==void 0?h:c==null?void 0:c.value}));if(a){var m=c.disabled,v=c.bordered;return U.jsx($p,{label:s,disabled:m,bordered:v,downIcon:!1,value:U.jsx("div",{style:{paddingLeft:8},children:p}),allowClear:!1})}return l?l(r,G({mode:i},c),p):p}return null};const ONt=ge.forwardRef(kNt);var PNt=function(t,n){var r=t.text,i=t.mode,o=t.render,a=t.renderFormItem,s=t.fieldProps,l=t.emptyText,c=l===void 0?"-":l,u=s||{},d=u.autoFocus,h=u.prefix,p=h===void 0?"":h,m=u.suffix,v=m===void 0?"":m,y=Vo(),S=f.useRef();if(f.useImperativeHandle(n,function(){return S.current},[]),f.useEffect(function(){if(d){var x;(x=S.current)===null||x===void 0||x.focus()}},[d]),i==="read"){var b=U.jsxs(U.Fragment,{children:[p,r??c,v]});if(o){var C;return(C=o(r,G({mode:i},s),b))!==null&&C!==void 0?C:c}return b}if(i==="edit"||i==="update"){var _=y.getMessage("tableForm.inputPlaceholder","请输入"),T=U.jsx($i,G({ref:S,placeholder:_,allowClear:!0},s));return a?a(r,G({mode:i},s),T):T}return null};const MNt=ge.forwardRef(PNt);var INt=function(t,n){var r=t.text,i=t.fieldProps,o=f.useContext(or.ConfigContext),a=o.getPrefixCls,s=a("pro-field-readonly"),l="".concat(s,"-textarea"),c=ro("TextArea",function(){return ae({},".".concat(l),{display:"inline-block",lineHeight:"1.5715",maxWidth:"100%",whiteSpace:"pre-wrap"})}),u=c.wrapSSR,d=c.hashId;return u(U.jsx("span",G(G({ref:n,className:Re(d,s,l)},Pr(i,["autoSize","classNames","styles"])),{},{children:r??"-"})))};const $Nt=ge.forwardRef(INt);var RNt=function(t,n){var r=t.text,i=t.mode,o=t.render,a=t.renderFormItem,s=t.fieldProps,l=Vo();if(i==="read"){var c=U.jsx($Nt,G(G({},t),{},{ref:n}));return o?o(r,G({mode:i},Pr(s,["showCount"])),c):c}if(i==="edit"||i==="update"){var u=U.jsx($i.TextArea,G({ref:n,rows:3,onKeyPress:function(h){h.key==="Enter"&&h.stopPropagation()},placeholder:l.getMessage("tableForm.inputPlaceholder","请输入")},s));return a?a(r,G({mode:i},s),u):u}return null};const ANt=ge.forwardRef(RNt);var NNt=function(t,n){var r=t.text,i=t.mode,o=t.light,a=t.label,s=t.format,l=t.render,c=t.renderFormItem,u=t.plain,d=t.fieldProps,h=t.lightLabel,p=f.useState(!1),m=Le(p,2),v=m[0],y=m[1],S=Vo(),b=(d==null?void 0:d.format)||s||"HH:mm:ss",C=Fr.isDayjs(r)||typeof r=="number";if(i==="read"){var _=U.jsx("span",{ref:n,children:r?Fr(r,C?void 0:b).format(b):"-"});return l?l(r,G({mode:i},d),U.jsx("span",{children:_})):_}if(i==="edit"||i==="update"){var T,x=d.disabled,E=d.value,k=VE(E,b);if(o){var M;T=U.jsx($p,{onClick:function(){var D;d==null||(D=d.onOpenChange)===null||D===void 0||D.call(d,!0),y(!0)},style:k?{paddingInlineEnd:0}:void 0,label:a,disabled:x,value:k||v?U.jsx(Tv,G(G(G({},jc(!1)),{},{format:s,ref:n},d),{},{placeholder:(M=d.placeholder)!==null&&M!==void 0?M:S.getMessage("tableForm.selectPlaceholder","请选择"),value:k,onOpenChange:function(D){var R;y(D),d==null||(R=d.onOpenChange)===null||R===void 0||R.call(d,D)},open:v})):null,downIcon:k||v?!1:void 0,allowClear:!1,ref:h})}else T=U.jsx(Pu.TimePicker,G(G(G({ref:n,format:s},jc(u===void 0?!0:!u)),d),{},{value:k}));return c?c(r,G({mode:i},d),T):T}return null},DNt=function(t,n){var r=t.text,i=t.light,o=t.label,a=t.mode,s=t.lightLabel,l=t.format,c=t.render,u=t.renderFormItem,d=t.plain,h=t.fieldProps,p=Vo(),m=f.useState(!1),v=Le(m,2),y=v[0],S=v[1],b=(h==null?void 0:h.format)||l||"HH:mm:ss",C=Array.isArray(r)?r:[],_=Le(C,2),T=_[0],x=_[1],E=Fr.isDayjs(T)||typeof T=="number",k=Fr.isDayjs(x)||typeof x=="number",M=T?Fr(T,E?void 0:b).format(b):"",P=x?Fr(x,k?void 0:b).format(b):"";if(a==="read"){var D=U.jsxs("div",{ref:n,children:[U.jsx("div",{children:M||"-"}),U.jsx("div",{children:P||"-"})]});return c?c(r,G({mode:a},h),U.jsx("span",{children:D})):D}if(a==="edit"||a==="update"){var R=VE(h.value,b),A;if(i){var H=h.disabled,F=h.placeholder,z=F===void 0?[p.getMessage("tableForm.selectPlaceholder","请选择"),p.getMessage("tableForm.selectPlaceholder","请选择")]:F;A=U.jsx($p,{onClick:function(){var q;h==null||(q=h.onOpenChange)===null||q===void 0||q.call(h,!0),S(!0)},style:R?{paddingInlineEnd:0}:void 0,label:o,disabled:H,placeholder:z,value:R||y?U.jsx(Tv.RangePicker,G(G(G({},jc(!1)),{},{format:l,ref:n},h),{},{placeholder:z,value:R,onOpenChange:function(q){var Z;S(q),h==null||(Z=h.onOpenChange)===null||Z===void 0||Z.call(h,q)},open:y})):null,downIcon:R||y?!1:void 0,allowClear:!1,ref:s})}else A=U.jsx(Tv.RangePicker,G(G(G({ref:n,format:l},jc(d===void 0?!0:!d)),h),{},{value:R}));return u?u(r,G({mode:a},h),A):A}return null},LNt=ge.forwardRef(DNt);const FNt=ge.forwardRef(NNt);var jNt=["radioType","renderFormItem","mode","light","label","render"],BNt=["onSearch","onClear","onChange","onBlur","showSearch","autoClearSearchValue","treeData","fetchDataOnSearch","searchValue"],HNt=function(t,n){t.radioType;var r=t.renderFormItem,i=t.mode,o=t.light,a=t.label,s=t.render,l=tn(t,jNt),c=f.useContext(or.ConfigContext),u=c.getPrefixCls,d=u("pro-field-tree-select"),h=f.useRef(null),p=f.useState(!1),m=Le(p,2),v=m[0],y=m[1],S=l.fieldProps,b=S.onSearch,C=S.onClear,_=S.onChange,T=S.onBlur,x=S.showSearch,E=S.autoClearSearchValue;S.treeData;var k=S.fetchDataOnSearch,M=S.searchValue,P=tn(S,BNt),D=Vo(),R=CC(G(G({},l),{},{defaultKeyWords:M})),A=Le(R,3),H=A[0],F=A[1],z=A[2],W=Jn(void 0,{onChange:b,value:M}),q=Le(W,2),Z=q[0],N=q[1];f.useImperativeHandle(n,function(){return G(G({},h.current||{}),{},{fetchData:function(_e){return z(_e)}})});var B=f.useMemo(function(){if(i==="read"){var he=(P==null?void 0:P.fieldNames)||{},_e=he.value,le=_e===void 0?"value":_e,xe=he.label,we=xe===void 0?"label":xe,De=he.children,Fe=De===void 0?"children":De,Ce=new Map,Te=function ke(Pe){if(!(Pe!=null&&Pe.length))return Ce;for(var Ne=Pe.length,We=0;We<Ne;){var Q=Pe[We++];Ce.set(Q[le],Q[we]),ke(Q[Fe])}return Ce};return Te(F)}},[P==null?void 0:P.fieldNames,i,F]),V=function(_e,le,xe){x&&E&&(z(void 0),N(void 0)),_==null||_(_e,le,xe)};if(i==="read"){var Y=U.jsx(U.Fragment,{children:mC(l.text,Rp(l.valueEnum||B))});if(s){var ie;return(ie=s(l.text,G({mode:i},P),Y))!==null&&ie!==void 0?ie:null}return Y}if(i==="edit"){var ce,fe=Array.isArray(P==null?void 0:P.value)?P==null||(ce=P.value)===null||ce===void 0?void 0:ce.length:0,ee=U.jsx(Cl,{spinning:H,children:U.jsx(e0,G(G({open:v,onDropdownVisibleChange:function(_e){var le;P==null||(le=P.onDropdownVisibleChange)===null||le===void 0||le.call(P,_e),y(_e)},ref:h,popupMatchSelectWidth:!o,placeholder:D.getMessage("tableForm.selectPlaceholder","请选择"),tagRender:o?function(he){var _e;if(fe<2)return U.jsx(U.Fragment,{children:he.label});var le=P==null||(_e=P.value)===null||_e===void 0?void 0:_e.findIndex(function(xe){return xe===he.value||xe.value===he.value});return U.jsxs(U.Fragment,{children:[he.label," ",le<fe-1?",":""]})}:void 0,bordered:!o},P),{},{treeData:F,showSearch:x,style:G({minWidth:60},P.style),allowClear:P.allowClear!==!1,searchValue:Z,autoClearSearchValue:E,onClear:function(){C==null||C(),z(void 0),x&&N(void 0)},onChange:V,onSearch:function(_e){k&&l!==null&&l!==void 0&&l.request&&z(_e),N(_e)},onBlur:function(_e){N(void 0),z(void 0),T==null||T(_e)},className:Re(P==null?void 0:P.className,d)}))});if(r){var ne;ee=(ne=r(l.text,G(G({mode:i},P),{},{options:F,loading:H}),ee))!==null&&ne!==void 0?ne:null}if(o){var ue,ye=P.disabled,me=P.placeholder,pe=!!P.value&&((ue=P.value)===null||ue===void 0?void 0:ue.length)!==0;return U.jsx($p,{label:a,disabled:ye,placeholder:me,onClick:function(){var _e;y(!0),P==null||(_e=P.onDropdownVisibleChange)===null||_e===void 0||_e.call(P,!0)},bordered:l.bordered,value:pe||v?ee:null,style:pe?{paddingInlineEnd:0}:void 0,allowClear:!1,downIcon:!1})}return ee}return null};const zNt=ge.forwardRef(HNt);function Tl(e){var t=f.useState(!1),n=Le(t,2),r=n[0],i=n[1],o=f.useRef(null),a=f.useCallback(function(c){var u,d,h=(u=o.current)===null||u===void 0||(u=u.labelRef)===null||u===void 0||(u=u.current)===null||u===void 0?void 0:u.contains(c.target),p=(d=o.current)===null||d===void 0||(d=d.clearRef)===null||d===void 0||(d=d.current)===null||d===void 0?void 0:d.contains(c.target);return h&&!p},[o]),s=function(u){a(u)&&i(!0)},l=function(){i(!1)};return e.isLight?U.jsx("div",{onMouseDown:s,onMouseUp:l,children:ge.cloneElement(e.children,{labelTrigger:r,lightLabel:o})}):U.jsx(U.Fragment,{children:e.children})}var h_e={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(yo,function(){var n="day";return function(r,i,o){var a=function(c){return c.add(4-c.isoWeekday(),n)},s=i.prototype;s.isoWeekYear=function(){return a(this).year()},s.isoWeek=function(c){if(!this.$utils().u(c))return this.add(7*(c-this.isoWeek()),n);var u,d,h,p,m=a(this),v=(u=this.isoWeekYear(),d=this.$u,h=(d?o.utc:o)().year(u).startOf("year"),p=4-h.isoWeekday(),h.isoWeekday()>4&&(p+=7),h.add(p,n));return m.diff(v,"week")+1},s.isoWeekday=function(c){return this.$utils().u(c)?this.day()||7:this.day(this.day()%7?c:c-7)};var l=s.startOf;s.startOf=function(c,u){var d=this.$utils(),h=!!d.u(u)||u;return d.p(c)==="isoweek"?h?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):l.bind(this)(c,u)}}})})(h_e);var UNt=h_e.exports;const WNt=hi(UNt);var p_e={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(yo,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,i,o){var a=i.prototype,s=a.format;o.en.formats=n,a.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var c=this.$locale().formats,u=function(d,h){return d.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(p,m,v){var y=v&&v.toUpperCase();return m||h[v]||n[v]||h[y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(S,b,C){return b||C.slice(1)})})}(l,c===void 0?{}:c);return s.call(this,u)}}})})(p_e);var VNt=p_e.exports;const KNt=hi(VNt);var qNt=["fieldProps"],GNt=["fieldProps"],YNt=["fieldProps"],XNt=["fieldProps"],QNt=["text","valueType","mode","onChange","renderFormItem","value","readonly","fieldProps"],ZNt=["placeholder"];Fr.extend(bye);Fr.extend(wye);Fr.extend(WNt);Fr.extend(TW);Fr.extend(vye);Fr.extend(KNt);var JNt=function(t,n,r){var i=u2e(r.fieldProps);return n.type==="progress"?U.jsx(f_e,G(G({},r),{},{text:t,fieldProps:G({status:n.status?n.status:void 0},i)})):n.type==="money"?U.jsx(u_e,G(G({locale:n.locale},r),{},{fieldProps:i,text:t,moneySymbol:n.moneySymbol})):n.type==="percent"?U.jsx(d_e,G(G({},r),{},{text:t,showSymbol:n.showSymbol,precision:n.precision,fieldProps:i,showColor:n.showColor})):n.type==="image"?U.jsx(l_e,G(G({},r),{},{text:t,width:n.width})):t},e7t=function(t,n,r,i){var o=r.mode,a=o===void 0?"read":o,s=r.emptyText,l=s===void 0?"-":s;if(l!==!1&&a==="read"&&n!=="option"&&n!=="switch"&&typeof t!="boolean"&&typeof t!="number"&&!t){var c=r.fieldProps,u=r.render;return u?u(t,G({mode:a},c),U.jsx(U.Fragment,{children:l})):U.jsx(U.Fragment,{children:l})}if(delete r.emptyText,ln(n)==="object")return JNt(t,n,r);var d=i&&i[n];if(d){if(delete r.ref,a==="read"){var h;return(h=d.render)===null||h===void 0?void 0:h.call(d,t,G(G({text:t},r),{},{mode:a||"read"}),U.jsx(U.Fragment,{children:t}))}if(a==="update"||a==="edit"){var p;return(p=d.renderFormItem)===null||p===void 0?void 0:p.call(d,t,G({text:t},r),U.jsx(U.Fragment,{children:t}))}}if(n==="money")return U.jsx(u_e,G(G({},r),{},{text:t}));if(n==="date")return U.jsx(Tl,{isLight:r.light,children:U.jsx(cy,G({text:t,format:"YYYY-MM-DD"},r))});if(n==="dateWeek")return U.jsx(Tl,{isLight:r.light,children:U.jsx(cy,G({text:t,format:"YYYY-wo",picker:"week"},r))});if(n==="dateWeekRange"){var m=r.fieldProps,v=tn(r,qNt);return U.jsx(Tl,{isLight:r.light,children:U.jsx(uy,G({text:t,format:"YYYY-W",showTime:!0,fieldProps:G({picker:"week"},m)},v))})}if(n==="dateMonthRange"){var y=r.fieldProps,S=tn(r,GNt);return U.jsx(Tl,{isLight:r.light,children:U.jsx(uy,G({text:t,format:"YYYY-MM",showTime:!0,fieldProps:G({picker:"month"},y)},S))})}if(n==="dateQuarterRange"){var b=r.fieldProps,C=tn(r,YNt);return U.jsx(Tl,{isLight:r.light,children:U.jsx(uy,G({text:t,format:"YYYY-Q",showTime:!0,fieldProps:G({picker:"quarter"},b)},C))})}if(n==="dateYearRange"){var _=r.fieldProps,T=tn(r,XNt);return U.jsx(Tl,{isLight:r.light,children:U.jsx(uy,G({text:t,format:"YYYY",showTime:!0,fieldProps:G({picker:"year"},_)},T))})}return n==="dateMonth"?U.jsx(Tl,{isLight:r.light,children:U.jsx(cy,G({text:t,format:"YYYY-MM",picker:"month"},r))}):n==="dateQuarter"?U.jsx(Tl,{isLight:r.light,children:U.jsx(cy,G({text:t,format:"YYYY-[Q]Q",picker:"quarter"},r))}):n==="dateYear"?U.jsx(Tl,{isLight:r.light,children:U.jsx(cy,G({text:t,format:"YYYY",picker:"year"},r))}):n==="dateRange"?U.jsx(uy,G({text:t,format:"YYYY-MM-DD"},r)):n==="dateTime"?U.jsx(Tl,{isLight:r.light,children:U.jsx(cy,G({text:t,format:"YYYY-MM-DD HH:mm:ss",showTime:!0},r))}):n==="dateTimeRange"?U.jsx(Tl,{isLight:r.light,children:U.jsx(uy,G({text:t,format:"YYYY-MM-DD HH:mm:ss",showTime:!0},r))}):n==="time"?U.jsx(Tl,{isLight:r.light,children:U.jsx(FNt,G({text:t,format:"HH:mm:ss"},r))}):n==="timeRange"?U.jsx(Tl,{isLight:r.light,children:U.jsx(LNt,G({text:t,format:"HH:mm:ss"},r))}):n==="fromNow"?U.jsx(VAt,G({text:t},r)):n==="index"?U.jsx(poe,{children:t+1}):n==="indexBorder"?U.jsx(poe,{border:!0,children:t+1}):n==="progress"?U.jsx(f_e,G(G({},r),{},{text:t})):n==="percent"?U.jsx(d_e,G({text:t},r)):n==="avatar"&&typeof t=="string"&&r.mode==="read"?U.jsx(yg,{src:t,size:22,shape:"circle"}):n==="code"?U.jsx(aie,G({text:t},r)):n==="jsonCode"?U.jsx(aie,G({text:t,language:"json"},r)):n==="textarea"?U.jsx(ANt,G({text:t},r)):n==="digit"?U.jsx(jAt,G({text:t},r)):n==="digitRange"?U.jsx(HAt,G({text:t},r)):n==="second"?U.jsx(CNt,G({text:t},r)):n==="select"||n==="text"&&(r.valueEnum||r.request)?U.jsx(Tl,{isLight:r.light,children:U.jsx(zwt,G({text:t},r))}):n==="checkbox"?U.jsx(Ywt,G({text:t},r)):n==="radio"?U.jsx(voe,G({text:t},r)):n==="radioButton"?U.jsx(voe,G({radioType:"button",text:t},r)):n==="rate"?U.jsx(yNt,G({text:t},r)):n==="slider"?U.jsx(TNt,G({text:t},r)):n==="switch"?U.jsx(ONt,G({text:t},r)):n==="option"?U.jsx(iNt,G({text:t},r)):n==="password"?U.jsx(sNt,G({text:t},r)):n==="image"?U.jsx(l_e,G({text:t},r)):n==="cascader"?U.jsx(Vwt,G({text:t},r)):n==="treeSelect"?U.jsx(zNt,G({text:t},r)):n==="color"?U.jsx(NAt,G({text:t},r)):n==="segmented"?U.jsx(_Nt,G({text:t},r)):U.jsx(MNt,G({text:t},r))},t7t=function(t,n){var r,i,o,a,s,l=t.text,c=t.valueType,u=c===void 0?"text":c,d=t.mode,h=d===void 0?"read":d,p=t.onChange,m=t.renderFormItem,v=t.value,y=t.readonly,S=t.fieldProps,b=tn(t,QNt),C=f.useContext(sg),_=Md(function(){for(var E,k=arguments.length,M=new Array(k),P=0;P<k;P++)M[P]=arguments[P];S==null||(E=S.onChange)===null||E===void 0||E.call.apply(E,[S].concat(M)),p==null||p.apply(void 0,M)}),T=Rl(function(){return(v!==void 0||S)&&G(G({value:v},pu(S)),{},{onChange:_})},[v,S,_]),x=e7t(h==="edit"?(r=(i=T==null?void 0:T.value)!==null&&i!==void 0?i:l)!==null&&r!==void 0?r:"":(o=l??(T==null?void 0:T.value))!==null&&o!==void 0?o:"",u||"text",pu(G(G({ref:n},b),{},{mode:y?"read":h,renderFormItem:m?function(E,k,M){k.placeholder;var P=tn(k,ZNt),D=m(E,P,M);return ge.isValidElement(D)?ge.cloneElement(D,G(G({},T),D.props||{})):D}:void 0,placeholder:m?void 0:(a=b==null?void 0:b.placeholder)!==null&&a!==void 0?a:T==null?void 0:T.placeholder,fieldProps:u2e(pu(G(G({},T),{},{placeholder:m?void 0:(s=b==null?void 0:b.placeholder)!==null&&s!==void 0?s:T==null?void 0:T.placeholder})))})),C.valueTypeMap||{});return U.jsx(ge.Fragment,{children:x})},n7t=ge.forwardRef(t7t),rK=ge.createContext({mode:"edit"}),r7t=["fieldProps","children","labelCol","label","autoFocus","isDefaultDom","render","proFieldProps","renderFormItem","valueType","initialValue","onChange","valueEnum","params","name","dependenciesValues","cacheForSwr","valuePropName"],i7t=function(t){var n=t.fieldProps,r=t.children;t.labelCol,t.label;var i=t.autoFocus;t.isDefaultDom;var o=t.render,a=t.proFieldProps,s=t.renderFormItem,l=t.valueType;t.initialValue;var c=t.onChange,u=t.valueEnum,d=t.params;t.name;var h=t.dependenciesValues,p=t.cacheForSwr,m=p===void 0?!1:p,v=t.valuePropName,y=v===void 0?"value":v,S=tn(t,r7t),b=f.useContext(rK),C=f.useMemo(function(){return h&&S.request?G(G({},d),h||{}):d},[h,d,S.request]),_=Md(function(){if(n!=null&&n.onChange){for(var E,k=arguments.length,M=new Array(k),P=0;P<k;P++)M[P]=arguments[P];n==null||(E=n.onChange)===null||E===void 0||E.call.apply(E,[n].concat(M));return}}),T=f.useMemo(function(){return G(G({autoFocus:i},n),{},{onChange:_})},[i,n,_]),x=f.useMemo(function(){if(r)return ge.isValidElement(r)?ge.cloneElement(r,G(G({},S),{},{onChange:function(){for(var k=arguments.length,M=new Array(k),P=0;P<k;P++)M[P]=arguments[P];if(n!=null&&n.onChange){var D;n==null||(D=n.onChange)===null||D===void 0||D.call.apply(D,[n].concat(M));return}c==null||c.apply(void 0,M)}},(r==null?void 0:r.props)||{})):U.jsx(U.Fragment,{children:r})},[r,n==null?void 0:n.onChange,c,S]);return x||U.jsx(n7t,G(G(G({text:n==null?void 0:n[y],render:o,renderFormItem:s,valueType:l||"text",cacheForSwr:m,fieldProps:T,valueEnum:aS(u)},a),S),{},{mode:(a==null?void 0:a.mode)||b.mode||"edit",params:C}))},lg=FV(f.memo(i7t,function(e,t){return ev(t,e,["onChange","onBlur"])})),o7t=["options","fieldProps","proFieldProps","valueEnum"],a7t=ge.forwardRef(function(e,t){var n=e.options,r=e.fieldProps,i=e.proFieldProps,o=e.valueEnum,a=tn(e,o7t);return U.jsx(lg,G({ref:t,valueType:"checkbox",valueEnum:aS(o,void 0),fieldProps:G({options:n},r),lightProps:G({labelFormatter:function(){return U.jsx(lg,G({ref:t,valueType:"checkbox",mode:"read",valueEnum:aS(o,void 0),filedConfig:{customLightMode:!0},fieldProps:G({options:n},r),proFieldProps:i},a))}},a.lightProps),proFieldProps:i},a))}),s7t=ge.forwardRef(function(e,t){var n=e.fieldProps,r=e.children;return U.jsx(mp,G(G({ref:t},n),{},{children:r}))}),l7t=FV(s7t,{valuePropName:"checked"}),iK=l7t;iK.Group=a7t;var oK=ge.createContext({}),c7t=["name","originDependencies","children","ignoreFormListField"],m_e=function(t){var n=t.name,r=t.originDependencies,i=r===void 0?n:r,o=t.children,a=t.ignoreFormListField,s=tn(t,c7t),l=f.useContext(i2e),c=f.useContext(oK),u=f.useMemo(function(){return n.map(function(d){var h,p=[d];return!a&&c.name!==void 0&&(h=c.listName)!==null&&h!==void 0&&h.length&&p.unshift(c.listName),p.flat(1)})},[c.listName,c.name,a,n==null?void 0:n.toString()]);return U.jsx(Or.Item,G(G({},s),{},{noStyle:!0,shouldUpdate:function(h,p,m){if(typeof s.shouldUpdate=="boolean")return s.shouldUpdate;if(typeof s.shouldUpdate=="function"){var v;return(v=s.shouldUpdate)===null||v===void 0?void 0:v.call(s,h,p,m)}return u.some(function(y){return!ev(Bo(h,y),Bo(p,y))})},children:function(h){for(var p={},m=0;m<n.length;m++){var v,y=u[m],S=i[m],b=[S].flat(1),C=(v=l.getFieldFormatValueObject)===null||v===void 0?void 0:v.call(l,y);if(C&&Object.keys(C).length)p=c2e({},p,C),Bo(C,y)&&(p=ua(p,b,Bo(C,y)));else{var _;C=(_=h.getFieldValue)===null||_===void 0?void 0:_.call(h,y),typeof C<"u"&&(p=ua(p,b,C))}}return o==null?void 0:o(p,G(G({},h),l))}}))};m_e.displayName="ProFormDependency";var u7t=["children","onChange","onBlur","ignoreFormItem","valuePropName"],d7t=["children","addonAfter","addonBefore","valuePropName","addonWarpStyle","convertValue","help"],f7t=["valueType","transform","dataFormat","ignoreFormItem","lightProps","children"],h7t=ge.createContext({}),p7t=function(t){var n,r,i=t.children,o=t.onChange,a=t.onBlur;t.ignoreFormItem;var s=t.valuePropName,l=s===void 0?"value":s,c=tn(t,u7t),u=(i==null||(n=i.type)===null||n===void 0?void 0:n.displayName)!=="ProFormComponent",d=!ge.isValidElement(i),h=Md(function(){for(var b,C,_,T,x=arguments.length,E=new Array(x),k=0;k<x;k++)E[k]=arguments[k];o==null||o.apply(void 0,E),!u&&(d||(i==null||(b=i.props)===null||b===void 0||(C=b.onChange)===null||C===void 0||C.call.apply(C,[b].concat(E)),i==null||(_=i.props)===null||_===void 0||(_=_.fieldProps)===null||_===void 0||(T=_.onChange)===null||T===void 0||T.call.apply(T,[_].concat(E))))}),p=Md(function(){var b,C,_,T;if(!u&&!d){for(var x=arguments.length,E=new Array(x),k=0;k<x;k++)E[k]=arguments[k];a==null||a.apply(void 0,E),i==null||(b=i.props)===null||b===void 0||(C=b.onBlur)===null||C===void 0||C.call.apply(C,[b].concat(E)),i==null||(_=i.props)===null||_===void 0||(_=_.fieldProps)===null||_===void 0||(T=_.onBlur)===null||T===void 0||T.call.apply(T,[_].concat(E))}}),m=Rl(function(){var b;return Pr((i==null||(b=i.props)===null||b===void 0?void 0:b.fieldProps)||{},["onBlur","onChange"])},[Pr((i==null||(r=i.props)===null||r===void 0?void 0:r.fieldProps)||{},["onBlur","onChange"])]),v=t[l],y=f.useMemo(function(){if(!u&&!d)return pu(G(G(ae({id:c.id},l,v),m),{},{onBlur:p,onChange:h}))},[v,m,p,h,c.id,l]),S=f.useMemo(function(){if(!y&&ge.isValidElement(i))return function(){for(var b,C,_=arguments.length,T=new Array(_),x=0;x<_;x++)T[x]=arguments[x];o==null||o.apply(void 0,T),i==null||(b=i.props)===null||b===void 0||(C=b.onChange)===null||C===void 0||C.call.apply(C,[b].concat(T))}},[y,i,o]);return ge.isValidElement(i)?ge.cloneElement(i,pu(G(G(G({},c),{},ae({},l,t[l]),i.props),{},{onChange:S,fieldProps:y,onBlur:u&&!d&&a}))):U.jsx(U.Fragment,{children:i})},yoe=function(t){var n=t.children,r=t.addonAfter,i=t.addonBefore,o=t.valuePropName,a=t.addonWarpStyle,s=t.convertValue,l=t.help,c=tn(t,d7t),u=f.useMemo(function(){var d=function(p){var m,v=(m=s==null?void 0:s(p,c.name))!==null&&m!==void 0?m:p;return c.getValueProps?c.getValueProps(v):ae({},o||"value",v)};return!s&&!c.getValueProps&&(d=void 0),!r&&!i?U.jsx(Or.Item,G(G({},c),{},{help:typeof l!="function"?l:void 0,valuePropName:o,getValueProps:d,_internalItemRender:{mark:"pro_table_render",render:function(p,m){return U.jsxs(U.Fragment,{children:[m.input,typeof l=="function"?l({errors:p.errors,warnings:p.warnings}):m.errorList,m.extra]})}},children:n})):U.jsx(Or.Item,G(G(G({},c),{},{help:typeof l!="function"?l:void 0,valuePropName:o,_internalItemRender:{mark:"pro_table_render",render:function(p,m){return U.jsxs(U.Fragment,{children:[U.jsxs("div",{style:G({display:"flex",alignItems:"center",flexWrap:"wrap"},a),children:[i?U.jsx("div",{style:{marginInlineEnd:8},children:i}):null,m.input,r?U.jsx("div",{style:{marginInlineStart:8},children:r}):null]}),typeof l=="function"?l({errors:p.errors,warnings:p.warnings}):m.errorList,m.extra]})}}},c),{},{getValueProps:d,children:n}))},[r,i,n,s==null?void 0:s.toString(),c]);return U.jsx(h7t.Provider,{value:{name:c.name,label:c.label},children:u})},g_e=function(t){var n,r,i,o,a=(or==null||(n=or.useConfig)===null||n===void 0?void 0:n.call(or))||{componentSize:"middle"},s=a.componentSize,l=s,c=t.valueType,u=t.transform,d=t.dataFormat,h=t.ignoreFormItem,p=t.lightProps;t.children;var m=tn(t,f7t),v=f.useContext(oK),y=f.useMemo(function(){return t.name===void 0?t.name:v.name!==void 0?[v.name,t.name].flat(1):t.name},[v.name,t.name]),S=ge.useContext(SC),b=S.setFieldValueType,C=S.formItemProps;f.useEffect(function(){!b||!t.name||b([v.listName,t.name].flat(1).filter(function(M){return M!==void 0}),{valueType:c||"text",dateFormat:d,transform:u})},[v.listName,y,d,t.name,b,u,c]);var _=ge.isValidElement(t.children)&&q0t(c||t.children.props.valueType),T=f.useMemo(function(){return!!(!(p!=null&&p.light)||p!=null&&p.customLightMode||_)},[p==null?void 0:p.customLightMode,_,p==null?void 0:p.light]);if(typeof t.children=="function"){var x;return f.createElement(yoe,G(G({},m),{},{name:y,key:m.proFormFieldKey||((x=m.name)===null||x===void 0?void 0:x.toString())}),t.children)}var E=U.jsx(p7t,{valuePropName:t.valuePropName,children:t.children},m.proFormFieldKey||((r=m.name)===null||r===void 0?void 0:r.toString())),k=T?E:f.createElement(F7t,G(G({},p),{},{key:m.proFormFieldKey||((i=m.name)===null||i===void 0?void 0:i.toString()),size:l}),E);return h?U.jsx(U.Fragment,{children:k}):U.jsx(yoe,G(G(G({},C),m),{},{name:y,isListField:v.name!==void 0,children:k}),m.proFormFieldKey||((o=m.name)===null||o===void 0?void 0:o.toString()))},m7t=function(t){return ae({},t.componentCls,{"&-title":{marginBlockEnd:t.marginXL,fontWeight:"bold"},"&-container":ae({flexWrap:"wrap",maxWidth:"100%"},"> div".concat(t.antCls,"-space-item"),{maxWidth:"100%"}),"&-twoLine":ae(ae(ae(ae({display:"block",width:"100%"},"".concat(t.componentCls,"-title"),{width:"100%",margin:"8px 0"}),"".concat(t.componentCls,"-container"),{paddingInlineStart:16}),"".concat(t.antCls,"-space-item,").concat(t.antCls,"-form-item"),{width:"100%"}),"".concat(t.antCls,"-form-item"),{"&-control":{display:"flex",alignItems:"center",justifyContent:"flex-end","&-input":{alignItems:"center",justifyContent:"flex-end","&-content":{flex:"none"}}}})})};function g7t(e){return ro("ProFormGroup",function(t){var n=G(G({},t),{},{componentCls:".".concat(e)});return[m7t(n)]})}var v_e=ge.forwardRef(function(e,t){var n=ge.useContext(SC),r=n.groupProps,i=G(G({},r),e),o=i.children,a=i.collapsible,s=i.defaultCollapsed,l=i.style,c=i.labelLayout,u=i.title,d=u===void 0?e.label:u,h=i.tooltip,p=i.align,m=p===void 0?"start":p,v=i.direction,y=i.size,S=y===void 0?32:y,b=i.titleStyle,C=i.titleRender,_=i.spaceProps,T=i.extra,x=i.autoFocus,E=Jn(function(){return s||!1},{value:e.collapsed,onChange:e.onCollapse}),k=Le(E,2),M=k[0],P=k[1],D=f.useContext(or.ConfigContext),R=D.getPrefixCls,A=LV(e),H=A.ColWrapper,F=A.RowWrapper,z=R("pro-form-group"),W=g7t(z),q=W.wrapSSR,Z=W.hashId,N=a&&U.jsx(hp,{style:{marginInlineEnd:8},rotate:M?void 0:90}),B=U.jsx($0t,{label:N?U.jsxs("div",{children:[N,d]}):d,tooltip:h}),V=f.useCallback(function(ne){var ue=ne.children;return U.jsx(ma,G(G({},_),{},{className:Re("".concat(z,"-container ").concat(Z),_==null?void 0:_.className),size:S,align:m,direction:v,style:G({rowGap:0},_==null?void 0:_.style),children:ue}))},[m,z,v,Z,S,_]),Y=C?C(B,e):B,ie=f.useMemo(function(){var ne=[],ue=ge.Children.toArray(o).map(function(ye,me){var pe;return ge.isValidElement(ye)&&ye!==null&&ye!==void 0&&(pe=ye.props)!==null&&pe!==void 0&&pe.hidden?(ne.push(ye),null):me===0&&ge.isValidElement(ye)&&x?ge.cloneElement(ye,G(G({},ye.props),{},{autoFocus:x})):ye});return[U.jsx(F,{Wrapper:V,children:ue},"children"),ne.length>0?U.jsx("div",{style:{display:"none"},children:ne}):null]},[o,F,V,x]),ce=Le(ie,2),fe=ce[0],ee=ce[1];return q(U.jsx(H,{children:U.jsxs("div",{className:Re(z,Z,ae({},"".concat(z,"-twoLine"),c==="twoLine")),style:l,ref:t,children:[ee,(d||h||T)&&U.jsx("div",{className:"".concat(z,"-title ").concat(Z).trim(),style:b,onClick:function(){P(!M)},children:T?U.jsxs("div",{style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between"},children:[Y,U.jsx("span",{onClick:function(ue){return ue.stopPropagation()},children:T})]}):Y}),U.jsx("div",{style:{display:a&&M?"none":void 0},children:fe})]})}))});v_e.displayName="ProForm-Group";var v7t=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],y7t=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],b7t=function(t,n){var r=t.fieldProps,i=t.children,o=t.params,a=t.proFieldProps,s=t.mode,l=t.valueEnum,c=t.request,u=t.showSearch,d=t.options,h=tn(t,v7t),p=f.useContext(SC);return U.jsx(lg,G(G({valueEnum:aS(l),request:c,params:o,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:G({options:d,mode:s,showSearch:u,getPopupContainer:p.getPopupContainer},r),ref:n,proFieldProps:a},h),{},{children:i}))},S7t=ge.forwardRef(function(e,t){var n=e.fieldProps,r=e.children,i=e.params,o=e.proFieldProps,a=e.mode,s=e.valueEnum,l=e.request,c=e.options,u=tn(e,y7t),d=G({options:c,mode:a||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},n),h=f.useContext(SC);return U.jsx(lg,G(G({valueEnum:aS(s),request:l,params:i,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:G({getPopupContainer:h.getPopupContainer},d),ref:t,proFieldProps:o},u),{},{children:r}))}),C7t=ge.forwardRef(b7t),x7t=S7t,aK=C7t;aK.SearchSelect=x7t;aK.displayName="ProFormComponent";var w7t=function(t){var n=Vo(),r=Or.useFormInstance();if(t.render===!1)return null;var i=t.onSubmit,o=t.render,a=t.onReset,s=t.searchConfig,l=s===void 0?{}:s,c=t.submitButtonProps,u=t.resetButtonProps,d=Gf.useToken(),h=d.token,p=function(){r.submit(),i==null||i()},m=function(){r.resetFields(),a==null||a()},v=l.submitText,y=v===void 0?n.getMessage("tableForm.submit","提交"):v,S=l.resetText,b=S===void 0?n.getMessage("tableForm.reset","重置"):S,C=[];u!==!1&&C.push(f.createElement(hr,G(G({},Pr(u??{},["preventDefault"])),{},{key:"rest",onClick:function(x){var E;u!=null&&u.preventDefault||m(),u==null||(E=u.onClick)===null||E===void 0||E.call(u,x)}}),b)),c!==!1&&C.push(f.createElement(hr,G(G({type:"primary"},Pr(c||{},["preventDefault"])),{},{key:"submit",onClick:function(x){var E;c!=null&&c.preventDefault||p(),c==null||(E=c.onClick)===null||E===void 0||E.call(c,x)}}),y));var _=o?o(G(G({},t),{},{form:r,submit:p,reset:m}),C):C;return _?Array.isArray(_)?(_==null?void 0:_.length)<1?null:(_==null?void 0:_.length)===1?_[0]:U.jsx("div",{style:{display:"flex",gap:h.marginXS,alignItems:"center"},children:_}):_:null},_7t=["fieldProps","proFieldProps"],E7t=["fieldProps","proFieldProps"],kk="text",T7t=function(t){var n=t.fieldProps,r=t.proFieldProps,i=tn(t,_7t);return U.jsx(lg,G({valueType:kk,fieldProps:n,filedConfig:{valueType:kk},proFieldProps:r},i))},k7t=function(t){var n=Jn(t.open||!1,{value:t.open,onChange:t.onOpenChange}),r=Le(n,2),i=r[0],o=r[1];return U.jsx(Or.Item,{shouldUpdate:!0,noStyle:!0,children:function(s){var l,c=s.getFieldValue(t.name||[]);return U.jsx(Ou,G(G({getPopupContainer:function(d){return d&&d.parentNode?d.parentNode:d},onOpenChange:function(d){return o(d)},content:U.jsxs("div",{style:{padding:"4px 0"},children:[(l=t.statusRender)===null||l===void 0?void 0:l.call(t,c),t.strengthText?U.jsx("div",{style:{marginTop:10},children:U.jsx("span",{children:t.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},t.popoverProps),{},{open:i,children:t.children}))}})},O7t=function(t){var n=t.fieldProps,r=t.proFieldProps,i=tn(t,E7t),o=f.useState(!1),a=Le(o,2),s=a[0],l=a[1];return n!=null&&n.statusRender&&i.name?U.jsx(k7t,{name:i.name,statusRender:n==null?void 0:n.statusRender,popoverProps:n==null?void 0:n.popoverProps,strengthText:n==null?void 0:n.strengthText,open:s,onOpenChange:l,children:U.jsx("div",{children:U.jsx(lg,G({valueType:"password",fieldProps:G(G({},Pr(n,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(u){var d;n==null||(d=n.onBlur)===null||d===void 0||d.call(n,u),l(!1)},onClick:function(u){var d;n==null||(d=n.onClick)===null||d===void 0||d.call(n,u),l(!0)}}),proFieldProps:r,filedConfig:{valueType:kk}},i))})}):U.jsx(lg,G({valueType:"password",fieldProps:n,proFieldProps:r,filedConfig:{valueType:kk}},i))},ji=T7t;ji.Password=O7t;ji.displayName="ProFormComponent";var P7t=["fieldProps","proFieldProps"],M7t=function(t,n){var r=t.fieldProps,i=t.proFieldProps,o=tn(t,P7t);return U.jsx(lg,G({ref:n,valueType:"textarea",fieldProps:r,proFieldProps:i},o))};const sK=ge.forwardRef(M7t);var I7t=["children","contentRender","submitter","fieldProps","formItemProps","groupProps","transformKey","formRef","onInit","form","loading","formComponentType","extraUrlParams","syncToUrl","onUrlSearchChange","onReset","omitNil","isKeyPressSubmit","autoFocusFirstInput","grid","rowProps","colProps"],$7t=["extraUrlParams","syncToUrl","isKeyPressSubmit","syncToUrlAsImportant","syncToInitialValues","children","contentRender","submitter","fieldProps","proFieldProps","formItemProps","groupProps","dateFormatter","formRef","onInit","form","formComponentType","onReset","grid","rowProps","colProps","omitNil","request","params","initialValues","formKey","readonly","onLoadingChange","loading"],Y3=function(t,n,r){return t===!0?n:aS(t,n,r)},boe=function(t){return!t||Array.isArray(t)?t:[t]};function R7t(e){var t,n=e.children,r=e.contentRender,i=e.submitter;e.fieldProps,e.formItemProps,e.groupProps;var o=e.transformKey,a=e.formRef,s=e.onInit,l=e.form,c=e.loading;e.formComponentType;var u=e.extraUrlParams,d=u===void 0?{}:u,h=e.syncToUrl,p=e.onUrlSearchChange,m=e.onReset,v=e.omitNil,y=v===void 0?!0:v;e.isKeyPressSubmit;var S=e.autoFocusFirstInput,b=S===void 0?!0:S,C=e.grid,_=e.rowProps,T=e.colProps,x=tn(e,I7t),E=Or.useFormInstance(),k=(or==null||(t=or.useConfig)===null||t===void 0?void 0:t.call(or))||{componentSize:"middle"},M=k.componentSize,P=f.useRef(l||E),D=LV({grid:C,rowProps:_}),R=D.RowWrapper,A=Md(function(){return E}),H=f.useMemo(function(){return{getFieldsFormatValue:function(B){var V;return o((V=A())===null||V===void 0?void 0:V.getFieldsValue(B),y)},getFieldFormatValue:function(){var B,V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Y=boe(V);if(!Y)throw new Error("nameList is require");var ie=(B=A())===null||B===void 0?void 0:B.getFieldValue(Y),ce=Y?ua({},Y,ie):ie,fe=pt(Y);return fe.shift(),Bo(o(ce,y,fe),Y)},getFieldFormatValueObject:function(B){var V,Y=boe(B),ie=(V=A())===null||V===void 0?void 0:V.getFieldValue(Y),ce=Y?ua({},Y,ie):ie;return o(ce,y,Y)},validateFieldsReturnFormatValue:function(){var N=Jo(Hr().mark(function V(Y){var ie,ce,fe;return Hr().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:if(!(!Array.isArray(Y)&&Y)){ne.next=2;break}throw new Error("nameList must be array");case 2:return ne.next=4,(ie=A())===null||ie===void 0?void 0:ie.validateFields(Y);case 4:return ce=ne.sent,fe=o(ce,y),ne.abrupt("return",fe||{});case 7:case"end":return ne.stop()}},V)}));function B(V){return N.apply(this,arguments)}return B}()}},[y,o]),F=f.useMemo(function(){return ge.Children.toArray(n).map(function(N,B){return B===0&&ge.isValidElement(N)&&b?ge.cloneElement(N,G(G({},N.props),{},{autoFocus:b})):N})},[b,n]),z=f.useMemo(function(){return typeof i=="boolean"||!i?{}:i},[i]),W=f.useMemo(function(){if(i!==!1)return U.jsx(w7t,G(G({},z),{},{onReset:function(){var B,V,Y=o((B=P.current)===null||B===void 0?void 0:B.getFieldsValue(),y);if(z==null||(V=z.onReset)===null||V===void 0||V.call(z,Y),m==null||m(Y),h){var ie,ce=Object.keys(o((ie=P.current)===null||ie===void 0?void 0:ie.getFieldsValue(),!1)).reduce(function(fe,ee){return G(G({},fe),{},ae({},ee,Y[ee]||void 0))},d);p(Y3(h,ce||{},"set"))}},submitButtonProps:G({loading:c},z.submitButtonProps)}),"submitter")},[i,z,c,o,y,m,h,d,p]),q=f.useMemo(function(){var N=C?U.jsx(R,{children:F}):F;return r?r(N,W,P.current):N},[C,R,F,r,W]),Z=K0t(e.initialValues);return f.useEffect(function(){if(!(h||!e.initialValues||!Z||x.request)){var N=ev(e.initialValues,Z);f9(N,"initialValues 只在 form 初始化时生效,如果你需要异步加载推荐使用 request,或者 initialValues ? <Form/> : null "),f9(N,"The initialValues only take effect when the form is initialized, if you need to load asynchronously recommended request, or the initialValues ? <Form/> : null ")}},[e.initialValues]),f.useImperativeHandle(a,function(){return G(G({},P.current),H)},[H,P.current]),f.useEffect(function(){var N,B,V=o((N=P.current)===null||N===void 0||(B=N.getFieldsValue)===null||B===void 0?void 0:B.call(N,!0),y);s==null||s(V,G(G({},P.current),H))},[]),U.jsx(i2e.Provider,{value:G(G({},H),{},{formRef:P}),children:U.jsx(or,{componentSize:x.size||M,children:U.jsxs(dwe.Provider,{value:{grid:C,colProps:T},children:[x.component!==!1&&U.jsx("input",{type:"text",style:{display:"none"}}),q]})})})}var Soe=0;function A7t(e){var t=e.extraUrlParams,n=t===void 0?{}:t,r=e.syncToUrl,i=e.isKeyPressSubmit,o=e.syncToUrlAsImportant,a=o===void 0?!1:o,s=e.syncToInitialValues,l=s===void 0?!0:s;e.children,e.contentRender,e.submitter;var c=e.fieldProps,u=e.proFieldProps,d=e.formItemProps,h=e.groupProps,p=e.dateFormatter,m=p===void 0?"string":p,v=e.formRef;e.onInit;var y=e.form,S=e.formComponentType;e.onReset,e.grid,e.rowProps,e.colProps;var b=e.omitNil,C=b===void 0?!0:b,_=e.request,T=e.params,x=e.initialValues,E=e.formKey,k=E===void 0?Soe:E;e.readonly;var M=e.onLoadingChange,P=e.loading,D=tn(e,$7t),R=f.useRef({}),A=Jn(!1,{onChange:M,value:P}),H=Le(A,2),F=H[0],z=H[1],W=bwt({},{disabled:!r}),q=Le(W,2),Z=q[0],N=q[1],B=f.useRef(dk());f.useEffect(function(){Soe+=0},[]);var V=V0t({request:_,params:T,proFieldKey:k}),Y=Le(V,1),ie=Y[0],ce=f.useContext(or.ConfigContext),fe=ce.getPrefixCls,ee=fe("pro-form"),ne=ro("ProForm",function(Te){return ae({},".".concat(ee),ae({},"> div:not(".concat(Te.proComponentsCls,"-form-light-filter)"),{".pro-field":{maxWidth:"100%","@media screen and (max-width: 575px)":{maxWidth:"calc(93vw - 48px)"},"&-xs":{width:104},"&-s":{width:216},"&-sm":{width:216},"&-m":{width:328},"&-md":{width:328},"&-l":{width:440},"&-lg":{width:440},"&-xl":{width:552}}}))}),ue=ne.wrapSSR,ye=ne.hashId,me=f.useState(function(){return r?Y3(r,Z,"get"):{}}),pe=Le(me,2),he=pe[0],_e=pe[1],le=f.useRef({}),xe=f.useRef({}),we=Md(function(Te,ke,Pe){return NSt(D0t(Te,m,xe.current,ke,Pe),le.current,ke)});f.useEffect(function(){l||_e({})},[l]);var De=Md(function(){return G(G({},Z),n)});f.useEffect(function(){r&&N(Y3(r,De(),"set"))},[n,De,r]);var Fe=f.useMemo(function(){if(!(typeof window>"u")&&S&&["DrawerForm"].includes(S))return function(Te){return Te.parentNode||document.body}},[S]),Ce=Md(Jo(Hr().mark(function Te(){var ke,Pe,Ne,We,Q,K,J;return Hr().wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:if(D.onFinish){Oe.next=2;break}return Oe.abrupt("return");case 2:if(!F){Oe.next=4;break}return Oe.abrupt("return");case 4:return Oe.prev=4,Ne=R==null||(ke=R.current)===null||ke===void 0||(Pe=ke.getFieldsFormatValue)===null||Pe===void 0?void 0:Pe.call(ke),We=D.onFinish(Ne),We instanceof Promise&&z(!0),Oe.next=10,We;case 10:r&&(J=Object.keys(R==null||(Q=R.current)===null||Q===void 0||(K=Q.getFieldsFormatValue)===null||K===void 0?void 0:K.call(Q,void 0,!1)).reduce(function(Se,Ke){var tt;return G(G({},Se),{},ae({},Ke,(tt=Ne[Ke])!==null&&tt!==void 0?tt:void 0))},n),Object.keys(Z).forEach(function(Se){J[Se]!==!1&&J[Se]!==0&&!J[Se]&&(J[Se]=void 0)}),N(Y3(r,J,"set"))),z(!1),Oe.next=18;break;case 14:Oe.prev=14,Oe.t0=Oe.catch(4),console.log(Oe.t0),z(!1);case 18:case"end":return Oe.stop()}},Te,null,[[4,14]])})));return f.useImperativeHandle(v,function(){return R.current},[!ie]),!ie&&e.request?U.jsx("div",{style:{paddingTop:50,paddingBottom:50,textAlign:"center"},children:U.jsx(Cl,{})}):ue(U.jsx(rK.Provider,{value:{mode:e.readonly?"read":"edit"},children:U.jsx(LP,{needDeps:!0,children:U.jsx(SC.Provider,{value:{formRef:R,fieldProps:c,proFieldProps:u,formItemProps:d,groupProps:h,formComponentType:S,getPopupContainer:Fe,formKey:B.current,setFieldValueType:function(ke,Pe){var Ne=Pe.valueType,We=Ne===void 0?"text":Ne,Q=Pe.dateFormat,K=Pe.transform;Array.isArray(ke)&&(le.current=ua(le.current,ke,K),xe.current=ua(xe.current,ke,{valueType:We,dateFormat:Q}))}},children:U.jsx(oK.Provider,{value:{},children:U.jsx(Or,G(G({onKeyPress:function(ke){if(i&&ke.key==="Enter"){var Pe;(Pe=R.current)===null||Pe===void 0||Pe.submit()}},autoComplete:"off",form:y},Pr(D,["ref","labelWidth","autoFocusFirstInput"])),{},{ref:function(ke){R.current&&(R.current.nativeElement=ke==null?void 0:ke.nativeElement)},initialValues:a?G(G(G({},x),ie),he):G(G(G({},he),x),ie),onValuesChange:function(ke,Pe){var Ne;D==null||(Ne=D.onValuesChange)===null||Ne===void 0||Ne.call(D,we(ke,!!C),we(Pe,!!C))},className:Re(e.className,ee,ye),onFinish:Ce,children:U.jsx(R7t,G(G({transformKey:we,autoComplete:"off",loading:F,onUrlSearchChange:N},e),{},{formRef:R,initialValues:G(G({},x),ie)}))}))})})})}))}var N7t=function(t){return ae(ae({},"".concat(t.componentCls,"-collapse-label"),{paddingInline:1,paddingBlock:1}),"".concat(t.componentCls,"-container"),ae({},"".concat(t.antCls,"-form-item"),{marginBlockEnd:0}))};function D7t(e){return ro("LightWrapper",function(t){var n=G(G({},t),{},{componentCls:".".concat(e)});return[N7t(n)]})}var L7t=["label","size","disabled","onChange","className","style","children","valuePropName","placeholder","labelFormatter","bordered","footerRender","allowClear","otherFieldProps","valueType","placement"],F7t=function(t){var n=t.label,r=t.size,i=t.disabled,o=t.onChange,a=t.className,s=t.style,l=t.children,c=t.valuePropName,u=t.placeholder,d=t.labelFormatter,h=t.bordered,p=t.footerRender,m=t.allowClear,v=t.otherFieldProps,y=t.valueType,S=t.placement,b=tn(t,L7t),C=f.useContext(or.ConfigContext),_=C.getPrefixCls,T=_("pro-field-light-wrapper"),x=D7t(T),E=x.wrapSSR,k=x.hashId,M=f.useState(t[c]),P=Le(M,2),D=P[0],R=P[1],A=Jn(!1),H=Le(A,2),F=H[0],z=H[1],W=function(){for(var B,V=arguments.length,Y=new Array(V),ie=0;ie<V;ie++)Y[ie]=arguments[ie];v==null||(B=v.onChange)===null||B===void 0||B.call.apply(B,[v].concat(Y)),o==null||o.apply(void 0,Y)},q=t[c],Z=f.useMemo(function(){var N;return q&&(y!=null&&(N=y.toLowerCase())!==null&&N!==void 0&&N.endsWith("range")&&y!=="digitRange"&&!d?L0t(q,a2e[y]||"YYYY-MM-DD"):Array.isArray(q)?q.map(function(B){return ln(B)==="object"&&B.label&&B.value?B.label:B}):q)},[q,y,d]);return E(U.jsx(P0t,{disabled:i,open:F,onOpenChange:z,placement:S,label:U.jsx($p,{ellipsis:!0,size:r,onClear:function(){W==null||W(),R(null)},bordered:h,style:s,className:a,label:n,placeholder:u,value:Z,disabled:i,formatter:d,allowClear:m}),footer:{onClear:function(){return R(null)},onConfirm:function(){W==null||W(D),z(!1)}},footerRender:p,children:U.jsx("div",{className:Re("".concat(T,"-container"),k,a),style:s,children:ge.cloneElement(l,G(G({},b),{},ae(ae({},c,D),"onChange",function(B){R(B!=null&&B.target?B.target.value:B)}),l.props))})}))};function ai(e){return U.jsx(A7t,G({layout:"vertical",contentRender:function(n,r){return U.jsxs(U.Fragment,{children:[n,r]})}},e))}ai.Group=v_e;ai.useForm=Or.useForm;ai.Item=g_e;ai.useWatch=Or.useWatch;ai.ErrorList=Or.ErrorList;ai.Provider=Or.Provider;ai.useFormInstance=Or.useFormInstance;ai.EditOrReadOnlyContext=rK;var j7t=function(t){return ae(ae({},t.componentCls,{"&-container":{display:"flex",flex:"1",flexDirection:"column",height:"100%",paddingInline:32,paddingBlock:24,overflow:"auto",background:"inherit"},"&-top":{textAlign:"center"},"&-header":{display:"flex",alignItems:"center",justifyContent:"center",height:"44px",lineHeight:"44px",a:{textDecoration:"none"}},"&-title":{position:"relative",insetBlockStart:"2px",color:"@heading-color",fontWeight:"600",fontSize:"33px"},"&-logo":{width:"44px",height:"44px",marginInlineEnd:"16px",verticalAlign:"top",img:{width:"100%"}},"&-desc":{marginBlockStart:"12px",marginBlockEnd:"40px",color:t.colorTextSecondary,fontSize:t.fontSize},"&-main":{minWidth:"328px",maxWidth:"580px",margin:"0 auto","&-other":{marginBlockStart:"24px",lineHeight:"22px",textAlign:"start"}}}),"@media (min-width: @screen-md-min)",ae({},"".concat(t.componentCls,"-container"),{paddingInline:0,paddingBlockStart:32,paddingBlockEnd:24,backgroundRepeat:"no-repeat",backgroundPosition:"center 110px",backgroundSize:"100%"}))};function B7t(e){return ro("LoginForm",function(t){var n=G(G({},t),{},{componentCls:".".concat(e)});return[j7t(n)]})}var H7t=["logo","message","contentStyle","title","subTitle","actions","children","containerStyle","otherStyle"];function y_e(e){var t,n=e.logo,r=e.message,i=e.contentStyle,o=e.title,a=e.subTitle,s=e.actions,l=e.children,c=e.containerStyle,u=e.otherStyle,d=tn(e,H7t),h=Vo(),p=d.submitter===!1?!1:G(G({searchConfig:{submitText:h.getMessage("loginForm.submitText","登录")}},d.submitter),{},{submitButtonProps:G({size:"large",style:{width:"100%"}},(t=d.submitter)===null||t===void 0?void 0:t.submitButtonProps),render:function(x,E){var k,M=E.pop();if(typeof(d==null||(k=d.submitter)===null||k===void 0?void 0:k.render)=="function"){var P,D;return d==null||(P=d.submitter)===null||P===void 0||(D=P.render)===null||D===void 0?void 0:D.call(P,x,E)}return M}}),m=f.useContext(or.ConfigContext),v=m.getPrefixCls("pro-form-login"),y=B7t(v),S=y.wrapSSR,b=y.hashId,C=function(x){return"".concat(v,"-").concat(x," ").concat(b)},_=f.useMemo(function(){return n?typeof n=="string"?U.jsx("img",{src:n}):n:null},[n]);return S(U.jsxs("div",{className:Re(C("container"),b),style:c,children:[U.jsxs("div",{className:"".concat(C("top")," ").concat(b).trim(),children:[o||_?U.jsxs("div",{className:"".concat(C("header")),children:[_?U.jsx("span",{className:C("logo"),children:_}):null,o?U.jsx("span",{className:C("title"),children:o}):null]}):null,a?U.jsx("div",{className:C("desc"),children:a}):null]}),U.jsxs("div",{className:C("main"),style:G({width:328},i),children:[U.jsxs(ai,G(G({isKeyPressSubmit:!0},d),{},{submitter:p,children:[r,l]})),s?U.jsx("div",{className:C("main-other"),style:u,children:s}):null]})]}))}var Coe=f.createContext({}),b_e={exports:{}};(function(e){var t=jv.default;function n(i){if(typeof WeakMap!="function")return null;var o=new WeakMap,a=new WeakMap;return(n=function(l){return l?a:o})(i)}function r(i,o){if(!o&&i&&i.__esModule)return i;if(i===null||t(i)!="object"&&typeof i!="function")return{default:i};var a=n(o);if(a&&a.has(i))return a.get(i);var s={__proto__:null},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in i)if(c!=="default"&&{}.hasOwnProperty.call(i,c)){var u=l?Object.getOwnPropertyDescriptor(i,c):null;u&&(u.get||u.set)?Object.defineProperty(s,c,u):s[c]=i[c]}return s.default=i,a&&a.set(i,s),s}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(b_e);var ya=b_e.exports,S_e={exports:{}};(function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var o in i)({}).hasOwnProperty.call(i,o)&&(n[o]=i[o])}return n},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(S_e);var nM=S_e.exports,PC={},C_e={exports:{}},x_e={exports:{}};(function(e){function t(n){if(Array.isArray(n))return n}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(x_e);var w_e=x_e.exports,__e={exports:{}};(function(e){function t(n,r){var i=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(i!=null){var o,a,s,l,c=[],u=!0,d=!1;try{if(s=(i=i.call(n)).next,r===0){if(Object(i)!==i)return;u=!1}else for(;!(u=(o=s.call(i)).done)&&(c.push(o.value),c.length!==r);u=!0);}catch(h){d=!0,a=h}finally{try{if(!u&&i.return!=null&&(l=i.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(__e);var z7t=__e.exports,E_e={exports:{}},T_e={exports:{}};(function(e){function t(n,r){(r==null||r>n.length)&&(r=n.length);for(var i=0,o=Array(r);i<r;i++)o[i]=n[i];return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(T_e);var k_e=T_e.exports;(function(e){var t=k_e;function n(r,i){if(r){if(typeof r=="string")return t(r,i);var o={}.toString.call(r).slice(8,-1);return o==="Object"&&r.constructor&&(o=r.constructor.name),o==="Map"||o==="Set"?Array.from(r):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?t(r,i):void 0}}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(E_e);var lK=E_e.exports,O_e={exports:{}};(function(e){function t(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(O_e);var P_e=O_e.exports;(function(e){var t=w_e,n=z7t,r=lK,i=P_e;function o(a,s){return t(a)||n(a,s)||r(a,s)||i()}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports})(C_e);var M_e=C_e.exports,I_e={exports:{}},$_e={exports:{}};(function(e){function t(n,r){if(n==null)return{};var i={};for(var o in n)if({}.hasOwnProperty.call(n,o)){if(r.includes(o))continue;i[o]=n[o]}return i}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})($_e);var U7t=$_e.exports;(function(e){var t=U7t;function n(r,i){if(r==null)return{};var o,a,s=t(r,i);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(r);for(a=0;a<l.length;a++)o=l[a],i.includes(o)||{}.propertyIsEnumerable.call(r,o)&&(s[o]=r[o])}return s}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(I_e);var R_e=I_e.exports;const s4=Y_(TBe);var MC={};Object.defineProperty(MC,"__esModule",{value:!0});MC.default=void 0;var W7t=f,V7t=(0,W7t.createContext)({});MC.default=V7t;var l4={},Gs={},o0={},rM={};Object.defineProperty(rM,"__esModule",{value:!0});rM.default=K7t;function K7t(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var cK={};Object.defineProperty(cK,"__esModule",{value:!0});cK.default=q7t;function q7t(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 uK=Vr.default;Object.defineProperty(o0,"__esModule",{value:!0});o0.clearContainerCache=eDt;o0.injectCSS=fK;o0.removeCSS=Z7t;o0.updateCSS=tDt;var xoe=uK(Bv),G7t=uK(rM),Y7t=uK(cK),woe="data-rc-order",_oe="data-rc-priority",X7t="rc-util-key",Ok=new Map;function A_e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):X7t}function iM(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function Q7t(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function dK(e){return Array.from((Ok.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function fK(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(0,G7t.default)())return null;var n=t.csp,r=t.prepend,i=t.priority,o=i===void 0?0:i,a=Q7t(r),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(woe,a),s&&o&&l.setAttribute(_oe,"".concat(o)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=iM(t),u=c.firstChild;if(r){if(s){var d=(t.styles||dK(c)).filter(function(h){if(!["prepend","prependQueue"].includes(h.getAttribute(woe)))return!1;var p=Number(h.getAttribute(_oe)||0);return o>=p});if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function N_e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=iM(t);return(t.styles||dK(n)).find(function(r){return r.getAttribute(A_e(t))===e})}function Z7t(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=N_e(e,t);if(n){var r=iM(t);r.removeChild(n)}}function J7t(e,t){var n=Ok.get(e);if(!n||!(0,Y7t.default)(document,n)){var r=fK("",t),i=r.parentNode;Ok.set(e,i),e.removeChild(r)}}function eDt(){Ok.clear()}function tDt(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=iM(n),i=dK(r),o=(0,xoe.default)((0,xoe.default)({},n),{},{styles:i});J7t(r,o);var a=N_e(t,o);if(a){var s,l;if((s=o.csp)!==null&&s!==void 0&&s.nonce&&a.nonce!==((l=o.csp)===null||l===void 0?void 0:l.nonce)){var c;a.nonce=(c=o.csp)===null||c===void 0?void 0:c.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var u=fK(e,o);return u.setAttribute(A_e(o),t),u}var oM={};Object.defineProperty(oM,"__esModule",{value:!0});oM.getShadowRoot=nDt;oM.inShadow=L_e;function D_e(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function L_e(e){return D_e(e)instanceof ShadowRoot}function nDt(e){return L_e(e)?D_e(e):null}var Ql={};Object.defineProperty(Ql,"__esModule",{value:!0});Ql.call=hK;Ql.default=void 0;Ql.note=j_e;Ql.noteOnce=H_e;Ql.preMessage=void 0;Ql.resetWarned=B_e;Ql.warning=F_e;Ql.warningOnce=c4;var dB={},rDt=Ql.preMessage=function(t){};function F_e(e,t){}function j_e(e,t){}function B_e(){dB={}}function hK(e,t,n){!t&&!dB[n]&&(e(!1,n),dB[n]=!0)}function c4(e,t){hK(F_e,e,t)}function H_e(e,t){hK(j_e,e,t)}c4.preMessage=rDt;c4.resetWarned=B_e;c4.noteOnce=H_e;Ql.default=c4;var iDt=ya.default,aM=Vr.default;Object.defineProperty(Gs,"__esModule",{value:!0});Gs.generate=hB;Gs.getSecondaryColor=hDt;Gs.iconStyles=void 0;Gs.isIconDefinition=fDt;Gs.normalizeAttrs=fB;Gs.normalizeTwoToneColors=pDt;Gs.useInsertStyles=Gs.svgBaseProps=void 0;Gs.warning=dDt;var zA=aM(Bv),Eoe=aM(jv),oDt=s4,aDt=o0,sDt=oM,lDt=aM(Ql),Pk=iDt(f),cDt=aM(MC);function uDt(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function dDt(e,t){(0,lDt.default)(e,"[@ant-design/icons] ".concat(t))}function fDt(e){return(0,Eoe.default)(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&((0,Eoe.default)(e.icon)==="object"||typeof e.icon=="function")}function fB(){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[uDt(n)]=r}return t},{})}function hB(e,t,n){return n?Pk.default.createElement(e.tag,(0,zA.default)((0,zA.default)({key:t},fB(e.attrs)),n),(e.children||[]).map(function(r,i){return hB(r,"".concat(t,"-").concat(e.tag,"-").concat(i))})):Pk.default.createElement(e.tag,(0,zA.default)({key:t},fB(e.attrs)),(e.children||[]).map(function(r,i){return hB(r,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function hDt(e){return(0,oDt.generate)(e)[0]}function pDt(e){return e?Array.isArray(e)?e:[e]:[]}Gs.svgBaseProps={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"};var mDt=Gs.iconStyles=`
|
||
.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);
|
||
}
|
||
}
|
||
`;Gs.useInsertStyles=function(t){var n=(0,Pk.useContext)(cDt.default),r=n.csp,i=n.prefixCls,o=n.layer,a=mDt;i&&(a=a.replace(/anticon/g,i)),o&&(a="@layer ".concat(o,` {
|
||
`).concat(a,`
|
||
}`)),(0,Pk.useEffect)(function(){var s=t.current,l=(0,sDt.getShadowRoot)(s);(0,aDt.updateCSS)(a,"@ant-design-icons",{prepend:!0,csp:r,attachTo:l})},[])};var z_e=Vr.default,gDt=ya.default;Object.defineProperty(l4,"__esModule",{value:!0});l4.default=void 0;var vDt=z_e(R_e),I2=z_e(Bv),yDt=gDt(f),l1=Gs,bDt=["icon","className","onClick","style","primaryColor","secondaryColor"],cw={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function SDt(e){var t=e.primaryColor,n=e.secondaryColor;cw.primaryColor=t,cw.secondaryColor=n||(0,l1.getSecondaryColor)(t),cw.calculated=!!n}function CDt(){return(0,I2.default)({},cw)}var sM=function(t){var n=t.icon,r=t.className,i=t.onClick,o=t.style,a=t.primaryColor,s=t.secondaryColor,l=(0,vDt.default)(t,bDt),c=yDt.useRef(),u=cw;if(a&&(u={primaryColor:a,secondaryColor:s||(0,l1.getSecondaryColor)(a)}),(0,l1.useInsertStyles)(c),(0,l1.warning)((0,l1.isIconDefinition)(n),"icon should be icon definiton, but got ".concat(n)),!(0,l1.isIconDefinition)(n))return null;var d=n;return d&&typeof d.icon=="function"&&(d=(0,I2.default)((0,I2.default)({},d),{},{icon:d.icon(u.primaryColor,u.secondaryColor)})),(0,l1.generate)(d.icon,"svg-".concat(d.name),(0,I2.default)((0,I2.default)({className:r,onClick:i,style:o,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};sM.displayName="IconReact";sM.getTwoToneColors=CDt;sM.setTwoToneColors=SDt;l4.default=sM;var lM={},U_e=Vr.default;Object.defineProperty(lM,"__esModule",{value:!0});lM.getTwoToneColor=EDt;lM.setTwoToneColor=_Dt;var xDt=U_e(M_e),W_e=U_e(l4),wDt=Gs;function _Dt(e){var t=(0,wDt.normalizeTwoToneColors)(e),n=(0,xDt.default)(t,2),r=n[0],i=n[1];return W_e.default.setTwoToneColors({primaryColor:r,secondaryColor:i})}function EDt(){var e=W_e.default.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var a0=Vr.default,TDt=ya.default;Object.defineProperty(PC,"__esModule",{value:!0});PC.default=void 0;var kDt=a0(nM),ODt=a0(M_e),Toe=a0(rhe),PDt=a0(R_e),S5=TDt(f),MDt=a0(oO),IDt=s4,$Dt=a0(MC),RDt=a0(l4),pK=lM,ADt=Gs,NDt=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];(0,pK.setTwoToneColor)(IDt.blue.primary);var cM=S5.forwardRef(function(e,t){var n=e.className,r=e.icon,i=e.spin,o=e.rotate,a=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=(0,PDt.default)(e,NDt),u=S5.useContext($Dt.default),d=u.prefixCls,h=d===void 0?"anticon":d,p=u.rootClassName,m=(0,MDt.default)(p,h,(0,Toe.default)((0,Toe.default)({},"".concat(h,"-").concat(r.name),!!r.name),"".concat(h,"-spin"),!!i||r.name==="loading"),n),v=a;v===void 0&&s&&(v=-1);var y=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,S=(0,ADt.normalizeTwoToneColors)(l),b=(0,ODt.default)(S,2),C=b[0],_=b[1];return S5.createElement("span",(0,kDt.default)({role:"img","aria-label":r.name},c,{ref:t,tabIndex:v,onClick:s,className:m}),S5.createElement(RDt.default,{icon:r,primaryColor:C,secondaryColor:_,style:y}))});cM.displayName="AntdIcon";cM.getTwoToneColor=pK.getTwoToneColor;cM.setTwoToneColor=pK.setTwoToneColor;PC.default=cM;var DDt=["isLoading","pastDelay","timedOut","error","retry"],LDt=function(t){t.isLoading,t.pastDelay,t.timedOut,t.error,t.retry;var n=tn(t,DDt);return U.jsx("div",{style:{paddingBlockStart:100,textAlign:"center"},children:U.jsx(Cl,G({size:"large"},n))})},FDt=function(t){return ae({},t.componentCls,{marginBlock:0,marginBlockStart:48,marginBlockEnd:24,marginInline:0,paddingBlock:0,paddingInline:16,textAlign:"center","&-list":{marginBlockEnd:8,color:t.colorTextSecondary,"&-link":{color:t.colorTextSecondary,textDecoration:t.linkDecoration},"*:not(:last-child)":{marginInlineEnd:8},"&:hover":{color:t.colorPrimary}},"&-copyright":{fontSize:"14px",color:t.colorText}})};function jDt(e){return ro("ProLayoutFooter",function(t){var n=G(G({},t),{},{componentCls:".".concat(e)});return[FDt(n)]})}var BDt=function(t){var n=t.className,r=t.prefixCls,i=t.links,o=t.copyright,a=t.style,s=f.useContext(or.ConfigContext),l=s.getPrefixCls(r||"pro-global-footer"),c=jDt(l),u=c.wrapSSR,d=c.hashId;return(i==null||i===!1||Array.isArray(i)&&i.length===0)&&(o==null||o===!1)?null:u(U.jsxs("div",{className:Re(l,d,n),style:a,children:[i&&U.jsx("div",{className:"".concat(l,"-list ").concat(d).trim(),children:i.map(function(h){return U.jsx("a",{className:"".concat(l,"-list-link ").concat(d).trim(),title:h.key,target:h.blankTarget?"_blank":"_self",href:h.href,rel:"noreferrer",children:h.title},h.key)})}),o&&U.jsx("div",{className:"".concat(l,"-copyright ").concat(d).trim(),children:o})]}))},HDt=xo.Footer,zDt=function(t){var n=t.links,r=t.copyright,i=t.style,o=t.className,a=t.prefixCls;return U.jsx(HDt,{className:o,style:G({padding:0},i),children:U.jsx(BDt,{links:n,prefixCls:a,copyright:r===!1?null:U.jsxs(f.Fragment,{children:[U.jsx(alt,{})," ",r]})})})},koe=function e(t){return(t||[]).reduce(function(n,r){if(r.key&&n.push(r.key),r.children||r.routes){var i=n.concat(e(r.children||r.routes)||[]);return i}return n},[])};function uM(e){return e.map(function(t){var n=t.children||[],r=G({},t);if(!r.children&&r.routes&&(r.children=r.routes),!r.name||r.hideInMenu)return null;if(r&&r!==null&&r!==void 0&&r.children){if(!r.hideChildrenInMenu&&n.some(function(i){return i&&i.name&&!i.hideInMenu}))return G(G({},t),{},{children:uM(n)});delete r.children}return delete r.routes,r}).filter(function(t){return t})}var UDt=function(){return U.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:U.jsx("path",{d:"M0 0h3v3H0V0zm4.5 0h3v3h-3V0zM9 0h3v3H9V0zM0 4.5h3v3H0v-3zm4.503 0h3v3h-3v-3zM9 4.5h3v3H9v-3zM0 9h3v3H0V9zm4.503 0h3v3h-3V9zM9 9h3v3H9V9z"})})},WDt=function e(t){var n=t.appList,r=t.baseClassName,i=t.hashId,o=t.itemClick;return U.jsx("div",{className:"".concat(r,"-content ").concat(i).trim(),children:U.jsx("ul",{className:"".concat(r,"-content-list ").concat(i).trim(),children:n==null?void 0:n.map(function(a,s){var l;return a!=null&&(l=a.children)!==null&&l!==void 0&&l.length?U.jsxs("div",{className:"".concat(r,"-content-list-item-group ").concat(i).trim(),children:[U.jsx("div",{className:"".concat(r,"-content-list-item-group-title ").concat(i).trim(),children:a.title}),U.jsx(e,{hashId:i,itemClick:o,appList:a==null?void 0:a.children,baseClassName:r})]},s):U.jsx("li",{className:"".concat(r,"-content-list-item ").concat(i).trim(),onClick:function(u){u.stopPropagation(),o==null||o(a)},children:U.jsxs("a",{href:o?void 0:a.url,target:a.target,rel:"noreferrer",children:[mK(a.icon),U.jsxs("div",{children:[U.jsx("div",{children:a.title}),a.desc?U.jsx("span",{children:a.desc}):null]})]})},s)})})})},VDt=function(t,n){if(t&&typeof t=="string"&&OV(t))return U.jsx("img",{src:t,alt:"logo"});if(typeof t=="function")return t();if(t&&typeof t=="string")return U.jsx("div",{id:"avatarLogo",children:t});if(!t&&n&&typeof n=="string"){var r=n.substring(0,1);return U.jsx("div",{id:"avatarLogo",children:r})}return t},KDt=function e(t){var n=t.appList,r=t.baseClassName,i=t.hashId,o=t.itemClick;return U.jsx("div",{className:"".concat(r,"-content ").concat(i).trim(),children:U.jsx("ul",{className:"".concat(r,"-content-list ").concat(i).trim(),children:n==null?void 0:n.map(function(a,s){var l;return a!=null&&(l=a.children)!==null&&l!==void 0&&l.length?U.jsxs("div",{className:"".concat(r,"-content-list-item-group ").concat(i).trim(),children:[U.jsx("div",{className:"".concat(r,"-content-list-item-group-title ").concat(i).trim(),children:a.title}),U.jsx(e,{hashId:i,itemClick:o,appList:a==null?void 0:a.children,baseClassName:r})]},s):U.jsx("li",{className:"".concat(r,"-content-list-item ").concat(i).trim(),onClick:function(u){u.stopPropagation(),o==null||o(a)},children:U.jsxs("a",{href:o?"javascript:;":a.url,target:a.target,rel:"noreferrer",children:[VDt(a.icon,a.title),U.jsx("div",{children:U.jsx("div",{children:a.title})})]})},s)})})})},qDt=function(t){return{"&-content":{maxHeight:"calc(100vh - 48px)",overflow:"auto","&-list":{boxSizing:"content-box",maxWidth:656,marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none","&-item":{position:"relative",display:"inline-block",width:328,height:72,paddingInline:16,paddingBlock:16,verticalAlign:"top",listStyleType:"none",transition:"transform 0.2s cubic-bezier(0.333, 0, 0, 1)",borderRadius:t.borderRadius,"&-group":{marginBottom:16,"&-title":{margin:"16px 0 8px 12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginTop:12}}},"&:hover":{backgroundColor:t.colorBgTextHover},"* div":kA==null?void 0:kA(t),a:{display:"flex",height:"100%",fontSize:12,textDecoration:"none","& > img":{width:40,height:40},"& > div":{marginInlineStart:14,color:t.colorTextHeading,fontSize:14,lineHeight:"22px",whiteSpace:"nowrap",textOverflow:"ellipsis"},"& > div > span":{color:t.colorTextSecondary,fontSize:12,lineHeight:"20px"}}}}}}},GDt=function(t){return{"&-content":{maxHeight:"calc(100vh - 48px)",overflow:"auto","&-list":{boxSizing:"border-box",maxWidth:376,marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none","&-item":{position:"relative",display:"inline-block",width:104,height:104,marginBlock:8,marginInline:8,paddingInline:24,paddingBlock:24,verticalAlign:"top",listStyleType:"none",transition:"transform 0.2s cubic-bezier(0.333, 0, 0, 1)",borderRadius:t.borderRadius,"&-group":{marginBottom:16,"&-title":{margin:"16px 0 8px 12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginTop:12}}},"&:hover":{backgroundColor:t.colorBgTextHover},a:{display:"flex",flexDirection:"column",alignItems:"center",height:"100%",fontSize:12,textDecoration:"none","& > #avatarLogo":{width:40,height:40,margin:"0 auto",color:t.colorPrimary,fontSize:22,lineHeight:"40px",textAlign:"center",backgroundImage:"linear-gradient(180deg, #E8F0FB 0%, #F6F8FC 100%)",borderRadius:t.borderRadius},"& > img":{width:40,height:40},"& > div":{marginBlockStart:5,marginInlineStart:0,color:t.colorTextHeading,fontSize:14,lineHeight:"22px",whiteSpace:"nowrap",textOverflow:"ellipsis"},"& > div > span":{color:t.colorTextSecondary,fontSize:12,lineHeight:"20px"}}}}}}},YDt=function(t){var n,r,i,o,a;return ae({},t.componentCls,{"&-icon":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingInline:4,paddingBlock:0,fontSize:14,lineHeight:"14px",height:28,width:28,cursor:"pointer",color:(n=t.layout)===null||n===void 0?void 0:n.colorTextAppListIcon,borderRadius:t.borderRadius,"&:hover":{color:(r=t.layout)===null||r===void 0?void 0:r.colorTextAppListIconHover,backgroundColor:(i=t.layout)===null||i===void 0?void 0:i.colorBgAppListIconHover},"&-active":{color:(o=t.layout)===null||o===void 0?void 0:o.colorTextAppListIconHover,backgroundColor:(a=t.layout)===null||a===void 0?void 0:a.colorBgAppListIconHover}},"&-item-title":{marginInlineStart:"16px",marginInlineEnd:"8px",marginBlockStart:0,marginBlockEnd:"12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginBlockStart:12}},"&-popover":ae({},"".concat(t.antCls,"-popover-arrow"),{display:"none"}),"&-simple":GDt(t),"&-default":qDt(t)})};function XDt(e){return ro("AppsLogoComponents",function(t){var n=G(G({},t),{},{componentCls:".".concat(e)});return[YDt(n)]})}var mK=function(t){return typeof t=="string"?U.jsx("img",{width:"auto",height:22,src:t,alt:"logo"}):typeof t=="function"?t():t},gK=function(t){var n,r=t.appList,i=t.appListRender,o=t.prefixCls,a=o===void 0?"ant-pro":o,s=t.onItemClick,l=ge.useRef(null),c=ge.useRef(null),u="".concat(a,"-layout-apps"),d=XDt(u),h=d.wrapSSR,p=d.hashId,m=f.useState(!1),v=Le(m,2),y=v[0],S=v[1],b=function(E){s==null||s(E,c)},C=f.useMemo(function(){var x=r==null?void 0:r.some(function(E){return!(E!=null&&E.desc)});return x?U.jsx(KDt,{hashId:p,appList:r,itemClick:s?b:void 0,baseClassName:"".concat(u,"-simple")}):U.jsx(WDt,{hashId:p,appList:r,itemClick:s?b:void 0,baseClassName:"".concat(u,"-default")})},[r,u,p]);if(!(t!=null&&(n=t.appList)!==null&&n!==void 0&&n.length))return null;var _=i?i(t==null?void 0:t.appList,C):C,T=FP(void 0,function(x){return S(x)});return h(U.jsxs(U.Fragment,{children:[U.jsx("div",{ref:l,onClick:function(E){E.stopPropagation(),E.preventDefault()}}),U.jsx(Ou,G(G({placement:"bottomRight",trigger:["click"],zIndex:9999,arrow:!1},T),{},{overlayClassName:"".concat(u,"-popover ").concat(p).trim(),content:_,getPopupContainer:function(){return l.current||document.body},children:U.jsx("span",{ref:c,onClick:function(E){E.stopPropagation()},className:Re("".concat(u,"-icon"),p,ae({},"".concat(u,"-icon-active"),y)),children:U.jsx(UDt,{})})}))]}))};function QDt(){return U.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:U.jsx("path",{d:"M6.432 7.967a.448.448 0 01-.318.133h-.228a.46.46 0 01-.318-.133L2.488 4.85a.305.305 0 010-.43l.427-.43a.293.293 0 01.42 0L6 6.687l2.665-2.699a.299.299 0 01.426 0l.42.431a.305.305 0 010 .43L6.432 7.967z"})})}var ZDt=function(t){var n,r,i;return ae({},t.componentCls,{position:"absolute",insetBlockStart:"18px",zIndex:"101",width:"24px",height:"24px",fontSize:["14px","16px"],textAlign:"center",borderRadius:"40px",insetInlineEnd:"-13px",transition:"transform 0.3s",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",color:(n=t.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorTextCollapsedButton,backgroundColor:(r=t.layout)===null||r===void 0||(r=r.sider)===null||r===void 0?void 0:r.colorBgCollapsedButton,boxShadow:"0 2px 8px -2px rgba(0,0,0,0.05), 0 1px 4px -1px rgba(25,15,15,0.07), 0 0 1px 0 rgba(0,0,0,0.08)","&:hover":{color:(i=t.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.colorTextCollapsedButtonHover,boxShadow:"0 4px 16px -4px rgba(0,0,0,0.05), 0 2px 8px -2px rgba(25,15,15,0.07), 0 1px 2px 0 rgba(0,0,0,0.08)"},".anticon":{fontSize:"14px"},"& > svg":{transition:"transform 0.3s",transform:"rotate(90deg)"},"&-collapsed":{"& > svg":{transform:"rotate(-90deg)"}}})};function JDt(e){return ro("SiderMenuCollapsedIcon",function(t){var n=G(G({},t),{},{componentCls:".".concat(e)});return[ZDt(n)]})}var eLt=["isMobile","collapsed"],tLt=function(t){var n=t.isMobile,r=t.collapsed,i=tn(t,eLt),o=JDt(t.className),a=o.wrapSSR,s=o.hashId;return n&&r?null:a(U.jsx("div",G(G({},i),{},{className:Re(t.className,s,ae(ae({},"".concat(t.className,"-collapsed"),r),"".concat(t.className,"-is-mobile"),n)),children:U.jsx(QDt,{})})))},V_e={navTheme:"light",layout:"side",contentWidth:"Fluid",fixedHeader:!1,fixSiderbar:!0,iconfontUrl:"",colorPrimary:"#1677FF",splitMenus:!1},nLt=function(t,n){var r,i,o=n.includes("horizontal")?(r=t.layout)===null||r===void 0?void 0:r.header:(i=t.layout)===null||i===void 0?void 0:i.sider;return G(G(ae({},"".concat(t.componentCls),ae(ae(ae(ae(ae(ae(ae(ae(ae({background:"transparent",color:o==null?void 0:o.colorTextMenu,border:"none"},"".concat(t.componentCls,"-menu-item"),{transition:"none !important"}),"".concat(t.componentCls,"-submenu-has-icon"),ae({},"> ".concat(t.antCls,"-menu-sub"),{paddingInlineStart:10})),"".concat(t.antCls,"-menu-title-content"),{width:"100%",height:"100%",display:"inline-flex"}),"".concat(t.antCls,"-menu-title-content"),{"&:first-child":{width:"100%"}}),"".concat(t.componentCls,"-item-icon"),{display:"flex",alignItems:"center"}),"&&-collapsed",ae(ae(ae({},"".concat(t.antCls,`-menu-item,
|
||
`).concat(t.antCls,"-menu-item-group > ").concat(t.antCls,"-menu-item-group-list > ").concat(t.antCls,`-menu-item,
|
||
`).concat(t.antCls,"-menu-item-group > ").concat(t.antCls,"-menu-item-group-list > ").concat(t.antCls,"-menu-submenu > ").concat(t.antCls,`-menu-submenu-title,
|
||
`).concat(t.antCls,"-menu-submenu > ").concat(t.antCls,"-menu-submenu-title"),{paddingInline:"0 !important",marginBlock:"4px !important"}),"".concat(t.antCls,"-menu-item-group > ").concat(t.antCls,"-menu-item-group-list > ").concat(t.antCls,"-menu-submenu-selected > ").concat(t.antCls,`-menu-submenu-title,
|
||
`).concat(t.antCls,"-menu-submenu-selected > ").concat(t.antCls,"-menu-submenu-title"),{backgroundColor:o==null?void 0:o.colorBgMenuItemSelected,borderRadius:t.borderRadiusLG}),"".concat(t.componentCls,"-group"),ae({},"".concat(t.antCls,"-menu-item-group-title"),{paddingInline:0}))),"&-item-title",ae(ae(ae(ae(ae({display:"flex",flexDirection:"row",alignItems:"center",gap:t.marginXS},"".concat(t.componentCls,"-item-text"),{maxWidth:"100%",textOverflow:"ellipsis",overflow:"hidden",wordBreak:"break-all",whiteSpace:"nowrap"}),"&-collapsed",ae(ae({minWidth:40,height:40},"".concat(t.componentCls,"-item-icon"),{height:"16px",width:"16px",lineHeight:"16px !important",".anticon":{lineHeight:"16px !important",height:"16px"}}),"".concat(t.componentCls,"-item-text-has-icon"),{display:"none !important"})),"&-collapsed-level-0",{flexDirection:"column",justifyContent:"center"}),"&".concat(t.componentCls,"-group-item-title"),{gap:t.marginXS,height:18,overflow:"hidden"}),"&".concat(t.componentCls,"-item-collapsed-show-title"),ae({lineHeight:"16px",gap:0},"&".concat(t.componentCls,"-item-title-collapsed"),ae(ae({display:"flex"},"".concat(t.componentCls,"-item-icon"),{height:"16px",width:"16px",lineHeight:"16px !important",".anticon":{lineHeight:"16px!important",height:"16px"}}),"".concat(t.componentCls,"-item-text"),{opacity:"1 !important",display:"inline !important",textAlign:"center",fontSize:12,height:12,lineHeight:"12px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"100%",margin:0,padding:0,marginBlockStart:4})))),"&-group",ae({},"".concat(t.antCls,"-menu-item-group-title"),{fontSize:12,color:t.colorTextLabel,".anticon":{marginInlineEnd:8}})),"&-group-divider",{color:t.colorTextSecondary,fontSize:12,lineHeight:20})),n.includes("horizontal")?{}:ae({},"".concat(t.antCls,"-menu-submenu").concat(t.antCls,"-menu-submenu-popup"),ae({},"".concat(t.componentCls,"-item-title"),{alignItems:"flex-start"}))),{},ae({},"".concat(t.antCls,"-menu-submenu-popup"),{backgroundColor:"rgba(255, 255, 255, 0.42)","-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)"}))};function rLt(e,t){return ro("ProLayoutBaseMenu"+t,function(n){var r=G(G({},n),{},{componentCls:".".concat(e)});return[nLt(r,t||"inline")]})}var Ooe=function(t){var n=f.useState(t.collapsed),r=Le(n,2),i=r[0],o=r[1],a=f.useState(!1),s=Le(a,2),l=s[0],c=s[1];return f.useEffect(function(){c(!1),setTimeout(function(){o(t.collapsed)},400)},[t.collapsed]),t.disable?t.children:U.jsx(ta,{title:t.title,open:i&&t.collapsed?l:!1,placement:"right",onOpenChange:c,children:t.children})},K_e=SCe({scriptUrl:V_e.iconfontUrl}),Poe=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"icon-",r=arguments.length>2?arguments[2]:void 0;if(typeof t=="string"&&t!==""){if(OV(t)||G0t(t))return U.jsx("img",{width:16,src:t,alt:"icon",className:r},t);if(t.startsWith(n))return U.jsx(K_e,{type:t})}return t},Moe=function(t){if(t&&typeof t=="string"){var n=t.substring(0,1).toUpperCase();return n}return null},iLt=mi(function e(t){var n=this;pi(this,e),ae(this,"props",void 0),ae(this,"getNavMenuItems",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],i=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return r.map(function(a){return n.getSubMenuOrItem(a,i,o)}).filter(function(a){return a}).flat(1)}),ae(this,"getSubMenuOrItem",function(r,i,o){var a=n.props,s=a.subMenuItemRender,l=a.baseClassName,c=a.prefixCls,u=a.collapsed,d=a.menu,h=a.iconPrefixes,p=a.layout,m=(d==null?void 0:d.type)==="group"&&p!=="top",v=n.props.token,y=n.getIntlName(r),S=(r==null?void 0:r.children)||(r==null?void 0:r.routes),b=m&&i===0?"group":void 0;if(Array.isArray(S)&&S.length>0){var C,_,T,x,E,k=i===0||m&&i===1,M=Poe(r.icon,h,"".concat(l,"-icon ").concat((C=n.props)===null||C===void 0?void 0:C.hashId)),P=u&&k?Moe(y):null,D=U.jsxs("div",{className:Re("".concat(l,"-item-title"),(_=n.props)===null||_===void 0?void 0:_.hashId,ae(ae(ae(ae({},"".concat(l,"-item-title-collapsed"),u),"".concat(l,"-item-title-collapsed-level-").concat(o),u),"".concat(l,"-group-item-title"),b==="group"),"".concat(l,"-item-collapsed-show-title"),(d==null?void 0:d.collapsedShowTitle)&&u)),children:[b==="group"&&u?null:k&&M?U.jsx("span",{className:"".concat(l,"-item-icon ").concat((T=n.props)===null||T===void 0?void 0:T.hashId).trim(),children:M}):P,U.jsx("span",{className:Re("".concat(l,"-item-text"),(x=n.props)===null||x===void 0?void 0:x.hashId,ae({},"".concat(l,"-item-text-has-icon"),b!=="group"&&k&&(M||P))),children:y})]}),R=s?s(G(G({},r),{},{isUrl:!1}),D,n.props):D;if(m&&i===0&&n.props.collapsed&&!d.collapsedShowGroupTitle)return n.getNavMenuItems(S,i+1,i);var A=n.getNavMenuItems(S,i+1,m&&i===0&&n.props.collapsed?i:i+1);return[{type:b,key:r.key||r.path,label:R,onClick:m?void 0:r.onTitleClick,children:A,className:Re(ae(ae(ae({},"".concat(l,"-group"),b==="group"),"".concat(l,"-submenu"),b!=="group"),"".concat(l,"-submenu-has-icon"),b!=="group"&&k&&M))},m&&i===0?{type:"divider",prefixCls:c,className:"".concat(l,"-divider"),key:(r.key||r.path)+"-group-divider",style:{padding:0,borderBlockEnd:0,margin:n.props.collapsed?"4px":"6px 16px",marginBlockStart:n.props.collapsed?4:8,borderColor:v==null||(E=v.layout)===null||E===void 0||(E=E.sider)===null||E===void 0?void 0:E.colorMenuItemDivider}}:void 0].filter(Boolean)}return{className:"".concat(l,"-menu-item"),disabled:r.disabled,key:r.key||r.path,onClick:r.onTitleClick,label:n.getMenuItemPath(r,i,o)}}),ae(this,"getIntlName",function(r){var i=r.name,o=r.locale,a=n.props,s=a.menu,l=a.formatMessage,c=i;return o&&(s==null?void 0:s.locale)!==!1&&(c=l==null?void 0:l({id:o,defaultMessage:i})),n.props.menuTextRender?n.props.menuTextRender(r,c,n.props):c}),ae(this,"getMenuItemPath",function(r,i,o){var a,s,l,c,u=n.conversionPath(r.path||"/"),d=n.props,h=d.location,p=h===void 0?{pathname:"/"}:h,m=d.isMobile,v=d.onCollapse,y=d.menuItemRender,S=d.iconPrefixes,b=n.getIntlName(r),C=n.props,_=C.baseClassName,T=C.menu,x=C.collapsed,E=(T==null?void 0:T.type)==="group",k=i===0||E&&i===1,M=k?Poe(r.icon,S,"".concat(_,"-icon ").concat((a=n.props)===null||a===void 0?void 0:a.hashId)):null,P=x&&k?Moe(b):null,D=U.jsxs("div",{className:Re("".concat(_,"-item-title"),(s=n.props)===null||s===void 0?void 0:s.hashId,ae(ae(ae({},"".concat(_,"-item-title-collapsed"),x),"".concat(_,"-item-title-collapsed-level-").concat(o),x),"".concat(_,"-item-collapsed-show-title"),(T==null?void 0:T.collapsedShowTitle)&&x)),children:[U.jsx("span",{className:"".concat(_,"-item-icon ").concat((l=n.props)===null||l===void 0?void 0:l.hashId).trim(),style:{display:P===null&&!M?"none":""},children:M||U.jsx("span",{className:"anticon",children:P})}),U.jsx("span",{className:Re("".concat(_,"-item-text"),(c=n.props)===null||c===void 0?void 0:c.hashId,ae({},"".concat(_,"-item-text-has-icon"),k&&(M||P))),children:b})]},u),R=OV(u);if(R){var A,H,F;D=U.jsxs("span",{onClick:function(){var q,Z;(q=window)===null||q===void 0||(Z=q.open)===null||Z===void 0||Z.call(q,u,"_blank")},className:Re("".concat(_,"-item-title"),(A=n.props)===null||A===void 0?void 0:A.hashId,ae(ae(ae(ae({},"".concat(_,"-item-title-collapsed"),x),"".concat(_,"-item-title-collapsed-level-").concat(o),x),"".concat(_,"-item-link"),!0),"".concat(_,"-item-collapsed-show-title"),(T==null?void 0:T.collapsedShowTitle)&&x)),children:[U.jsx("span",{className:"".concat(_,"-item-icon ").concat((H=n.props)===null||H===void 0?void 0:H.hashId).trim(),style:{display:P===null&&!M?"none":""},children:M||U.jsx("span",{className:"anticon",children:P})}),U.jsx("span",{className:Re("".concat(_,"-item-text"),(F=n.props)===null||F===void 0?void 0:F.hashId,ae({},"".concat(_,"-item-text-has-icon"),k&&(M||P))),children:b})]},u)}if(y){var z=G(G({},r),{},{isUrl:R,itemPath:u,isMobile:m,replace:u===p.pathname,onClick:function(){return v&&v(!0)},children:void 0});return i===0?U.jsx(Ooe,{collapsed:x,title:b,disable:r.disabledTooltip,children:y(z,D,n.props)}):y(z,D,n.props)}return i===0?U.jsx(Ooe,{collapsed:x,title:b,disable:r.disabledTooltip,children:D}):D}),ae(this,"conversionPath",function(r){return r&&r.indexOf("http")===0?r:"/".concat(r||"").replace(/\/+/g,"/")}),this.props=t}),oLt=function(t,n){var r=n.layout,i=n.collapsed,o={};return t&&!i&&["side","mix"].includes(r||"mix")&&(o={openKeys:t}),o},q_e=function(t){var n=t.mode,r=t.className,i=t.handleOpenChange,o=t.style,a=t.menuData,s=t.prefixCls,l=t.menu,c=t.matchMenuKeys,u=t.iconfontUrl,d=t.selectedKeys,h=t.onSelect,p=t.menuRenderType,m=t.openKeys,v=f.useContext(Pd),y=v.dark,S=v.token,b="".concat(s,"-base-menu-").concat(n),C=f.useRef([]),_=Jn(l==null?void 0:l.defaultOpenAll),T=Le(_,2),x=T[0],E=T[1],k=Jn(function(){return l!=null&&l.defaultOpenAll?koe(a)||[]:m===!1?!1:[]},{value:m===!1?void 0:m,onChange:i}),M=Le(k,2),P=M[0],D=M[1],R=Jn([],{value:d,onChange:h?function(V){h&&V&&h(V)}:void 0}),A=Le(R,2),H=A[0],F=A[1];f.useEffect(function(){l!=null&&l.defaultOpenAll||m===!1||c&&(D(c),F(c))},[c.join("-")]),f.useEffect(function(){u&&(K_e=SCe({scriptUrl:u}))},[u]),f.useEffect(function(){if(c.join("-")!==(H||[]).join("-")&&F(c),!x&&m!==!1&&c.join("-")!==(P||[]).join("-")){var V=c;(l==null?void 0:l.autoClose)===!1&&(V=Array.from(new Set([].concat(pt(c),pt(P||[]))))),D(V)}else l!=null&&l.ignoreFlatMenu&&x?D(koe(a)):E(!1)},[c.join("-")]);var z=f.useMemo(function(){return oLt(P,t)},[P&&P.join(","),t.layout,t.collapsed]),W=rLt(b,n),q=W.wrapSSR,Z=W.hashId,N=f.useMemo(function(){return new iLt(G(G({},t),{},{token:S,menuRenderType:p,baseClassName:b,hashId:Z}))},[t,S,p,b,Z]);if(l!=null&&l.loading)return U.jsx("div",{style:n!=null&&n.includes("inline")?{padding:24}:{marginBlockStart:16},children:U.jsx(kp,{active:!0,title:!1,paragraph:{rows:n!=null&&n.includes("inline")?6:1}})});t.openKeys===!1&&!t.handleOpenChange&&(C.current=c);var B=t.postMenuData?t.postMenuData(a):a;return B&&(B==null?void 0:B.length)<1?null:q(f.createElement(Jd,G(G({},z),{},{_internalDisableMenuItemTitleTooltip:!0,key:"Menu",mode:n,inlineIndent:16,defaultOpenKeys:C.current,theme:y?"dark":"light",selectedKeys:H,style:G({backgroundColor:"transparent",border:"none"},o),className:Re(r,Z,b,ae(ae({},"".concat(b,"-horizontal"),n==="horizontal"),"".concat(b,"-collapsed"),t.collapsed)),items:N.getNavMenuItems(B,0,0),onOpenChange:function(Y){t.collapsed||D(Y)}},t.menuProps)))};function aLt(e,t){var n=t.stylish,r=t.proLayoutCollapsedWidth;return ro("ProLayoutSiderMenuStylish",function(i){var o=G(G({},i),{},{componentCls:".".concat(e),proLayoutCollapsedWidth:r});return n?[ae({},"div".concat(i.proComponentsCls,"-layout"),ae({},"".concat(o.componentCls),n==null?void 0:n(o)))]:[]})}var sLt=["title","render"],lLt=ge.memo(function(e){return U.jsx(U.Fragment,{children:e.children})}),cLt=xo.Sider,Ioe=xo._InternalSiderContext,uLt=Ioe===void 0?{Provider:lLt}:Ioe,vK=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"menuHeaderRender",r=t.logo,i=t.title,o=t.layout,a=t[n];if(a===!1)return null;var s=mK(r),l=U.jsx("h1",{children:i??"Ant Design Pro"});return a?a(s,t.collapsed?null:l,t):t.isMobile?null:o==="mix"&&n==="menuHeaderRender"?!1:t.collapsed?U.jsx("a",{children:s},"title"):U.jsxs("a",{children:[s,l]},"title")},$oe=function(t){var n,r=t.collapsed,i=t.originCollapsed,o=t.fixSiderbar,a=t.menuFooterRender,s=t.onCollapse,l=t.theme,c=t.siderWidth,u=t.isMobile,d=t.onMenuHeaderClick,h=t.breakpoint,p=h===void 0?"lg":h,m=t.style,v=t.layout,y=t.menuExtraRender,S=y===void 0?!1:y,b=t.links,C=t.menuContentRender,_=t.collapsedButtonRender,T=t.prefixCls,x=t.avatarProps,E=t.rightContentRender,k=t.actionsRender,M=t.onOpenChange,P=t.stylish,D=t.logoStyle,R=f.useContext(Pd),A=R.hashId,H=f.useMemo(function(){return!(u||v==="mix")},[u,v]),F="".concat(T,"-sider"),z=64,W=aLt("".concat(F,".").concat(F,"-stylish"),{stylish:P,proLayoutCollapsedWidth:z}),q=Re("".concat(F),A,ae(ae(ae(ae(ae(ae(ae({},"".concat(F,"-fixed"),o),"".concat(F,"-fixed-mix"),v==="mix"&&!u&&o),"".concat(F,"-collapsed"),t.collapsed),"".concat(F,"-layout-").concat(v),v&&!u),"".concat(F,"-light"),l!=="dark"),"".concat(F,"-mix"),v==="mix"&&!u),"".concat(F,"-stylish"),!!P)),Z=vK(t),N=S&&S(t),B=f.useMemo(function(){return C!==!1&&f.createElement(q_e,G(G({},t),{},{key:"base-menu",mode:r&&!u?"vertical":"inline",handleOpenChange:M,style:{width:"100%"},className:"".concat(F,"-menu ").concat(A).trim()}))},[F,A,C,M,t]),V=(b||[]).map(function(pe,he){return{className:"".concat(F,"-link"),label:pe,key:he}}),Y=f.useMemo(function(){return C?C(t,B):B},[C,B,t]),ie=f.useMemo(function(){if(!x)return null;var pe=x.title,he=x.render,_e=tn(x,sLt),le=U.jsxs("div",{className:"".concat(F,"-actions-avatar"),children:[_e!=null&&_e.src||_e!=null&&_e.srcSet||_e.icon||_e.children?U.jsx(yg,G({size:28},_e)):null,x.title&&!r&&U.jsx("span",{children:pe})]});return he?he(x,le,t):le},[x,F,r]),ce=f.useMemo(function(){return k?U.jsx(ma,{align:"center",size:4,direction:r?"vertical":"horizontal",className:Re(["".concat(F,"-actions-list"),r&&"".concat(F,"-actions-list-collapsed"),A]),children:[k==null?void 0:k(t)].flat(1).map(function(pe,he){return U.jsx("div",{className:"".concat(F,"-actions-list-item ").concat(A).trim(),children:pe},he)})}):null},[k,F,r]),fe=f.useMemo(function(){return U.jsx(gK,{onItemClick:t.itemClick,appListRender:t.appListRender,appList:t.appList,prefixCls:t.prefixCls})},[t.appList,t.appListRender,t.prefixCls]),ee=f.useMemo(function(){if(_===!1)return null;var pe=U.jsx(tLt,{isMobile:u,collapsed:i,className:"".concat(F,"-collapsed-button"),onClick:function(){s==null||s(!i)}});return _?_(r,pe):pe},[_,u,i,F,r,s]),ne=f.useMemo(function(){return!ie&&!ce?null:U.jsxs("div",{className:Re("".concat(F,"-actions"),A,r&&"".concat(F,"-actions-collapsed")),children:[ie,ce]})},[ce,ie,F,r,A]),ue=f.useMemo(function(){var pe;return t!=null&&(pe=t.menu)!==null&&pe!==void 0&&pe.hideMenuWhenCollapsed&&r?"".concat(F,"-hide-menu-collapsed"):null},[F,r,t==null||(n=t.menu)===null||n===void 0?void 0:n.hideMenuWhenCollapsed]),ye=a&&(a==null?void 0:a(t)),me=U.jsxs(U.Fragment,{children:[Z&&U.jsxs("div",{className:Re([Re("".concat(F,"-logo"),A,ae({},"".concat(F,"-logo-collapsed"),r))]),onClick:H?d:void 0,id:"logo",style:D,children:[Z,fe]}),N&&U.jsx("div",{className:Re(["".concat(F,"-extra"),!Z&&"".concat(F,"-extra-no-logo"),A]),children:N}),U.jsx("div",{style:{flex:1,overflowY:"auto",overflowX:"hidden"},children:Y}),U.jsxs(uLt.Provider,{value:{},children:[b?U.jsx("div",{className:"".concat(F,"-links ").concat(A).trim(),children:U.jsx(Jd,{inlineIndent:16,className:"".concat(F,"-link-menu ").concat(A).trim(),selectedKeys:[],openKeys:[],theme:l,mode:"inline",items:V})}):null,H&&U.jsxs(U.Fragment,{children:[ne,!ce&&E?U.jsx("div",{className:Re("".concat(F,"-actions"),A,ae({},"".concat(F,"-actions-collapsed"),r)),children:E==null?void 0:E(t)}):null]}),ye&&U.jsx("div",{className:Re(["".concat(F,"-footer"),A,ae({},"".concat(F,"-footer-collapsed"),r)]),children:ye})]})]});return W.wrapSSR(U.jsxs(U.Fragment,{children:[o&&!u&&!ue&&U.jsx("div",{style:G({width:r?z:c,overflow:"hidden",flex:"0 0 ".concat(r?z:c,"px"),maxWidth:r?z:c,minWidth:r?z:c,transition:"all 0.2s ease 0s"},m)}),U.jsxs(cLt,{collapsible:!0,trigger:null,collapsed:r,breakpoint:p===!1?void 0:p,onCollapse:function(he){u||s==null||s(he)},collapsedWidth:z,style:m,theme:l,width:c,className:Re(q,A,ue),children:[ue?U.jsx("div",{className:"".concat(F,"-hide-when-collapsed ").concat(A).trim(),style:{height:"100%",width:"100%",opacity:ue?0:1},children:me}):me,ee]})]}))},dLt=function(t){var n,r,i,o,a;return ae({},t.componentCls,{"&-header-actions":{display:"flex",height:"100%",alignItems:"center","&-item":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingBlock:0,paddingInline:2,color:(n=t.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorTextRightActionsItem,fontSize:"16px",cursor:"pointer",borderRadius:t.borderRadius,"> *":{paddingInline:6,paddingBlock:6,borderRadius:t.borderRadius,"&:hover":{backgroundColor:(r=t.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.colorBgRightActionsItemHover}}},"&-avatar":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingInlineStart:t.padding,paddingInlineEnd:t.padding,cursor:"pointer",color:(i=t.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorTextRightActionsItem,"> div":{height:"44px",color:(o=t.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorTextRightActionsItem,paddingInline:8,paddingBlock:8,cursor:"pointer",display:"flex",alignItems:"center",lineHeight:"44px",borderRadius:t.borderRadius,"&:hover":{backgroundColor:(a=t.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorBgRightActionsItemHover}}}}})};function fLt(e){return ro("ProLayoutRightContent",function(t){var n=G(G({},t),{},{componentCls:".".concat(e)});return[dLt(n)]})}var hLt=["rightContentRender","avatarProps","actionsRender","headerContentRender"],pLt=["title","render"],G_e=function(t){var n=t.rightContentRender,r=t.avatarProps,i=t.actionsRender;t.headerContentRender;var o=tn(t,hLt),a=f.useContext(or.ConfigContext),s=a.getPrefixCls,l="".concat(s(),"-pro-global-header"),c=fLt(l),u=c.wrapSSR,d=c.hashId,h=f.useState("auto"),p=Le(h,2),m=p[0],v=p[1],y=f.useMemo(function(){if(!r)return null;var _=r.title,T=r.render,x=tn(r,pLt),E=[x!=null&&x.src||x!=null&&x.srcSet||x.icon||x.children?f.createElement(yg,G(G({},x),{},{size:28,key:"avatar"})):null,_?U.jsx("span",{style:{marginInlineStart:8},children:_},"name"):void 0];return T?T(r,U.jsx("div",{children:E}),o):U.jsx("div",{children:E})},[r]),S=i||y?function(_){var T=i&&(i==null?void 0:i(_));return!T&&!y?null:Array.isArray(T)?u(U.jsxs("div",{className:"".concat(l,"-header-actions ").concat(d).trim(),children:[T.filter(Boolean).map(function(x,E){var k=!1;if(ge.isValidElement(x)){var M;k=!!(x!=null&&(M=x.props)!==null&&M!==void 0&&M["aria-hidden"])}return U.jsx("div",{className:Re("".concat(l,"-header-actions-item ").concat(d),ae({},"".concat(l,"-header-actions-hover"),!k)),children:x},E)}),y&&U.jsx("span",{className:"".concat(l,"-header-actions-avatar ").concat(d).trim(),children:y})]})):u(U.jsxs("div",{className:"".concat(l,"-header-actions ").concat(d).trim(),children:[T,y&&U.jsx("span",{className:"".concat(l,"-header-actions-avatar ").concat(d).trim(),children:y})]}))}:void 0,b=F0t(function(){var _=Jo(Hr().mark(function T(x){return Hr().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:v(x);case 1:case"end":return k.stop()}},T)}));return function(T){return _.apply(this,arguments)}}(),160),C=S||n;return U.jsx("div",{className:"".concat(l,"-right-content ").concat(d).trim(),style:{minWidth:m,height:"100%"},children:U.jsx("div",{style:{height:"100%"},children:U.jsx(Va,{onResize:function(T){var x=T.width;b.run(x)},children:C?U.jsx("div",{style:{display:"flex",alignItems:"center",height:"100%",justifyContent:"flex-end"},children:C(G(G({},o),{},{rightContentSize:m}))}):null})})})},mLt=function(t){var n,r;return ae({},t.componentCls,{position:"relative",width:"100%",height:"100%",backgroundColor:"transparent",".anticon":{color:"inherit"},"&-main":{display:"flex",height:"100%",paddingInlineStart:"16px","&-left":ae({display:"flex",alignItems:"center"},"".concat(t.proComponentsCls,"-layout-apps-icon"),{marginInlineEnd:16,marginInlineStart:-8})},"&-wide":{maxWidth:1152,margin:"0 auto"},"&-logo":{position:"relative",display:"flex",height:"100%",alignItems:"center",overflow:"hidden","> *:first-child":{display:"flex",alignItems:"center",minHeight:"22px",fontSize:"22px"},"> *:first-child > img":{display:"inline-block",height:"32px",verticalAlign:"middle"},"> *:first-child > h1":{display:"inline-block",marginBlock:0,marginInline:0,lineHeight:"24px",marginInlineStart:6,fontWeight:"600",fontSize:"16px",color:(n=t.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorHeaderTitle,verticalAlign:"top"}},"&-menu":{minWidth:0,display:"flex",alignItems:"center",paddingInline:6,paddingBlock:6,lineHeight:"".concat(Math.max((((r=t.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.heightLayoutHeader)||56)-12,40),"px")}})};function gLt(e){return ro("ProLayoutTopNavHeader",function(t){var n=G(G({},t),{},{componentCls:".".concat(e)});return[mLt(n)]})}var Y_e=function(t){var n,r,i,o,a,s,l,c=f.useRef(null),u=t.onMenuHeaderClick,d=t.contentWidth,h=t.rightContentRender,p=t.className,m=t.style,v=t.headerContentRender,y=t.layout,S=t.actionsRender,b=f.useContext(or.ConfigContext),C=b.getPrefixCls,_=f.useContext(Pd),T=_.dark,x="".concat(t.prefixCls||C("pro"),"-top-nav-header"),E=gLt(x),k=E.wrapSSR,M=E.hashId,P=void 0;t.menuHeaderRender!==void 0?P="menuHeaderRender":(y==="mix"||y==="top")&&(P="headerTitleRender");var D=vK(G(G({},t),{},{collapsed:!1}),P),R=f.useContext(Pd),A=R.token,H=f.useMemo(function(){var F,z,W,q,Z,N,B,V,Y,ie,ce,fe,ee,ne=U.jsx(or,{theme:{hashed:gb(),components:{Layout:{headerBg:"transparent",bodyBg:"transparent"},Menu:G({},s2e({colorItemBg:((F=A.layout)===null||F===void 0||(F=F.header)===null||F===void 0?void 0:F.colorBgHeader)||"transparent",colorSubItemBg:((z=A.layout)===null||z===void 0||(z=z.header)===null||z===void 0?void 0:z.colorBgHeader)||"transparent",radiusItem:A.borderRadius,colorItemBgSelected:((W=A.layout)===null||W===void 0||(W=W.header)===null||W===void 0?void 0:W.colorBgMenuItemSelected)||(A==null?void 0:A.colorBgTextHover),itemHoverBg:((q=A.layout)===null||q===void 0||(q=q.header)===null||q===void 0?void 0:q.colorBgMenuItemHover)||(A==null?void 0:A.colorBgTextHover),colorItemBgSelectedHorizontal:((Z=A.layout)===null||Z===void 0||(Z=Z.header)===null||Z===void 0?void 0:Z.colorBgMenuItemSelected)||(A==null?void 0:A.colorBgTextHover),colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemText:((N=A.layout)===null||N===void 0||(N=N.header)===null||N===void 0?void 0:N.colorTextMenu)||(A==null?void 0:A.colorTextSecondary),colorItemTextHoverHorizontal:((B=A.layout)===null||B===void 0||(B=B.header)===null||B===void 0?void 0:B.colorTextMenuActive)||(A==null?void 0:A.colorText),colorItemTextSelectedHorizontal:((V=A.layout)===null||V===void 0||(V=V.header)===null||V===void 0?void 0:V.colorTextMenuSelected)||(A==null?void 0:A.colorTextBase),horizontalItemBorderRadius:4,colorItemTextHover:((Y=A.layout)===null||Y===void 0||(Y=Y.header)===null||Y===void 0?void 0:Y.colorTextMenuActive)||"rgba(0, 0, 0, 0.85)",horizontalItemHoverBg:((ie=A.layout)===null||ie===void 0||(ie=ie.header)===null||ie===void 0?void 0:ie.colorBgMenuItemHover)||"rgba(0, 0, 0, 0.04)",colorItemTextSelected:((ce=A.layout)===null||ce===void 0||(ce=ce.header)===null||ce===void 0?void 0:ce.colorTextMenuSelected)||"rgba(0, 0, 0, 1)",popupBg:A==null?void 0:A.colorBgElevated,subMenuItemBg:A==null?void 0:A.colorBgElevated,darkSubMenuItemBg:"transparent",darkPopupBg:A==null?void 0:A.colorBgElevated}))},token:{colorBgElevated:((fe=A.layout)===null||fe===void 0||(fe=fe.header)===null||fe===void 0?void 0:fe.colorBgHeader)||"transparent"}},children:U.jsx(q_e,G(G(G({theme:T?"dark":"light"},t),{},{className:"".concat(x,"-base-menu ").concat(M).trim()},t.menuProps),{},{style:G({width:"100%"},(ee=t.menuProps)===null||ee===void 0?void 0:ee.style),collapsed:!1,menuRenderType:"header",mode:"horizontal"}))});return v?v(t,ne):ne},[(n=A.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorBgHeader,(r=A.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.colorBgMenuItemSelected,(i=A.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorBgMenuItemHover,(o=A.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorTextMenu,(a=A.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorTextMenuActive,(s=A.layout)===null||s===void 0||(s=s.header)===null||s===void 0?void 0:s.colorTextMenuSelected,(l=A.layout)===null||l===void 0||(l=l.header)===null||l===void 0?void 0:l.colorBgMenuElevated,A.borderRadius,A==null?void 0:A.colorBgTextHover,A==null?void 0:A.colorTextSecondary,A==null?void 0:A.colorText,A==null?void 0:A.colorTextBase,A.colorBgElevated,T,t,x,M,v]);return k(U.jsx("div",{className:Re(x,M,p,ae({},"".concat(x,"-light"),!0)),style:m,children:U.jsxs("div",{ref:c,className:Re("".concat(x,"-main"),M,ae({},"".concat(x,"-wide"),d==="Fixed"&&y==="top")),children:[D&&U.jsxs("div",{className:Re("".concat(x,"-main-left ").concat(M)),onClick:u,children:[U.jsx(gK,G({},t)),U.jsx("div",{className:"".concat(x,"-logo ").concat(M).trim(),id:"logo",children:D},"logo")]}),U.jsx("div",{style:{flex:1},className:"".concat(x,"-menu ").concat(M).trim(),children:H}),(h||S||t.avatarProps)&&U.jsx(G_e,G(G({rightContentRender:h},t),{},{prefixCls:x}))]})}))},vLt=function(t){var n,r,i;return ae({},t.componentCls,ae(ae(ae(ae({position:"relative",background:"transparent",display:"flex",alignItems:"center",marginBlock:0,marginInline:16,height:((n=t.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader)||56,boxSizing:"border-box","> a":{height:"100%"}},"".concat(t.proComponentsCls,"-layout-apps-icon"),{marginInlineEnd:16}),"&-collapsed-button",{minHeight:"22px",color:(r=t.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.colorHeaderTitle,fontSize:"18px",marginInlineEnd:"16px"}),"&-logo",{position:"relative",marginInlineEnd:"16px",a:{display:"flex",alignItems:"center",height:"100%",minHeight:"22px",fontSize:"20px"},img:{height:"28px"},h1:{height:"32px",marginBlock:0,marginInline:0,marginInlineStart:8,fontWeight:"600",color:((i=t.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorHeaderTitle)||t.colorTextHeading,fontSize:"18px",lineHeight:"32px"},"&-mix":{display:"flex",alignItems:"center"}}),"&-logo-mobile",{minWidth:"24px",marginInlineEnd:0}))};function yLt(e){return ro("ProLayoutGlobalHeader",function(t){var n=G(G({},t),{},{componentCls:".".concat(e)});return[vLt(n)]})}var bLt=function(t,n){return t===!1?null:t?t(n,null):n},SLt=function(t){var n=t.isMobile,r=t.logo,i=t.collapsed,o=t.onCollapse,a=t.rightContentRender,s=t.menuHeaderRender,l=t.onMenuHeaderClick,c=t.className,u=t.style,d=t.layout,h=t.children,p=t.splitMenus,m=t.menuData,v=t.prefixCls,y=f.useContext(or.ConfigContext),S=y.getPrefixCls,b=y.direction,C="".concat(v||S("pro"),"-global-header"),_=yLt(C),T=_.wrapSSR,x=_.hashId,E=Re(c,C,x);if(d==="mix"&&!n&&p){var k=(m||[]).map(function(R){return G(G({},R),{},{children:void 0,routes:void 0})}),M=uM(k);return U.jsx(Y_e,G(G({mode:"horizontal"},t),{},{splitMenus:!1,menuData:M}))}var P=Re("".concat(C,"-logo"),x,ae(ae(ae({},"".concat(C,"-logo-rtl"),b==="rtl"),"".concat(C,"-logo-mix"),d==="mix"),"".concat(C,"-logo-mobile"),n)),D=U.jsx("span",{className:P,children:U.jsx("a",{children:mK(r)})},"logo");return T(U.jsxs("div",{className:E,style:G({},u),children:[n&&U.jsx("span",{className:"".concat(C,"-collapsed-button ").concat(x).trim(),onClick:function(){o==null||o(!i)},children:U.jsx(Hlt,{})}),n&&bLt(s,D),d==="mix"&&!n&&U.jsxs(U.Fragment,{children:[U.jsx(gK,G({},t)),U.jsx("div",{className:P,onClick:l,children:vK(G(G({},t),{},{collapsed:!1}),"headerTitleRender")})]}),U.jsx("div",{style:{flex:1},children:h}),(a||t.actionsRender||t.avatarProps)&&U.jsx(G_e,G({rightContentRender:a},t))]}))},CLt=function(t){var n,r,i,o;return ae({},"".concat(t.proComponentsCls,"-layout"),ae({},"".concat(t.antCls,"-layout-header").concat(t.componentCls),{height:((n=t.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader)||56,lineHeight:"".concat(((r=t.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.heightLayoutHeader)||56,"px"),zIndex:19,width:"100%",paddingBlock:0,paddingInline:0,borderBlockEnd:"1px solid ".concat(t.colorSplit),backgroundColor:((i=t.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorBgHeader)||"rgba(255, 255, 255, 0.4)",WebkitBackdropFilter:"blur(8px)",backdropFilter:"blur(8px)",transition:"background-color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)","&-fixed-header":{position:"fixed",insetBlockStart:0,width:"100%",zIndex:100,insetInlineEnd:0},"&-fixed-header-scroll":{backgroundColor:((o=t.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorBgScrollHeader)||"rgba(255, 255, 255, 0.8)"},"&-header-actions":{display:"flex",alignItems:"center",fontSize:"16",cursor:"pointer","& &-item":{paddingBlock:0,paddingInline:8,"&:hover":{color:t.colorText}}},"&-header-realDark":{boxShadow:"0 2px 8px 0 rgba(0, 0, 0, 65%)"},"&-header-actions-header-action":{transition:"width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"}}))};function xLt(e){return ro("ProLayoutHeader",function(t){var n=G(G({},t),{},{componentCls:".".concat(e)});return[CLt(n)]})}function wLt(e,t){var n=t.stylish,r=t.proLayoutCollapsedWidth;return ro("ProLayoutHeaderStylish",function(i){var o=G(G({},i),{},{componentCls:".".concat(e),proLayoutCollapsedWidth:r});return n?[ae({},"div".concat(i.proComponentsCls,"-layout"),ae({},"".concat(o.componentCls),n==null?void 0:n(o)))]:[]})}var Roe=xo.Header,_Lt=function(t){var n,r,i,o=t.isMobile,a=t.fixedHeader,s=t.className,l=t.style,c=t.collapsed,u=t.prefixCls,d=t.onCollapse,h=t.layout,p=t.headerRender,m=t.headerContentRender,v=f.useContext(Pd),y=v.token,S=f.useContext(or.ConfigContext),b=f.useState(!1),C=Le(b,2),_=C[0],T=C[1],x=a||h==="mix",E=f.useCallback(function(){var F=h==="top",z=uM(t.menuData||[]),W=U.jsx(SLt,G(G({onCollapse:d},t),{},{menuData:z,children:m&&m(t,null)}));return F&&!o&&(W=U.jsx(Y_e,G(G({mode:"horizontal",onCollapse:d},t),{},{menuData:z}))),p&&typeof p=="function"?p(t,W):W},[m,p,o,h,d,t]);f.useEffect(function(){var F,z=(S==null||(F=S.getTargetContainer)===null||F===void 0?void 0:F.call(S))||document.body,W=function(){var Z,N=z.scrollTop;return N>(((Z=y.layout)===null||Z===void 0||(Z=Z.header)===null||Z===void 0?void 0:Z.heightLayoutHeader)||56)&&!_?(T(!0),!0):(_&&T(!1),!1)};if(x&&!(typeof window>"u"))return z.addEventListener("scroll",W,{passive:!0}),function(){z.removeEventListener("scroll",W)}},[(n=y.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader,x,_]);var k=h==="top",M="".concat(u,"-layout-header"),P=xLt(M),D=P.wrapSSR,R=P.hashId,A=wLt("".concat(M,".").concat(M,"-stylish"),{proLayoutCollapsedWidth:64,stylish:t.stylish}),H=Re(s,R,M,ae(ae(ae(ae(ae(ae(ae({},"".concat(M,"-fixed-header"),x),"".concat(M,"-fixed-header-scroll"),_),"".concat(M,"-mix"),h==="mix"),"".concat(M,"-fixed-header-action"),!c),"".concat(M,"-top-menu"),k),"".concat(M,"-header"),!0),"".concat(M,"-stylish"),!!t.stylish));return h==="side"&&!o?null:A.wrapSSR(D(U.jsx(U.Fragment,{children:U.jsxs(or,{theme:{hashed:gb(),components:{Layout:{headerBg:"transparent",bodyBg:"transparent"}}},children:[x&&U.jsx(Roe,{style:G({height:((r=y.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.heightLayoutHeader)||56,lineHeight:"".concat(((i=y.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.heightLayoutHeader)||56,"px"),backgroundColor:"transparent",zIndex:19},l)}),U.jsx(Roe,{className:H,style:l,children:E()})]})})))};const ELt={"app.setting.pagestyle":"Page style setting","app.setting.pagestyle.dark":"Dark Menu style","app.setting.pagestyle.light":"Light Menu style","app.setting.pagestyle.realdark":"Dark style (Beta)","app.setting.content-width":"Content Width","app.setting.content-width.fixed":"Fixed","app.setting.content-width.fluid":"Fluid","app.setting.themecolor":"Theme Color","app.setting.themecolor.dust":"Dust Red","app.setting.themecolor.volcano":"Volcano","app.setting.themecolor.sunset":"Sunset Orange","app.setting.themecolor.cyan":"Cyan","app.setting.themecolor.green":"Polar Green","app.setting.themecolor.techBlue":"Tech Blue (default)","app.setting.themecolor.daybreak":"Daybreak Blue","app.setting.themecolor.geekblue":"Geek Blue","app.setting.themecolor.purple":"Golden Purple","app.setting.sidermenutype":"SideMenu Type","app.setting.sidermenutype-sub":"Classic","app.setting.sidermenutype-group":"Grouping","app.setting.navigationmode":"Navigation Mode","app.setting.regionalsettings":"Regional Settings","app.setting.regionalsettings.header":"Header","app.setting.regionalsettings.menu":"Menu","app.setting.regionalsettings.footer":"Footer","app.setting.regionalsettings.menuHeader":"Menu Header","app.setting.sidemenu":"Side Menu Layout","app.setting.topmenu":"Top Menu Layout","app.setting.mixmenu":"Mix Menu Layout","app.setting.splitMenus":"Split Menus","app.setting.fixedheader":"Fixed Header","app.setting.fixedsidebar":"Fixed Sidebar","app.setting.fixedsidebar.hint":"Works on Side Menu Layout","app.setting.hideheader":"Hidden Header when scrolling","app.setting.hideheader.hint":"Works when Hidden Header is enabled","app.setting.othersettings":"Other Settings","app.setting.weakmode":"Weak Mode","app.setting.copy":"Copy Setting","app.setting.loading":"Loading theme","app.setting.copyinfo":"copy success,please replace defaultSettings in src/models/setting.js","app.setting.production.hint":"Setting panel shows in development environment only, please manually modify"},TLt=G({},ELt),kLt={"app.setting.pagestyle":"Impostazioni di stile","app.setting.pagestyle.dark":"Tema scuro","app.setting.pagestyle.light":"Tema chiaro","app.setting.content-width":"Largezza contenuto","app.setting.content-width.fixed":"Fissa","app.setting.content-width.fluid":"Fluida","app.setting.themecolor":"Colore del tema","app.setting.themecolor.dust":"Rosso polvere","app.setting.themecolor.volcano":"Vulcano","app.setting.themecolor.sunset":"Arancione tramonto","app.setting.themecolor.cyan":"Ciano","app.setting.themecolor.green":"Verde polare","app.setting.themecolor.techBlue":"Tech Blu (default)","app.setting.themecolor.daybreak":"Blu cielo mattutino","app.setting.themecolor.geekblue":"Blu geek","app.setting.themecolor.purple":"Viola dorato","app.setting.navigationmode":"Modalità di navigazione","app.setting.sidemenu":"Menu laterale","app.setting.topmenu":"Menu in testata","app.setting.mixmenu":"Menu misto","app.setting.splitMenus":"Menu divisi","app.setting.fixedheader":"Testata fissa","app.setting.fixedsidebar":"Menu laterale fisso","app.setting.fixedsidebar.hint":"Solo se selezionato Menu laterale","app.setting.hideheader":"Nascondi testata durante lo scorrimento","app.setting.hideheader.hint":"Solo se abilitato Nascondi testata durante lo scorrimento","app.setting.othersettings":"Altre impostazioni","app.setting.weakmode":"Inverti colori","app.setting.copy":"Copia impostazioni","app.setting.loading":"Carico tema...","app.setting.copyinfo":"Impostazioni copiate con successo! Incolla il contenuto in config/defaultSettings.js","app.setting.production.hint":"Questo pannello è visibile solo durante lo sviluppo. Le impostazioni devono poi essere modificate manulamente"},OLt=G({},kLt),PLt={"app.setting.pagestyle":"스타일 설정","app.setting.pagestyle.dark":"다크 모드","app.setting.pagestyle.light":"라이트 모드","app.setting.content-width":"컨텐츠 너비","app.setting.content-width.fixed":"고정","app.setting.content-width.fluid":"흐름","app.setting.themecolor":"테마 색상","app.setting.themecolor.dust":"Dust Red","app.setting.themecolor.volcano":"Volcano","app.setting.themecolor.sunset":"Sunset Orange","app.setting.themecolor.cyan":"Cyan","app.setting.themecolor.green":"Polar Green","app.setting.themecolor.techBlue":"Tech Blu (default)","app.setting.themecolor.daybreak":"Daybreak Blue","app.setting.themecolor.geekblue":"Geek Blue","app.setting.themecolor.purple":"Golden Purple","app.setting.navigationmode":"네비게이션 모드","app.setting.regionalsettings":"영역별 설정","app.setting.regionalsettings.header":"헤더","app.setting.regionalsettings.menu":"메뉴","app.setting.regionalsettings.footer":"바닥글","app.setting.regionalsettings.menuHeader":"메뉴 헤더","app.setting.sidemenu":"메뉴 사이드 배치","app.setting.topmenu":"메뉴 상단 배치","app.setting.mixmenu":"혼합형 배치","app.setting.splitMenus":"메뉴 분리","app.setting.fixedheader":"헤더 고정","app.setting.fixedsidebar":"사이드바 고정","app.setting.fixedsidebar.hint":"'메뉴 사이드 배치'를 선택했을 때 동작함","app.setting.hideheader":"스크롤 중 헤더 감추기","app.setting.hideheader.hint":"'헤더 감추기 옵션'을 선택했을 때 동작함","app.setting.othersettings":"다른 설정","app.setting.weakmode":"고대비 모드","app.setting.copy":"설정값 복사","app.setting.loading":"테마 로딩 중","app.setting.copyinfo":"복사 성공. src/models/settings.js에 있는 defaultSettings를 교체해 주세요.","app.setting.production.hint":"설정 판넬은 개발 환경에서만 보여집니다. 직접 수동으로 변경바랍니다."},MLt=G({},PLt),ILt={"app.setting.pagestyle":"整体风格设置","app.setting.pagestyle.dark":"暗色菜单风格","app.setting.pagestyle.light":"亮色菜单风格","app.setting.pagestyle.realdark":"暗色风格(实验功能)","app.setting.content-width":"内容区域宽度","app.setting.content-width.fixed":"定宽","app.setting.content-width.fluid":"流式","app.setting.themecolor":"主题色","app.setting.themecolor.dust":"薄暮","app.setting.themecolor.volcano":"火山","app.setting.themecolor.sunset":"日暮","app.setting.themecolor.cyan":"明青","app.setting.themecolor.green":"极光绿","app.setting.themecolor.techBlue":"科技蓝(默认)","app.setting.themecolor.daybreak":"拂晓","app.setting.themecolor.geekblue":"极客蓝","app.setting.themecolor.purple":"酱紫","app.setting.navigationmode":"导航模式","app.setting.sidermenutype":"侧边菜单类型","app.setting.sidermenutype-sub":"经典模式","app.setting.sidermenutype-group":"分组模式","app.setting.regionalsettings":"内容区域","app.setting.regionalsettings.header":"顶栏","app.setting.regionalsettings.menu":"菜单","app.setting.regionalsettings.footer":"页脚","app.setting.regionalsettings.menuHeader":"菜单头","app.setting.sidemenu":"侧边菜单布局","app.setting.topmenu":"顶部菜单布局","app.setting.mixmenu":"混合菜单布局","app.setting.splitMenus":"自动分割菜单","app.setting.fixedheader":"固定 Header","app.setting.fixedsidebar":"固定侧边菜单","app.setting.fixedsidebar.hint":"侧边菜单布局时可配置","app.setting.hideheader":"下滑时隐藏 Header","app.setting.hideheader.hint":"固定 Header 时可配置","app.setting.othersettings":"其他设置","app.setting.weakmode":"色弱模式","app.setting.copy":"拷贝设置","app.setting.loading":"正在加载主题","app.setting.copyinfo":"拷贝成功,请到 src/defaultSettings.js 中替换默认配置","app.setting.production.hint":"配置栏只在开发环境用于预览,生产环境不会展现,请拷贝后手动修改配置文件"},$Lt=G({},ILt),RLt={"app.setting.pagestyle":"整體風格設置","app.setting.pagestyle.dark":"暗色菜單風格","app.setting.pagestyle.realdark":"暗色風格(实验功能)","app.setting.pagestyle.light":"亮色菜單風格","app.setting.content-width":"內容區域寬度","app.setting.content-width.fixed":"定寬","app.setting.content-width.fluid":"流式","app.setting.themecolor":"主題色","app.setting.themecolor.dust":"薄暮","app.setting.themecolor.volcano":"火山","app.setting.themecolor.sunset":"日暮","app.setting.themecolor.cyan":"明青","app.setting.themecolor.green":"極光綠","app.setting.themecolor.techBlue":"科技蓝(默認)","app.setting.themecolor.daybreak":"拂曉藍","app.setting.themecolor.geekblue":"極客藍","app.setting.themecolor.purple":"醬紫","app.setting.navigationmode":"導航模式","app.setting.sidemenu":"側邊菜單布局","app.setting.topmenu":"頂部菜單布局","app.setting.mixmenu":"混合菜單布局","app.setting.splitMenus":"自动分割菜单","app.setting.fixedheader":"固定 Header","app.setting.fixedsidebar":"固定側邊菜單","app.setting.fixedsidebar.hint":"側邊菜單布局時可配置","app.setting.hideheader":"下滑時隱藏 Header","app.setting.hideheader.hint":"固定 Header 時可配置","app.setting.othersettings":"其他設置","app.setting.weakmode":"色弱模式","app.setting.copy":"拷貝設置","app.setting.loading":"正在加載主題","app.setting.copyinfo":"拷貝成功,請到 src/defaultSettings.js 中替換默認配置","app.setting.production.hint":"配置欄只在開發環境用於預覽,生產環境不會展現,請拷貝後手動修改配置文件"},ALt=G({},RLt);var Aoe={"zh-CN":$Lt,"zh-TW":ALt,"en-US":TLt,"it-IT":OLt,"ko-KR":MLt},NLt=function(){if(!kV())return"zh-CN";var t=window.localStorage.getItem("umi_locale");return t||window.g_locale||navigator.language},DLt=function(){var t=NLt();return Aoe[t]||Aoe["zh-CN"]},xg={};Object.defineProperty(xg,"__esModule",{value:!0});xg.TokenData=void 0;xg.parse=CK;xg.compile=HLt;var pB=xg.match=ULt;xg.pathToRegexp=Z_e;xg.stringify=KLt;const yK="/",bK=e=>e,X_e=/^[$_\p{ID_Start}]$/u,SK=/^[$\u200c\u200d\p{ID_Continue}]$/u,Mk="https://git.new/pathToRegexpError",LLt={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function FLt(e){return e.replace(/[{}()\[\]+?!:*]/g,"\\$&")}function Cf(e){return e.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}function*jLt(e){const t=[...e];let n=0;function r(){let i="";if(X_e.test(t[++n]))for(i+=t[n];SK.test(t[++n]);)i+=t[n];else if(t[n]==='"'){let o=n;for(;n<t.length;){if(t[++n]==='"'){n++,o=0;break}t[n]==="\\"?i+=t[++n]:i+=t[n]}if(o)throw new TypeError(`Unterminated quote at ${o}: ${Mk}`)}if(!i)throw new TypeError(`Missing parameter name at ${n}: ${Mk}`);return i}for(;n<t.length;){const i=t[n],o=LLt[i];if(o)yield{type:o,index:n++,value:i};else if(i==="\\")yield{type:"ESCAPED",index:n++,value:t[n++]};else if(i===":"){const a=r();yield{type:"PARAM",index:n,value:a}}else if(i==="*"){const a=r();yield{type:"WILDCARD",index:n,value:a}}else yield{type:"CHAR",index:n,value:t[n++]}}return{type:"END",index:n,value:""}}class BLt{constructor(t){this.tokens=t}peek(){if(!this._peek){const t=this.tokens.next();this._peek=t.value}return this._peek}tryConsume(t){const n=this.peek();if(n.type===t)return this._peek=void 0,n.value}consume(t){const n=this.tryConsume(t);if(n!==void 0)return n;const{type:r,index:i}=this.peek();throw new TypeError(`Unexpected ${r} at ${i}, expected ${t}: ${Mk}`)}text(){let t="",n;for(;n=this.tryConsume("CHAR")||this.tryConsume("ESCAPED");)t+=n;return t}}class dM{constructor(t){this.tokens=t}}xg.TokenData=dM;function CK(e,t={}){const{encodePath:n=bK}=t,r=new BLt(jLt(e));function i(a){const s=[];for(;;){const l=r.text();l&&s.push({type:"text",value:n(l)});const c=r.tryConsume("PARAM");if(c){s.push({type:"param",name:c});continue}const u=r.tryConsume("WILDCARD");if(u){s.push({type:"wildcard",name:u});continue}if(r.tryConsume("{")){s.push({type:"group",tokens:i("}")});continue}return r.consume(a),s}}const o=i("END");return new dM(o)}function HLt(e,t={}){const{encode:n=encodeURIComponent,delimiter:r=yK}=t,i=e instanceof dM?e:CK(e,t),o=Q_e(i.tokens,r,n);return function(s={}){const[l,...c]=o(s);if(c.length)throw new TypeError(`Missing parameters: ${c.join(", ")}`);return l}}function Q_e(e,t,n){const r=e.map(i=>zLt(i,t,n));return i=>{const o=[""];for(const a of r){const[s,...l]=a(i);o[0]+=s,o.push(...l)}return o}}function zLt(e,t,n){if(e.type==="text")return()=>[e.value];if(e.type==="group"){const i=Q_e(e.tokens,t,n);return o=>{const[a,...s]=i(o);return s.length?[""]:[a]}}const r=n||bK;return e.type==="wildcard"&&n!==!1?i=>{const o=i[e.name];if(o==null)return["",e.name];if(!Array.isArray(o)||o.length===0)throw new TypeError(`Expected "${e.name}" to be a non-empty array`);return[o.map((a,s)=>{if(typeof a!="string")throw new TypeError(`Expected "${e.name}/${s}" to be a string`);return r(a)}).join(t)]}:i=>{const o=i[e.name];if(o==null)return["",e.name];if(typeof o!="string")throw new TypeError(`Expected "${e.name}" to be a string`);return[r(o)]}}function ULt(e,t={}){const{decode:n=decodeURIComponent,delimiter:r=yK}=t,{regexp:i,keys:o}=Z_e(e,t),a=o.map(s=>n===!1?bK:s.type==="param"?n:l=>l.split(r).map(n));return function(l){const c=i.exec(l);if(!c)return!1;const u=c[0],d=Object.create(null);for(let h=1;h<c.length;h++){if(c[h]===void 0)continue;const p=o[h-1],m=a[h-1];d[p.name]=m(c[h])}return{path:u,params:d}}}function Z_e(e,t={}){const{delimiter:n=yK,end:r=!0,sensitive:i=!1,trailing:o=!0}=t,a=[],s=[],l=i?"":"i",u=(Array.isArray(e)?e:[e]).map(p=>p instanceof dM?p:CK(p,t));for(const{tokens:p}of u)for(const m of X3(p,0,[])){const v=WLt(m,n,a);s.push(v)}let d=`^(?:${s.join("|")})`;return o&&(d+=`(?:${Cf(n)}$)?`),d+=r?"$":`(?=${Cf(n)}|$)`,{regexp:new RegExp(d,l),keys:a}}function*X3(e,t,n){if(t===e.length)return yield n;const r=e[t];if(r.type==="group"){const i=n.slice();for(const o of X3(r.tokens,0,i))yield*X3(e,t+1,o)}else n.push(r);yield*X3(e,t+1,n)}function WLt(e,t,n){let r="",i="",o=!0;for(let a=0;a<e.length;a++){const s=e[a];if(s.type==="text"){r+=Cf(s.value),i+=s.value,o||(o=s.value.includes(t));continue}if(s.type==="param"||s.type==="wildcard"){if(!o&&!i)throw new TypeError(`Missing text after "${s.name}": ${Mk}`);s.type==="param"?r+=`(${VLt(t,o?"":i)}+)`:r+="([\\s\\S]+)",n.push(s),i="",o=!1;continue}}return r}function VLt(e,t){return t.length<2?e.length<2?`[^${Cf(e+t)}]`:`(?:(?!${Cf(e)})[^${Cf(t)}])`:e.length<2?`(?:(?!${Cf(t)})[^${Cf(e)}])`:`(?:(?!${Cf(t)}|${Cf(e)})[\\s\\S])`}function KLt(e){return e.tokens.map(function t(n,r,i){if(n.type==="text")return FLt(n.value);if(n.type==="group")return`{${n.tokens.map(t).join("")}}`;const a=qLt(n.name)&&GLt(i[r+1])?n.name:JSON.stringify(n.name);if(n.type==="param")return`:${a}`;if(n.type==="wildcard")return`*${a}`;throw new TypeError(`Unexpected token: ${n}`)}).join("")}function qLt(e){const[t,...n]=e;return X_e.test(t)?n.every(r=>SK.test(r)):!1}function GLt(e){return(e==null?void 0:e.type)!=="text"?!0:!SK.test(e.value[0])}var YLt=function(t,n,r){if(r){var i=pt(r.keys()).find(function(a){try{return a.startsWith("http")?!1:pB(a)(t)}catch(s){return console.log("key",a,s),!1}});if(i)return r.get(i)}if(n){var o=Object.keys(n).find(function(a){try{return a!=null&&a.startsWith("http")?!1:pB(a)(t)}catch(s){return console.log("key",a,s),!1}});if(o)return n[o]}return{path:""}},Noe=function(t,n){var r=t.pathname,i=r===void 0?"/":r,o=t.breadcrumb,a=t.breadcrumbMap,s=t.formatMessage,l=t.title,c=t.menu,u=c===void 0?{locale:!1}:c,d=n?"":l||"",h=YLt(i,o,a);if(!h)return{title:d,id:"",pageName:d};var p=h.name;return u.locale!==!1&&h.locale&&s&&(p=s({id:h.locale||"",defaultMessage:h.name})),p?n||!l?{title:p,id:h.locale||"",pageName:p}:{title:"".concat(p," - ").concat(l),id:h.locale||"",pageName:p}:{title:d,id:h.locale||"",pageName:d}},sl={};function mB(e){"@babel/helpers - typeof";return mB=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},mB(e)}Object.defineProperty(sl,"__esModule",{value:!0});var uw=sl.pathToRegexp=sl.tokensToRegexp=sl.regexpToFunction=sl.match=sl.tokensToFunction=sl.compile=sl.parse=void 0;function XLt(e){for(var t=[],n=0;n<e.length;){var r=e[n];if(r==="*"||r==="+"||r==="?"){t.push({type:"MODIFIER",index:n,value:e[n++]});continue}if(r==="\\"){t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});continue}if(r==="{"){t.push({type:"OPEN",index:n,value:e[n++]});continue}if(r==="}"){t.push({type:"CLOSE",index:n,value:e[n++]});continue}if(r===":"){for(var i="",o=n+1;o<e.length;){var a=e.charCodeAt(o);if(a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122||a===95){i+=e[o++];continue}break}if(!i)throw new TypeError("Missing parameter name at "+n);t.push({type:"NAME",index:n,value:i}),n=o;continue}if(r==="("){var s=1,l="",o=n+1;if(e[o]==="?")throw new TypeError('Pattern cannot start with "?" at '+o);for(;o<e.length;){if(e[o]==="\\"){l+=e[o++]+e[o++];continue}if(e[o]===")"){if(s--,s===0){o++;break}}else if(e[o]==="("&&(s++,e[o+1]!=="?"))throw new TypeError("Capturing groups are not allowed at "+o);l+=e[o++]}if(s)throw new TypeError("Unbalanced pattern at "+n);if(!l)throw new TypeError("Missing pattern at "+n);t.push({type:"PATTERN",index:n,value:l}),n=o;continue}t.push({type:"CHAR",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}function xK(e,t){t===void 0&&(t={});for(var n=XLt(e),r=t.prefixes,i=r===void 0?"./":r,o="[^"+xy(t.delimiter||"/#?")+"]+?",a=[],s=0,l=0,c="",u=function(E){if(l<n.length&&n[l].type===E)return n[l++].value},d=function(E){var k=u(E);if(k!==void 0)return k;var M=n[l],P=M.type,D=M.index;throw new TypeError("Unexpected "+P+" at "+D+", expected "+E)},h=function(){for(var E="",k;k=u("CHAR")||u("ESCAPED_CHAR");)E+=k;return E};l<n.length;){var p=u("CHAR"),m=u("NAME"),v=u("PATTERN");if(m||v){var y=p||"";i.indexOf(y)===-1&&(c+=y,y=""),c&&(a.push(c),c=""),a.push({name:m||s++,prefix:y,suffix:"",pattern:v||o,modifier:u("MODIFIER")||""});continue}var S=p||u("ESCAPED_CHAR");if(S){c+=S;continue}c&&(a.push(c),c="");var b=u("OPEN");if(b){var y=h(),C=u("NAME")||"",_=u("PATTERN")||"",T=h();d("CLOSE"),a.push({name:C||(_?s++:""),pattern:C&&!_?o:_,prefix:y,suffix:T,modifier:u("MODIFIER")||""});continue}d("END")}return a}sl.parse=xK;function QLt(e,t){return J_e(xK(e,t),t)}sl.compile=QLt;function J_e(e,t){t===void 0&&(t={});var n=wK(t),r=t.encode,i=r===void 0?function(l){return l}:r,o=t.validate,a=o===void 0?!0:o,s=e.map(function(l){if(mB(l)==="object")return new RegExp("^(?:"+l.pattern+")$",n)});return function(l){for(var c="",u=0;u<e.length;u++){var d=e[u];if(typeof d=="string"){c+=d;continue}var h=l?l[d.name]:void 0,p=d.modifier==="?"||d.modifier==="*",m=d.modifier==="*"||d.modifier==="+";if(Array.isArray(h)){if(!m)throw new TypeError('Expected "'+d.name+'" to not repeat, but got an array');if(h.length===0){if(p)continue;throw new TypeError('Expected "'+d.name+'" to not be empty')}for(var v=0;v<h.length;v++){var y=i(h[v],d);if(a&&!s[u].test(y))throw new TypeError('Expected all "'+d.name+'" to match "'+d.pattern+'", but got "'+y+'"');c+=d.prefix+y+d.suffix}continue}if(typeof h=="string"||typeof h=="number"){var y=i(String(h),d);if(a&&!s[u].test(y))throw new TypeError('Expected "'+d.name+'" to match "'+d.pattern+'", but got "'+y+'"');c+=d.prefix+y+d.suffix;continue}if(!p){var S=m?"an array":"a string";throw new TypeError('Expected "'+d.name+'" to be '+S)}}return c}}sl.tokensToFunction=J_e;function ZLt(e,t){var n=[],r=_K(e,n,t);return eEe(r,n,t)}sl.match=ZLt;function eEe(e,t,n){n===void 0&&(n={});var r=n.decode,i=r===void 0?function(o){return o}:r;return function(o){var a=e.exec(o);if(!a)return!1;for(var s=a[0],l=a.index,c=Object.create(null),u=function(p){if(a[p]===void 0)return"continue";var m=t[p-1];m.modifier==="*"||m.modifier==="+"?c[m.name]=a[p].split(m.prefix+m.suffix).map(function(v){return i(v,m)}):c[m.name]=i(a[p],m)},d=1;d<a.length;d++)u(d);return{path:s,index:l,params:c}}}sl.regexpToFunction=eEe;function xy(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function wK(e){return e&&e.sensitive?"":"i"}function JLt(e,t){if(!t)return e;var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:"",suffix:"",modifier:"",pattern:""});return e}function eFt(e,t,n){var r=e.map(function(i){return _K(i,t,n).source});return new RegExp("(?:"+r.join("|")+")",wK(n))}function tFt(e,t,n){return tEe(xK(e,n),t,n)}function tEe(e,t,n){n===void 0&&(n={});for(var r=n.strict,i=r===void 0?!1:r,o=n.start,a=o===void 0?!0:o,s=n.end,l=s===void 0?!0:s,c=n.encode,u=c===void 0?function(x){return x}:c,d="["+xy(n.endsWith||"")+"]|$",h="["+xy(n.delimiter||"/#?")+"]",p=a?"^":"",m=0,v=e;m<v.length;m++){var y=v[m];if(typeof y=="string")p+=xy(u(y));else{var S=xy(u(y.prefix)),b=xy(u(y.suffix));if(y.pattern)if(t&&t.push(y),S||b)if(y.modifier==="+"||y.modifier==="*"){var C=y.modifier==="*"?"?":"";p+="(?:"+S+"((?:"+y.pattern+")(?:"+b+S+"(?:"+y.pattern+"))*)"+b+")"+C}else p+="(?:"+S+"("+y.pattern+")"+b+")"+y.modifier;else p+="("+y.pattern+")"+y.modifier;else p+="(?:"+S+b+")"+y.modifier}}if(l)i||(p+=h+"?"),p+=n.endsWith?"(?="+d+")":"$";else{var _=e[e.length-1],T=typeof _=="string"?h.indexOf(_[_.length-1])>-1:_===void 0;i||(p+="(?:"+h+"(?="+d+"))?"),T||(p+="(?="+h+"|"+d+")")}return new RegExp(p,wK(n))}sl.tokensToRegexp=tEe;function _K(e,t,n){return e instanceof RegExp?JLt(e,t):Array.isArray(e)?eFt(e,t,n):tFt(e,t,n)}uw=sl.pathToRegexp=_K;function Bf(e,t){return t>>>e|t<<32-e}function nFt(e,t,n){return e&t^~e&n}function rFt(e,t,n){return e&t^e&n^t&n}function iFt(e){return Bf(2,e)^Bf(13,e)^Bf(22,e)}function oFt(e){return Bf(6,e)^Bf(11,e)^Bf(25,e)}function aFt(e){return Bf(7,e)^Bf(18,e)^e>>>3}function sFt(e){return Bf(17,e)^Bf(19,e)^e>>>10}function lFt(e,t){return e[t&15]+=sFt(e[t+14&15])+e[t+9&15]+aFt(e[t+1&15])}var cFt=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],ao,Ds,ja,uFt="0123456789abcdef";function Doe(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function dFt(){ao=new Array(8),Ds=new Array(2),ja=new Array(64),Ds[0]=Ds[1]=0,ao[0]=1779033703,ao[1]=3144134277,ao[2]=1013904242,ao[3]=2773480762,ao[4]=1359893119,ao[5]=2600822924,ao[6]=528734635,ao[7]=1541459225}function gB(){var e,t,n,r,i,o,a,s,l,c,u=new Array(16);e=ao[0],t=ao[1],n=ao[2],r=ao[3],i=ao[4],o=ao[5],a=ao[6],s=ao[7];for(var d=0;d<16;d++)u[d]=ja[(d<<2)+3]|ja[(d<<2)+2]<<8|ja[(d<<2)+1]<<16|ja[d<<2]<<24;for(var h=0;h<64;h++)l=s+oFt(i)+nFt(i,o,a)+cFt[h],h<16?l+=u[h]:l+=lFt(u,h),c=iFt(e)+rFt(e,t,n),s=a,a=o,o=i,i=Doe(r,l),r=n,n=t,t=e,e=Doe(l,c);ao[0]+=e,ao[1]+=t,ao[2]+=n,ao[3]+=r,ao[4]+=i,ao[5]+=o,ao[6]+=a,ao[7]+=s}function fFt(e,t){var n,r,i=0;r=Ds[0]>>3&63;var o=t&63;for((Ds[0]+=t<<3)<t<<3&&Ds[1]++,Ds[1]+=t>>29,n=0;n+63<t;n+=64){for(var a=r;a<64;a++)ja[a]=e.charCodeAt(i++);gB(),r=0}for(var s=0;s<o;s++)ja[s]=e.charCodeAt(i++)}function hFt(){var e=Ds[0]>>3&63;if(ja[e++]=128,e<=56)for(var t=e;t<56;t++)ja[t]=0;else{for(var n=e;n<64;n++)ja[n]=0;gB();for(var r=0;r<56;r++)ja[r]=0}ja[56]=Ds[1]>>>24&255,ja[57]=Ds[1]>>>16&255,ja[58]=Ds[1]>>>8&255,ja[59]=Ds[1]&255,ja[60]=Ds[0]>>>24&255,ja[61]=Ds[0]>>>16&255,ja[62]=Ds[0]>>>8&255,ja[63]=Ds[0]&255,gB()}function pFt(){for(var e=new String,t=0;t<8;t++)for(var n=28;n>=0;n-=4)e+=uFt.charAt(ao[t]>>>n&15);return e}function mFt(e){return dFt(),fFt(e,e.length),hFt(),pFt()}function vB(e){"@babel/helpers - typeof";return vB=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},vB(e)}var gFt=["pro_layout_parentKeys","children","icon","flatMenu","indexRoute","routes"];function vFt(e,t){return SFt(e)||bFt(e,t)||EK(e,t)||yFt()}function yFt(){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 bFt(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function SFt(e){if(Array.isArray(e))return e}function CFt(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=EK(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,a=!1,s;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return o=c.done,c},e:function(c){a=!0,s=c},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(a)throw s}}}}function xFt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wFt(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,r.key,r)}}function _Ft(e,t,n){return t&&wFt(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function EFt(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&&A_(e,t)}function TFt(e){var t=nEe();return function(){var r=N_(e),i;if(t){var o=N_(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return kFt(this,i)}}function kFt(e,t){if(t&&(vB(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return OFt(e)}function OFt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yB(e){var t=typeof Map=="function"?new Map:void 0;return yB=function(r){if(r===null||!PFt(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return Q3(r,arguments,N_(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),A_(i,r)},yB(e)}function Q3(e,t,n){return nEe()?Q3=Reflect.construct.bind():Q3=function(i,o,a){var s=[null];s.push.apply(s,o);var l=Function.bind.apply(i,s),c=new l;return a&&A_(c,a.prototype),c},Q3.apply(null,arguments)}function nEe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function PFt(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function A_(e,t){return A_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},A_(e,t)}function N_(e){return N_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},N_(e)}function Loe(e){return $Ft(e)||IFt(e)||EK(e)||MFt()}function MFt(){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 EK(e,t){if(e){if(typeof e=="string")return bB(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bB(e,t)}}function IFt(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $Ft(e){if(Array.isArray(e))return bB(e)}function bB(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function RFt(e,t){if(e==null)return{};var n=AFt(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function AFt(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Foe(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 Ba(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Foe(Object(n),!0).forEach(function(r){NFt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Foe(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function NFt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kc="routes";function u4(e){return e.split("?")[0].split("#")[0]}var TK=function(t){if(!t.startsWith("http"))return!1;try{var n=new URL(t);return!!n}catch{return!1}},DFt=function(t){var n=t.path;if(!n||n==="/")try{return"/".concat(mFt(JSON.stringify(t)))}catch{}return n&&u4(n)},LFt=function(t,n){var r=t.name,i=t.locale;return"locale"in t&&i===!1||!r?!1:t.locale||"".concat(n,".").concat(r)},rEe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"/";return t.endsWith("/*")?t.replace("/*","/"):(t||n).startsWith("/")||TK(t)?t:"/".concat(n,"/").concat(t).replace(/\/\//g,"/").replace(/\/\//g,"/")},FFt=function(t,n){var r=t.menu,i=r===void 0?{}:r,o=t.indexRoute,a=t.path,s=a===void 0?"":a,l=t.children||[],c=i.name,u=c===void 0?t.name:c,d=i.icon,h=d===void 0?t.icon:d,p=i.hideChildren,m=p===void 0?t.hideChildren:p,v=i.flatMenu,y=v===void 0?t.flatMenu:v,S=o&&Object.keys(o).join(",")!=="redirect"?[Ba({path:s,menu:i},o)].concat(l||[]):l,b=Ba({},t);if(u&&(b.name=u),h&&(b.icon=h),S&&S.length){if(m)return delete b.children,b;var C=kK(Ba(Ba({},n),{},{data:S}),t);if(y)return C;delete b[kc]}return b},tv=function(t){return Array.isArray(t)&&t.length>0};function kK(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{path:"/"},n=e.data,r=e.formatMessage,i=e.parentName,o=e.locale;return!n||!Array.isArray(n)?[]:n.filter(function(a){return a?tv(a.children)||a.path||a.originPath||a.layout?!0:(a.redirect||a.unaccessible,!1):!1}).filter(function(a){var s,l;return!(a==null||(s=a.menu)===null||s===void 0)&&s.name||a!=null&&a.flatMenu||!(a==null||(l=a.menu)===null||l===void 0)&&l.flatMenu?!0:a.menu!==!1}).map(function(a){var s=Ba(Ba({},a),{},{path:a.path||a.originPath});return!s.children&&s[kc]&&(s.children=s[kc],delete s[kc]),s.unaccessible&&delete s.name,s.path==="*"&&(s.path="."),s.path==="/*"&&(s.path="."),!s.path&&s.originPath&&(s.path=s.originPath),s}).map(function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{path:"/"},s=a.children||a[kc]||[],l=rEe(a.path,t?t.path:"/"),c=a.name,u=LFt(a,i||"menu"),d=u!==!1&&o!==!1&&r&&u?r({id:u,defaultMessage:c}):c,h=t.pro_layout_parentKeys,p=h===void 0?[]:h;t.children,t.icon,t.flatMenu,t.indexRoute,t.routes;var m=RFt(t,gFt),v=new Set([].concat(Loe(p),Loe(a.parentKeys||[])));t.key&&v.add(t.key);var y=Ba(Ba(Ba({},m),{},{menu:void 0},a),{},{path:l,locale:u,key:a.key||DFt(Ba(Ba({},a),{},{path:l})),pro_layout_parentKeys:Array.from(v).filter(function(b){return b&&b!=="/"})});if(d?y.name=d:delete y.name,y.menu===void 0&&delete y.menu,tv(s)){var S=kK(Ba(Ba({},e),{},{data:s,parentName:u||""}),y);tv(S)&&(y.children=S)}return FFt(y,e)}).flat(1)}var jFt=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return t.filter(function(n){return n&&(n.name||tv(n.children))&&!n.hideInMenu&&!n.redirect}).map(function(n){var r=Ba({},n),i=r.children||n[kc]||[];if(delete r[kc],tv(i)&&!r.hideChildrenInMenu&&i.some(function(a){return a&&!!a.name})){var o=e(i);if(o.length)return Ba(Ba({},r),{},{children:o})}return Ba({},n)}).filter(function(n){return n})},BFt=function(e){EFt(n,e);var t=TFt(n);function n(){return xFt(this,n),t.apply(this,arguments)}return _Ft(n,[{key:"get",value:function(i){var o;try{var a=CFt(this.entries()),s;try{for(a.s();!(s=a.n()).done;){var l=vFt(s.value,2),c=l[0],u=l[1],d=u4(c);if(!TK(c)&&uw(d,[]).test(i)){o=u;break}}}catch(h){a.e(h)}finally{a.f()}}catch{o=void 0}return o}}]),n}(yB(Map)),HFt=function(t){var n=new BFt,r=function i(o,a){o.forEach(function(s){var l=s.children||s[kc]||[];tv(l)&&i(l,s);var c=rEe(s.path,a?a.path:"/");n.set(u4(c),s)})};return r(t),n},zFt=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return t.map(function(n){var r=n.children||n[kc];if(tv(r)){var i=e(r);if(i.length)return Ba({},n)}var o=Ba({},n);return delete o[kc],delete o.children,o}).filter(function(n){return n})},UFt=function(t,n,r,i){var o=kK({data:t,formatMessage:r,locale:n}),a=i?zFt(o):jFt(o),s=HFt(o);return{breadcrumb:s,menuData:a}};function joe(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 Qx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?joe(Object(n),!0).forEach(function(r){WFt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):joe(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function WFt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var VFt=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n={};return t.forEach(function(r){var i=Qx({},r);if(!(!i||!i.key)){!i.children&&i[kc]&&(i.children=i[kc],delete i[kc]);var o=i.children||[];n[u4(i.path||i.key||"/")]=Qx({},i),n[i.key||i.path||"/"]=Qx({},i),o&&(n=Qx(Qx({},n),e(o)))}}),n},KFt=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;return t.filter(function(i){if(i==="/"&&n==="/")return!0;if(i!=="/"&&i!=="/*"&&i&&!TK(i)){var o=u4(i);try{if(r&&uw("".concat(o)).test(n)||uw("".concat(o),[]).test(n)||uw("".concat(o,"/(.*)")).test(n))return!0}catch{}}return!1}).sort(function(i,o){return i===n?10:o===n?-10:i.substr(1).split("/").length-o.substr(1).split("/").length})},qFt=function(t,n,r,i){var o=VFt(n),a=Object.keys(o),s=KFt(a,t||"/",i);return!s||s.length<1?[]:s.map(function(l){var c=o[l]||{pro_layout_parentKeys:"",key:""},u=new Map,d=(c.pro_layout_parentKeys||[]).map(function(h){return u.has(h)?null:(u.set(h,!0),o[h])}).filter(function(h){return h});return c.key&&d.push(c),d}).flat(1)},GFt=function(t){var n=f.useContext(Pd),r=n.hashId,i=t.style,o=t.prefixCls,a=t.children,s=t.hasPageContainer,l=s===void 0?0:s,c=Re("".concat(o,"-content"),r,ae(ae({},"".concat(o,"-has-header"),t.hasHeader),"".concat(o,"-content-has-page-container"),l>0)),u=t.ErrorBoundary||b0t;return t.ErrorBoundary===!1?U.jsx(xo.Content,{className:c,style:i,children:a}):U.jsx(u,{children:U.jsx(xo.Content,{className:c,style:i,children:a})})},YFt=function(){return U.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 200 200",children:[U.jsxs("defs",{children:[U.jsxs("linearGradient",{x1:"62.1023273%",y1:"0%",x2:"108.19718%",y2:"37.8635764%",id:"linearGradient-1",children:[U.jsx("stop",{stopColor:"#4285EB",offset:"0%"}),U.jsx("stop",{stopColor:"#2EC7FF",offset:"100%"})]}),U.jsxs("linearGradient",{x1:"69.644116%",y1:"0%",x2:"54.0428975%",y2:"108.456714%",id:"linearGradient-2",children:[U.jsx("stop",{stopColor:"#29CDFF",offset:"0%"}),U.jsx("stop",{stopColor:"#148EFF",offset:"37.8600687%"}),U.jsx("stop",{stopColor:"#0A60FF",offset:"100%"})]}),U.jsxs("linearGradient",{x1:"69.6908165%",y1:"-12.9743587%",x2:"16.7228981%",y2:"117.391248%",id:"linearGradient-3",children:[U.jsx("stop",{stopColor:"#FA816E",offset:"0%"}),U.jsx("stop",{stopColor:"#F74A5C",offset:"41.472606%"}),U.jsx("stop",{stopColor:"#F51D2C",offset:"100%"})]}),U.jsxs("linearGradient",{x1:"68.1279872%",y1:"-35.6905737%",x2:"30.4400914%",y2:"114.942679%",id:"linearGradient-4",children:[U.jsx("stop",{stopColor:"#FA8E7D",offset:"0%"}),U.jsx("stop",{stopColor:"#F74A5C",offset:"51.2635191%"}),U.jsx("stop",{stopColor:"#F51D2C",offset:"100%"})]})]}),U.jsx("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd",children:U.jsx("g",{transform:"translate(-20.000000, -20.000000)",children:U.jsx("g",{transform:"translate(20.000000, 20.000000)",children:U.jsxs("g",{children:[U.jsxs("g",{fillRule:"nonzero",children:[U.jsxs("g",{children:[U.jsx("path",{d:"M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z",fill:"url(#linearGradient-1)"}),U.jsx("path",{d:"M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z",fill:"url(#linearGradient-2)"})]}),U.jsx("path",{d:"M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z",fill:"url(#linearGradient-3)"})]}),U.jsx("ellipse",{fill:"url(#linearGradient-4)",cx:"100.519339",cy:"100.436681",rx:"23.6001926",ry:"23.580786"})]})})})})]})},Boe=new Mr("antBadgeLoadingCircle",{"0%":{display:"none",opacity:0,overflow:"hidden"},"80%":{overflow:"hidden"},"100%":{display:"unset",opacity:1}}),XFt=function(t){var n,r,i,o,a,s,l,c,u,d,h,p;return ae({},"".concat(t.proComponentsCls,"-layout"),ae(ae(ae({},"".concat(t.antCls,"-layout-sider").concat(t.componentCls),{background:((n=t.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorMenuBackground)||"transparent"}),t.componentCls,ae(ae(ae(ae(ae(ae(ae(ae(ae({position:"relative",boxSizing:"border-box","&-menu":{position:"relative",zIndex:10,minHeight:"100%"}},"& ".concat(t.antCls,"-layout-sider-children"),{position:"relative",display:"flex",flexDirection:"column",height:"100%",paddingInline:(r=t.layout)===null||r===void 0||(r=r.sider)===null||r===void 0?void 0:r.paddingInlineLayoutMenu,paddingBlock:(i=t.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.paddingBlockLayoutMenu,borderInlineEnd:"1px solid ".concat(t.colorSplit),marginInlineEnd:-1}),"".concat(t.antCls,"-menu"),ae(ae({},"".concat(t.antCls,"-menu-item-group-title"),{fontSize:t.fontSizeSM,paddingBottom:4}),"".concat(t.antCls,"-menu-item:not(").concat(t.antCls,"-menu-item-selected):hover"),{color:(o=t.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.colorTextMenuItemHover})),"&-logo",{position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between",paddingInline:12,paddingBlock:16,color:(a=t.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.colorTextMenu,cursor:"pointer",borderBlockEnd:"1px solid ".concat((s=t.layout)===null||s===void 0||(s=s.sider)===null||s===void 0?void 0:s.colorMenuItemDivider),"> a":{display:"flex",alignItems:"center",justifyContent:"center",minHeight:22,fontSize:22,"> img":{display:"inline-block",height:22,verticalAlign:"middle"},"> h1":{display:"inline-block",height:22,marginBlock:0,marginInlineEnd:0,marginInlineStart:6,color:(l=t.layout)===null||l===void 0||(l=l.sider)===null||l===void 0?void 0:l.colorTextMenuTitle,animationName:Boe,animationDuration:".4s",animationTimingFunction:"ease",fontWeight:600,fontSize:16,lineHeight:"22px",verticalAlign:"middle"}},"&-collapsed":ae({flexDirection:"column-reverse",margin:0,padding:12},"".concat(t.proComponentsCls,"-layout-apps-icon"),{marginBlockEnd:8,fontSize:16,transition:"font-size 0.2s ease-in-out,color 0.2s ease-in-out"})}),"&-actions",{display:"flex",alignItems:"center",justifyContent:"space-between",marginBlock:4,marginInline:0,color:(c=t.layout)===null||c===void 0||(c=c.sider)===null||c===void 0?void 0:c.colorTextMenu,"&-collapsed":{flexDirection:"column-reverse",paddingBlock:0,paddingInline:8,fontSize:16,transition:"font-size 0.3s ease-in-out"},"&-list":{color:(u=t.layout)===null||u===void 0||(u=u.sider)===null||u===void 0?void 0:u.colorTextMenuSecondary,"&-collapsed":{marginBlockEnd:8,animationName:"none"},"&-item":{paddingInline:6,paddingBlock:6,lineHeight:"16px",fontSize:16,cursor:"pointer",borderRadius:t.borderRadius,"&:hover":{background:t.colorBgTextHover}}},"&-avatar":{fontSize:14,paddingInline:8,paddingBlock:8,display:"flex",alignItems:"center",gap:t.marginXS,borderRadius:t.borderRadius,"& *":{cursor:"pointer"},"&:hover":{background:t.colorBgTextHover}}}),"&-hide-menu-collapsed",{insetInlineStart:"-".concat(t.proLayoutCollapsedWidth-12,"px"),position:"absolute"}),"&-extra",{marginBlockEnd:16,marginBlock:0,marginInline:16,"&-no-logo":{marginBlockStart:16}}),"&-links",{width:"100%",ul:{height:"auto"}}),"&-link-menu",{border:"none",boxShadow:"none",background:"transparent"}),"&-footer",{color:(d=t.layout)===null||d===void 0||(d=d.sider)===null||d===void 0?void 0:d.colorTextMenuSecondary,paddingBlockEnd:16,fontSize:t.fontSize,animationName:Boe,animationDuration:".4s",animationTimingFunction:"ease"})),"".concat(t.componentCls).concat(t.componentCls,"-fixed"),{position:"fixed",insetBlockStart:0,insetInlineStart:0,zIndex:"100",height:"100%","&-mix":{height:"calc(100% - ".concat(((h=t.layout)===null||h===void 0||(h=h.header)===null||h===void 0?void 0:h.heightLayoutHeader)||56,"px)"),insetBlockStart:"".concat(((p=t.layout)===null||p===void 0||(p=p.header)===null||p===void 0?void 0:p.heightLayoutHeader)||56,"px")}}))};function QFt(e,t){var n=t.proLayoutCollapsedWidth;return ro("ProLayoutSiderMenu",function(r){var i=G(G({},r),{},{componentCls:".".concat(e),proLayoutCollapsedWidth:n});return[XFt(i)]})}var Hoe=function(t){var n,r=t.isMobile,i=t.siderWidth,o=t.collapsed,a=t.onCollapse,s=t.style,l=t.className,c=t.hide,u=t.prefixCls,d=t.getContainer,h=f.useContext(Pd),p=h.token;f.useEffect(function(){r===!0&&(a==null||a(!0))},[r]);var m=Pr(t,["className","style"]),v=ge.useContext(or.ConfigContext),y=v.direction,S=QFt("".concat(u,"-sider"),{proLayoutCollapsedWidth:64}),b=S.wrapSSR,C=S.hashId,_=Re("".concat(u,"-sider"),l,C);if(c)return null;var T=FP(!o,function(){return a==null?void 0:a(!0)});return b(r?U.jsx(CSe,G(G({placement:y==="rtl"?"right":"left",className:Re("".concat(u,"-drawer-sider"),l)},T),{},{style:G({padding:0,height:"100vh"},s),onClose:function(){a==null||a(!0)},maskClosable:!0,closable:!1,getContainer:d||!1,width:i,styles:{body:{height:"100vh",padding:0,display:"flex",flexDirection:"row",backgroundColor:(n=p.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorMenuBackground}},children:U.jsx($oe,G(G({},m),{},{isMobile:!0,className:_,collapsed:r?!1:o,splitMenus:!1,originCollapsed:o}))})):U.jsx($oe,G(G({className:_,originCollapsed:o},m),{},{style:s})))},ZFt=function(){var t;return typeof process>"u"?fp:((t=process)===null||t===void 0||(t=t.env)===null||t===void 0?void 0:t.ANTD_VERSION)||fp},JFt=function(t){var n,r,i,o,a,s,l,c,u,d,h,p,m,v,y,S,b,C,_,T,x,E,k,M,P,D,R,A,H,F,z,W;return(n=ZFt())!==null&&n!==void 0&&n.startsWith("5")?{}:ae(ae(ae({},t.componentCls,ae(ae({width:"100%",height:"100%"},"".concat(t.proComponentsCls,"-base-menu"),(x={color:(r=t.layout)===null||r===void 0||(r=r.sider)===null||r===void 0?void 0:r.colorTextMenu},ae(ae(ae(ae(ae(ae(ae(ae(ae(ae(x,"".concat(t.antCls,"-menu-sub"),{backgroundColor:"transparent!important",color:(i=t.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.colorTextMenu}),"& ".concat(t.antCls,"-layout"),{backgroundColor:"transparent",width:"100%"}),"".concat(t.antCls,"-menu-submenu-expand-icon, ").concat(t.antCls,"-menu-submenu-arrow"),{color:"inherit"}),"&".concat(t.antCls,"-menu"),ae(ae({color:(o=t.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.colorTextMenu},"".concat(t.antCls,"-menu-item"),{"*":{transition:"none !important"}}),"".concat(t.antCls,"-menu-item a"),{color:"inherit"})),"&".concat(t.antCls,"-menu-inline"),ae({},"".concat(t.antCls,"-menu-selected::after,").concat(t.antCls,"-menu-item-selected::after"),{display:"none"})),"".concat(t.antCls,"-menu-sub ").concat(t.antCls,"-menu-inline"),{backgroundColor:"transparent!important"}),"".concat(t.antCls,`-menu-item:active,
|
||
`).concat(t.antCls,"-menu-submenu-title:active"),{backgroundColor:"transparent!important"}),"&".concat(t.antCls,"-menu-light"),ae({},"".concat(t.antCls,`-menu-item:hover,
|
||
`).concat(t.antCls,`-menu-item-active,
|
||
`).concat(t.antCls,`-menu-submenu-active,
|
||
`).concat(t.antCls,"-menu-submenu-title:hover"),ae({color:(a=t.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.colorTextMenuActive,borderRadius:t.borderRadius},"".concat(t.antCls,"-menu-submenu-arrow"),{color:(s=t.layout)===null||s===void 0||(s=s.sider)===null||s===void 0?void 0:s.colorTextMenuActive}))),"&".concat(t.antCls,"-menu:not(").concat(t.antCls,"-menu-horizontal)"),ae(ae({},"".concat(t.antCls,"-menu-item-selected"),{backgroundColor:(l=t.layout)===null||l===void 0||(l=l.sider)===null||l===void 0?void 0:l.colorBgMenuItemSelected,borderRadius:t.borderRadius}),"".concat(t.antCls,`-menu-item:hover,
|
||
`).concat(t.antCls,`-menu-item-active,
|
||
`).concat(t.antCls,"-menu-submenu-title:hover"),ae({color:(c=t.layout)===null||c===void 0||(c=c.sider)===null||c===void 0?void 0:c.colorTextMenuActive,borderRadius:t.borderRadius,backgroundColor:"".concat((u=t.layout)===null||u===void 0||(u=u.header)===null||u===void 0?void 0:u.colorBgMenuItemHover," !important")},"".concat(t.antCls,"-menu-submenu-arrow"),{color:(d=t.layout)===null||d===void 0||(d=d.sider)===null||d===void 0?void 0:d.colorTextMenuActive}))),"".concat(t.antCls,"-menu-item-selected"),{color:(h=t.layout)===null||h===void 0||(h=h.sider)===null||h===void 0?void 0:h.colorTextMenuSelected}),ae(ae(ae(ae(ae(x,"".concat(t.antCls,"-menu-submenu-selected"),{color:(p=t.layout)===null||p===void 0||(p=p.sider)===null||p===void 0?void 0:p.colorTextMenuSelected}),"&".concat(t.antCls,"-menu:not(").concat(t.antCls,"-menu-inline) ").concat(t.antCls,"-menu-submenu-open"),{color:(m=t.layout)===null||m===void 0||(m=m.sider)===null||m===void 0?void 0:m.colorTextMenuSelected}),"&".concat(t.antCls,"-menu-vertical"),ae({},"".concat(t.antCls,"-menu-submenu-selected"),{borderRadius:t.borderRadius,color:(v=t.layout)===null||v===void 0||(v=v.sider)===null||v===void 0?void 0:v.colorTextMenuSelected})),"".concat(t.antCls,"-menu-submenu:hover > ").concat(t.antCls,"-menu-submenu-title > ").concat(t.antCls,"-menu-submenu-arrow"),{color:(y=t.layout)===null||y===void 0||(y=y.sider)===null||y===void 0?void 0:y.colorTextMenuActive}),"&".concat(t.antCls,"-menu-horizontal"),ae(ae(ae(ae({},"".concat(t.antCls,`-menu-item:hover,
|
||
`).concat(t.antCls,`-menu-submenu:hover,
|
||
`).concat(t.antCls,`-menu-item-active,
|
||
`).concat(t.antCls,"-menu-submenu-active"),{borderRadius:4,transition:"none",color:(S=t.layout)===null||S===void 0||(S=S.header)===null||S===void 0?void 0:S.colorTextMenuActive,backgroundColor:"".concat((b=t.layout)===null||b===void 0||(b=b.header)===null||b===void 0?void 0:b.colorBgMenuItemHover," !important")}),"".concat(t.antCls,`-menu-item-open,
|
||
`).concat(t.antCls,`-menu-submenu-open,
|
||
`).concat(t.antCls,`-menu-item-selected,
|
||
`).concat(t.antCls,"-menu-submenu-selected"),ae({backgroundColor:(C=t.layout)===null||C===void 0||(C=C.header)===null||C===void 0?void 0:C.colorBgMenuItemSelected,borderRadius:t.borderRadius,transition:"none",color:"".concat((_=t.layout)===null||_===void 0||(_=_.header)===null||_===void 0?void 0:_.colorTextMenuSelected," !important")},"".concat(t.antCls,"-menu-submenu-arrow"),{color:"".concat((T=t.layout)===null||T===void 0||(T=T.header)===null||T===void 0?void 0:T.colorTextMenuSelected," !important")})),"> ".concat(t.antCls,"-menu-item, > ").concat(t.antCls,"-menu-submenu"),{paddingInline:16,marginInline:4}),"> ".concat(t.antCls,"-menu-item::after, > ").concat(t.antCls,"-menu-submenu::after"),{display:"none"})))),"".concat(t.proComponentsCls,"-top-nav-header-base-menu"),ae(ae({},"&".concat(t.antCls,"-menu"),ae({color:(E=t.layout)===null||E===void 0||(E=E.header)===null||E===void 0?void 0:E.colorTextMenu},"".concat(t.antCls,"-menu-item a"),{color:"inherit"})),"&".concat(t.antCls,"-menu-light"),ae(ae({},"".concat(t.antCls,`-menu-item:hover,
|
||
`).concat(t.antCls,`-menu-item-active,
|
||
`).concat(t.antCls,`-menu-submenu-active,
|
||
`).concat(t.antCls,"-menu-submenu-title:hover"),ae({color:(k=t.layout)===null||k===void 0||(k=k.header)===null||k===void 0?void 0:k.colorTextMenuActive,borderRadius:t.borderRadius,transition:"none",backgroundColor:(M=t.layout)===null||M===void 0||(M=M.header)===null||M===void 0?void 0:M.colorBgMenuItemSelected},"".concat(t.antCls,"-menu-submenu-arrow"),{color:(P=t.layout)===null||P===void 0||(P=P.header)===null||P===void 0?void 0:P.colorTextMenuActive})),"".concat(t.antCls,"-menu-item-selected"),{color:(D=t.layout)===null||D===void 0||(D=D.header)===null||D===void 0?void 0:D.colorTextMenuSelected,borderRadius:t.borderRadius,backgroundColor:(R=t.layout)===null||R===void 0||(R=R.header)===null||R===void 0?void 0:R.colorBgMenuItemSelected})))),"".concat(t.antCls,"-menu-sub").concat(t.antCls,"-menu-inline"),{backgroundColor:"transparent!important"}),"".concat(t.antCls,"-menu-submenu-popup"),ae(ae(ae(ae({backgroundColor:"rgba(255, 255, 255, 0.42)","-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)"},"".concat(t.antCls,"-menu"),ae({background:"transparent !important",backgroundColor:"transparent !important"},"".concat(t.antCls,`-menu-item:active,
|
||
`).concat(t.antCls,"-menu-submenu-title:active"),{backgroundColor:"transparent!important"})),"".concat(t.antCls,"-menu-item-selected"),{color:(A=t.layout)===null||A===void 0||(A=A.sider)===null||A===void 0?void 0:A.colorTextMenuSelected}),"".concat(t.antCls,"-menu-submenu-selected"),{color:(H=t.layout)===null||H===void 0||(H=H.sider)===null||H===void 0?void 0:H.colorTextMenuSelected}),"".concat(t.antCls,"-menu:not(").concat(t.antCls,"-menu-horizontal)"),ae(ae({},"".concat(t.antCls,"-menu-item-selected"),{backgroundColor:"rgba(0, 0, 0, 0.04)",borderRadius:t.borderRadius,color:(F=t.layout)===null||F===void 0||(F=F.sider)===null||F===void 0?void 0:F.colorTextMenuSelected}),"".concat(t.antCls,`-menu-item:hover,
|
||
`).concat(t.antCls,`-menu-item-active,
|
||
`).concat(t.antCls,"-menu-submenu-title:hover"),ae({color:(z=t.layout)===null||z===void 0||(z=z.sider)===null||z===void 0?void 0:z.colorTextMenuActive,borderRadius:t.borderRadius},"".concat(t.antCls,"-menu-submenu-arrow"),{color:(W=t.layout)===null||W===void 0||(W=W.sider)===null||W===void 0?void 0:W.colorTextMenuActive}))))},ejt=function(t){var n,r,i,o;return ae(ae({},"".concat(t.antCls,"-layout"),{backgroundColor:"transparent !important"}),t.componentCls,ae(ae(ae(ae({},"& ".concat(t.antCls,"-layout"),{display:"flex",backgroundColor:"transparent",width:"100%"}),"".concat(t.componentCls,"-content"),{display:"flex",flexDirection:"column",width:"100%",backgroundColor:((n=t.layout)===null||n===void 0||(n=n.pageContainer)===null||n===void 0?void 0:n.colorBgPageContainer)||"transparent",position:"relative",paddingBlock:(r=t.layout)===null||r===void 0||(r=r.pageContainer)===null||r===void 0?void 0:r.paddingBlockPageContainerContent,paddingInline:(i=t.layout)===null||i===void 0||(i=i.pageContainer)===null||i===void 0?void 0:i.paddingInlinePageContainerContent,"&-has-page-container":{padding:0}}),"".concat(t.componentCls,"-container"),{width:"100%",display:"flex",flexDirection:"column",minWidth:0,minHeight:0,backgroundColor:"transparent"}),"".concat(t.componentCls,"-bg-list"),{pointerEvents:"none",position:"fixed",overflow:"hidden",insetBlockStart:0,insetInlineStart:0,zIndex:0,height:"100%",width:"100%",background:(o=t.layout)===null||o===void 0?void 0:o.bgLayout}))};function tjt(e){return ro("ProLayout",function(t){var n=G(G({},t),{},{componentCls:".".concat(e)});return[ejt(n),JFt(n)]})}function njt(e){if(!e||e==="/")return["/"];var t=e.split("/").filter(function(n){return n});return t.map(function(n,r){return"/".concat(t.slice(0,r+1).join("/"))})}var rjt=function(){var t;return typeof process>"u"?fp:((t=process)===null||t===void 0||(t=t.env)===null||t===void 0?void 0:t.ANTD_VERSION)||fp},ijt=function(t,n,r){var i=t,o=i.breadcrumbName,a=i.title,s=i.path,l=r.findIndex(function(c){return c.linkPath===t.path})===r.length-1;return l?U.jsx("span",{children:a||o}):U.jsx("span",{onClick:s?function(){return location.href=s}:void 0,children:a||o})},ojt=function(t,n){var r=n.formatMessage,i=n.menu;return t.locale&&r&&(i==null?void 0:i.locale)!==!1?r({id:t.locale,defaultMessage:t.name}):t.name},ajt=function(t,n){var r=t.get(n);if(!r){var i=Array.from(t.keys())||[],o=i.find(function(a){try{return a!=null&&a.startsWith("http")?!1:pB(a.replace("?",""))(n)}catch(s){return console.log("path",a,s),!1}});o&&(r=t.get(o))}return r||{path:""}},sjt=function(t){var n=t.location,r=t.breadcrumbMap;return{location:n,breadcrumbMap:r}},ljt=function(t,n,r){var i=njt(t==null?void 0:t.pathname),o=i.map(function(a){var s=ajt(n,a),l=ojt(s,r),c=s.hideInBreadcrumb;return l&&!c?{linkPath:a,breadcrumbName:l,title:l,component:s.component}:{linkPath:"",breadcrumbName:"",title:""}}).filter(function(a){return a&&a.linkPath});return o},cjt=function(t){var n=sjt(t),r=n.location,i=n.breadcrumbMap;return r&&r.pathname&&i?ljt(r,i,t):[]},ujt=function(t,n){var r=t.breadcrumbRender,i=t.itemRender,o=n.breadcrumbProps||{},a=o.minLength,s=a===void 0?2:a,l=cjt(t),c=function(h){for(var p=i||ijt,m=arguments.length,v=new Array(m>1?m-1:0),y=1;y<m;y++)v[y-1]=arguments[y];return p==null?void 0:p.apply(void 0,[G(G({},h),{},{path:h.linkPath||h.path})].concat(v))},u=l;return r&&(u=r(u||[])||void 0),(u&&u.length<s||r===!1)&&(u=void 0),WE(rjt(),"5.3.0")>-1?{items:u,itemRender:c}:{routes:u,itemRender:c}};function djt(e){return pt(e).reduce(function(t,n){var r=Le(n,2),i=r[0],o=r[1];return t[i]=o,t},{})}var fjt=function e(t,n,r,i){var o=UFt(t,(n==null?void 0:n.locale)||!1,r,!0),a=o.menuData,s=o.breadcrumb;return i?e(i(a),n,r,void 0):{breadcrumb:djt(s),breadcrumbMap:s,menuData:a}},hjt=function(t){var n=f.useState({}),r=Le(n,2),i=r[0],o=r[1];return f.useEffect(function(){o(pu({layout:ln(t.layout)!=="object"?t.layout:void 0,navTheme:t.navTheme,menuRender:t.menuRender,footerRender:t.footerRender,menuHeaderRender:t.menuHeaderRender,headerRender:t.headerRender,fixSiderbar:t.fixSiderbar}))},[t.layout,t.navTheme,t.menuRender,t.footerRender,t.menuHeaderRender,t.headerRender,t.fixSiderbar]),i},pjt=["id","defaultMessage"],mjt=["fixSiderbar","navTheme","layout"],zoe=0,gjt=function(t,n){var r;return t.headerRender===!1||t.pure?null:U.jsx(_Lt,G(G({matchMenuKeys:n},t),{},{stylish:(r=t.stylish)===null||r===void 0?void 0:r.header}))},vjt=function(t){return t.footerRender===!1||t.pure?null:t.footerRender?t.footerRender(G({},t),U.jsx(zDt,{})):null},yjt=function(t,n){var r,i=t.layout,o=t.isMobile,a=t.selectedKeys,s=t.openKeys,l=t.splitMenus,c=t.suppressSiderWhenMenuEmpty,u=t.menuRender;if(t.menuRender===!1||t.pure)return null;var d=t.menuData;if(l&&(s!==!1||i==="mix")&&!o){var h=a||n,p=Le(h,1),m=p[0];if(m){var v;d=((v=t.menuData)===null||v===void 0||(v=v.find(function(C){return C.key===m}))===null||v===void 0?void 0:v.children)||[]}else d=[]}var y=uM(d||[]);if(y&&(y==null?void 0:y.length)<1&&(l||c))return null;if(i==="top"&&!o){var S;return U.jsx(Hoe,G(G({matchMenuKeys:n},t),{},{hide:!0,stylish:(S=t.stylish)===null||S===void 0?void 0:S.sider}))}var b=U.jsx(Hoe,G(G({matchMenuKeys:n},t),{},{menuData:y,stylish:(r=t.stylish)===null||r===void 0?void 0:r.sider}));return u?u(t,b):b},bjt=function(t,n){var r=n.pageTitleRender,i=Noe(t);if(r===!1)return{title:n.title||"",id:"",pageName:""};if(r){var o=r(t,i.title,i);if(typeof o=="string")return Noe(G(G({},i),{},{title:o}));fi(typeof o=="string","pro-layout: renderPageTitle return value should be a string")}return i},Sjt=function(t,n,r){return t?n?64:r:0},Cjt=function(t){var n,r,i,o,a,s,l,c,u,d,h,p,m,v,y=t||{},S=y.children,b=y.onCollapse,C=y.location,_=C===void 0?{pathname:"/"}:C,T=y.contentStyle,x=y.route,E=y.defaultCollapsed,k=y.style,M=y.siderWidth,P=y.menu,D=y.siderMenuType,R=y.isChildrenLayout,A=y.menuDataRender,H=y.actionRef,F=y.bgLayoutImgList,z=y.formatMessage,W=y.loading,q=f.useMemo(function(){return M||(t.layout==="mix"?215:256)},[t.layout,M]),Z=f.useContext(or.ConfigContext),N=(n=t.prefixCls)!==null&&n!==void 0?n:Z.getPrefixCls("pro"),B=Jn(!1,{value:P==null?void 0:P.loading,onChange:P==null?void 0:P.onLoadingChange}),V=Le(B,2),Y=V[0],ie=V[1],ce=f.useState(function(){return zoe+=1,"pro-layout-".concat(zoe)}),fe=Le(ce,1),ee=fe[0],ne=f.useCallback(function(_t){var jt=_t.id,nn=_t.defaultMessage,Ht=tn(_t,pjt);if(z)return z(G({id:jt,defaultMessage:nn},Ht));var Tt=DLt();return Tt[jt]?Tt[jt]:nn},[z]),ue=EV([ee,P==null?void 0:P.params],function(){var _t=Jo(Hr().mark(function jt(nn){var Ht,Tt,gt,Ve;return Hr().wrap(function(mt){for(;;)switch(mt.prev=mt.next){case 0:return Tt=Le(nn,2),gt=Tt[1],ie(!0),mt.next=4,P==null||(Ht=P.request)===null||Ht===void 0?void 0:Ht.call(P,gt||{},(x==null?void 0:x.children)||(x==null?void 0:x.routes)||[]);case 4:return Ve=mt.sent,ie(!1),mt.abrupt("return",Ve);case 7:case"end":return mt.stop()}},jt)}));return function(jt){return _t.apply(this,arguments)}}(),{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),ye=ue.data,me=ue.mutate,pe=ue.isLoading;f.useEffect(function(){ie(pe)},[pe]);var he=_V(),_e=he.cache;f.useEffect(function(){return function(){_e instanceof Map&&_e.delete(ee)}},[]);var le=f.useMemo(function(){return fjt(ye||(x==null?void 0:x.children)||(x==null?void 0:x.routes)||[],P,ne,A)},[ne,P,A,ye,x==null?void 0:x.children,x==null?void 0:x.routes]),xe=le||{},we=xe.breadcrumb,De=xe.breadcrumbMap,Fe=xe.menuData,Ce=Fe===void 0?[]:Fe;H&&P!==null&&P!==void 0&&P.request&&(H.current={reload:function(){me()}});var Te=f.useMemo(function(){return qFt(_.pathname||"/",Ce||[])},[_.pathname,Ce]),ke=f.useMemo(function(){return Array.from(new Set(Te.map(function(_t){return _t.key||_t.path||""})))},[Te]),Pe=Te[Te.length-1]||{},Ne=hjt(Pe),We=G(G({},t),Ne),Q=We.fixSiderbar;We.navTheme;var K=We.layout,J=tn(We,mjt),be=LSt(),Oe=f.useMemo(function(){return(be==="sm"||be==="xs")&&!t.disableMobile},[be,t.disableMobile]),Se=K!=="top"&&!Oe,Ke=Jn(function(){return E!==void 0?E:!!(Oe||be==="md")},{value:t.collapsed,onChange:b}),tt=Le(Ke,2),se=tt[0],ze=tt[1],Ye=Pr(G(G(G({prefixCls:N},t),{},{siderWidth:q},Ne),{},{formatMessage:ne,breadcrumb:we,menu:G(G({},P),{},{type:D||(P==null?void 0:P.type),loading:Y}),layout:K}),["className","style","breadcrumbRender"]),Ue=bjt(G(G({pathname:_.pathname},Ye),{},{breadcrumbMap:De}),t),Je=ujt(G(G({},Ye),{},{breadcrumbRender:t.breadcrumbRender,breadcrumbMap:De}),t),Ze=yjt(G(G({},Ye),{},{menuData:Ce,onCollapse:ze,isMobile:Oe,collapsed:se}),ke),rt=gjt(G(G({},Ye),{},{children:null,hasSiderMenu:!!Ze,menuData:Ce,isMobile:Oe,collapsed:se,onCollapse:ze}),ke),qt=vjt(G({isMobile:Oe,collapsed:se},Ye)),St=f.useContext(Coe),Ot=St.isChildrenLayout,Bt=R!==void 0?R:Ot,Dt="".concat(N,"-layout"),an=tjt(Dt),Vt=an.wrapSSR,Kt=an.hashId,Qt=Re(t.className,Kt,"ant-design-pro",Dt,ae(ae(ae(ae(ae({},"screen-".concat(be),be),"".concat(Dt,"-top-menu"),K==="top"),"".concat(Dt,"-is-children"),Bt),"".concat(Dt,"-fix-siderbar"),Q),"".concat(Dt,"-").concat(K),K)),et=Sjt(!!Se,se,q),ot={position:"relative"};(Bt||T&&T.minHeight)&&(ot.minHeight=0),f.useEffect(function(){var _t;(_t=t.onPageChange)===null||_t===void 0||_t.call(t,t.location)},[_.pathname,(r=_.pathname)===null||r===void 0?void 0:r.search]);var Qe=f.useState(!1),ct=Le(Qe,2),Nt=ct[0],Lt=ct[1],Zt=f.useState(0),Wt=Le(Zt,2),At=Wt[0],$t=Wt[1];W0t(Ue,t.title||!1);var Gt=f.useContext(Pd),Ft=Gt.token,cn=f.useMemo(function(){return F&&F.length>0?F==null?void 0:F.map(function(_t,jt){return U.jsx("img",{src:_t.src,style:G({position:"absolute"},_t)},jt)}):null},[F]);return Vt(U.jsx(Coe.Provider,{value:G(G({},Ye),{},{breadcrumb:Je,menuData:Ce,isMobile:Oe,collapsed:se,hasPageContainer:At,setHasPageContainer:$t,isChildrenLayout:!0,title:Ue.pageName,hasSiderMenu:!!Ze,hasHeader:!!rt,siderWidth:et,hasFooter:!!qt,hasFooterToolbar:Nt,setHasFooterToolbar:Lt,pageTitleInfo:Ue,matchMenus:Te,matchMenuKeys:ke,currentMenu:Pe}),children:t.pure?U.jsx(U.Fragment,{children:S}):U.jsxs("div",{className:Qt,children:[cn||(i=Ft.layout)!==null&&i!==void 0&&i.bgLayout?U.jsx("div",{className:Re("".concat(Dt,"-bg-list"),Kt),children:cn}):null,U.jsxs(xo,{style:G({minHeight:"100%",flexDirection:Ze?"row":void 0},k),children:[U.jsx(or,{theme:{hashed:gb(),token:{controlHeightLG:((o=Ft.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.menuHeight)||(Ft==null?void 0:Ft.controlHeightLG)},components:{Menu:s2e({colorItemBg:((a=Ft.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.colorMenuBackground)||"transparent",colorSubItemBg:((s=Ft.layout)===null||s===void 0||(s=s.sider)===null||s===void 0?void 0:s.colorMenuBackground)||"transparent",radiusItem:Ft.borderRadius,colorItemBgSelected:((l=Ft.layout)===null||l===void 0||(l=l.sider)===null||l===void 0?void 0:l.colorBgMenuItemSelected)||(Ft==null?void 0:Ft.colorBgTextHover),colorItemBgHover:((c=Ft.layout)===null||c===void 0||(c=c.sider)===null||c===void 0?void 0:c.colorBgMenuItemHover)||(Ft==null?void 0:Ft.colorBgTextHover),colorItemBgActive:((u=Ft.layout)===null||u===void 0||(u=u.sider)===null||u===void 0?void 0:u.colorBgMenuItemActive)||(Ft==null?void 0:Ft.colorBgTextActive),colorItemBgSelectedHorizontal:((d=Ft.layout)===null||d===void 0||(d=d.sider)===null||d===void 0?void 0:d.colorBgMenuItemSelected)||(Ft==null?void 0:Ft.colorBgTextHover),colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemText:((h=Ft.layout)===null||h===void 0||(h=h.sider)===null||h===void 0?void 0:h.colorTextMenu)||(Ft==null?void 0:Ft.colorTextSecondary),colorItemTextHover:((p=Ft.layout)===null||p===void 0||(p=p.sider)===null||p===void 0?void 0:p.colorTextMenuItemHover)||"rgba(0, 0, 0, 0.85)",colorItemTextSelected:((m=Ft.layout)===null||m===void 0||(m=m.sider)===null||m===void 0?void 0:m.colorTextMenuSelected)||"rgba(0, 0, 0, 1)",popupBg:Ft==null?void 0:Ft.colorBgElevated,subMenuItemBg:Ft==null?void 0:Ft.colorBgElevated,darkSubMenuItemBg:"transparent",darkPopupBg:Ft==null?void 0:Ft.colorBgElevated})}},children:Ze}),U.jsxs("div",{style:ot,className:"".concat(Dt,"-container ").concat(Kt).trim(),children:[rt,U.jsx(GFt,G(G({hasPageContainer:At,isChildrenLayout:Bt},J),{},{hasHeader:!!rt,prefixCls:Dt,style:T,children:W?U.jsx(LDt,{}):S})),qt,Nt&&U.jsx("div",{className:"".concat(Dt,"-has-footer"),style:{height:64,marginBlockStart:(v=Ft.layout)===null||v===void 0||(v=v.pageContainer)===null||v===void 0?void 0:v.paddingBlockPageContainerContent}})]})]})]})}))},iEe=function(t){var n=t.colorPrimary,r=t.navTheme!==void 0?{dark:t.navTheme==="realDark"}:{};return U.jsx(or,{theme:n?{token:{colorPrimary:n}}:void 0,children:U.jsx(LP,G(G({},r),{},{token:t.token,prefixCls:t.prefixCls,children:U.jsx(Cjt,G(G({logo:U.jsx(YFt,{})},V_e),{},{location:kV()?window.location:void 0},t))}))})};async function xjt(){return Wo("/kaptcha/api/v1/get",{method:"GET",params:{client:So}})}async function wjt(e,t){return Wo("/kaptcha/api/v1/check",{method:"POST",data:{captchaUid:e,captchaCode:t,client:So}})}var SB=function(e,t){return SB=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},SB(e,t)};function Fu(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");SB(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var fr=function(){return fr=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},fr.apply(this,arguments)};function hS(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 dl(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))}function ll(e,t){var n=t&&t.cache?t.cache:Pjt,r=t&&t.serializer?t.serializer:Ojt,i=t&&t.strategy?t.strategy:Ejt;return i(e,{cache:n,serializer:r})}function _jt(e){return e==null||typeof e=="number"||typeof e=="boolean"}function oEe(e,t,n,r){var i=_jt(r)?r:n(r),o=t.get(i);return typeof o>"u"&&(o=e.call(this,r),t.set(i,o)),o}function aEe(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return typeof o>"u"&&(o=e.apply(this,r),t.set(i,o)),o}function OK(e,t,n,r,i){return n.bind(t,e,r,i)}function Ejt(e,t){var n=e.length===1?oEe:aEe;return OK(e,this,n,t.cache.create(),t.serializer)}function Tjt(e,t){return OK(e,this,aEe,t.cache.create(),t.serializer)}function kjt(e,t){return OK(e,this,oEe,t.cache.create(),t.serializer)}var Ojt=function(){return JSON.stringify(arguments)};function PK(){this.cache=Object.create(null)}PK.prototype.get=function(e){return this.cache[e]};PK.prototype.set=function(e,t){this.cache[e]=t};var Pjt={create:function(){return new PK}},cl={variadic:Tjt,monadic:kjt};function sEe(e,t,n){if(n===void 0&&(n=Error),!e)throw new n(t)}ll(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,dl([void 0],t,!1)))},{strategy:cl.variadic});ll(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,dl([void 0],t,!1)))},{strategy:cl.variadic});ll(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,dl([void 0],t,!1)))},{strategy:cl.variadic});ll(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.Locale).bind.apply(e,dl([void 0],t,!1)))},{strategy:cl.variadic});ll(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.ListFormat).bind.apply(e,dl([void 0],t,!1)))},{strategy:cl.variadic});var vi;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(vi||(vi={}));var vo;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(vo||(vo={}));var pS;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(pS||(pS={}));function Uoe(e){return e.type===vo.literal}function Mjt(e){return e.type===vo.argument}function lEe(e){return e.type===vo.number}function cEe(e){return e.type===vo.date}function uEe(e){return e.type===vo.time}function dEe(e){return e.type===vo.select}function fEe(e){return e.type===vo.plural}function Ijt(e){return e.type===vo.pound}function hEe(e){return e.type===vo.tag}function pEe(e){return!!(e&&typeof e=="object"&&e.type===pS.number)}function CB(e){return!!(e&&typeof e=="object"&&e.type===pS.dateTime)}var mEe=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,$jt=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Rjt(e){var t={};return e.replace($jt,function(n){var r=n.length;switch(n[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.year=r===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var Ajt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Njt(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Ajt).filter(function(h){return h.length>0}),n=[],r=0,i=t;r<i.length;r++){var o=i[r],a=o.split("/");if(a.length===0)throw new Error("Invalid number skeleton");for(var s=a[0],l=a.slice(1),c=0,u=l;c<u.length;c++){var d=u[c];if(d.length===0)throw new Error("Invalid number skeleton")}n.push({stem:s,options:l})}return n}function Djt(e){return e.replace(/^(.*?)-/,"")}var Woe=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,gEe=/^(@+)?(\+|#+)?[rs]?$/g,Ljt=/(\*)(0+)|(#+)(0+)|(0+)/g,vEe=/^(0+)$/;function Voe(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(gEe,function(n,r,i){return typeof i!="string"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):i==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof i=="string"?i.length:0)),""}),t}function yEe(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Fjt(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!vEe.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Koe(e){var t={},n=yEe(e);return n||t}function jjt(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=Djt(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=fr(fr(fr({},t),{notation:"scientific"}),i.options.reduce(function(l,c){return fr(fr({},l),Koe(c))},{}));continue;case"engineering":t=fr(fr(fr({},t),{notation:"engineering"}),i.options.reduce(function(l,c){return fr(fr({},l),Koe(c))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Ljt,function(l,c,u,d,h,p){if(c)t.minimumIntegerDigits=u.length;else{if(d&&h)throw new Error("We currently do not support maximum integer digits");if(p)throw new Error("We currently do not support exact integer digits")}return""});continue}if(vEe.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(Woe.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Woe,function(l,c,u,d,h,p){return u==="*"?t.minimumFractionDigits=c.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:h&&p?(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length+p.length):(t.minimumFractionDigits=c.length,t.maximumFractionDigits=c.length),""});var o=i.options[0];o==="w"?t=fr(fr({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=fr(fr({},t),Voe(o)));continue}if(gEe.test(i.stem)){t=fr(fr({},t),Voe(i.stem));continue}var a=yEe(i.stem);a&&(t=fr(fr({},t),a));var s=Fjt(i.stem);s&&(t=fr(fr({},t),s))}return t}var C5={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function Bjt(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if(i==="j"){for(var o=0;r+1<e.length&&e.charAt(r+1)===i;)o++,r++;var a=1+(o&1),s=o<2?1:3+(o>>1),l="a",c=Hjt(t);for((c=="H"||c=="k")&&(s=0);s-- >0;)n+=l;for(;a-- >0;)n=c+n}else i==="J"?n+="H":n+=i}return n}function Hjt(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var i=C5[r||""]||C5[n||""]||C5["".concat(n,"-001")]||C5["001"];return i[0]}var UA,zjt=new RegExp("^".concat(mEe.source,"*")),Ujt=new RegExp("".concat(mEe.source,"*$"));function yi(e,t){return{start:e,end:t}}var Wjt=!!String.prototype.startsWith&&"_a".startsWith("a",1),Vjt=!!String.fromCodePoint,Kjt=!!Object.fromEntries,qjt=!!String.prototype.codePointAt,Gjt=!!String.prototype.trimStart,Yjt=!!String.prototype.trimEnd,Xjt=!!Number.isSafeInteger,Qjt=Xjt?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},xB=!0;try{var Zjt=SEe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");xB=((UA=Zjt.exec("a"))===null||UA===void 0?void 0:UA[0])==="a"}catch{xB=!1}var qoe=Wjt?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},wB=Vjt?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",i=t.length,o=0,a;i>o;){if(a=t[o++],a>1114111)throw RangeError(a+" is not a valid code point");r+=a<65536?String.fromCharCode(a):String.fromCharCode(((a-=65536)>>10)+55296,a%1024+56320)}return r},Goe=Kjt?Object.fromEntries:function(t){for(var n={},r=0,i=t;r<i.length;r++){var o=i[r],a=o[0],s=o[1];n[a]=s}return n},bEe=qjt?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var i=t.charCodeAt(n),o;return i<55296||i>56319||n+1===r||(o=t.charCodeAt(n+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},Jjt=Gjt?function(t){return t.trimStart()}:function(t){return t.replace(zjt,"")},eBt=Yjt?function(t){return t.trimEnd()}:function(t){return t.replace(Ujt,"")};function SEe(e,t){return new RegExp(e,t)}var _B;if(xB){var Yoe=SEe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");_B=function(t,n){var r;Yoe.lastIndex=n;var i=Yoe.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else _B=function(t,n){for(var r=[];;){var i=bEe(t,n);if(i===void 0||CEe(i)||iBt(i))break;r.push(i),n+=i>=65536?2:1}return wB.apply(void 0,r)};var tBt=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var a=this.parseArgument(t,r);if(a.err)return a;i.push(a.val)}else{if(o===125&&t>0)break;if(o===35&&(n==="plural"||n==="selectordinal")){var s=this.clonePosition();this.bump(),i.push({type:vo.pound,location:yi(s,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(vi.UNMATCHED_CLOSING_TAG,yi(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&EB(this.peek()||0)){var a=this.parseTag(t,n);if(a.err)return a;i.push(a.val)}else{var a=this.parseLiteral(t,n);if(a.err)return a;i.push(a.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:vo.literal,value:"<".concat(i,"/>"),location:yi(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,n,!0);if(o.err)return o;var a=o.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!EB(this.char()))return this.error(vi.INVALID_TAG,yi(s,this.clonePosition()));var l=this.clonePosition(),c=this.parseTagName();return i!==c?this.error(vi.UNMATCHED_CLOSING_TAG,yi(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:vo.tag,value:i,children:a,location:yi(r,this.clonePosition())},err:null}:this.error(vi.INVALID_TAG,yi(s,this.clonePosition())))}else return this.error(vi.UNCLOSED_TAG,yi(r,this.clonePosition()))}else return this.error(vi.INVALID_TAG,yi(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&rBt(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),i="";;){var o=this.tryParseQuote(n);if(o){i+=o;continue}var a=this.tryParseUnquoted(t,n);if(a){i+=a;continue}var s=this.tryParseLeftAngleBracket();if(s){i+=s;continue}break}var l=yi(r,this.clonePosition());return{val:{type:vo.literal,value:i,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!nBt(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return wB.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),wB(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(vi.EXPECT_ARGUMENT_CLOSING_BRACE,yi(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(vi.EMPTY_ARGUMENT,yi(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(vi.MALFORMED_ARGUMENT,yi(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(vi.EXPECT_ARGUMENT_CLOSING_BRACE,yi(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:vo.argument,value:i,location:yi(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(vi.EXPECT_ARGUMENT_CLOSING_BRACE,yi(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(vi.MALFORMED_ARGUMENT,yi(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=_B(this.message,n),i=n+r.length;this.bumpTo(i);var o=this.clonePosition(),a=yi(t,o);return{value:r,location:a}},e.prototype.parseArgumentOptions=function(t,n,r,i){var o,a=this.clonePosition(),s=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(s){case"":return this.error(vi.EXPECT_ARGUMENT_TYPE,yi(a,l));case"number":case"date":case"time":{this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var h=eBt(d.val);if(h.length===0)return this.error(vi.EXPECT_ARGUMENT_STYLE,yi(this.clonePosition(),this.clonePosition()));var p=yi(u,this.clonePosition());c={style:h,styleLocation:p}}var m=this.tryParseArgumentClose(i);if(m.err)return m;var v=yi(i,this.clonePosition());if(c&&qoe(c==null?void 0:c.style,"::",0)){var y=Jjt(c.style.slice(2));if(s==="number"){var d=this.parseNumberSkeletonFromString(y,c.styleLocation);return d.err?d:{val:{type:vo.number,value:r,location:v,style:d.val},err:null}}else{if(y.length===0)return this.error(vi.EXPECT_DATE_TIME_SKELETON,v);var S=y;this.locale&&(S=Bjt(y,this.locale));var h={type:pS.dateTime,pattern:S,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?Rjt(S):{}},b=s==="date"?vo.date:vo.time;return{val:{type:b,value:r,location:v,style:h},err:null}}}return{val:{type:s==="number"?vo.number:s==="date"?vo.date:vo.time,value:r,location:v,style:(o=c==null?void 0:c.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var C=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(vi.EXPECT_SELECT_ARGUMENT_OPTIONS,yi(C,fr({},C)));this.bumpSpace();var _=this.parseIdentifierIfPossible(),T=0;if(s!=="select"&&_.value==="offset"){if(!this.bumpIf(":"))return this.error(vi.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,yi(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(vi.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,vi.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),_=this.parseIdentifierIfPossible(),T=d.val}var x=this.tryParsePluralOrSelectOptions(t,s,n,_);if(x.err)return x;var m=this.tryParseArgumentClose(i);if(m.err)return m;var E=yi(i,this.clonePosition());return s==="select"?{val:{type:vo.select,value:r,options:Goe(x.val),location:E},err:null}:{val:{type:vo.plural,value:r,options:Goe(x.val),offset:T,pluralType:s==="plural"?"cardinal":"ordinal",location:E},err:null}}default:return this.error(vi.INVALID_ARGUMENT_TYPE,yi(a,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(vi.EXPECT_ARGUMENT_CLOSING_BRACE,yi(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(vi.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,yi(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=Njt(t)}catch{return this.error(vi.INVALID_NUMBER_SKELETON,n)}return{val:{type:pS.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?jjt(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,i){for(var o,a=!1,s=[],l=new Set,c=i.value,u=i.location;;){if(c.length===0){var d=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(vi.EXPECT_PLURAL_ARGUMENT_SELECTOR,vi.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;u=yi(d,this.clonePosition()),c=this.message.slice(d.offset,this.offset())}else break}if(l.has(c))return this.error(n==="select"?vi.DUPLICATE_SELECT_ARGUMENT_SELECTOR:vi.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);c==="other"&&(a=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?vi.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:vi.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,yi(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(t+1,n,r);if(m.err)return m;var v=this.tryParseArgumentClose(p);if(v.err)return v;s.push([c,{value:m.val,location:yi(p,this.clonePosition())}]),l.add(c),this.bumpSpace(),o=this.parseIdentifierIfPossible(),c=o.value,u=o.location}return s.length===0?this.error(n==="select"?vi.EXPECT_SELECT_ARGUMENT_SELECTOR:vi.EXPECT_PLURAL_ARGUMENT_SELECTOR,yi(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(vi.MISSING_OTHER_CLAUSE,yi(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,a=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)o=!0,a=a*10+(s-48),this.bump();else break}var l=yi(i,this.clonePosition());return o?(a*=r,Qjt(a)?{val:a,err:null}:this.error(n,l)):this.error(t,l)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=bEe(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(qoe(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&CEe(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r??null},e}();function EB(e){return e>=97&&e<=122||e>=65&&e<=90}function nBt(e){return EB(e)||e===47}function rBt(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function CEe(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function iBt(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function TB(e){e.forEach(function(t){if(delete t.location,dEe(t)||fEe(t))for(var n in t.options)delete t.options[n].location,TB(t.options[n].value);else lEe(t)&&pEe(t.style)||(cEe(t)||uEe(t))&&CB(t.style)?delete t.style.location:hEe(t)&&TB(t.children)})}function oBt(e,t){t===void 0&&(t={}),t=fr({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new tBt(e,t).parse();if(n.err){var r=SyntaxError(vi[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||TB(n.val),n.val}var Yf;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Yf||(Yf={}));var wg=function(e){Fu(t,e);function t(n,r,i){var o=e.call(this,n)||this;return o.code=r,o.originalMessage=i,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Xoe=function(e){Fu(t,e);function t(n,r,i,o){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),Yf.INVALID_VALUE,o)||this}return t}(wg),aBt=function(e){Fu(t,e);function t(n,r,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),Yf.INVALID_VALUE,i)||this}return t}(wg),sBt=function(e){Fu(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),Yf.MISSING_VALUE,r)||this}return t}(wg),il;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(il||(il={}));function lBt(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==il.literal||n.type!==il.literal?t.push(n):r.value+=n.value,t},[])}function xEe(e){return typeof e=="function"}function Z3(e,t,n,r,i,o,a){if(e.length===1&&Uoe(e[0]))return[{type:il.literal,value:e[0].value}];for(var s=[],l=0,c=e;l<c.length;l++){var u=c[l];if(Uoe(u)){s.push({type:il.literal,value:u.value});continue}if(Ijt(u)){typeof o=="number"&&s.push({type:il.literal,value:n.getNumberFormat(t).format(o)});continue}var d=u.value;if(!(i&&d in i))throw new sBt(d,a);var h=i[d];if(Mjt(u)){(!h||typeof h=="string"||typeof h=="number")&&(h=typeof h=="string"||typeof h=="number"?String(h):""),s.push({type:typeof h=="string"?il.literal:il.object,value:h});continue}if(cEe(u)){var p=typeof u.style=="string"?r.date[u.style]:CB(u.style)?u.style.parsedOptions:void 0;s.push({type:il.literal,value:n.getDateTimeFormat(t,p).format(h)});continue}if(uEe(u)){var p=typeof u.style=="string"?r.time[u.style]:CB(u.style)?u.style.parsedOptions:r.time.medium;s.push({type:il.literal,value:n.getDateTimeFormat(t,p).format(h)});continue}if(lEe(u)){var p=typeof u.style=="string"?r.number[u.style]:pEe(u.style)?u.style.parsedOptions:void 0;p&&p.scale&&(h=h*(p.scale||1)),s.push({type:il.literal,value:n.getNumberFormat(t,p).format(h)});continue}if(hEe(u)){var m=u.children,v=u.value,y=i[v];if(!xEe(y))throw new aBt(v,"function",a);var S=Z3(m,t,n,r,i,o),b=y(S.map(function(T){return T.value}));Array.isArray(b)||(b=[b]),s.push.apply(s,b.map(function(T){return{type:typeof T=="string"?il.literal:il.object,value:T}}))}if(dEe(u)){var C=u.options[h]||u.options.other;if(!C)throw new Xoe(u.value,h,Object.keys(u.options),a);s.push.apply(s,Z3(C.value,t,n,r,i));continue}if(fEe(u)){var C=u.options["=".concat(h)];if(!C){if(!Intl.PluralRules)throw new wg(`Intl.PluralRules is not available in this environment.
|
||
Try polyfilling it using "@formatjs/intl-pluralrules"
|
||
`,Yf.MISSING_INTL_API,a);var _=n.getPluralRules(t,{type:u.pluralType}).select(h-(u.offset||0));C=u.options[_]||u.options.other}if(!C)throw new Xoe(u.value,h,Object.keys(u.options),a);s.push.apply(s,Z3(C.value,t,n,r,i,h-(u.offset||0)));continue}}return lBt(s)}function cBt(e,t){return t?fr(fr(fr({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=fr(fr({},e[r]),t[r]||{}),n},{})):e}function uBt(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=cBt(e[r],t[r]),n},fr({},e)):e}function WA(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function dBt(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:ll(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,dl([void 0],n,!1)))},{cache:WA(e.number),strategy:cl.variadic}),getDateTimeFormat:ll(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,dl([void 0],n,!1)))},{cache:WA(e.dateTime),strategy:cl.variadic}),getPluralRules:ll(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,dl([void 0],n,!1)))},{cache:WA(e.pluralRules),strategy:cl.variadic})}}var wEe=function(){function e(t,n,r,i){n===void 0&&(n=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var c=o.formatToParts(l);if(c.length===1)return c[0].value;var u=c.reduce(function(d,h){return!d.length||h.type!==il.literal||typeof d[d.length-1]!="string"?d.push(h.value):d[d.length-1]+=h.value,d},[]);return u.length<=1?u[0]||"":u},this.formatToParts=function(l){return Z3(o.ast,o.locales,o.formatters,o.formats,l,void 0,o.message)},this.resolvedOptions=function(){var l;return{locale:((l=o.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var a=i||{};a.formatters;var s=hS(a,["formatters"]);this.ast=e.__parse(t,fr(fr({},s),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=uBt(e.formats,r),this.formatters=i&&i.formatters||dBt(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(!(typeof Intl.Locale>"u")){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=oBt,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}(),Iv;(function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"})(Iv||(Iv={}));var d4=function(e){Fu(t,e);function t(n,r,i){var o=this,a=i?i instanceof Error?i:new Error(String(i)):void 0;return o=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,`
|
||
`).concat(a?`
|
||
`.concat(a.message,`
|
||
`).concat(a.stack):""))||this,o.code=n,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(o,t),o}return t}(Error),fBt=function(e){Fu(t,e);function t(n,r){return e.call(this,Iv.UNSUPPORTED_FORMATTER,n,r)||this}return t}(d4),hBt=function(e){Fu(t,e);function t(n,r){return e.call(this,Iv.INVALID_CONFIG,n,r)||this}return t}(d4),Qoe=function(e){Fu(t,e);function t(n,r){return e.call(this,Iv.MISSING_DATA,n,r)||this}return t}(d4),ju=function(e){Fu(t,e);function t(n,r,i){var o=e.call(this,Iv.FORMAT_ERROR,"".concat(n,`
|
||
Locale: `).concat(r,`
|
||
`),i)||this;return o.locale=r,o}return t}(d4),VA=function(e){Fu(t,e);function t(n,r,i,o){var a=e.call(this,"".concat(n,`
|
||
MessageID: `).concat(i==null?void 0:i.id,`
|
||
Default Message: `).concat(i==null?void 0:i.defaultMessage,`
|
||
Description: `).concat(i==null?void 0:i.description,`
|
||
`),r,o)||this;return a.descriptor=i,a.locale=r,a}return t}(ju),pBt=function(e){Fu(t,e);function t(n,r){var i=e.call(this,Iv.MISSING_TRANSLATION,'Missing message: "'.concat(n.id,'" for locale "').concat(r,'", using ').concat(n.defaultMessage?"default message (".concat(typeof n.defaultMessage=="string"?n.defaultMessage:n.defaultMessage.map(function(o){var a;return(a=o.value)!==null&&a!==void 0?a:JSON.stringify(o)}).join(),")"):"id"," as fallback."))||this;return i.descriptor=n,i}return t}(d4);function s0(e,t,n){return n===void 0&&(n={}),t.reduce(function(r,i){return i in e?r[i]=e[i]:i in n&&(r[i]=n[i]),r},{})}var mBt=function(e){},gBt=function(e){},_Ee={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:mBt,onWarn:gBt};function EEe(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function Xg(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function vBt(e){e===void 0&&(e=EEe());var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,r=Intl.DisplayNames,i=ll(function(){for(var s,l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];return new((s=Intl.DateTimeFormat).bind.apply(s,dl([void 0],l,!1)))},{cache:Xg(e.dateTime),strategy:cl.variadic}),o=ll(function(){for(var s,l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];return new((s=Intl.NumberFormat).bind.apply(s,dl([void 0],l,!1)))},{cache:Xg(e.number),strategy:cl.variadic}),a=ll(function(){for(var s,l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];return new((s=Intl.PluralRules).bind.apply(s,dl([void 0],l,!1)))},{cache:Xg(e.pluralRules),strategy:cl.variadic});return{getDateTimeFormat:i,getNumberFormat:o,getMessageFormat:ll(function(s,l,c,u){return new wEe(s,l,c,fr({formatters:{getNumberFormat:o,getDateTimeFormat:i,getPluralRules:a}},u||{}))},{cache:Xg(e.message),strategy:cl.variadic}),getRelativeTimeFormat:ll(function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return new(t.bind.apply(t,dl([void 0],s,!1)))},{cache:Xg(e.relativeTime),strategy:cl.variadic}),getPluralRules:a,getListFormat:ll(function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return new(n.bind.apply(n,dl([void 0],s,!1)))},{cache:Xg(e.list),strategy:cl.variadic}),getDisplayNames:ll(function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return new(r.bind.apply(r,dl([void 0],s,!1)))},{cache:Xg(e.displayNames),strategy:cl.variadic})}}function MK(e,t,n,r){var i=e&&e[t],o;if(i&&(o=i[n]),o)return o;r(new fBt("No ".concat(t," format named: ").concat(n)))}function x5(e,t){return Object.keys(e).reduce(function(n,r){return n[r]=fr({timeZone:t},e[r]),n},{})}function Zoe(e,t){var n=Object.keys(fr(fr({},e),t));return n.reduce(function(r,i){return r[i]=fr(fr({},e[i]||{}),t[i]||{}),r},{})}function Joe(e,t){if(!t)return e;var n=wEe.formats;return fr(fr(fr({},n),e),{date:Zoe(x5(n.date,t),x5(e.date||{},t)),time:Zoe(x5(n.time,t),x5(e.time||{},t))})}var kB=function(e,t,n,r,i){var o=e.locale,a=e.formats,s=e.messages,l=e.defaultLocale,c=e.defaultFormats,u=e.fallbackOnEmptyString,d=e.onError,h=e.timeZone,p=e.defaultRichTextElements;n===void 0&&(n={id:""});var m=n.id,v=n.defaultMessage;sEe(!!m,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var y=String(m),S=s&&Object.prototype.hasOwnProperty.call(s,y)&&s[y];if(Array.isArray(S)&&S.length===1&&S[0].type===vo.literal)return S[0].value;if(!r&&S&&typeof S=="string"&&!p)return S.replace(/'\{(.*?)\}'/gi,"{$1}");if(r=fr(fr({},p),r||{}),a=Joe(a,h),c=Joe(c,h),!S){if(u===!1&&S==="")return S;if((!v||o&&o.toLowerCase()!==l.toLowerCase())&&d(new pBt(n,o)),v)try{var b=t.getMessageFormat(v,l,c,i);return b.format(r)}catch(C){return d(new VA('Error formatting default message for: "'.concat(y,'", rendering default message verbatim'),o,n,C)),typeof v=="string"?v:y}return y}try{var b=t.getMessageFormat(S,o,a,fr({formatters:t},i||{}));return b.format(r)}catch(C){d(new VA('Error formatting message: "'.concat(y,'", using ').concat(v?"default message":"id"," as fallback."),o,n,C))}if(v)try{var b=t.getMessageFormat(v,l,c,i);return b.format(r)}catch(C){d(new VA('Error formatting the default message for: "'.concat(y,'", rendering message verbatim'),o,n,C))}return typeof S=="string"?S:typeof v=="string"?v:y},TEe=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function fM(e,t,n,r){var i=e.locale,o=e.formats,a=e.onError,s=e.timeZone;r===void 0&&(r={});var l=r.format,c=fr(fr({},s&&{timeZone:s}),l&&MK(o,t,l,a)),u=s0(r,TEe,c);return t==="time"&&!u.hour&&!u.minute&&!u.second&&!u.timeStyle&&!u.dateStyle&&(u=fr(fr({},u),{hour:"numeric",minute:"numeric"})),n(i,u)}function yBt(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],o=n[1],a=o===void 0?{}:o,s=typeof i=="string"?new Date(i||0):i;try{return fM(e,"date",t,a).format(s)}catch(l){e.onError(new ju("Error formatting date.",e.locale,l))}return String(s)}function bBt(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],o=n[1],a=o===void 0?{}:o,s=typeof i=="string"?new Date(i||0):i;try{return fM(e,"time",t,a).format(s)}catch(l){e.onError(new ju("Error formatting time.",e.locale,l))}return String(s)}function SBt(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],o=n[1],a=n[2],s=a===void 0?{}:a,l=e.timeZone,c=e.locale,u=e.onError,d=s0(s,TEe,l?{timeZone:l}:{});try{return t(c,d).formatRange(i,o)}catch(h){u(new ju("Error formatting date time range.",e.locale,h))}return String(i)}function CBt(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],o=n[1],a=o===void 0?{}:o,s=typeof i=="string"?new Date(i||0):i;try{return fM(e,"date",t,a).formatToParts(s)}catch(l){e.onError(new ju("Error formatting date.",e.locale,l))}return[]}function xBt(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],o=n[1],a=o===void 0?{}:o,s=typeof i=="string"?new Date(i||0):i;try{return fM(e,"time",t,a).formatToParts(s)}catch(l){e.onError(new ju("Error formatting time.",e.locale,l))}return[]}var wBt=["style","type","fallback","languageDisplay"];function _Bt(e,t,n,r){var i=e.locale,o=e.onError,a=Intl.DisplayNames;a||o(new wg(`Intl.DisplayNames is not available in this environment.
|
||
Try polyfilling it using "@formatjs/intl-displaynames"
|
||
`,Yf.MISSING_INTL_API));var s=s0(r,wBt);try{return t(i,s).of(n)}catch(l){o(new ju("Error formatting display name.",i,l))}}var EBt=["type","style"],eae=Date.now();function TBt(e){return"".concat(eae,"_").concat(e,"_").concat(eae)}function kBt(e,t,n,r){r===void 0&&(r={});var i=kEe(e,t,n,r).reduce(function(o,a){var s=a.value;return typeof s!="string"?o.push(s):typeof o[o.length-1]=="string"?o[o.length-1]+=s:o.push(s),o},[]);return i.length===1?i[0]:i.length===0?"":i}function kEe(e,t,n,r){var i=e.locale,o=e.onError;r===void 0&&(r={});var a=Intl.ListFormat;a||o(new wg(`Intl.ListFormat is not available in this environment.
|
||
Try polyfilling it using "@formatjs/intl-listformat"
|
||
`,Yf.MISSING_INTL_API));var s=s0(r,EBt);try{var l={},c=n.map(function(u,d){if(typeof u=="object"){var h=TBt(d);return l[h]=u,h}return String(u)});return t(i,s).formatToParts(c).map(function(u){return u.type==="literal"?u:fr(fr({},u),{value:l[u.value]||u.value})})}catch(u){o(new ju("Error formatting list.",i,u))}return n}var OBt=["type"];function PBt(e,t,n,r){var i=e.locale,o=e.onError;r===void 0&&(r={}),Intl.PluralRules||o(new wg(`Intl.PluralRules is not available in this environment.
|
||
Try polyfilling it using "@formatjs/intl-pluralrules"
|
||
`,Yf.MISSING_INTL_API));var a=s0(r,OBt);try{return t(i,a).select(n)}catch(s){o(new ju("Error formatting plural.",i,s))}return"other"}var MBt=["numeric","style"];function IBt(e,t,n){var r=e.locale,i=e.formats,o=e.onError;n===void 0&&(n={});var a=n.format,s=!!a&&MK(i,"relative",a,o)||{},l=s0(n,MBt,s);return t(r,l)}function $Bt(e,t,n,r,i){i===void 0&&(i={}),r||(r="second");var o=Intl.RelativeTimeFormat;o||e.onError(new wg(`Intl.RelativeTimeFormat is not available in this environment.
|
||
Try polyfilling it using "@formatjs/intl-relativetimeformat"
|
||
`,Yf.MISSING_INTL_API));try{return IBt(e,t,i).format(n,r)}catch(a){e.onError(new ju("Error formatting relative time.",e.locale,a))}return String(n)}var RBt=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function OEe(e,t,n){var r=e.locale,i=e.formats,o=e.onError;n===void 0&&(n={});var a=n.format,s=a&&MK(i,"number",a,o)||{},l=s0(n,RBt,s);return t(r,l)}function ABt(e,t,n,r){r===void 0&&(r={});try{return OEe(e,t,r).format(n)}catch(i){e.onError(new ju("Error formatting number.",e.locale,i))}return String(n)}function NBt(e,t,n,r){r===void 0&&(r={});try{return OEe(e,t,r).formatToParts(n)}catch(i){e.onError(new ju("Error formatting number.",e.locale,i))}return[]}function DBt(e){var t=e?e[Object.keys(e)[0]]:void 0;return typeof t=="string"}function LBt(e){e.onWarn&&e.defaultRichTextElements&&DBt(e.messages||{})&&e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
|
||
Please consider using "@formatjs/cli" to pre-compile your messages for performance.
|
||
For more details see https://formatjs.io/docs/getting-started/message-distribution`)}function FBt(e,t){var n=vBt(t),r=fr(fr({},_Ee),e),i=r.locale,o=r.defaultLocale,a=r.onError;return i?!Intl.NumberFormat.supportedLocalesOf(i).length&&a?a(new Qoe('Missing locale data for locale: "'.concat(i,'" in Intl.NumberFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(i).length&&a&&a(new Qoe('Missing locale data for locale: "'.concat(i,'" in Intl.DateTimeFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(a&&a(new hBt('"locale" was not configured, using "'.concat(o,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),r.locale=r.defaultLocale||"en"),LBt(r),fr(fr({},r),{formatters:n,formatNumber:ABt.bind(null,r,n.getNumberFormat),formatNumberToParts:NBt.bind(null,r,n.getNumberFormat),formatRelativeTime:$Bt.bind(null,r,n.getRelativeTimeFormat),formatDate:yBt.bind(null,r,n.getDateTimeFormat),formatDateToParts:CBt.bind(null,r,n.getDateTimeFormat),formatTime:bBt.bind(null,r,n.getDateTimeFormat),formatDateTimeRange:SBt.bind(null,r,n.getDateTimeFormat),formatTimeToParts:xBt.bind(null,r,n.getDateTimeFormat),formatPlural:PBt.bind(null,r,n.getPluralRules),formatMessage:kB.bind(null,r,n),$t:kB.bind(null,r,n),formatList:kBt.bind(null,r,n.getListFormat),formatListToParts:kEe.bind(null,r,n.getListFormat),formatDisplayName:_Bt.bind(null,r,n.getDisplayNames)})}function PEe(e){sEe(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var MEe=fr(fr({},_Ee),{textComponent:f.Fragment});function jBt(e){return function(t){return e(f.Children.toArray(t))}}function OB(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),i=n.length;if(r.length!==i)return!1;for(var o=0;o<i;o++){var a=n[o];if(e[a]!==t[a]||!Object.prototype.hasOwnProperty.call(t,a))return!1}return!0}var IEe={exports:{}},Ui={};/** @license React v16.13.1
|
||
* 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 ls=typeof Symbol=="function"&&Symbol.for,IK=ls?Symbol.for("react.element"):60103,$K=ls?Symbol.for("react.portal"):60106,hM=ls?Symbol.for("react.fragment"):60107,pM=ls?Symbol.for("react.strict_mode"):60108,mM=ls?Symbol.for("react.profiler"):60114,gM=ls?Symbol.for("react.provider"):60109,vM=ls?Symbol.for("react.context"):60110,RK=ls?Symbol.for("react.async_mode"):60111,yM=ls?Symbol.for("react.concurrent_mode"):60111,bM=ls?Symbol.for("react.forward_ref"):60112,SM=ls?Symbol.for("react.suspense"):60113,BBt=ls?Symbol.for("react.suspense_list"):60120,CM=ls?Symbol.for("react.memo"):60115,xM=ls?Symbol.for("react.lazy"):60116,HBt=ls?Symbol.for("react.block"):60121,zBt=ls?Symbol.for("react.fundamental"):60117,UBt=ls?Symbol.for("react.responder"):60118,WBt=ls?Symbol.for("react.scope"):60119;function qc(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case IK:switch(e=e.type,e){case RK:case yM:case hM:case mM:case pM:case SM:return e;default:switch(e=e&&e.$$typeof,e){case vM:case bM:case xM:case CM:case gM:return e;default:return t}}case $K:return t}}}function $Ee(e){return qc(e)===yM}Ui.AsyncMode=RK;Ui.ConcurrentMode=yM;Ui.ContextConsumer=vM;Ui.ContextProvider=gM;Ui.Element=IK;Ui.ForwardRef=bM;Ui.Fragment=hM;Ui.Lazy=xM;Ui.Memo=CM;Ui.Portal=$K;Ui.Profiler=mM;Ui.StrictMode=pM;Ui.Suspense=SM;Ui.isAsyncMode=function(e){return $Ee(e)||qc(e)===RK};Ui.isConcurrentMode=$Ee;Ui.isContextConsumer=function(e){return qc(e)===vM};Ui.isContextProvider=function(e){return qc(e)===gM};Ui.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===IK};Ui.isForwardRef=function(e){return qc(e)===bM};Ui.isFragment=function(e){return qc(e)===hM};Ui.isLazy=function(e){return qc(e)===xM};Ui.isMemo=function(e){return qc(e)===CM};Ui.isPortal=function(e){return qc(e)===$K};Ui.isProfiler=function(e){return qc(e)===mM};Ui.isStrictMode=function(e){return qc(e)===pM};Ui.isSuspense=function(e){return qc(e)===SM};Ui.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===hM||e===yM||e===mM||e===pM||e===SM||e===BBt||typeof e=="object"&&e!==null&&(e.$$typeof===xM||e.$$typeof===CM||e.$$typeof===gM||e.$$typeof===vM||e.$$typeof===bM||e.$$typeof===zBt||e.$$typeof===UBt||e.$$typeof===WBt||e.$$typeof===HBt)};Ui.typeOf=qc;IEe.exports=Ui;var VBt=IEe.exports,REe=VBt,KBt={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},qBt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},AEe={};AEe[REe.ForwardRef]=KBt;AEe[REe.Memo]=qBt;var AK=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=f.createContext(null)):f.createContext(null);AK.Consumer;var GBt=AK.Provider,YBt=GBt,XBt=AK;function io(){var e=f.useContext(XBt);return PEe(e),e}var PB;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(PB||(PB={}));var MB;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(MB||(MB={}));function NEe(e){var t=function(n){var r=io(),i=n.value,o=n.children,a=hS(n,["value","children"]),s=typeof i=="string"?new Date(i||0):i,l=e==="formatDate"?r.formatDateToParts(s,a):r.formatTimeToParts(s,a);return o(l)};return t.displayName=MB[e],t}function f4(e){var t=function(n){var r=io(),i=n.value,o=n.children,a=hS(n,["value","children"]),s=r[e](i,a);if(typeof o=="function")return o(s);var l=r.textComponent||f.Fragment;return f.createElement(l,null,s)};return t.displayName=PB[e],t}function DEe(e){return e&&Object.keys(e).reduce(function(t,n){var r=e[n];return t[n]=xEe(r)?jBt(r):r,t},{})}var tae=function(e,t,n,r){for(var i=[],o=4;o<arguments.length;o++)i[o-4]=arguments[o];var a=DEe(r),s=kB.apply(void 0,dl([e,t,n,a],i,!1));return Array.isArray(s)?f.Children.toArray(s):s},nae=function(e,t){var n=e.defaultRichTextElements,r=hS(e,["defaultRichTextElements"]),i=DEe(n),o=FBt(fr(fr(fr({},MEe),r),{defaultRichTextElements:i}),t),a={locale:o.locale,timeZone:o.timeZone,fallbackOnEmptyString:o.fallbackOnEmptyString,formats:o.formats,defaultLocale:o.defaultLocale,defaultFormats:o.defaultFormats,messages:o.messages,onError:o.onError,defaultRichTextElements:i};return fr(fr({},o),{formatMessage:tae.bind(null,a,o.formatters),$t:tae.bind(null,a,o.formatters)})};function KA(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}var QBt=function(e){Fu(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.cache=EEe(),n.state={cache:n.cache,intl:nae(KA(n.props),n.cache),prevConfig:KA(n.props)},n}return t.getDerivedStateFromProps=function(n,r){var i=r.prevConfig,o=r.cache,a=KA(n);return OB(i,a)?null:{intl:nae(a,o),prevConfig:a}},t.prototype.render=function(){return PEe(this.state.intl),f.createElement(YBt,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=MEe,t}(f.PureComponent);function ZBt(e,t){var n=e.values,r=hS(e,["values"]),i=t.values,o=hS(t,["values"]);return OB(i,n)&&OB(r,o)}function LEe(e){var t=io(),n=t.formatMessage,r=t.textComponent,i=r===void 0?f.Fragment:r,o=e.id,a=e.description,s=e.defaultMessage,l=e.values,c=e.children,u=e.tagName,d=u===void 0?i:u,h=e.ignoreTag,p={id:o,description:a,defaultMessage:s},m=n(p,l,{ignoreTag:h});return typeof c=="function"?c(Array.isArray(m)?m:[m]):d?f.createElement(d,null,f.Children.toArray(m)):f.createElement(f.Fragment,null,m)}LEe.displayName="FormattedMessage";var Oc=f.memo(LEe,ZBt);Oc.displayName="MemoizedFormattedMessage";f4("formatDate");f4("formatTime");f4("formatNumber");f4("formatList");f4("formatDisplayName");NEe("formatDate");NEe("formatTime");const IC=({onKaptchaChange:e,onKaptchaCheck:t})=>{const n=io(),[r,i]=f.useState(),[o,a]=f.useState(),s=async()=>{const u=await xjt();u.data.code===200&&(i(u.data.data.captchaUid),a(u.data.data.captchaImage))},l=async(u,d)=>{const h=await wjt(u,d);console.log("checkCaptcha response",h),h.data.code===200?t&&t(!0):t&&t(!1)};f.useEffect(()=>{s()},[]);const c=u=>{e&&(e(r,u.target.value),u.target.value&&u.target.value!==""&&u.target.value.trim().length===4?l(r,u.target.value):t&&t(!1))};return U.jsx(U.Fragment,{children:o&&U.jsxs(U.Fragment,{children:[U.jsx($i,{onChange:c,prefix:U.jsx(awt,{}),placeholder:n.formatMessage({id:"captcha",defaultMessage:"captcha"}),style:{width:"65%",float:"left",height:40}}),U.jsx("img",{src:o,alt:"captcha",onClick:s})]})})},JBt=({loginType:e,onKaptchaChange:t,onKaptchaCheck:n,onRememberChange:r})=>{const i=io();return f.useEffect(()=>{const o=localStorage.getItem(Sc);if(o)try{const{username:a,remember:s}=JSON.parse(o);a&&(r==null||r(a,!!s))}catch(a){console.error("Failed to parse saved credentials:",a)}},[r]),U.jsx(U.Fragment,{children:e==="account"&&U.jsxs("div",{children:[U.jsx(ji,{name:"username",fieldProps:{size:"large",prefix:U.jsx(DV,{className:"prefixIcon"}),onClear:()=>{console.log("onClear");const o=localStorage.getItem(Sc);if(o)try{const a=JSON.parse(o),{username:s,...l}=a;console.log("username",s),console.log("rest",l),localStorage.setItem(Sc,JSON.stringify(l))}catch(a){console.error("Failed to parse saved credentials:",a)}}},placeholder:i.formatMessage({id:"pages.login.username.placeholder",defaultMessage:"邮箱"}),rules:[{required:!0,message:U.jsx(Oc,{id:"pages.login.username.required",defaultMessage:"请输入邮箱!"})}]}),U.jsx(ji.Password,{name:"password",fieldProps:{size:"large",prefix:U.jsx(r0,{className:"prefixIcon"})},placeholder:i.formatMessage({id:"pages.login.password.placeholder",defaultMessage:"密码"}),rules:[{required:!0,message:U.jsx(Oc,{id:"pages.login.password.required",defaultMessage:"请输入密码!"})}]}),U.jsx(ai.Item,{name:"captchaCode",rules:[{required:!0,message:i.formatMessage({id:"pages.login.captcha.required",defaultMessage:"请输入验证码!"})}],children:U.jsx(IC,{onKaptchaChange:t,onKaptchaCheck:n})})]})})};async function eHt(e){return Wo("/auth/v1/login",{method:"POST",data:{...e,client:So}})}async function NK(e){return Wo("/auth/v1/send/mobile",{method:"POST",data:{...e,client:So}})}async function FEe(e){return Wo("/auth/v1/send/email",{method:"POST",data:{...e,client:So}})}async function tHt(e){return Wo("/auth/v1/login/mobile",{method:"POST",data:{...e,client:So}})}async function nHt(e,t){return Wo("/auth/v1/vip/scan/query",{method:"GET",params:{deviceUid:e,forceRefresh:t,client:So}})}async function rHt(e){return Wo("/auth/v1/vip/scan/login",{method:"POST",data:{...e,client:So}})}async function iHt(e){return Wo("/api/v1/user/logout",{method:"POST",data:{client:So}})}const oHt=({loginType:e,onKaptchaChange:t,onKaptchaCheck:n,onRememberChange:r})=>{const i=io(),[o,a]=f.useState(""),[s,l]=f.useState(""),[c,u]=f.useState(!1);f.useEffect(()=>{const v=localStorage.getItem(Sc);if(v)try{const{mobile:y}=JSON.parse(v);y&&(r==null||r(y))}catch(y){console.error("Failed to parse saved credentials:",y)}},[r]);const d=async(v,y)=>{a(v),l(y),t&&t(v,y)},h=async v=>{u(v),n&&n(v)},p=[{label:i.formatMessage({id:"pages.login.country.china"}),value:"86",icon:"🇨🇳",code:"CN"},{label:i.formatMessage({id:"pages.login.country.hongkong"}),value:"852",icon:"🇭🇰",code:"HK"},{label:i.formatMessage({id:"pages.login.country.taiwan"}),value:"886",icon:"🇹🇼",code:"TW"},{label:i.formatMessage({id:"pages.login.country.macao"}),value:"853",icon:"🇲🇴",code:"MO"},{label:i.formatMessage({id:"pages.login.country.japan"}),value:"81",icon:"🇯🇵",code:"JP"},{label:i.formatMessage({id:"pages.login.country.korea"}),value:"82",icon:"🇰🇷",code:"KR"},{label:i.formatMessage({id:"pages.login.country.singapore"}),value:"65",icon:"🇸🇬",code:"SG"},{label:i.formatMessage({id:"pages.login.country.malaysia"}),value:"60",icon:"🇲🇾",code:"MY"},{label:i.formatMessage({id:"pages.login.country.thailand"}),value:"66",icon:"🇹🇭",code:"TH"},{label:i.formatMessage({id:"pages.login.country.vietnam"}),value:"84",icon:"🇻🇳",code:"VN"},{label:i.formatMessage({id:"pages.login.country.philippines"}),value:"63",icon:"🇵🇭",code:"PH"},{label:i.formatMessage({id:"pages.login.country.indonesia"}),value:"62",icon:"🇮🇩",code:"ID"},{label:i.formatMessage({id:"pages.login.country.usa"}),value:"1-us",icon:"🇺🇸",code:"US"},{label:i.formatMessage({id:"pages.login.country.canada"}),value:"1-ca",icon:"🇨🇦",code:"CA"},{label:i.formatMessage({id:"pages.login.country.uk"}),value:"44",icon:"🇬🇧",code:"GB"},{label:i.formatMessage({id:"pages.login.country.germany"}),value:"49",icon:"🇩🇪",code:"DE"},{label:i.formatMessage({id:"pages.login.country.france"}),value:"33",icon:"🇫🇷",code:"FR"},{label:i.formatMessage({id:"pages.login.country.italy"}),value:"39",icon:"🇮🇹",code:"IT"},{label:i.formatMessage({id:"pages.login.country.spain"}),value:"34",icon:"🇪🇸",code:"ES"},{label:i.formatMessage({id:"pages.login.country.russia"}),value:"7",icon:"🇷🇺",code:"RU"},{label:i.formatMessage({id:"pages.login.country.australia"}),value:"61",icon:"🇦🇺",code:"AU"},{label:i.formatMessage({id:"pages.login.country.newzealand"}),value:"64",icon:"🇳🇿",code:"NZ"}],m=v=>{const y=v.value.includes("-")?v.value.split("-")[0]:v.value;return U.jsxs("div",{children:[U.jsx("span",{role:"img","aria-label":v.label,style:{marginRight:8},children:v.icon}),v.label," (+",y,")"]})};return U.jsx(U.Fragment,{children:e==="mobile"&&U.jsxs(U.Fragment,{children:[U.jsxs(DE,{gutter:16,children:[U.jsx(_v,{span:10,children:U.jsx(aK,{name:"country",options:p,fieldProps:{size:"large",placeholder:i.formatMessage({id:"pages.login.country.placeholder",defaultMessage:"选择国家/地区"}),optionLabelProp:"label",optionItemRender:m},initialValue:"86"})}),U.jsx(_v,{span:14,children:U.jsx(ji,{fieldProps:{size:"large",prefix:U.jsx(YE,{className:"prefixIcon"}),onClear:()=>{console.log("onClear");const v=localStorage.getItem(Sc);if(v)try{const y=JSON.parse(v),{mobile:S,...b}=y;console.log("saved:",S,y),localStorage.setItem(Sc,JSON.stringify(b))}catch(y){console.error("Failed to parse saved credentials:",y)}}},name:"mobile",placeholder:i.formatMessage({id:"pages.login.phoneNumber.placeholder",defaultMessage:"手机号"}),rules:[{required:!0,message:U.jsx(Oc,{id:"pages.login.phoneNumber.required",defaultMessage:"请输入手机号!"})},{pattern:/^1\d{10}$/,message:U.jsx(Oc,{id:"pages.login.phoneNumber.invalid",defaultMessage:"手机号格式错误!"})}]})})]}),U.jsx(ai.Item,{name:"captchaCode",rules:[{required:!0,message:i.formatMessage({id:"pages.login.captcha.required",defaultMessage:"请输入验证码!"})}],children:U.jsx(IC,{onKaptchaChange:d,onKaptchaCheck:h})}),U.jsx(QE,{fieldProps:{size:"large",prefix:U.jsx(r0,{className:"prefixIcon"})},captchaProps:{size:"large",disabled:!c},placeholder:i.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"请输入验证码"}),captchaTextRender:(v,y)=>v?`${y} ${i.formatMessage({id:"pages.getCaptchaSecondText",defaultMessage:"获取验证码"})}`:i.formatMessage({id:"pages.login.phoneLogin.getVerificationCode",defaultMessage:"获取验证码"}),phoneName:"mobile",name:"code",rules:[{required:!0,message:U.jsx(Oc,{id:"pages.login.captcha.required",defaultMessage:"请输入验证码!"})}],onGetCaptcha:async v=>{if(console.log("mobile:",v),v&&v.length===11){const S=await NK({mobile:v,type:EPe,captchaUid:o,captchaCode:s,platform:Eu});if(console.log("sendMobileCode:",S.data),S.data.code!==200){Wn.error(i.formatMessage({id:S.data.message,defaultMessage:S.data.message}));return}Wn.success(i.formatMessage({id:S.data.message,defaultMessage:S.data.message}))}else Wn.error("手机号格式错误")}}),U.jsx(J1e,{message:U.jsx(Oc,{id:"pages.login.auto.register",defaultMessage:"Mobile will auto register"}),type:"info"})]})})},aHt=({loginType:e})=>{const t=io(),n=ss(),r=qa(p=>p.setUserInfo),i=nE(p=>p.setAccessToken),{deviceUid:o,setDeviceUid:a}=qa(p=>({deviceUid:p.deviceUid,setDeviceUid:p.setDeviceUid})),[s,l]=f.useState("login"),[c,u]=f.useState("loading"),d=async p=>{console.log("handleScanLogin values: ",p),Wn.loading(t.formatMessage({id:"logging",defaultMessage:"logging..."}));const m=await rHt({...p});console.log("LoginMobileResult scanLogin:",m.data),m.data.code===200?(Wn.destroy(),Wn.success(t.formatMessage({id:"login.success",defaultMessage:"login success"})),r(m.data.data.user),i(m.data.data.accessToken),n("/chat"),_j()):(Wn.destroy(),Wn.error(m.data.message))},h=async p=>{if(e!="scan")return;const m=await nHt(o,p);if(m.data.code===200){const v=m.data.data;if(console.log("handleScanQuery status: ",v.status),v.status===MPe)u("active"),l("deviceUid="+v.deviceUid+"&code="+v.content);else if(v.status===IPe)u("scanned");else if(v.status===RPe)u("expired");else if(v.status===$Pe){if(v.receiver===void 0||v.receiver==="")return;let y={mobile:v.receiver,code:v.content,platform:Eu};console.log("login scan info:",y),await d(y)}}else Wn.error(m.data.message)};return f.useEffect(()=>{console.log("scan deviceUid:",o),(o===void 0||o==="")&&a(iO()),h(!0);const p=setInterval(()=>{h(!1)},3e3);return()=>{clearInterval(p)}},[e,o]),U.jsx(U.Fragment,{children:e==="scan"&&U.jsx(U.Fragment,{children:U.jsx(CCe,{style:{margin:"auto"},value:s,status:c,onRefresh:()=>{console.log("onRefresh"),h(!0)}})})})},jEe=()=>{const{token:e}=al.useToken(),{isCustomServer:t,setIsCustomServer:n}=f.useContext(qs),[r]=ai.useForm(),[i,o]=f.useState(!1),[a,s]=f.useState(""),[l,c]=f.useState(""),u=io(),d=()=>{console.log("switch server"),n(m=>!m)};f.useEffect(()=>{a&&a.length>0&&(r.setFieldsValue({apiUrl:a}),console.log("apiUrl:",a))},[a]),f.useEffect(()=>{if(t){const m=localStorage.getItem(By);m==="true"&&(o(!0),r.setFieldsValue({isCustomServerEnabled:!0})),console.log("isCustomServer customEnabled:",m);const v=localStorage.getItem(g2);v&&r.setFieldsValue({apiUrl:q0(v)});const y=localStorage.getItem(v2);y&&r.setFieldsValue({websocketUrl:q0(y)})}},[t]);const h=m=>{if(console.log("handleCustomServerChange e:",m),o(m.target.checked),m.target.checked){const v=localStorage.getItem(g2);v&&r.setFieldsValue({apiUrl:q0(v)});const y=localStorage.getItem(v2);y&&r.setFieldsValue({websocketUrl:q0(y)}),console.log("initData apiUrl:",v,"websocketUrl:",y)}else localStorage.setItem(By,"false")},p=(m,v)=>(console.log("props:",m,v),U.jsxs("div",{style:{display:"flex",justifyContent:"center",gap:"8px"},children:[U.jsx(hr,{icon:U.jsx(j2t,{}),onClick:d,children:u.formatMessage({id:"server.button.back"})},"back"),U.jsx(hr,{type:"primary",onClick:()=>{let y=m.form.getFieldValue("apiUrl");y=q0(y.trim());let S=m.form.getFieldValue("websocketUrl");S=q0(S.trim()),y&&y.trim().length>0&&S&&S.trim().length>0?(localStorage.setItem(g2,y),localStorage.setItem(v2,S),localStorage.setItem(By,"true"),Wn.success(u.formatMessage({id:"server.save.success"}))):Wn.error("请输入正确的服务器地址")},children:u.formatMessage({id:"server.button.save"})},"submit"),U.jsx(hr,{onClick:()=>{var y;(y=m.form)==null||y.resetFields(),s(""),localStorage.setItem(By,"false"),localStorage.setItem(g2,""),localStorage.setItem(v2,""),Wn.success(u.formatMessage({id:"server.reset.success"}))},children:u.formatMessage({id:"server.button.reset"})},"reset"),U.jsx(hr,{onClick:()=>{C_("https://www.weiyuai.cn/docs/zh-CN/docs/manual/agent/auth/login")},children:u.formatMessage({id:"server.button.help"})},"help")]}));return U.jsx("div",{className:"ant-pro-form-server-container",style:{backgroundColor:e.colorBgContainer,display:"flex",justifyContent:"center",flexDirection:"column",height:"100%",width:"80%",marginLeft:"10%"},children:U.jsxs(ai,{className:"ant-pro-form-server-main",form:r,submitter:{render:p},children:[U.jsx(iK,{name:"isCustomServerEnabled",fieldProps:{onChange:h},children:u.formatMessage({id:"server.custom.enable"})}),i&&U.jsxs(U.Fragment,{children:[U.jsx(ji,{name:"apiUrl",label:u.formatMessage({id:"server.api.url.label"}),fieldProps:{disabled:!i,placeholder:u.formatMessage({id:"server.api.url.placeholder"}),onChange:m=>s(m.target.value)}}),U.jsx(ji,{name:"websocketUrl",label:u.formatMessage({id:"server.websocket.url.label"}),fieldProps:{disabled:!i,placeholder:u.formatMessage({id:"server.websocket.url.placeholder"}),onChange:m=>c(m.target.value)}})]})]})})},sHt=()=>{const e=R$e();return U.jsx("img",{alt:"logo",src:e})},lHt=()=>{const e=A$e();return e||U.jsx(Oc,{id:"app.title",defaultMessage:"微语"})},cHt=()=>{const e=N$e();return e||U.jsx(Oc,{id:"slogan",defaultMessage:"Chat As A Service"})},uHt=({isModel:e=!1})=>{const t=io(),[n]=ai.useForm(),r=ss(),{token:i}=al.useToken(),[o,a]=f.useState("account"),s=qa(P=>P.setUserInfo),l=nE(P=>P.setAccessToken),{isCustomServer:c,setIsCustomServer:u}=f.useContext(qs),[d,h]=f.useState(!1),p=P=>{console.log(`onPrivacyProtocolChange checked = ${P.target.checked}`),h(P.target.checked);const D=localStorage.getItem(Sc);if(D)try{const{remember:R}=JSON.parse(D);R&&setTimeout(()=>{n.setFieldsValue({remember:R})},0)}catch(R){console.error("Failed to parse saved credentials:",R)}},m=()=>{C_("https://www.weiyuai.cn/protocol.html")},[v,y]=f.useState(""),S=async(P,D)=>{y(P),n.setFieldValue("captchaCode",D)},b=async P=>{console.log("handleKaptchaCheck:",P)},C=async P=>{if(console.log("handleSubmit values: ",P,o),!d){Wn.error("请阅读并同意隐私协议");return}Wn.loading(t.formatMessage({id:"logging",defaultMessage:"logging..."}));const D=localStorage.getItem(Sc);let R=!1;if(D)try{R=JSON.parse(D).remember}catch(H){console.error("Failed to parse saved credentials:",H)}localStorage.setItem(Sc,JSON.stringify({username:P.username,remember:R}));const A=await eHt({...P});console.log("LoginResult:",A.data),A.data.code===200?(Wn.destroy(),Wn.success(t.formatMessage({id:"login.success",defaultMessage:"login success"})),R&&localStorage.setItem(Sc,JSON.stringify({username:P.username,password:P.password,remember:!0})),s(A.data.data.user),l(A.data.data.accessToken),e||r("/"),_j()):(Wn.destroy(),Wn.error(t.formatMessage({id:A.data.message,defaultMessage:A.data.message})))},_=P=>{n.setFieldsValue({mobile:P})},T=async P=>{if(!d){Wn.error(t.formatMessage({id:"login.privacy.required",defaultMessage:"请阅读并同意隐私协议"}));return}const D=localStorage.getItem(Sc);let R={};if(D)try{R=JSON.parse(D)}catch(H){console.error("Failed to parse saved credentials:",H)}localStorage.setItem(Sc,JSON.stringify({...R,mobile:P.mobile}));const A=await tHt({...P});console.log("LoginMobileResult:",A),A.data.code===200?(Wn.destroy(),Wn.success(t.formatMessage({id:"login.success",defaultMessage:"login success"})),s(A.data.data.user),l(A.data.data.accessToken),e||r("/"),_j()):(Wn.destroy(),Wn.error(t.formatMessage({id:A.data.message,defaultMessage:A.data.message})))},x=()=>{console.log("switch server"),u(P=>!P)},E=()=>{console.log("handleAnonymousLogin"),r("/anonymous")},k=()=>{if(pv)return{}},M=(P,D)=>{n.setFieldsValue({username:P,remember:D});const R=localStorage.getItem(Sc);if(R&&D)try{const{password:A}=JSON.parse(R);A&&n.setFieldsValue({password:A})}catch(A){console.error("Failed to parse saved credentials:",A)}};return U.jsx(LP,{hashed:!1,children:U.jsxs("div",{style:{backgroundColor:i.colorBgContainer,textAlign:"center",height:"100%"},children:[!c&&U.jsxs(y_e,{form:n,contentStyle:{minWidth:400},logo:sHt(),title:lHt(),subTitle:cHt(),initialValues:k(),onFinish:async P=>{if(console.log("login:",P),o==="account"){const D={username:P.username,password:P.password,captchaUid:v,captchaCode:P.captchaCode,platform:Eu};await C(D)}else if(o==="mobile"){const D={mobile:P.mobile,code:P.code,captchaUid:v,captchaCode:P.captchaCode,platform:Eu};await T(D)}else console.log("scan login type")},actions:pv&&U.jsxs(ma,{children:[U.jsx(Oc,{id:"pages.login.loginWith",defaultMessage:"其他登录方式"}),U.jsx(hr,{type:"link",onClick:E,children:t.formatMessage({id:"pages.login.anonymousLogin",defaultMessage:"匿名登录"})})]}),children:[U.jsx(rC,{centered:!0,items:[{key:"account",label:t.formatMessage({id:"pages.login.accountLogin.tab",defaultMessage:"账户密码登录"}),children:U.jsx(JBt,{loginType:o,onKaptchaChange:S,onKaptchaCheck:b,onRememberChange:M})},{key:"mobile",label:t.formatMessage({id:"pages.login.phoneLogin.tab",defaultMessage:"手机号登录"}),children:U.jsx(oHt,{loginType:o,onKaptchaChange:S,onKaptchaCheck:b,onRememberChange:_})},{key:"scan",label:t.formatMessage({id:"pages.login.scanLogin.tab",defaultMessage:"扫码登录"}),children:U.jsx(aHt,{loginType:o})}],activeKey:o,onChange:P=>a(P)}),U.jsxs("div",{style:{marginBlockEnd:24,textAlign:"left",marginTop:10},children:[U.jsx(mp,{checked:d,onChange:p,children:U.jsx(hr,{size:"small",type:"link",onClick:m,children:t.formatMessage({id:"login.privacy.agreement",defaultMessage:"同意《用户隐私&协议》"})})}),U.jsx(hr,{type:"link",style:{float:"right",marginBottom:24},onClick:x,children:t.formatMessage({id:"login.switch.server",defaultMessage:"切换服务器"})})]})]}),c&&U.jsx(jEe,{})]})})},IB=({isModel:e=!1})=>U.jsx(KO,{children:U.jsx(uHt,{isModel:e})}),dHt=()=>{ss();const{token:e}=al.useToken();return f.useState("phone"),fc(e.colorTextBase,.2),U.jsx(LP,{hashed:!1,children:U.jsx("div",{style:{backgroundColor:e.colorBgContainer,textAlign:"center",height:"100vh"},children:U.jsxs(y_e,{logo:"./logo.png",title:"微语",subTitle:"注册账号",children:[U.jsxs(U.Fragment,{children:[U.jsx(ji,{name:"username",fieldProps:{size:"large",prefix:U.jsx(DV,{className:"prefixIcon"})},placeholder:"用户名",rules:[{required:!0,message:"请输入用户名!"}]}),U.jsx(ji.Password,{name:"password",fieldProps:{size:"large",prefix:U.jsx(r0,{className:"prefixIcon"})},placeholder:"密码",rules:[{required:!0,message:"请输入密码!"}]})]}),U.jsxs("div",{style:{marginBlockEnd:24},children:[U.jsx(iK,{noStyle:!0,name:"autoLogin",children:"自动登录"}),U.jsx(l1t,{to:"/agent/auth/login",style:{float:"right"},children:"登录"})]})]})})})};function wM(){const[e,t]=f.useState(!0);return f.useEffect(()=>{function n(){console.log("networkStatus online:",navigator.onLine),navigator.onLine&&t(!0)}function r(){console.log("networkStatus offline:",!navigator.onLine),t(!1)}return window.addEventListener("online",n),window.addEventListener("offline",r),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}},[]),e}function ah(){const e=io();return{translateString:r=>r==null?r:r&&r.startsWith(NX)?e.formatMessage({id:r,defaultMessage:r}):r,translateStringTranct:r=>r==null?r:r!=null&&r.startsWith(NX)?hZ(e.formatMessage({id:r}),10):hZ(r,10)}}function DK(){const e=wM(),{translateString:t}=ah(),[n,r]=f.useState(!1),[i,o]=f.useState(!1),a=async(l,c)=>{os?await emt()?console.log("handleNewMessage isWindowActive"):tmt(l,c):i?s(l,c):console.log("handleNewMessage not isBrowserTabHidden")},s=(l,c)=>{console.log("showWebNotification");var u=new Notification(l,{body:c,icon:"./logo.png"});u.onshow=function(){console.log("Notification shown")},u.onclick=function(){console.log("notification click")},u.onclose=function(){console.log("notification close")},u.onerror=function(){console.log("notification error")}};return f.useEffect(()=>(os||(window.Notification&&Notification.permission!=="granted"?Notification.requestPermission(function(l){r(l==="granted")}):(console.log("已经授权或浏览器不支持通知"),r(!0)),document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"?o(!0):document.visibilityState==="visible"&&o(!1)},!1)),()=>{document.removeEventListener("visibilitychange",()=>{})}),[]),f.useEffect(()=>{if(console.log("useNotification useEffect isNetworkOnline",e),e){const l=localStorage.getItem(W2);(l==null||l==="true")&&a(t("i18n.tip.title"),t("i18n.tip.network.disconnected"))}else{const l=localStorage.getItem(W2);(l==null||l==="true")&&a(t("i18n.tip.title"),t("i18n.tip.network.connected"))}},[e]),{isNotificationGranted:n,showWebNotification:s,showNotification:a}}var Qh={},BEe={exports:{}},HEe={exports:{}};(function(e){var t=k_e;function n(r){if(Array.isArray(r))return t(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(HEe);var fHt=HEe.exports,zEe={exports:{}};(function(e){function t(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(zEe);var UEe=zEe.exports,WEe={exports:{}};(function(e){function t(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(WEe);var hHt=WEe.exports;(function(e){var t=fHt,n=UEe,r=lK,i=hHt;function o(a){return t(a)||n(a)||r(a)||i()}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports})(BEe);var VEe=BEe.exports,_M={};Object.defineProperty(_M,"__esModule",{value:!0});_M.default=pHt;function pHt(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}var LK={};const _g=Y_(uBe);var EM={},mHt=ya.default;Object.defineProperty(EM,"__esModule",{value:!0});EM.default=vHt;var gHt=mHt(f);function vHt(e,t,n){var r=gHt.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var TM={},KEe={exports:{}};(function(e){var t=w_e,n=UEe,r=lK,i=P_e;function o(a){return t(a)||n(a)||r(a)||i()}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports})(KEe);var yHt=KEe.exports,FK={};Object.defineProperty(FK,"__esModule",{value:!0});FK.default=bHt;function bHt(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}var h4=Vr.default;Object.defineProperty(TM,"__esModule",{value:!0});TM.default=J3;TM.merge=_Ht;var qEe=h4(jv),SHt=h4(Bv),GEe=h4(VEe),CHt=h4(yHt),$B=h4(FK);function YEe(e,t,n,r){if(!t.length)return n;var i=(0,CHt.default)(t),o=i[0],a=i.slice(1),s;return!e&&typeof o=="number"?s=[]:Array.isArray(e)?s=(0,GEe.default)(e):s=(0,SHt.default)({},e),r&&n===void 0&&a.length===1?delete s[o][a[0]]:s[o]=YEe(s[o],a,n,r),s}function J3(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!(0,$B.default)(e,t.slice(0,-1))?e:YEe(e,t,n,r)}function xHt(e){return(0,qEe.default)(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function rae(e){return Array.isArray(e)?[]:{}}var wHt=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function _Ht(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=rae(t[0]);return t.forEach(function(i){function o(a,s){var l=new Set(s),c=(0,$B.default)(i,a),u=Array.isArray(c);if(u||xHt(c)){if(!l.has(c)){l.add(c);var d=(0,$B.default)(r,a);u?r=J3(r,a,[]):(!d||(0,qEe.default)(d)!=="object")&&(r=J3(r,a,rae(c))),wHt(c).forEach(function(h){o([].concat((0,GEe.default)(a),[h]),l)})}}else r=J3(r,a,c)}o([])}),r}var Su={},XEe=ya.default;Object.defineProperty(Su,"__esModule",{value:!0});Su.devUseWarning=Su.default=Su.WarningContext=void 0;Su.noop=jK;Su.resetWarned=kHt;var EHt=XEe(f),THt=XEe(Ql);function jK(){}function kHt(){(0,THt.resetWarned)()}let OHt=jK;Su.WarningContext=EHt.createContext({});Su.devUseWarning=()=>{const e=()=>{};return e.deprecated=jK,e};Su.default=OHt;var kM={};Object.defineProperty(kM,"__esModule",{value:!0});kM.default=void 0;var PHt=f;kM.default=(0,PHt.createContext)(void 0);var QEe={},OM={},MHt=Vr.default;Object.defineProperty(OM,"__esModule",{value:!0});OM.changeConfirmLocale=IHt;OM.getConfirmLocale=$Ht;var BK=MHt(Fv);let e8=Object.assign({},BK.default.Modal),t8=[];const iae=()=>t8.reduce((e,t)=>Object.assign(Object.assign({},e),t),BK.default.Modal);function IHt(e){if(e){const t=Object.assign({},e);return t8.push(t),e8=iae(),()=>{t8=t8.filter(n=>n!==t),e8=iae()}}e8=Object.assign({},BK.default.Modal)}function $Ht(){return e8}var $C={};Object.defineProperty($C,"__esModule",{value:!0});$C.default=void 0;var RHt=f;const AHt=(0,RHt.createContext)(void 0);$C.default=AHt;var PM={},ZEe=Vr.default,NHt=ya.default;Object.defineProperty(PM,"__esModule",{value:!0});PM.default=void 0;var qA=NHt(f),DHt=ZEe($C),oae=ZEe(Fv);const LHt=(e,t)=>{const n=qA.useContext(DHt.default),r=qA.useMemo(()=>{var o;const a=t||oae.default[e],s=(o=n==null?void 0:n[e])!==null&&o!==void 0?o:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),s||{})},[e,t,n]),i=qA.useMemo(()=>{const o=n==null?void 0:n.locale;return n!=null&&n.exist&&!o?oae.default.locale:o},[n]);return[r,i]};PM.default=LHt;(function(e){"use client";var t=Vr.default,n=ya.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ANT_MARK=void 0,Object.defineProperty(e,"useLocale",{enumerable:!0,get:function(){return a.default}});var r=n(f),i=OM,o=t($C),a=t(PM);e.ANT_MARK="internalMark";const s=l=>{const{locale:c={},children:u,_ANT_MARK__:d}=l;r.useEffect(()=>(0,i.changeConfirmLocale)(c==null?void 0:c.Modal),[c]);const h=r.useMemo(()=>Object.assign(Object.assign({},c),{exist:!0}),[c]);return r.createElement(o.default.Provider,{value:h},u)};e.default=s})(QEe);var Hf={},HK={},Xf={};Object.defineProperty(Xf,"__esModule",{value:!0});Xf.defaultPresetColors=Xf.default=void 0;const FHt=Xf.defaultPresetColors={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"},jHt=Object.assign(Object.assign({},FHt),{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});Xf.default=jHt;var zK={};const p4=Y_(bBe);Object.defineProperty(zK,"__esModule",{value:!0});zK.default=BHt;var GA=p4;function BHt(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:i,colorWarning:o,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,d=n(l),h=n(i),p=n(o),m=n(a),v=n(s),y=r(c,u),S=e.colorLink||e.colorInfo,b=n(S),C=new GA.FastColor(m[1]).mix(new GA.FastColor(m[3]),50).toHexString();return Object.assign(Object.assign({},y),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:h[1],colorSuccessBgHover:h[2],colorSuccessBorder:h[3],colorSuccessBorderHover:h[4],colorSuccessHover:h[4],colorSuccess:h[6],colorSuccessActive:h[7],colorSuccessTextHover:h[8],colorSuccessText:h[9],colorSuccessTextActive:h[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBgFilledHover:C,colorErrorBgActive:m[3],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:v[1],colorInfoBgHover:v[2],colorInfoBorder:v[3],colorInfoBorderHover:v[4],colorInfoHover:v[4],colorInfo:v[6],colorInfoActive:v[7],colorInfoTextHover:v[8],colorInfoText:v[9],colorInfoTextActive:v[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new GA.FastColor("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}var UK={},MM={};Object.defineProperty(MM,"__esModule",{value:!0});MM.default=void 0;const HHt=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}};MM.default=HHt;var zHt=Vr.default;Object.defineProperty(UK,"__esModule",{value:!0});UK.default=WHt;var UHt=zHt(MM);function WHt(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},(0,UHt.default)(r))}var IM={};Object.defineProperty(IM,"__esModule",{value:!0});IM.default=void 0;const VHt=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};IM.default=VHt;var $M={},m4={};Object.defineProperty(m4,"__esModule",{value:!0});m4.default=KHt;m4.getLineHeight=JEe;function JEe(e){return(e+8)/e}function KHt(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:JEe(n)}))}var qHt=Vr.default;Object.defineProperty($M,"__esModule",{value:!0});$M.default=void 0;var GHt=qHt(m4);const YHt=e=>{const t=(0,GHt.default)(e),n=t.map(u=>u.size),r=t.map(u=>u.lineHeight),i=n[1],o=n[0],a=n[2],s=r[1],l=r[0],c=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:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*i),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(l*o),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};$M.default=YHt;var WK={};Object.defineProperty(WK,"__esModule",{value:!0});WK.default=XHt;function XHt(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)}}var mS={},gS={};Object.defineProperty(gS,"__esModule",{value:!0});gS.getSolidColor=gS.getAlphaColor=void 0;var e4e=p4;const QHt=(e,t)=>new e4e.FastColor(e).setA(t).toRgbString();gS.getAlphaColor=QHt;const ZHt=(e,t)=>new e4e.FastColor(e).darken(t).toHexString();gS.getSolidColor=ZHt;Object.defineProperty(mS,"__esModule",{value:!0});mS.generateNeutralColorPalettes=mS.generateColorPalettes=void 0;var JHt=s4,hs=gS;const ezt=e=>{const t=(0,JHt.generate)(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]}};mS.generateColorPalettes=ezt;const tzt=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:(0,hs.getAlphaColor)(r,.88),colorTextSecondary:(0,hs.getAlphaColor)(r,.65),colorTextTertiary:(0,hs.getAlphaColor)(r,.45),colorTextQuaternary:(0,hs.getAlphaColor)(r,.25),colorFill:(0,hs.getAlphaColor)(r,.15),colorFillSecondary:(0,hs.getAlphaColor)(r,.06),colorFillTertiary:(0,hs.getAlphaColor)(r,.04),colorFillQuaternary:(0,hs.getAlphaColor)(r,.02),colorBgSolid:(0,hs.getAlphaColor)(r,1),colorBgSolidHover:(0,hs.getAlphaColor)(r,.75),colorBgSolidActive:(0,hs.getAlphaColor)(r,.95),colorBgLayout:(0,hs.getSolidColor)(n,4),colorBgContainer:(0,hs.getSolidColor)(n,0),colorBgElevated:(0,hs.getSolidColor)(n,0),colorBgSpotlight:(0,hs.getAlphaColor)(r,.85),colorBgBlur:"transparent",colorBorder:(0,hs.getSolidColor)(n,15),colorBorderSecondary:(0,hs.getSolidColor)(n,6)}};mS.generateNeutralColorPalettes=tzt;var g4=Vr.default;Object.defineProperty(HK,"__esModule",{value:!0});HK.default=lzt;var Qg=s4,nzt=Xf,rzt=g4(zK),izt=g4(UK),ozt=g4(IM),azt=g4($M),szt=g4(WK),aae=mS;function lzt(e){Qg.presetPrimaryColors.pink=Qg.presetPrimaryColors.magenta,Qg.presetPalettes.pink=Qg.presetPalettes.magenta;const t=Object.keys(nzt.defaultPresetColors).map(n=>{const r=e[n]===Qg.presetPrimaryColors[n]?Qg.presetPalettes[n]:(0,Qg.generate)(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),(0,rzt.default)(e,{generateColorPalettes:aae.generateColorPalettes,generateNeutralColorPalettes:aae.generateNeutralColorPalettes})),(0,azt.default)(e.fontSize)),(0,szt.default)(e)),(0,ozt.default)(e)),(0,izt.default)(e))}var VK=Vr.default;Object.defineProperty(Hf,"__esModule",{value:!0});Hf.defaultTheme=Hf.defaultConfig=Hf.DesignTokenContext=void 0;var czt=VK(f),uzt=_g,dzt=VK(HK),sae=VK(Xf);Hf.defaultTheme=(0,uzt.createTheme)(dzt.default);const fzt=Hf.defaultConfig={token:sae.default,override:{override:sae.default},hashed:!0};Hf.DesignTokenContext=czt.default.createContext(fzt);var wc={},hzt=ya.default;Object.defineProperty(wc,"__esModule",{value:!0});wc.defaultPrefixCls=wc.defaultIconPrefixCls=wc.Variants=wc.ConfigContext=wc.ConfigConsumer=void 0;var pzt=hzt(f);const lae=wc.defaultPrefixCls="ant",mzt=wc.defaultIconPrefixCls="anticon";wc.Variants=["outlined","borderless","filled"];const gzt=(e,t)=>t||(e?`${lae}-${e}`:lae),vzt=wc.ConfigContext=pzt.createContext({getPrefixCls:gzt,iconPrefixCls:mzt}),{Consumer:yzt}=vzt;wc.ConfigConsumer=yzt;var RM={},t4e=Vr.default;Object.defineProperty(RM,"__esModule",{value:!0});RM.getStyle=n4e;RM.registerTheme=xzt;var cae=s4,YA=p4,bzt=t4e(rM),Szt=o0;t4e(Su);const Czt=`-ant-${Date.now()}-${Math.random()}`;function n4e(e,t){const n={},r=(a,s)=>{let l=a.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},i=(a,s)=>{const l=new YA.FastColor(a),c=(0,cae.generate)(l.toRgbString());n[`${s}-color`]=r(l),n[`${s}-color-disabled`]=c[1],n[`${s}-color-hover`]=c[4],n[`${s}-color-active`]=c[6],n[`${s}-color-outline`]=l.clone().setA(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=c[0],n[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){i(t.primaryColor,"primary");const a=new YA.FastColor(t.primaryColor),s=(0,cae.generate)(a.toRgbString());s.forEach((c,u)=>{n[`primary-${u+1}`]=c}),n["primary-color-deprecated-l-35"]=r(a,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(a,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(a,c=>c.setA(c.a*.12));const l=new YA.FastColor(s[0]);n["primary-color-active-deprecated-f-30"]=r(l,c=>c.setA(c.a*.3)),n["primary-color-active-deprecated-d-02"]=r(l,c=>c.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 xzt(e,t){const n=n4e(e,t);(0,bzt.default)()&&(0,Szt.updateCSS)(n,`${Czt}-dynamic-theme`)}var $v={},wzt=ya.default;Object.defineProperty($v,"__esModule",{value:!0});$v.default=$v.DisabledContextProvider=void 0;var RB=wzt(f);const AB=RB.createContext(!1),_zt=e=>{let{children:t,disabled:n}=e;const r=RB.useContext(AB);return RB.createElement(AB.Provider,{value:n??r},t)};$v.DisabledContextProvider=_zt;$v.default=AB;var AM={},Rv={},Ezt=ya.default;Object.defineProperty(Rv,"__esModule",{value:!0});Rv.default=Rv.SizeContextProvider=void 0;var NB=Ezt(f);const DB=NB.createContext(void 0),Tzt=e=>{let{children:t,size:n}=e;const r=NB.useContext(DB);return NB.createElement(DB.Provider,{value:n||r},t)};Rv.SizeContextProvider=Tzt;Rv.default=DB;var r4e=Vr.default;Object.defineProperty(AM,"__esModule",{value:!0});AM.default=void 0;var uae=f,kzt=r4e($v),Ozt=r4e(Rv);function Pzt(){const e=(0,uae.useContext)(kzt.default),t=(0,uae.useContext)(Ozt.default);return{componentDisabled:e,componentSize:t}}AM.default=Pzt;var KK={},NM={},i4e=Vr.default;Object.defineProperty(NM,"__esModule",{value:!0});NM.default=void 0;var dae=i4e(jv),Mzt=i4e(Ql);function Izt(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(o,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(o);if((0,Mzt.default)(!l,"Warning: There may be circular references"),l)return!1;if(o===a)return!0;if(n&&s>1)return!1;r.add(o);var c=s+1;if(Array.isArray(o)){if(!Array.isArray(a)||o.length!==a.length)return!1;for(var u=0;u<o.length;u++)if(!i(o[u],a[u],c))return!1;return!0}if(o&&a&&(0,dae.default)(o)==="object"&&(0,dae.default)(a)==="object"){var d=Object.keys(o);return d.length!==Object.keys(a).length?!1:d.every(function(h){return i(o[h],a[h],c)})}return!1}return i(e,t)}NM.default=Izt;var RC={};const o4e=Y_(ZBe);var qK={},DM={};Object.defineProperty(DM,"__esModule",{value:!0});DM.PresetColors=void 0;DM.PresetColors=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"PresetColors",{enumerable:!0,get:function(){return t.PresetColors}});var t=DM})(qK);var Id={},LM={},FM={};Object.defineProperty(FM,"__esModule",{value:!0});FM.default=void 0;FM.default="5.23.2";var $zt=Vr.default;Object.defineProperty(LM,"__esModule",{value:!0});LM.default=void 0;var Rzt=$zt(FM);LM.default=Rzt.default;var GK={},jM={};Object.defineProperty(jM,"__esModule",{value:!0});jM.default=void 0;var w5=p4;function XA(e){return e>=0&&e<=255}function Azt(e,t){const{r:n,g:r,b:i,a:o}=new w5.FastColor(e).toRgb();if(o<1)return e;const{r:a,g:s,b:l}=new w5.FastColor(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-a*(1-c))/c),d=Math.round((r-s*(1-c))/c),h=Math.round((i-l*(1-c))/c);if(XA(u)&&XA(d)&&XA(h))return new w5.FastColor({r:u,g:d,b:h,a:Math.round(c*100)/100}).toRgbString()}return new w5.FastColor({r:n,g:r,b:i,a:1}).toRgbString()}jM.default=Azt;var a4e=Vr.default;Object.defineProperty(GK,"__esModule",{value:!0});GK.default=Lzt;var QA=p4,Nzt=a4e(Xf),_5=a4e(jM),Dzt=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 Lzt(e){const{override:t}=e,n=Dzt(e,["override"]),r=Object.assign({},t);Object.keys(Nzt.default).forEach(h=>{delete r[h]});const i=Object.assign(Object.assign({},n),r),o=480,a=576,s=768,l=992,c=1200,u=1600;if(i.motion===!1){const h="0s";i.motionDurationFast=h,i.motionDurationMid=h,i.motionDurationSlow=h}return Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:(0,_5.default)(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:(0,_5.default)(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:(0,_5.default)(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:(0,_5.default)(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:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
||
0 1px 2px -2px ${new QA.FastColor("rgba(0, 0, 0, 0.16)").toRgbString()},
|
||
0 3px 6px 0 ${new QA.FastColor("rgba(0, 0, 0, 0.12)").toRgbString()},
|
||
0 5px 12px 4px ${new QA.FastColor("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 BM=Vr.default;Object.defineProperty(Id,"__esModule",{value:!0});Id.default=Vzt;Id.unitless=Id.ignore=Id.getComputedToken=void 0;var Fzt=BM(f),jzt=_g,Bzt=BM(LM),fae=Hf,Hzt=BM(Xf),s4e=BM(GK),hae=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 zzt=Id.unitless={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},Uzt=Id.ignore={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},Wzt={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},YK=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:i}=t,o=hae(t,["override"]);let a=Object.assign(Object.assign({},r),{override:i});return a=(0,s4e.default)(a),o&&Object.entries(o).forEach(s=>{let[l,c]=s;const{theme:u}=c,d=hae(c,["theme"]);let h=d;u&&(h=YK(Object.assign(Object.assign({},a),d),{override:d},u)),a[l]=h}),a};Id.getComputedToken=YK;function Vzt(){const{token:e,hashed:t,theme:n,override:r,cssVar:i}=Fzt.default.useContext(fae.DesignTokenContext),o=`${Bzt.default}-${t||""}`,a=n||fae.defaultTheme,[s,l,c]=(0,jzt.useCacheToken)(a,[Hzt.default,e],{salt:o,override:r,getComputedToken:YK,formatToken:s4e.default,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:zzt,ignore:Uzt,preserve:Wzt}});return[a,c,t?l:"",s,i]}var Qm={},Fo={};Object.defineProperty(Fo,"__esModule",{value:!0});Fo.textEllipsis=Fo.resetIcon=Fo.resetComponent=Fo.operationUnit=Fo.genLinkStyle=Fo.genIconStyle=Fo.genFocusStyle=Fo.genFocusOutline=Fo.genCommonStyle=Fo.clearFix=void 0;var Kzt=_g;Fo.textEllipsis={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"};const qzt=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}};Fo.resetComponent=qzt;const l4e=()=>({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"}});Fo.resetIcon=l4e;const Gzt=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}});Fo.clearFix=Gzt;const Yzt=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"}}});Fo.genLinkStyle=Yzt;const Xzt=(e,t,n,r)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,o=n?`.${n}`:i,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},s),a),{[i]:a})}};Fo.genCommonStyle=Xzt;const c4e=(e,t)=>({outline:`${(0,Kzt.unit)(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"});Fo.genFocusOutline=c4e;const u4e=(e,t)=>({"&:focus-visible":Object.assign({},c4e(e,t))});Fo.genFocusStyle=u4e;const Qzt=e=>({[`.${e}`]:Object.assign(Object.assign({},l4e()),{[`.${e} .${e}-icon`]:{display:"block"}})});Fo.genIconStyle=Qzt;const Zzt=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"},u4e(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}});Fo.operationUnit=Zzt;var Jzt=ya.default;Object.defineProperty(Qm,"__esModule",{value:!0});Qm.genSubStyleComponent=Qm.genStyleHooks=Qm.genComponentStyleHook=void 0;var pae=f,eUt=o4e,ZA=wc,JA=Fo,mae=Jzt(Id);const{genStyleHooks:tUt,genComponentStyleHook:nUt,genSubStyleComponent:rUt}=(0,eUt.genStyleUtils)({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=(0,pae.useContext)(ZA.ConfigContext);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,i]=(0,mae.default)();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i}},useCSP:()=>{const{csp:e}=(0,pae.useContext)(ZA.ConfigContext);return e??{}},getResetStyles:(e,t)=>{var n;return[{"&":(0,JA.genLinkStyle)(e)},(0,JA.genIconStyle)((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:ZA.defaultIconPrefixCls)]},getCommonStyle:JA.genCommonStyle,getCompUnitless:()=>mae.unitless});Qm.genSubStyleComponent=rUt;Qm.genComponentStyleHook=nUt;Qm.genStyleHooks=tUt;var XK={};Object.defineProperty(XK,"__esModule",{value:!0});XK.default=oUt;var iUt=qK;function oUt(e,t){return iUt.PresetColors.reduce((n,r)=>{const i=e[`${r}1`],o=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:i,lightBorderColor:o,darkColor:a,textColor:s}))},{})}var HM={},aUt=Vr.default;Object.defineProperty(HM,"__esModule",{value:!0});HM.default=void 0;var sUt=_g,lUt=Fo,cUt=aUt(Id);const uUt=(e,t)=>{const[n,r]=(0,cUt.default)();return(0,sUt.useStyleRegister)({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[(0,lUt.genIconStyle)(e)])};HM.default=uUt;(function(e){var t=Vr.default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DesignTokenContext",{enumerable:!0,get:function(){return u.DesignTokenContext}}),Object.defineProperty(e,"PresetColors",{enumerable:!0,get:function(){return i.PresetColors}}),Object.defineProperty(e,"calc",{enumerable:!0,get:function(){return r.genCalc}}),Object.defineProperty(e,"defaultConfig",{enumerable:!0,get:function(){return u.defaultConfig}}),Object.defineProperty(e,"genComponentStyleHook",{enumerable:!0,get:function(){return s.genComponentStyleHook}}),Object.defineProperty(e,"genPresetColor",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"genStyleHooks",{enumerable:!0,get:function(){return s.genStyleHooks}}),Object.defineProperty(e,"genSubStyleComponent",{enumerable:!0,get:function(){return s.genSubStyleComponent}}),Object.defineProperty(e,"getLineHeight",{enumerable:!0,get:function(){return o.getLineHeight}}),Object.defineProperty(e,"mergeToken",{enumerable:!0,get:function(){return r.mergeToken}}),Object.defineProperty(e,"statistic",{enumerable:!0,get:function(){return r.statistic}}),Object.defineProperty(e,"statisticToken",{enumerable:!0,get:function(){return r.statisticToken}}),Object.defineProperty(e,"useResetIconStyle",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"useStyleRegister",{enumerable:!0,get:function(){return n.useStyleRegister}}),Object.defineProperty(e,"useToken",{enumerable:!0,get:function(){return a.default}});var n=_g,r=o4e,i=qK,o=m4,a=t(Id),s=Qm,l=t(XK),c=t(HM),u=Hf})(RC);var zM={},dUt=ya.default;Object.defineProperty(zM,"__esModule",{value:!0});zM.default=void 0;var fUt=dUt(f);const hUt=Object.assign({},fUt),{useId:gae}=hUt,pUt=()=>"",mUt=typeof gae>"u"?pUt:gae;zM.default=mUt;var QK=Vr.default;Object.defineProperty(KK,"__esModule",{value:!0});KK.default=SUt;var gUt=QK(EM),vUt=QK(NM),yUt=Su,vae=RC,bUt=QK(zM);function SUt(e,t,n){var r;(0,yUt.devUseWarning)("ConfigProvider");const i=e||{},o=i.inherit===!1||!t?Object.assign(Object.assign({},vae.defaultConfig),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:vae.defaultConfig.hashed,cssVar:t==null?void 0:t.cssVar}):t,a=(0,bUt.default)();return(0,gUt.default)(()=>{var s,l;if(!e)return t;const c=Object.assign({},o.components);Object.keys(e.components||{}).forEach(h=>{c[h]=Object.assign(Object.assign({},c[h]),e.components[h])});const u=`css-var-${a.replace(/:/g,"")}`,d=((s=i.cssVar)!==null&&s!==void 0?s: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"&&((l=i.cssVar)===null||l===void 0?void 0:l.key)||u});return Object.assign(Object.assign(Object.assign({},o),i),{token:Object.assign(Object.assign({},o.token),i.token),components:c,cssVar:d})},[i,o],(s,l)=>s.some((c,u)=>{const d=l[u];return!(0,vUt.default)(c,d,!0)}))}var ZK={};const CUt=Y_(PHe);var xUt=ya.default;Object.defineProperty(ZK,"__esModule",{value:!0});ZK.default=EUt;var yae=xUt(f),wUt=CUt,_Ut=RC;function EUt(e){const{children:t}=e,[,n]=(0,_Ut.useToken)(),{motion:r}=n,i=yae.useRef(!1);return i.current=i.current||r===!1,i.current?yae.createElement(wUt.Provider,{motion:r},t):t}var UM={},TUt=ya.default;Object.defineProperty(UM,"__esModule",{value:!0});UM.default=void 0;TUt(f);UM.default=()=>null;var d4e={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.useResetIconStyle}});var t=RC})(d4e);(function(e){"use client";var t=Vr.default,n=ya.default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ConfigConsumer",{enumerable:!0,get:function(){return v.ConfigConsumer}}),Object.defineProperty(e,"ConfigContext",{enumerable:!0,get:function(){return v.ConfigContext}}),Object.defineProperty(e,"Variants",{enumerable:!0,get:function(){return v.Variants}}),e.default=e.configConsumerProps=void 0,Object.defineProperty(e,"defaultIconPrefixCls",{enumerable:!0,get:function(){return v.defaultIconPrefixCls}}),Object.defineProperty(e,"defaultPrefixCls",{enumerable:!0,get:function(){return v.defaultPrefixCls}}),e.warnContext=e.globalConfig=void 0;var r=n(f),i=_g,o=t(MC),a=t(EM),s=TM,l=n(Su),c=t(kM),u=n(QEe),d=t($C),h=t(Fv),p=Hf,m=t(Xf),v=wc,y=RM,S=$v,b=t(AM),C=t(KK),_=t(ZK),T=t(UM),x=n(Rv),E=t(d4e),k=function(B,V){var Y={};for(var ie in B)Object.prototype.hasOwnProperty.call(B,ie)&&V.indexOf(ie)<0&&(Y[ie]=B[ie]);if(B!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,ie=Object.getOwnPropertySymbols(B);ce<ie.length;ce++)V.indexOf(ie[ce])<0&&Object.prototype.propertyIsEnumerable.call(B,ie[ce])&&(Y[ie[ce]]=B[ie[ce]]);return Y};e.warnContext=null,e.configConsumerProps=["getTargetContainer","getPopupContainer","rootPrefixCls","getPrefixCls","renderEmpty","csp","autoInsertSpaceInButton","locale"];const M=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let P,D,R,A;function H(){return P||v.defaultPrefixCls}function F(){return D||v.defaultIconPrefixCls}function z(B){return Object.keys(B).some(V=>V.endsWith("Color"))}const W=B=>{const{prefixCls:V,iconPrefixCls:Y,theme:ie,holderRender:ce}=B;V!==void 0&&(P=V),Y!==void 0&&(D=Y),"holderRender"in B&&(A=ce),ie&&(z(ie)?(0,y.registerTheme)(H(),ie):R=ie)},q=()=>({getPrefixCls:(B,V)=>V||(B?`${H()}-${B}`:H()),getIconPrefixCls:F,getRootPrefixCls:()=>P||H(),getTheme:()=>R,holderRender:A});e.globalConfig=q;const Z=B=>{const{children:V,csp:Y,autoInsertSpaceInButton:ie,alert:ce,anchor:fe,form:ee,locale:ne,componentSize:ue,direction:ye,space:me,splitter:pe,virtual:he,dropdownMatchSelectWidth:_e,popupMatchSelectWidth:le,popupOverflow:xe,legacyLocale:we,parentContext:De,iconPrefixCls:Fe,theme:Ce,componentDisabled:Te,segmented:ke,statistic:Pe,spin:Ne,calendar:We,carousel:Q,cascader:K,collapse:J,typography:be,checkbox:Oe,descriptions:Se,divider:Ke,drawer:tt,skeleton:se,steps:ze,image:Ye,layout:Ue,list:Je,mentions:Ze,modal:rt,progress:qt,result:St,slider:Ot,breadcrumb:Bt,menu:Dt,pagination:an,input:Vt,textArea:Kt,empty:Qt,badge:et,radio:ot,rate:Qe,switch:ct,transfer:Nt,avatar:Lt,message:Zt,tag:Wt,table:At,card:$t,tabs:Gt,timeline:Ft,timePicker:cn,upload:_t,notification:jt,tree:nn,colorPicker:Ht,datePicker:Tt,rangePicker:gt,flex:Ve,wave:Yt,dropdown:mt,warning:Mt,tour:zt,tooltip:Dn,popover:Xn,popconfirm:O,floatButtonGroup:j,variant:oe,inputNumber:Ae,treeSelect:Ge}=B,ft=r.useCallback((bn,Cn)=>{const{prefixCls:tr}=B;if(Cn)return Cn;const Ir=tr||De.getPrefixCls("");return bn?`${Ir}-${bn}`:Ir},[De.getPrefixCls,B.prefixCls]),Jt=Fe||De.iconPrefixCls||v.defaultIconPrefixCls,on=Y||De.csp;(0,E.default)(Jt,on);const Qn=(0,C.default)(Ce,De.theme,{prefixCls:ft("")}),ni={csp:on,autoInsertSpaceInButton:ie,alert:ce,anchor:fe,locale:ne||we,direction:ye,space:me,splitter:pe,virtual:he,popupMatchSelectWidth:le??_e,popupOverflow:xe,getPrefixCls:ft,iconPrefixCls:Jt,theme:Qn,segmented:ke,statistic:Pe,spin:Ne,calendar:We,carousel:Q,cascader:K,collapse:J,typography:be,checkbox:Oe,descriptions:Se,divider:Ke,drawer:tt,skeleton:se,steps:ze,image:Ye,input:Vt,textArea:Kt,layout:Ue,list:Je,mentions:Ze,modal:rt,progress:qt,result:St,slider:Ot,breadcrumb:Bt,menu:Dt,pagination:an,empty:Qt,badge:et,radio:ot,rate:Qe,switch:ct,transfer:Nt,avatar:Lt,message:Zt,tag:Wt,table:At,card:$t,tabs:Gt,timeline:Ft,timePicker:cn,upload:_t,notification:jt,tree:nn,colorPicker:Ht,datePicker:Tt,rangePicker:gt,flex:Ve,wave:Yt,dropdown:mt,warning:Mt,tour:zt,tooltip:Dn,popover:Xn,popconfirm:O,floatButtonGroup:j,variant:oe,inputNumber:Ae,treeSelect:Ge},zr=Object.assign({},De);Object.keys(ni).forEach(bn=>{ni[bn]!==void 0&&(zr[bn]=ni[bn])}),M.forEach(bn=>{const Cn=B[bn];Cn&&(zr[bn]=Cn)}),typeof ie<"u"&&(zr.button=Object.assign({autoInsertSpace:ie},zr.button));const Yr=(0,a.default)(()=>zr,zr,(bn,Cn)=>{const tr=Object.keys(bn),Ir=Object.keys(Cn);return tr.length!==Ir.length||tr.some(li=>bn[li]!==Cn[li])}),Rr=r.useMemo(()=>({prefixCls:Jt,csp:on}),[Jt,on]);let wn=r.createElement(r.Fragment,null,r.createElement(T.default,{dropdownMatchSelectWidth:_e}),V);const Pn=r.useMemo(()=>{var bn,Cn,tr,Ir;return(0,s.merge)(((bn=h.default.Form)===null||bn===void 0?void 0:bn.defaultValidateMessages)||{},((tr=(Cn=Yr.locale)===null||Cn===void 0?void 0:Cn.Form)===null||tr===void 0?void 0:tr.defaultValidateMessages)||{},((Ir=Yr.form)===null||Ir===void 0?void 0:Ir.validateMessages)||{},(ee==null?void 0:ee.validateMessages)||{})},[Yr,ee==null?void 0:ee.validateMessages]);Object.keys(Pn).length>0&&(wn=r.createElement(c.default.Provider,{value:Pn},wn)),ne&&(wn=r.createElement(u.default,{locale:ne,_ANT_MARK__:u.ANT_MARK},wn)),(Jt||on)&&(wn=r.createElement(o.default.Provider,{value:Rr},wn)),ue&&(wn=r.createElement(x.SizeContextProvider,{size:ue},wn)),wn=r.createElement(_.default,null,wn);const Ar=r.useMemo(()=>{const bn=Qn||{},{algorithm:Cn,token:tr,components:Ir,cssVar:li}=bn,Wi=k(bn,["algorithm","token","components","cssVar"]),mr=Cn&&(!Array.isArray(Cn)||Cn.length>0)?(0,i.createTheme)(Cn):p.defaultTheme,Li={};Object.entries(Ir||{}).forEach(xn=>{let[zn,Gn]=xn;const rr=Object.assign({},Gn);"algorithm"in rr&&(rr.algorithm===!0?rr.theme=mr:(Array.isArray(rr.algorithm)||typeof rr.algorithm=="function")&&(rr.theme=(0,i.createTheme)(rr.algorithm)),delete rr.algorithm),Li[zn]=rr});const dr=Object.assign(Object.assign({},m.default),tr);return Object.assign(Object.assign({},Wi),{theme:mr,token:dr,components:Li,override:Object.assign({override:dr},Li),cssVar:li})},[Qn]);return Ce&&(wn=r.createElement(p.DesignTokenContext.Provider,{value:Ar},wn)),Yr.warning&&(wn=r.createElement(l.WarningContext.Provider,{value:Yr.warning},wn)),Te!==void 0&&(wn=r.createElement(S.DisabledContextProvider,{disabled:Te},wn)),r.createElement(v.ConfigContext.Provider,{value:Yr},wn)},N=B=>{const V=r.useContext(v.ConfigContext),Y=r.useContext(d.default);return r.createElement(Z,Object.assign({parentContext:V,legacyLocale:Y},B))};N.ConfigContext=v.ConfigContext,N.SizeContext=x.default,N.config=W,N.useConfig=b.default,Object.defineProperty(N,"SizeContext",{get:()=>x.default}),e.default=N})(LK);var v4={},kUt=ya.default;Object.defineProperty(v4,"__esModule",{value:!0});v4.LayoutContext=void 0;var OUt=kUt(f);v4.LayoutContext=OUt.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var JK={},eq={},tq={},PUt=Vr.default;Object.defineProperty(tq,"__esModule",{value:!0});tq.default=AUt;var MUt=PUt(jv),IUt=Symbol.for("react.element"),$Ut=Symbol.for("react.transitional.element"),RUt=Symbol.for("react.fragment");function AUt(e){return e&&(0,MUt.default)(e)==="object"&&(e.$$typeof===IUt||e.$$typeof===$Ut)&&e.type===RUt}var f4e=Vr.default;Object.defineProperty(eq,"__esModule",{value:!0});eq.default=LB;var NUt=f4e(tq),DUt=f4e(f);function LB(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return DUt.default.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(LB(r)):(0,NUt.default)(r)&&r.props?n=n.concat(LB(r.props.children,t)):n.push(r))}),n}var vS={},FB={exports:{}},WM={},nq={};Object.defineProperty(nq,"__esModule",{value:!0});var LUt={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"};nq.default=LUt;var FUt=ya.default,rq=Vr.default;Object.defineProperty(WM,"__esModule",{value:!0});WM.default=void 0;var jUt=rq(nM),h4e=FUt(f),BUt=rq(nq),HUt=rq(PC),zUt=function(t,n){return h4e.createElement(HUt.default,(0,jUt.default)({},t,{ref:n,icon:BUt.default}))},UUt=h4e.forwardRef(zUt);WM.default=UUt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(WM);function r(o){return o&&o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(FB,FB.exports);var WUt=FB.exports,jB={exports:{}},VM={},iq={};Object.defineProperty(iq,"__esModule",{value:!0});var VUt={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"};iq.default=VUt;var KUt=ya.default,oq=Vr.default;Object.defineProperty(VM,"__esModule",{value:!0});VM.default=void 0;var qUt=oq(nM),p4e=KUt(f),GUt=oq(iq),YUt=oq(PC),XUt=function(t,n){return p4e.createElement(YUt.default,(0,qUt.default)({},t,{ref:n,icon:GUt.default}))},QUt=p4e.forwardRef(XUt);VM.default=QUt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(VM);function r(o){return o&&o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(jB,jB.exports);var ZUt=jB.exports,BB={exports:{}},KM={},aq={};Object.defineProperty(aq,"__esModule",{value:!0});var JUt={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"};aq.default=JUt;var eWt=ya.default,sq=Vr.default;Object.defineProperty(KM,"__esModule",{value:!0});KM.default=void 0;var tWt=sq(nM),m4e=eWt(f),nWt=sq(aq),rWt=sq(PC),iWt=function(t,n){return m4e.createElement(rWt.default,(0,tWt.default)({},t,{ref:n,icon:nWt.default}))},oWt=m4e.forwardRef(iWt);KM.default=oWt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(KM);function r(o){return o&&o.__esModule?o:{default:o}}const i=n;t.default=i,e.exports=i})(BB,BB.exports);var aWt=BB.exports,qM={},np={};Object.defineProperty(np,"__esModule",{value:!0});np.prepareComponentToken=np.default=np.DEPRECATED_TOKENS=void 0;var sWt=_g,lWt=RC;const cWt=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:i,headerHeight:o,headerPadding:a,headerColor:s,footerPadding:l,fontSize:c,bodyBg:u,headerBg:d}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:u,"&, *":{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:s,lineHeight:(0,sWt.unit)(o),background:d,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:l,color:r,fontSize:c,background:i},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},g4e=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:o,marginXXS:a,colorTextLightSolid:s,colorBgContainer:l}=e,c=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${c}px`,headerColor:i,footerPadding:`${o}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+a*2,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:l,lightTriggerBg:l,lightTriggerColor:i}};np.prepareComponentToken=g4e;const uWt=np.DEPRECATED_TOKENS=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];np.default=(0,lWt.genStyleHooks)("Layout",e=>[cWt(e)],g4e,{deprecatedTokens:uWt});Object.defineProperty(qM,"__esModule",{value:!0});qM.default=void 0;var Zx=_g,bae=np,dWt=RC;const fWt=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:i,antCls:o,triggerHeight:a,triggerColor:s,triggerBg:l,headerHeight:c,zeroTriggerWidth:u,zeroTriggerHeight:d,borderRadiusLG:h,lightSiderBg:p,lightTriggerColor:m,lightTriggerBg:v,bodyBg:y}=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:s,lineHeight:(0,Zx.unit)(a),textAlign:"center",background:l,cursor:"pointer",transition:`all ${r}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:c,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:d,color:s,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${(0,Zx.unit)(h)} ${(0,Zx.unit)(h)} 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(u).mul(-1).equal(),borderRadius:`${(0,Zx.unit)(h)} 0 0 ${(0,Zx.unit)(h)}`}}},"&-light":{background:p,[`${t}-trigger`]:{color:m,background:v},[`${t}-zero-width-trigger`]:{color:m,background:v,border:`1px solid ${y}`,borderInlineStart:0}}}}};qM.default=(0,dWt.genStyleHooks)(["Layout","Sider"],e=>[fWt(e)],bae.prepareComponentToken,{deprecatedTokens:bae.DEPRECATED_TOKENS});var AC=Vr.default,hWt=ya.default;Object.defineProperty(vS,"__esModule",{value:!0});vS.default=vS.SiderContext=void 0;var Ih=hWt(f),pc=Ih,pWt=AC(WUt),Sae=AC(ZUt),Cae=AC(aWt),xae=AC(oO),mWt=AC(_M),gWt=LK,vWt=v4,yWt=AC(qM),bWt=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 wae={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},SWt=e=>!Number.isNaN(Number.parseFloat(e))&&isFinite(e),CWt=vS.SiderContext=pc.createContext({}),xWt=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),wWt=pc.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:i,children:o,defaultCollapsed:a=!1,theme:s="dark",style:l={},collapsible:c=!1,reverseArrow:u=!1,width:d=200,collapsedWidth:h=80,zeroWidthTriggerStyle:p,breakpoint:m,onCollapse:v,onBreakpoint:y}=e,S=bWt(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:b}=(0,Ih.useContext)(vWt.LayoutContext),[C,_]=(0,Ih.useState)("collapsed"in e?e.collapsed:a),[T,x]=(0,Ih.useState)(!1);(0,Ih.useEffect)(()=>{"collapsed"in e&&_(e.collapsed)},[e.collapsed]);const E=(ne,ue)=>{"collapsed"in e||_(ne),v==null||v(ne,ue)},{getPrefixCls:k,direction:M}=(0,Ih.useContext)(gWt.ConfigContext),P=k("layout-sider",n),[D,R,A]=(0,yWt.default)(P),H=(0,Ih.useRef)(null);H.current=ne=>{x(ne.matches),y==null||y(ne.matches),C!==ne.matches&&E(ne.matches,"responsive")},(0,Ih.useEffect)(()=>{function ne(ye){return H.current(ye)}let ue;if(typeof window<"u"){const{matchMedia:ye}=window;if(ye&&m&&m in wae){ue=ye(`screen and (max-width: ${wae[m]})`);try{ue.addEventListener("change",ne)}catch{ue.addListener(ne)}ne(ue)}}return()=>{try{ue==null||ue.removeEventListener("change",ne)}catch{ue==null||ue.removeListener(ne)}}},[m]),(0,Ih.useEffect)(()=>{const ne=xWt("ant-sider-");return b.addSider(ne),()=>b.removeSider(ne)},[]);const F=()=>{E(!C,"clickTrigger")},z=(0,mWt.default)(S,["collapsed"]),W=C?h:d,q=SWt(W)?`${W}px`:String(W),Z=parseFloat(String(h||0))===0?pc.createElement("span",{onClick:F,className:(0,xae.default)(`${P}-zero-width-trigger`,`${P}-zero-width-trigger-${u?"right":"left"}`),style:p},i||pc.createElement(pWt.default,null)):null,N=M==="rtl"==!u,Y={expanded:N?pc.createElement(Cae.default,null):pc.createElement(Sae.default,null),collapsed:N?pc.createElement(Sae.default,null):pc.createElement(Cae.default,null)}[C?"collapsed":"expanded"],ie=i!==null?Z||pc.createElement("div",{className:`${P}-trigger`,onClick:F,style:{width:q}},i||Y):null,ce=Object.assign(Object.assign({},l),{flex:`0 0 ${q}`,maxWidth:q,minWidth:q,width:q}),fe=(0,xae.default)(P,`${P}-${s}`,{[`${P}-collapsed`]:!!C,[`${P}-has-trigger`]:c&&i!==null&&!Z,[`${P}-below`]:!!T,[`${P}-zero-width`]:parseFloat(q)===0},r,R,A),ee=pc.useMemo(()=>({siderCollapsed:C}),[C]);return D(pc.createElement(CWt.Provider,{value:ee},pc.createElement("aside",Object.assign({className:fe},z,{style:ce,ref:t}),pc.createElement("div",{className:`${P}-children`},o),c||T&&Z?ie:null)))});vS.default=wWt;var v4e=Vr.default;Object.defineProperty(JK,"__esModule",{value:!0});JK.default=TWt;var _Wt=v4e(eq),EWt=v4e(vS);function TWt(e,t,n){return typeof n=="boolean"?n:e.length?!0:(0,_Wt.default)(t).some(i=>i.type===EWt.default)}var GM,YM,kWt=ya.default,y4=Vr.default;Object.defineProperty(Qh,"__esModule",{value:!0});Qh.default=Qh.Header=YM=Qh.Footer=GM=Qh.Content=void 0;var OWt=y4(VEe),cu=kWt(f),y4e=y4(oO),PWt=y4(_M),HB=LK,MWt=v4,IWt=y4(JK),b4e=y4(np),S4e=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 XM(e){let{suffixCls:t,tagName:n,displayName:r}=e;return i=>cu.forwardRef((a,s)=>cu.createElement(i,Object.assign({ref:s,suffixCls:t,tagName:n},a)))}const lq=cu.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:i,tagName:o}=e,a=S4e(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=cu.useContext(HB.ConfigContext),l=s("layout",n),[c,u,d]=(0,b4e.default)(l),h=r?`${l}-${r}`:l;return c(cu.createElement(o,Object.assign({className:(0,y4e.default)(n||h,i,u,d),ref:t},a)))}),$Wt=cu.forwardRef((e,t)=>{const{direction:n}=cu.useContext(HB.ConfigContext),[r,i]=cu.useState([]),{prefixCls:o,className:a,rootClassName:s,children:l,hasSider:c,tagName:u,style:d}=e,h=S4e(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),p=(0,PWt.default)(h,["suffixCls"]),{getPrefixCls:m,layout:v}=cu.useContext(HB.ConfigContext),y=m("layout",o),S=(0,IWt.default)(r,l,c),[b,C,_]=(0,b4e.default)(y),T=(0,y4e.default)(y,{[`${y}-has-sider`]:S,[`${y}-rtl`]:n==="rtl"},v==null?void 0:v.className,a,s,C,_),x=cu.useMemo(()=>({siderHook:{addSider:E=>{i(k=>[].concat((0,OWt.default)(k),[E]))},removeSider:E=>{i(k=>k.filter(M=>M!==E))}}}),[]);return b(cu.createElement(MWt.LayoutContext.Provider,{value:x},cu.createElement(u,Object.assign({ref:t,className:T,style:Object.assign(Object.assign({},v==null?void 0:v.style),d)},p),l)))}),RWt=XM({tagName:"div",displayName:"Layout"})($Wt);Qh.Header=XM({suffixCls:"header",tagName:"header",displayName:"Header"})(lq);YM=Qh.Footer=XM({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(lq);GM=Qh.Content=XM({suffixCls:"content",tagName:"main",displayName:"Content"})(lq);Qh.default=RWt;function b4(){const{isDarkMode:e}=che(),{token:t}=al.useToken(),n={borderRight:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#eee"},r=260,i={borderBottom:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#eee"},o={borderLeft:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#eee"},a={minHeight:120,overflowY:"auto"},s={height:20,fontSize:12,backgroundColor:t.colorBgContainer,color:t.colorText};return{leftSiderStyle:n,leftSiderWidth:r,headerStyle:i,rightSiderStyle:o,contentStyle:a,footerStyle:s}}const{Header:AWt,Sider:NWt,Content:DWt}=xo,C4e=()=>{const e=io(),{isLoggedIn:t,hasRoleAgent:n}=f.useContext(qs),r=ss(),{headerStyle:i,leftSiderStyle:o,leftSiderWidth:a,contentStyle:s}=b4(),l=pg(h=>h.currentOrg),[c,u]=f.useState([]);f.useEffect(()=>{const h=[{label:e.formatMessage({id:"setting.menu.title",defaultMessage:"设置"}),key:"setting",children:[{label:e.formatMessage({id:"setting.menu.profile",defaultMessage:"个人信息"}),key:"profile"},{label:e.formatMessage({id:"setting.menu.basic",defaultMessage:"基本设置"}),key:"basic"}]}];u(h)},[e]),f.useEffect(()=>{var v,y,S,b;if(!t||(l==null?void 0:l.uid)===""||!n)return;const h=[...c];if(h.length===0)return;const p={label:e.formatMessage({id:"setting.menu.agent",defaultMessage:"客服设置"}),key:"agentProfile"};((y=(v=h[0])==null?void 0:v.children)==null?void 0:y.some(C=>C.key===p.key))||((b=(S=h[0])==null?void 0:S.children)==null||b.splice(1,0,p),u(h))},[l,c,e,t,n]),f.useEffect(()=>{if(!pv)return;const h=[...c];if(h.length===0)return;h.some(m=>m.key==="model")||(h.push({label:e.formatMessage({id:"setting.menu.model",defaultMessage:"大模型"}),key:"model"}),u(h))},[c,e]);const d=h=>{console.log(e.formatMessage({id:"setting.menu.click",defaultMessage:"Menu clicked"}),h),r("/setting/"+h.key)};return U.jsxs(xo,{children:[U.jsx(NWt,{style:o,width:a,children:U.jsx(Jd,{mode:"inline",onClick:d,defaultSelectedKeys:["profile"],defaultOpenKeys:["setting"],items:c})}),U.jsxs(xo,{children:[U.jsx(AWt,{style:i,children:e.formatMessage({id:"menu.dashboard.mine"})}),U.jsx(DWt,{style:s,children:U.jsx(NP,{})})]})]})},x4e=Wc()(Kd(qd(Gd((e,t)=>({newfriends:[],devices:[],groups:[],channels:[],members:[],friends:[],currentContact:{type:"",device:{uid:""}},memberSelf:{type:"",member:{uid:""}},addNewfriend(n){console.log("addNewfriend",n)},addDevice(n){var r;if(n.type===Yfe){const i=t().devices.some(o=>o.device.uid===n.device.uid);e(i?{devices:[n,...t().devices.filter(o=>o.device.uid!==n.device.uid)]}:{devices:[n,...t().devices]}),((r=t().currentContact.device)==null?void 0:r.uid)===n.device.uid&&e({currentContact:n})}},addGroup(n){console.log("addGroup",n)},addChannel(n){console.log("addChannel",n)},addMember(n){if(n.type===_Pe){const r=t().members.some(i=>i.member.uid===n.member.uid);e(r?{members:[n,...t().members.filter(i=>i.member.uid!==n.member.uid)]}:{members:[...t().members,n]})}},addFriend(n){console.log("addFriend",n)},setCurrentContact:n=>{e({currentContact:n})},setMemberSelf:n=>{e({memberSelf:n})},resetContactInfo(){e({newfriends:[],devices:[],groups:[],channels:[],members:[],friends:[],currentContact:{type:"",device:{uid:""}},memberSelf:{type:"",member:{uid:""}}})}})),{name:vPe}))),LWt=Wc()(Kd(qd(Gd((e,t)=>({currentMember:{nickname:"",user:{uid:"",avatar:""}},memberSelf:{nickname:"",user:{uid:"",avatar:""}},memberResult:{data:{content:[]}},setCurrentMember(n){e({currentMember:n})},setMemberSelf(n){e({memberSelf:n})},setMemberResult:n=>{e({memberResult:n})},resetMembers:()=>e({currentMember:{nickname:"",user:{uid:"",avatar:""}},memberSelf:{nickname:"",user:{uid:"",avatar:""}}})})),{name:mPe}))),w4e=Wc()(Kd(qd(Gd((e,t)=>({workgroupResult:{data:{content:[]}},workgroupInfo:{uid:"",orgUid:""},insertWorkgroup(n){e(r=>{r.workgroupResult.data.content.unshift(n)})},updateWorkgroup(n){e(r=>{const i=r.workgroupResult.data.content,o=i.findIndex(a=>a.uid===n.uid);o!==-1?i[o]=n:console.warn(`Workgroup with uid ${n.uid} not found.`)})},deleteWorkgroup(n){e(r=>{const i=r.workgroupResult.data.content,o=i.findIndex(a=>a.uid===n.uid);o!==-1?i.splice(o,1):console.warn(`Workgroup with uid ${n.uid} not found.`)})},setWorkgroupResult:n=>{e({workgroupResult:n})},setWorkgroupInfo(n){e({workgroupInfo:n})},deleteWorkgroupInfo(n){const r=t().workgroupResult.data.content,i=r.findIndex(o=>o.uid===n);i!==-1?e({workgroupResult:{...t().workgroupResult,data:{content:[...r.slice(0,i),...r.slice(i+1)]}}}):console.warn("Workgroup not found in cache:",n),t().workgroupInfo.uid===n&&e({workgroupInfo:{uid:"",orgUid:""}})},resetWorkgroupInfo(){e({workgroupResult:{data:{content:[]}},workgroupInfo:{uid:"",orgUid:""}})}})),{name:wPe}))),FWt=()=>{const e=pg(u=>u.deleteOrg),t=Sd(u=>u.resetThreads),n=Tp(u=>u.resetMessageList),r=LWt(u=>u.resetMembers),i=nE(u=>u.removeAccessToken),o=qa(u=>u.resetUserInfo),a=x4e(u=>u.resetContactInfo),s=Kv(u=>u.resetAgentInfo),l=w4e(u=>u.resetWorkgroupInfo);return{clearStorage:()=>{e(),t(),n(),r(),i(),o(),a(),s(),l()}}};function cq(){const e=nE(b=>b.accessToken),t=qa(b=>b.userInfo),n=Kv(b=>b.agentInfo),r=wM(),[i,o]=f.useState(!1),{showNotification:a}=DK(),{translateString:s}=ah();Tp(b=>b.addMessage),Sd(b=>b.updateThreadContent),f.useContext(qs),f.useRef(!1);const l=Sd(b=>b.threads),[c,u]=f.useState(l),d=f.useCallback(()=>{if(r&&e)return setInterval(()=>{console.log("useMqtt autoCheckConnection"),!qpt()&&r&&e&&v()},1e4);console.log("useMqtt autoCheckConnection isNetworkOnline:",r," accessToken:",e)},[r,e]),h=async()=>{},p=f.useRef(n==null?void 0:n.uid),m=f.useCallback(()=>{if(!i&&e)return setInterval(async()=>{p.current?h():console.log("useMqtt autoPingMessage currentUidRef.current:",p.current)},1e4);console.log("useMqtt autoPingMessage isNetworkOnline:",r," accessToken:",e)},[i,e,t,n]),v=()=>{console.log("useMqtt doConnect"),Vpt({uid:t.uid,username:t.username,accessToken:e})},y=()=>{console.log("useMqtt useEffect doDisconnect"),pA()},S=b=>{var C,_;(b==null?void 0:b.type)!==Xw&&((C=b==null?void 0:b.user)==null?void 0:C.uid)!==(t==null?void 0:t.uid)&&((_=b==null?void 0:b.user)==null?void 0:_.uid)!==(n==null?void 0:n.uid)&&(zLe(),console.log("playAudio"))};return f.useEffect(()=>{console.log("useMqtt useEffect isNetworkOnline",r),r?v():pA()},[r]),f.useEffect(()=>{if(n!=null&&n.uid){p.current=n==null?void 0:n.uid;const b=m();return()=>{clearInterval(b)}}else p.current=null},[n]),f.useEffect(()=>{console.log("useMqtt useEffect accessToken"),v();const b=d();return()=>{pA(),clearInterval(b)}},[e,t]),f.useEffect(()=>{console.log("useMqtt threads change"),u(l)},[l]),f.useEffect(()=>{const b=function(C){if(console.log("useMqtt handleNewMessage",C),C.type===Yw||C.type===Xfe||C.type===fD||C.type===Xw||C.type===Qw)return;const _=C.threadTopic,T=c.find(x=>x.topic===_);T?T.mute?console.log("useMqtt matchingThread muted",_):(console.log("useMqtt matchingThread no mute",_),a(s(ET),s(ET)),S(C)):(console.log("useMqtt matchingThread no"),a(s(ET),s(ET)),S(C))};return Dr.on(qw,b),()=>{Dr.off(qw)}},[c]),f.useEffect(()=>{console.log("useMqtt useEffect");const b=function(){console.log("handleMqttConnected"),o(!0)},C=function(){console.log("handleMqttDisconnected"),o(!1)};return Dr.on(nD,b),Dr.on(iD,C),Dr.on(oD,C),Dr.on(rD,C),Dr.on(aD,C),Dr.on(sD,C),()=>{console.log("un - useEffect mqttDisconnect"),Dr.off(nD),Dr.off(iD),Dr.off(oD),Dr.off(rD),Dr.off(aD),Dr.off(sD)}},[]),{doConnect:v,doDisconnect:y,isMqttConnected:i}}function _4e(){console.log("useEventBus");const{clearStorage:e}=FWt(),{doDisconnect:t}=cq(),{setPingLoading:n}=f.useContext(qs),r=f.useCallback(async()=>{try{const i=await iHt();console.log("logout result:",i.data),n(!1),t(),e(),rmt()}catch(i){console.log("logout error:",i)}},[]);return f.useEffect(()=>{console.log("useEventBus useEffect");const i=function(o){console.log("token过期,强制刷新登录",o),Dr.off(Km,i),r()};return Dr.on(Km,i),()=>{console.log("un - useEffect mqttDisconnect"),Dr.off(Km)}},[]),{doLogout:r}}const E4e=()=>{const e=io(),{isLoggedIn:t,mode:n}=f.useContext(qs),{doLogout:r}=_4e(),[i,o]=f.useState("✅"),[a,s]=f.useState(e.formatMessage({id:"footbar.network.normal",defaultMessage:"网络正常"})),l=wM();f.useEffect(()=>{l?(o("✅"),s(e.formatMessage({id:"footbar.network.normal",defaultMessage:"网络正常"}))):(o("❌"),s(e.formatMessage({id:"footbar.network.disconnected",defaultMessage:"网络断开"})))},[l,e]);const c=U.jsx("div",{children:U.jsx("p",{children:e.formatMessage({id:"footbar.anonymous.tip",defaultMessage:"匿名状态,仅支持同一个局域网内在线设备之间通信"})})}),u=U.jsx("div",{children:U.jsx("p",{children:e.formatMessage({id:"footbar.login.tip",defaultMessage:"登录后,支持离线消息和更多功能"})})}),[d,h]=f.useState(!1),p=()=>{h(!0)},m=()=>{h(!1)},v=()=>{console.log("handleShowLoginModel"),p()},y=b=>{console.log(b),r()},S=b=>{console.log(b)};return U.jsxs(U.Fragment,{children:[U.jsx(Ia,{open:d&&!t,onOk:m,onCancel:m,footer:[U.jsx(hr,{onClick:m,children:e.formatMessage({id:"footbar.login.skip",defaultMessage:"暂不登录"})},"back")],children:U.jsx(IB,{isModel:!0})}),U.jsxs("span",{children:[!t&&U.jsxs(U.Fragment,{children:[U.jsx(Ou,{content:c,title:e.formatMessage({id:"footbar.anonymous.status",defaultMessage:"匿名状态"}),children:U.jsx("span",{className:"footerLeftButton",children:e.formatMessage({id:"footbar.anonymous.status",defaultMessage:"匿名状态"})})}),U.jsx(Ou,{content:u,children:U.jsx("span",{className:"footerLeftButton",onClick:v,children:e.formatMessage({id:"footbar.login",defaultMessage:"登录"})})})]}),t&&U.jsx(U.Fragment,{children:U.jsx(JSe,{title:e.formatMessage({id:"footbar.logout.title",defaultMessage:"退出登录"}),description:e.formatMessage({id:"footbar.logout.confirm",defaultMessage:"确定要退出登录?"}),onConfirm:y,onCancel:S,okText:e.formatMessage({id:"common.confirm",defaultMessage:"确定"}),cancelText:e.formatMessage({id:"common.cancel",defaultMessage:"取消"}),children:U.jsx("span",{className:"footerLeftButton",children:e.formatMessage({id:"footbar.logout",defaultMessage:"退出登录"})})})}),n===mv&&pv&&U.jsx("span",{style:{marginLeft:10},children:U.jsx(ta,{title:e.formatMessage({id:"footbar.serving.count",defaultMessage:"当前接待人数"}),children:U.jsx("span",{children:e.formatMessage({id:"footbar.serving.text",defaultMessage:"当前接待人数:0"})})})})]}),U.jsxs("span",{className:"footerRightButton",children:[U.jsx(ta,{title:a,children:U.jsx("span",{children:i})}),U.jsxs("span",{style:{marginLeft:"10px"},onClick:()=>C_(DPe),children:["v",HLe()]}),U.jsx("span",{style:{marginLeft:"10px"},onClick:()=>C_("https://www.weiyuai.cn/chat/iframe.html?org=df_org_uid&t=1&sid=df_wg_uid&"),children:e.formatMessage({id:"i18n.online.chat",defaultMessage:"Chat"})})]})]})},T4e=()=>{const e=ss(),{userInfo:t}=gxe(),{translateString:n}=ah(),{mode:r}=f.useContext(qs),[i,o]=f.useState(""),[a,s]=f.useState(""),[l,c]=f.useState(""),u=()=>{e("/setting")};return f.useEffect(()=>{o(n(t==null?void 0:t.nickname)),s(n(t==null?void 0:t.description)),c(t==null?void 0:t.avatar)},[r,t]),U.jsx(U.Fragment,{children:U.jsx(Ou,{title:i,content:a,placement:"rightBottom",children:U.jsx(U.Fragment,{children:U.jsx(yg,{style:{marginTop:60,cursor:"pointer"},size:40,src:l,onClick:u})})})})};function k4e(){console.log("useElectronApi");const e=ss(),t=qa(r=>r.userInfo),n=x4e(r=>r.addDevice);f.useEffect(()=>(console.log("useElectronApi useEffect"),os?(window.electronAPI.loginSuccess(),window.electronAPI.onNewWindowCreated(r=>{console.log("Dashboard onNewWindowCreated content:",r),e("/enlarge",{state:{content:r}})}),window.electronAPI.onMulticastMessage(r=>{const i=JSON.parse(r);if(i.user.uid!==t.uid){console.log("EVENT_BUS_MULTICAST_MESSAGE_RECEIVED",r);const o={type:Yfe,device:i.device,user:i.user,createdAt:i.createdAt};n(o)}}),window.electronAPI.onWebSocketMessage(r=>{console.log("Dashboard onWebSocketMessage content:",r)}),window.electronAPI.onHttpMessage(r=>{console.log("Dashboard onHttpMessage content:",r)}),window.electronAPI.onNotificationMessage(r=>{if(console.log("Dashboard onNotificationMessage content:",r),r.type===aPe){Wn.success("截图成功");const i=r.data;Dr.emit(fPe,i.toDataURL())}})):console.log("not electron - in browser"),()=>{console.log("un - useEffect"),os?(window.electronAPI.offNewWindowCreated(),window.electronAPI.offMulticastMessageAll(),window.electronAPI.offWebSocketMessageAll(),window.electronAPI.offHttpMessageAll(),window.electronAPI.offNotificationMessageAll()):console.log("not electron")}),[])}const jWt=()=>{const e=io(),{doLogout:t}=_4e(),{isLoggedIn:n,locale:r,changeLocale:i,mode:o,changeMode:a,handleUpdateAgentStatus:s}=f.useContext(qs),{agentInfo:l}=Kv(p=>({agentInfo:p.agentInfo})),c=[{key:"settings",label:e.formatMessage({id:"menu.settings",defaultMessage:"Settings"}),icon:U.jsx(UP,{}),children:[{key:"logout",label:e.formatMessage({id:"menu.settings.logout",defaultMessage:"Logout"})}]}],[u,d]=f.useState(c);f.useEffect(()=>{if(d(c),l.uid!==""&&o===mv){console.log("agentInfo changed",l);const p=[...c],m={key:"status",label:e.formatMessage({id:"menu.agent.status",defaultMessage:"Agent Status"}),type:"group",children:[{key:XX,icon:l.status===XX?U.jsx(vb,{}):U.jsx(U.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.available",defaultMessage:"Available"})},{key:QX,icon:l.status===QX?U.jsx(vb,{}):U.jsx(U.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.rest",defaultMessage:"Rest"})},{key:I$,icon:l.status===I$?U.jsx(vb,{}):U.jsx(U.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.offline",defaultMessage:"Offline"})}]},v=p[0].children,y=v.findIndex(S=>S.key===m.key);y!==-1?v[y]=m:v.splice(0,0,m),p[0].children=v,d(p)}},[l,r,o]);const h=async p=>{console.log("click",p.key),p.key==="logout"?t():p.key==="zh-cn"||p.key==="zh-tw"||p.key==="en"?i(p.key):p.key===ab||p.key===mv||p.key===J8?(console.log("mode",p.key),a(p.key)):(console.log("status"),p.key===I$&&ws.warning(e.formatMessage({id:"menu.agent.offline.warning",defaultMessage:"Please end all ongoing conversations before going offline"})),s(p.key))};return U.jsx(U.Fragment,{children:n?U.jsx(U.Fragment,{children:U.jsx(Jd,{inlineCollapsed:!0,onClick:h,style:{width:64,height:34},mode:"inline",items:u})}):U.jsx(U.Fragment,{})})};async function BWt(e){return Wo("/api/v1/workgroup/query/org",{method:"GET",params:{...e,client:So}})}const O4e=()=>{const[e,t]=f.useState([]),n=new dxe;f.useEffect(()=>{(async()=>{try{const s=await n.getAllMessages();t(s)}catch(s){console.error("Error fetching messages from IndexedDB:",s)}})()},[]);const r=async a=>{try{await n.createMessage(a);const s=await n.getAllMessages();console.log("useIndexedDB createMessage newMessages: ",s),t(s)}catch(s){console.error("Error creating message in IndexedDB:",s)}},i=async(a,s)=>{try{await n.updateMessage(a,s);const l=await n.getAllMessages();t(l)}catch(l){console.error("Error updating message in IndexedDB:",l)}},o=async a=>{try{await n.deleteMessage(a);const s=await n.getAllMessages();t(s)}catch(s){console.error("Error deleting message in IndexedDB:",s)}};return f.useEffect(()=>{console.log("useIndexedDB useEffect");const a=function(s){console.log("useIndexedDB handleNewMessage",s),r(s)};return Dr.on(qw,a),()=>{console.log("useIndexedDB useEffect return"),Dr.off(qw,a)}},[]),{messages:e,createMessage:r,updateMessage:i,deleteMessage:o}};async function P4e(){return Wo("/api/v1/user/profile",{method:"GET",params:{client:So}})}async function M4e(e){return Wo("/api/v1/user/update",{method:"POST",data:{...e,client:So}})}async function HWt(e){return Wo("/api/v1/user/change/password",{method:"POST",data:{...e,client:So}})}async function I4e(e){return Wo("/api/v1/user/change/email",{method:"POST",data:{...e,client:So}})}async function $4e(e){return Wo("/api/v1/user/change/mobile",{method:"POST",data:{...e,client:So}})}const zWt=()=>{const e=io(),{locale:t,changeLocale:n}=f.useContext(qs),r=[{key:"lang",icon:U.jsx(Y2t,{}),label:e.formatMessage({id:"menu.language"}),children:[{key:"zh-cn",icon:t.locale==="zh-cn"?U.jsx(vb,{}):U.jsx(U.Fragment,{}),label:e.formatMessage({id:"i18n.lang.zh-CN"})},{key:"zh-tw",icon:t.locale==="zh-tw"?U.jsx(vb,{}):U.jsx(U.Fragment,{}),label:e.formatMessage({id:"i18n.lang.zh-TW"})},{key:"en",icon:t.locale==="en"?U.jsx(vb,{}):U.jsx(U.Fragment,{}),label:e.formatMessage({id:"i18n.lang.en-US"})}]}],i=o=>{const a=o.key;n(a)};return U.jsx(Jd,{inlineCollapsed:!0,onClick:i,style:{width:64,height:34},mode:"inline",items:r})};var Hl=function(){return Hl=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},Hl.apply(this,arguments)};function Ik(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 UWt=function(t,n,r,i){var o=r?r.call(i,t,n):void 0;if(o!==void 0)return!!o;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var a=Object.keys(t),s=Object.keys(n);if(a.length!==s.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(n),c=0;c<a.length;c++){var u=a[c];if(!l(u))return!1;var d=t[u],h=n[u];if(o=r?r.call(i,d,h,u):void 0,o===!1||o===void 0&&d!==h)return!1}return!0};const WWt=hi(UWt);var ho="-ms-",dw="-moz-",Ai="-webkit-",R4e="comm",QM="rule",uq="decl",VWt="@import",A4e="@keyframes",KWt="@layer",N4e=Math.abs,dq=String.fromCharCode,zB=Object.assign;function qWt(e,t){return ts(e,0)^45?(((t<<2^ts(e,0))<<2^ts(e,1))<<2^ts(e,2))<<2^ts(e,3):0}function D4e(e){return e.trim()}function Fh(e,t){return(e=t.exec(e))?e[0]:e}function ei(e,t,n){return e.replace(t,n)}function n8(e,t,n){return e.indexOf(t,n)}function ts(e,t){return e.charCodeAt(t)|0}function yS(e,t,n){return e.slice(t,n)}function Ef(e){return e.length}function L4e(e){return e.length}function $2(e,t){return t.push(e),e}function GWt(e,t){return e.map(t).join("")}function _ae(e,t){return e.filter(function(n){return!Fh(n,t)})}var ZM=1,bS=1,F4e=0,Mu=0,Ta=0,NC="";function JM(e,t,n,r,i,o,a,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:ZM,column:bS,length:a,return:"",siblings:s}}function fm(e,t){return zB(JM("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function dy(e){for(;e.root;)e=fm(e.root,{children:[e]});$2(e,e.siblings)}function YWt(){return Ta}function XWt(){return Ta=Mu>0?ts(NC,--Mu):0,bS--,Ta===10&&(bS=1,ZM--),Ta}function $d(){return Ta=Mu<F4e?ts(NC,Mu++):0,bS++,Ta===10&&(bS=1,ZM++),Ta}function nv(){return ts(NC,Mu)}function r8(){return Mu}function eI(e,t){return yS(NC,e,t)}function UB(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 QWt(e){return ZM=bS=1,F4e=Ef(NC=e),Mu=0,[]}function ZWt(e){return NC="",e}function eN(e){return D4e(eI(Mu-1,WB(e===91?e+2:e===40?e+1:e)))}function JWt(e){for(;(Ta=nv())&&Ta<33;)$d();return UB(e)>2||UB(Ta)>3?"":" "}function eVt(e,t){for(;--t&&$d()&&!(Ta<48||Ta>102||Ta>57&&Ta<65||Ta>70&&Ta<97););return eI(e,r8()+(t<6&&nv()==32&&$d()==32))}function WB(e){for(;$d();)switch(Ta){case e:return Mu;case 34:case 39:e!==34&&e!==39&&WB(Ta);break;case 40:e===41&&WB(e);break;case 92:$d();break}return Mu}function tVt(e,t){for(;$d()&&e+Ta!==57;)if(e+Ta===84&&nv()===47)break;return"/*"+eI(t,Mu-1)+"*"+dq(e===47?e:$d())}function nVt(e){for(;!UB(nv());)$d();return eI(e,Mu)}function rVt(e){return ZWt(i8("",null,null,null,[""],e=QWt(e),0,[0],e))}function i8(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,h=0,p=0,m=0,v=1,y=1,S=1,b=0,C="",_=i,T=o,x=r,E=C;y;)switch(m=b,b=$d()){case 40:if(m!=108&&ts(E,d-1)==58){n8(E+=ei(eN(b),"&","&\f"),"&\f",N4e(c?s[c-1]:0))!=-1&&(S=-1);break}case 34:case 39:case 91:E+=eN(b);break;case 9:case 10:case 13:case 32:E+=JWt(m);break;case 92:E+=eVt(r8()-1,7);continue;case 47:switch(nv()){case 42:case 47:$2(iVt(tVt($d(),r8()),t,n,l),l);break;default:E+="/"}break;case 123*v:s[c++]=Ef(E)*S;case 125*v:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+u:S==-1&&(E=ei(E,/\f/g,"")),p>0&&Ef(E)-d&&$2(p>32?Tae(E+";",r,n,d-1,l):Tae(ei(E," ","")+";",r,n,d-2,l),l);break;case 59:E+=";";default:if($2(x=Eae(E,t,n,c,u,i,s,C,_=[],T=[],d,o),o),b===123)if(u===0)i8(E,t,x,x,_,o,d,s,T);else switch(h===99&&ts(E,3)===110?100:h){case 100:case 108:case 109:case 115:i8(e,x,x,r&&$2(Eae(e,x,x,0,0,i,s,C,i,_=[],d,T),T),i,T,d,s,r?_:T);break;default:i8(E,x,x,x,[""],T,0,s,T)}}c=u=p=0,v=S=1,C=E="",d=a;break;case 58:d=1+Ef(E),p=m;default:if(v<1){if(b==123)--v;else if(b==125&&v++==0&&XWt()==125)continue}switch(E+=dq(b),b*v){case 38:S=u>0?1:(E+="\f",-1);break;case 44:s[c++]=(Ef(E)-1)*S,S=1;break;case 64:nv()===45&&(E+=eN($d())),h=nv(),u=d=Ef(C=E+=nVt(r8())),b++;break;case 45:m===45&&Ef(E)==2&&(v=0)}}return o}function Eae(e,t,n,r,i,o,a,s,l,c,u,d){for(var h=i-1,p=i===0?o:[""],m=L4e(p),v=0,y=0,S=0;v<r;++v)for(var b=0,C=yS(e,h+1,h=N4e(y=a[v])),_=e;b<m;++b)(_=D4e(y>0?p[b]+" "+C:ei(C,/&\f/g,p[b])))&&(l[S++]=_);return JM(e,t,n,i===0?QM:s,l,c,u,d)}function iVt(e,t,n,r){return JM(e,t,n,R4e,dq(YWt()),yS(e,2,-2),0,r)}function Tae(e,t,n,r,i){return JM(e,t,n,uq,yS(e,0,r),yS(e,r+1,-1),r,i)}function j4e(e,t,n){switch(qWt(e,t)){case 5103:return Ai+"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 Ai+e+e;case 4789:return dw+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ai+e+dw+e+ho+e+e;case 5936:switch(ts(e,t+11)){case 114:return Ai+e+ho+ei(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ai+e+ho+ei(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ai+e+ho+ei(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Ai+e+ho+e+e;case 6165:return Ai+e+ho+"flex-"+e+e;case 5187:return Ai+e+ei(e,/(\w+).+(:[^]+)/,Ai+"box-$1$2"+ho+"flex-$1$2")+e;case 5443:return Ai+e+ho+"flex-item-"+ei(e,/flex-|-self/g,"")+(Fh(e,/flex-|baseline/)?"":ho+"grid-row-"+ei(e,/flex-|-self/g,""))+e;case 4675:return Ai+e+ho+"flex-line-pack"+ei(e,/align-content|flex-|-self/g,"")+e;case 5548:return Ai+e+ho+ei(e,"shrink","negative")+e;case 5292:return Ai+e+ho+ei(e,"basis","preferred-size")+e;case 6060:return Ai+"box-"+ei(e,"-grow","")+Ai+e+ho+ei(e,"grow","positive")+e;case 4554:return Ai+ei(e,/([^-])(transform)/g,"$1"+Ai+"$2")+e;case 6187:return ei(ei(ei(e,/(zoom-|grab)/,Ai+"$1"),/(image-set)/,Ai+"$1"),e,"")+e;case 5495:case 3959:return ei(e,/(image-set\([^]*)/,Ai+"$1$`$1");case 4968:return ei(ei(e,/(.+:)(flex-)?(.*)/,Ai+"box-pack:$3"+ho+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ai+e+e;case 4200:if(!Fh(e,/flex-|baseline/))return ho+"grid-column-align"+yS(e,t)+e;break;case 2592:case 3360:return ho+ei(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,Fh(r.props,/grid-\w+-end/)})?~n8(e+(n=n[t].value),"span",0)?e:ho+ei(e,"-start","")+e+ho+"grid-row-span:"+(~n8(n,"span",0)?Fh(n,/\d+/):+Fh(n,/\d+/)-+Fh(e,/\d+/))+";":ho+ei(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return Fh(r.props,/grid-\w+-start/)})?e:ho+ei(ei(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return ei(e,/(.+)-inline(.+)/,Ai+"$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(Ef(e)-1-t>6)switch(ts(e,t+1)){case 109:if(ts(e,t+4)!==45)break;case 102:return ei(e,/(.+:)(.+)-([^]+)/,"$1"+Ai+"$2-$3$1"+dw+(ts(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~n8(e,"stretch",0)?j4e(ei(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return ei(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,o,a,s,l,c){return ho+i+":"+o+c+(a?ho+i+"-span:"+(s?l:+l-+o)+c:"")+e});case 4949:if(ts(e,t+6)===121)return ei(e,":",":"+Ai)+e;break;case 6444:switch(ts(e,ts(e,14)===45?18:11)){case 120:return ei(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Ai+(ts(e,14)===45?"inline-":"")+"box$3$1"+Ai+"$2$3$1"+ho+"$2box$3")+e;case 100:return ei(e,":",":"+ho)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return ei(e,"scroll-","scroll-snap-")+e}return e}function $k(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function oVt(e,t,n,r){switch(e.type){case KWt:if(e.children.length)break;case VWt:case uq:return e.return=e.return||e.value;case R4e:return"";case A4e:return e.return=e.value+"{"+$k(e.children,r)+"}";case QM:if(!Ef(e.value=e.props.join(",")))return""}return Ef(n=$k(e.children,r))?e.return=e.value+"{"+n+"}":""}function aVt(e){var t=L4e(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}function sVt(e){return function(t){t.root||(t=t.return)&&e(t)}}function lVt(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case uq:e.return=j4e(e.value,e.length,n);return;case A4e:return $k([fm(e,{value:ei(e.value,"@","@"+Ai)})],r);case QM:if(e.length)return GWt(n=e.props,function(i){switch(Fh(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":dy(fm(e,{props:[ei(i,/:(read-\w+)/,":"+dw+"$1")]})),dy(fm(e,{props:[i]})),zB(e,{props:_ae(n,r)});break;case"::placeholder":dy(fm(e,{props:[ei(i,/:(plac\w+)/,":"+Ai+"input-$1")]})),dy(fm(e,{props:[ei(i,/:(plac\w+)/,":"+dw+"$1")]})),dy(fm(e,{props:[ei(i,/:(plac\w+)/,ho+"input-$1")]})),dy(fm(e,{props:[i]})),zB(e,{props:_ae(n,r)});break}return""})}}var cVt={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},gc={npm_package_dependencies_emoji_mart:"^5.6.0",npm_package_dependencies_use_debounce:"^10.0.1",ELECTRON_MIRROR:"http://npm.taobao.org/mirrors/electron/",NVM_INC:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/include/node",npm_package_devDependencies_prettier:"3.2.5",npm_package_devDependencies_electron_builder:"24.13.3",npm_package_scripts_build_mac_dmg:"tsc && vite build --mode prod && electron-builder --mac --config electron-builder-mac-dmg.yml",npm_package_dependencies_ts_protoc_gen:"^0.15.0",rvm_bin_path:"/Users/ningjinpeng/.rvm/bin",TERM_PROGRAM:"vscode",npm_package_dependencies__bytemd_plugin_breaks:"^1.21.0",npm_package_dependencies_cheerio:"^1.0.0",NODE:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin/node",npm_config_version_git_tag:"true",npm_package_homepage:"https://github.com/bytedesk/bytedesk#readme",npm_package_scripts_release_mac:"sh cicd/scripts/build-upload-mac.sh",npm_package_dependencies_axios:"^1.6.5",npm_package_dependencies_moment:"^2.30.1",npm_package_devDependencies_typescript:"^5.1.6",npm_package_devDependencies_vite_plugin_pwa:"^0.20.1",PYENV_ROOT:"/Users/ningjinpeng/.pyenv",NVM_CD_FLAGS:"-q",GEM_HOME:"/Users/ningjinpeng/.gem/ruby",INIT_CWD:"/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/apps/notebase",npm_package_scripts_build_mac_mas:"tsc && vite build --mode prod && electron-builder --mac --config electron-builder-mac-mas.yml",npm_package_devDependencies_jest:"^29.7.0",npm_package_devDependencies_vite:"^5.0.10",TERM:"xterm-256color",SHELL:"/bin/zsh",npm_config_shamefully_hoist:"true",npm_package_dependencies__emotion_styled:"11.11.5",npm_package_dependencies_react_infinite_scroll_component:"^6.1.0",HOMEBREW_BOTTLE_DOMAIN:"https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles",HOMEBREW_API_DOMAIN:"https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/api",npm_package_dependencies__ant_design_pro_provider:"^2.15.2",TMPDIR:"/var/folders/gs/yt0l6r9963zgwd7fmhn3jfg40000gn/T/",HOMEBREW_REPOSITORY:"/opt/homebrew",npm_config_init_license:"MIT",npm_package_dependencies__ant_design_x:"^1.0.3",npm_package_dependencies__langchain_community:"^0.2.28",npm_package_dependencies_socket_io:"^4.7.5",npm_package_locales_en_productName:"ByteDesk",npm_package_dependencies_debug:"^4.3.7",npm_package_dependencies_dompurify:"^3.0.9",npm_package_devDependencies__vitejs_plugin_react:"^4.0.4",TERM_PROGRAM_VERSION:"0.45.11",npm_package_scripts_dev:"vite --host --mode dev",npm_package_dependencies_express_rate_limit:"^7.2.0",npm_package_dependencies_uuid:"^9.0.1",ZDOTDIR:"/Users/ningjinpeng",ORIGINAL_XDG_CURRENT_DESKTOP:"undefined",MallocNanoZone:"0",CURSOR_TRACE_ID:"ebcff97620e04394b0d5c35c226eee95",npm_package_scripts_build_linux:"tsc && vite build --mode prod && electron-builder --linux --config electron-builder-linux.yml",TERM_SESSION_ID:"37D83AF1-52F0-4224-9F8A-699A558E85DD",npm_config_registry:"https://registry.npmmirror.com/",npm_package_private:"true",npm_package_repository_url:"git+https://github.com/bytedesk/bytedesk.git",npm_package_dependencies__ant_design_icons:"^4.8.1",npm_package_dependencies__tanstack_react_query_devtools:"^5.21.0",npm_package_dependencies_bowser:"^2.11.0",npm_package_dependencies_react_dom:"^18.2.0",PNPM_HOME:"/Users/ningjinpeng/Library/pnpm",npm_package_dependencies__ant_design_cssinjs:"^1.22.0",npm_package_dependencies_dayjs:"^1.11.11",npm_package_dependencies_react_dropzone:"^14.2.3",npm_package_readmeFilename:"README.md",OBJC_DISABLE_INITIALIZE_FORK_SAFETY:"YES",npm_package_description:"对话即服务",npm_package_debug_env_VITE_DEV_SERVER_URL:"http://127.0.0.1:9005/",npm_package_devDependencies__testing_library_react:"^14.2.2",npm_package_devDependencies_ajv:"^8.17.1",USER:"ningjinpeng",NVM_DIR:"/Users/ningjinpeng/.nvm",npm_package_license:"GNU",npm_package_devDependencies__types_react:"^18.2.20",npm_package_dependencies_intersection_observer:"^0.12.2",npm_package_dependencies_react_helmet_async:"^2.0.4",COMMAND_MODE:"unix2003",npm_package_scripts_release_open:"sh cicd/scripts/build-open.sh",npm_package_dependencies_bytemd:"^1.21.0",npm_package_scripts_release_mas:"sh cicd/scripts/build-mac-mas.sh",npm_package_dependencies_xgplayer:"^3.0.13",rvm_path:"/Users/ningjinpeng/.rvm",HOMEBREW_INSTALL_FROM_API:"1",HOMEBREW_CORE_GIT_REMOTE:"https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git",FLUTTER_ROOT:"/opt/homebrew/Cellar/ruby/3.4.1/bin:/opt/homebrew/opt/pyqt@5/5.15.7_2/bin:/opt/homebrew/opt/qt@5/5.15.8_2/bin:/Users/ningjinpeng/.pyenv/shims:/Users/ningjinpeng/.pyenv/shims:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/mysql/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Applications/Wireshark.app/Contents/MacOS:/usr/local/go/bin:/usr/local/hatch/bin:/opt/homebrew/opt/libpq/bin:/Users/ningjinpeng/.bun/bin:/Users/ningjinpeng/.gem/ruby/bin:/Users/ningjinpeng/Library/pnpm:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin:/Users/ningjinpeng/anaconda3/bin:/opt/homebrew/Cellar/ruby/3.4.1/bin:/opt/homebrew/opt/pyqt@5/5.15.7_2/bin:/opt/homebrew/opt/qt@5/5.15.8_2/bin:/Users/ningjinpeng/.cargo/bin:/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home/bin:/Users/ningjinpeng/go/bin/:/Users/ningjinpeng/.pub-cache/bin:/Users/ningjinpeng/flutter/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin:/Users/ningjinpeng/.rvm/bin:/Applications/Docker.app/Contents/Resources/bin:/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home/bin:/Users/ningjinpeng/go/bin/:/Users/ningjinpeng/.pub-cache/bin:/Users/ningjinpeng/flutter/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin:/Users/ningjinpeng/flutter",npm_package_dependencies_react_virtuoso:"^4.7.1",npm_package_dependencies_zustand:"^4.4.7",SSH_AUTH_SOCK:"/private/tmp/com.apple.launchd.CzzHBSc4lw/Listeners",npm_package_dependencies__bytemd_plugin_gemoji:"^1.21.0",npm_package_dependencies_highlight_js:"^11.11.1",npm_package_devDependencies__types_express:"^4.17.21",npm_package_devDependencies__types_jest:"^29.5.12",npm_package_devDependencies_less:"^4.2.0",npm_package_devDependencies_postcss:"^8.4.31",__CF_USER_TEXT_ENCODING:"0x1F5:0x19:0x34",PUB_HOSTED_URL:"https://pub.flutter-io.cn",npm_package_scripts_e2e:"playwright test",npm_execpath:"/usr/local/lib/node_modules/yarn/bin/yarn.js",npm_package_scripts_build_open:"tsc && vite build --mode open",npm_package_dependencies__bytemd_react:"^1.21.0",npm_package_author_name:"weiyuai.cn",npm_package_dependencies_react_use:"^17.5.0",npm_package_devDependencies__electron_osx_sign:"^1.3.1",npm_package_devDependencies__types_react_dom:"^18.2.7",npm_package_dependencies__bytemd_plugin_gfm:"^1.21.0",npm_package_dependencies_peerjs:"^1.5.2",npm_package_devDependencies_styled_components:"^6.1.13",rvm_prefix:"/Users/ningjinpeng",npm_package_scripts_build_web:"tsc && vite build --mode web",npm_package_dependencies__emoji_mart_react:"^1.1.1",npm_package_dependencies_immer:"^10.1.1",npm_config_argv:'{"remain":[],"cooked":["run","build:open"],"original":["build:open"]}',PATH:"/var/folders/gs/yt0l6r9963zgwd7fmhn3jfg40000gn/T/yarn--1739709647994-0.8813418042690084:/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/apps/notebase/node_modules/.bin:/Users/ningjinpeng/.config/yarn/link/node_modules/.bin:/Users/ningjinpeng/.yarn/bin:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/libexec/lib/node_modules/npm/bin/node-gyp-bin:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/lib/node_modules/npm/bin/node-gyp-bin:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin/node_modules/npm/bin/node-gyp-bin:/opt/homebrew/opt/libpq/bin:/Users/ningjinpeng/.bun/bin:/Users/ningjinpeng/.gem/ruby/bin:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin:/Users/ningjinpeng/.pyenv/shims:/Users/ningjinpeng/anaconda3/bin:/opt/homebrew/Cellar/ruby/3.4.1/bin:/opt/homebrew/opt/pyqt@5/5.15.7_2/bin:/opt/homebrew/opt/qt@5/5.15.8_2/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/mysql/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Applications/Wireshark.app/Contents/MacOS:/usr/local/go/bin:/usr/local/hatch/bin:/opt/homebrew/opt/libpq/bin:/Users/ningjinpeng/.bun/bin:/Users/ningjinpeng/.gem/ruby/bin:/Users/ningjinpeng/Library/pnpm:/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin:/Users/ningjinpeng/anaconda3/bin:/opt/homebrew/Cellar/ruby/3.4.1/bin:/opt/homebrew/opt/pyqt@5/5.15.7_2/bin:/opt/homebrew/opt/qt@5/5.15.8_2/bin:/Users/ningjinpeng/.cargo/bin:/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home/bin:/Users/ningjinpeng/go/bin/:/Users/ningjinpeng/.pub-cache/bin:/Users/ningjinpeng/flutter/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin:/Users/ningjinpeng/.rvm/bin:/Applications/Docker.app/Contents/Resources/bin:/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home/bin:/Users/ningjinpeng/go/bin/:/Users/ningjinpeng/.pub-cache/bin:/Users/ningjinpeng/flutter/bin:/Users/ningjinpeng/flutter/bin/cache/dart-sdk/bin:/Users/ningjinpeng/.rvm/bin:/Applications/Docker.app/Contents/Resources/bin:/usr/local/bin",npm_package_scripts_release_web:"sh cicd/scripts/build-upload.sh",npm_package_dependencies__ant_design_use_emotion_css:"1.0.4",npm_package_dependencies_electron_context_menu:"^3.6.1",LaunchInstanceID:"4955A815-130B-4D3A-B6A7-1AB8621AF958",npm_config_auto_install_peers:"true",npm_package_dependencies_react_contexify:"^6.0.0",npm_package_dependencies_systeminformation:"^5.22.3",npm_package_devDependencies_ts_jest:"^29.1.2",USER_ZDOTDIR:"/Users/ningjinpeng",__CFBundleIdentifier:"com.todesktop.230313mzl4w4u92",npm_package_dependencies_electron_screenshots:"^0.5.26",npm_package_devDependencies_tailwindcss:"^3.3.3",PWD:"/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/apps/notebase",npm_config_nodeLinker:"node-modules",npm_package_bugs_url:"https://github.com/bytedesk/bytedesk/issues",npm_package_scripts_preview:"vite preview --host",npm_package_dependencies__bytemd_plugin_frontmatter:"^1.21.0",JAVA_HOME:"/Library/Java/JavaVirtualMachines/jdk-17.0.4.jdk/Contents/Home",FLUTTER_STORAGE_BASE_URL:"https://storage.flutter-io.cn",npm_package_dependencies_date_fns:"^3.3.1",npm_package_dependencies_ua_parser_js:"^1.0.37",npm_lifecycle_event:"build:open",npm_package_name:"notebase",npm_package_repository_type:"git",npm_package_dependencies_react_intl:"^6.8.9",LANG:"zh_CN.UTF-8",npm_package_scripts_build_win:"tsc && vite build --mode prod && electron-builder --win --config electron-builder-windows.yml",npm_package_scripts_pree2e:"vite build --mode=test",npm_package_dependencies_file_saver:"^2.0.5",npm_package_devDependencies_vite_plugin_electron_renderer:"^0.14.5",npm_config_version_commit_hooks:"true",npm_package_scripts_start:"vite --host --mode dev",npm_package_scripts_build:"tsc && vite build --mode prod && electron-builder",npm_package_scripts_release_win:"sh cicd/scripts/build-upload-win.sh",NODE_PATH:"/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/node_modules/.pnpm/vite@5.4.11_@types+node@20.17.9_less@4.2.1_lightningcss@1.22.1_sass@1.83.4_sugarss@2.0.0_terser@5.36.0/node_modules/vite/bin/node_modules:/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/node_modules/.pnpm/vite@5.4.11_@types+node@20.17.9_less@4.2.1_lightningcss@1.22.1_sass@1.83.4_sugarss@2.0.0_terser@5.36.0/node_modules/vite/node_modules:/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/node_modules/.pnpm/vite@5.4.11_@types+node@20.17.9_less@4.2.1_lightningcss@1.22.1_sass@1.83.4_sugarss@2.0.0_terser@5.36.0/node_modules:/Users/ningjinpeng/Desktop/git/private/github/bytedesk-frontend-private/node_modules/.pnpm/node_modules",npm_package_dependencies_menubar:"^9.4.0",npm_package_dependencies_react_router_dom:"^6.21.2",VSCODE_GIT_ASKPASS_EXTRA_ARGS:"",XPC_FLAGS:"0x0",npm_config_bin_links:"true",npm_package_dependencies__bytemd_plugin_highlight:"^1.21.0",npm_package_dependencies__types_ua_parser_js:"^0.7.39",npm_config_electron_mirror:"https://npmmirror.com/mirrors/electron/",npm_package_engines_node:">=20",npm_package_main:"dist-electron/main/index.js",npm_package_dependencies__tanstack_react_query:"^5.20.5",npm_package_dependencies_dexie:"^4.0.7",npm_package_version:"1.0.2",npm_package_dependencies__emotion_react:"11.11.4",npm_package_dependencies_node_json_db:"^2.3.1",npm_package_dependencies_winston:"^3.11.0",npm_package_dependencies_ws:"^8.16.0",XPC_SERVICE_NAME:"0",npm_package_devDependencies_autoprefixer:"^10.4.16",VSCODE_INJECTION:"1",rvm_version:"1.29.12 (latest)",npm_package_type:"module",SHLVL:"6",PYENV_SHELL:"zsh",HOME:"/Users/ningjinpeng",npm_package_dependencies_react_markdown:"^9.0.1",VSCODE_GIT_ASKPASS_MAIN:"/Applications/Cursor.app/Contents/Resources/app/extensions/git/dist/askpass-main.js",HOMEBREW_BREW_GIT_REMOTE:"https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git",npm_config_strict_ssl:"true",npm_config_save_prefix:"^",npm_package_dependencies_dotenv:"^16.4.5",npm_package_dependencies_mitt:"^3.0.1",npm_package_dependencies_openai:"^4.56.0",npm_config_version_git_message:"v%s",npm_package_dependencies__emoji_mart_data:"^1.2.1",npm_package_devDependencies_cross_env:"^7.0.3",HOMEBREW_PREFIX:"/opt/homebrew",npm_package_dependencies__bytemd_plugin_mermaid:"^1.21.0",npm_package_dependencies_react_photo_view:"^1.2.6",npm_package_devDependencies__types_web_bluetooth:"^0.0.20",npm_package_dependencies_unique_names_generator:"^4.7.1",YARN_WRAP_OUTPUT:"false",LOGNAME:"ningjinpeng",npm_package_locales_zh_CN_productName:"微语",npm_lifecycle_script:"tsc && vite build --mode open",npm_package_author_email:"270580156@qq.com",npm_package_dependencies_lodash_es:"^4.17.21",VSCODE_GIT_IPC_HANDLE:"/var/folders/gs/yt0l6r9963zgwd7fmhn3jfg40000gn/T/vscode-git-89e1e1d894.sock",npm_package_scripts_release_linux:"sh cicd/scripts/build-upload-linux.sh",npm_package_dependencies_react:"^18.2.0",npm_package_dependencies_mqtt:"^5.2.0",NVM_BIN:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin",BUN_INSTALL:"/Users/ningjinpeng/.bun",npm_config_user_agent:"yarn/1.22.17 npm/? node/v20.0.0 darwin arm64",npm_config_ignore_scripts:"",npm_config_version_git_sign:"",npm_package_dependencies_node_cmd:"^5.0.0",npm_package_dependencies_text_search_engine:"^1.1.0",npm_package_devDependencies__electron_notarize:"^2.5.0",npm_package_dependencies_socket_io_client:"^4.7.5",npm_package_devDependencies__playwright_test:"^1.37.1",npm_package_devDependencies__types_node:"^20.12.3",VSCODE_GIT_ASKPASS_NODE:"/Applications/Cursor.app/Contents/Frameworks/Cursor Helper (Plugin).app/Contents/MacOS/Cursor Helper (Plugin)",GIT_ASKPASS:"/Applications/Cursor.app/Contents/Resources/app/extensions/git/dist/askpass.sh",INFOPATH:"/opt/homebrew/share/info:/opt/homebrew/share/info:",HOMEBREW_CELLAR:"/opt/homebrew/Cellar",npm_package_dependencies_express:"^4.18.3",npm_config_ignore_optional:"",npm_config_init_version:"1.0.0",npm_package_dependencies_antd:"^5.23.2",npm_package_dependencies_langchain:"^0.2.16",npm_package_dependencies_antd_img_crop:"^4.23.0",npm_package_dependencies_electron_updater:"^6.1.1",npm_package_devDependencies_vite_plugin_electron:"^0.28.0",SECURITYSESSIONID:"186b0",npm_package_dependencies__dicebear_collection:"^8.0.1",npm_package_dependencies__types_file_saver:"^2.0.7",npm_package_devDependencies_electron:"^33.2.0",npm_package_locales_zh_CN_description:"对话即服务",npm_config_version_tag_prefix:"v",npm_package_dependencies__ant_design_pro_components:"^2.6.28",npm_package_dependencies__dicebear_core:"^8.0.1",npm_package_dependencies_dexie_react_hooks:"^1.1.7",npm_package_devDependencies__testing_library_jest_dom:"^6.4.2",npm_package_locales_en_description:"Chat as a Service",npm_node_execpath:"/Users/ningjinpeng/.nvm/versions/node/v20.0.0/bin/node",COLORTERM:"truecolor",NODE_ENV:"production"},SS=typeof process<"u"&&gc!==void 0&&(gc.REACT_APP_SC_ATTR||gc.SC_ATTR)||"data-styled",B4e="active",H4e="data-styled-version",tI="6.1.13",fq=`/*!sc*/
|
||
`,Rk=typeof window<"u"&&"HTMLElement"in window,uVt=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&gc!==void 0&&gc.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&gc.REACT_APP_SC_DISABLE_SPEEDY!==""?gc.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&gc.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&gc!==void 0&&gc.SC_DISABLE_SPEEDY!==void 0&&gc.SC_DISABLE_SPEEDY!==""&&gc.SC_DISABLE_SPEEDY!=="false"&&gc.SC_DISABLE_SPEEDY),nI=Object.freeze([]),CS=Object.freeze({});function dVt(e,t,n){return n===void 0&&(n=CS),e.theme!==n.theme&&e.theme||t||n.theme}var z4e=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"]),fVt=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,hVt=/(^-|-$)/g;function kae(e){return e.replace(fVt,"-").replace(hVt,"")}var pVt=/(a)(d)/gi,E5=52,Oae=function(e){return String.fromCharCode(e+(e>25?39:97))};function VB(e){var t,n="";for(t=Math.abs(e);t>E5;t=t/E5|0)n=Oae(t%E5)+n;return(Oae(t%E5)+n).replace(pVt,"$1-$2")}var tN,U4e=5381,qy=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},W4e=function(e){return qy(U4e,e)};function mVt(e){return VB(W4e(e)>>>0)}function gVt(e){return e.displayName||e.name||"Component"}function nN(e){return typeof e=="string"&&!0}var V4e=typeof Symbol=="function"&&Symbol.for,K4e=V4e?Symbol.for("react.memo"):60115,vVt=V4e?Symbol.for("react.forward_ref"):60112,yVt={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},bVt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},q4e={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},SVt=((tN={})[vVt]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},tN[K4e]=q4e,tN);function Pae(e){return("type"in(t=e)&&t.type.$$typeof)===K4e?q4e:"$$typeof"in e?SVt[e.$$typeof]:yVt;var t}var CVt=Object.defineProperty,xVt=Object.getOwnPropertyNames,Mae=Object.getOwnPropertySymbols,wVt=Object.getOwnPropertyDescriptor,_Vt=Object.getPrototypeOf,Iae=Object.prototype;function G4e(e,t,n){if(typeof t!="string"){if(Iae){var r=_Vt(t);r&&r!==Iae&&G4e(e,r,n)}var i=xVt(t);Mae&&(i=i.concat(Mae(t)));for(var o=Pae(e),a=Pae(t),s=0;s<i.length;++s){var l=i[s];if(!(l in bVt||n&&n[l]||a&&l in a||o&&l in o)){var c=wVt(t,l);try{CVt(e,l,c)}catch{}}}}return e}function xS(e){return typeof e=="function"}function hq(e){return typeof e=="object"&&"styledComponentId"in e}function $1(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function $ae(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function D_(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function KB(e,t,n){if(n===void 0&&(n=!1),!n&&!D_(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=KB(e[r],t[r]);else if(D_(t))for(var r in t)e[r]=KB(e[r],t[r]);return e}function pq(e,t){Object.defineProperty(e,"toString",{value:t})}function S4(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 EVt=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 S4(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 s=this.indexOfGroup(t+1),l=(a=0,n.length);a<l;a++)this.tag.insertRule(s,n[a])&&(this.groupSizes[t]++,s++)},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(fq);return n},e}(),o8=new Map,Ak=new Map,a8=1,T5=function(e){if(o8.has(e))return o8.get(e);for(;Ak.has(a8);)a8++;var t=a8++;return o8.set(e,t),Ak.set(t,e),t},TVt=function(e,t){a8=t+1,o8.set(e,t),Ak.set(t,e)},kVt="style[".concat(SS,"][").concat(H4e,'="').concat(tI,'"]'),OVt=new RegExp("^".concat(SS,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),PVt=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)},MVt=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(fq),i=[],o=0,a=r.length;o<a;o++){var s=r[o].trim();if(s){var l=s.match(OVt);if(l){var c=0|parseInt(l[1],10),u=l[2];c!==0&&(TVt(u,c),PVt(e,u,l[3]),e.getTag().insertRules(c,i)),i.length=0}else i.push(s)}}},Rae=function(e){for(var t=document.querySelectorAll(kVt),n=0,r=t.length;n<r;n++){var i=t[n];i&&i.getAttribute(SS)!==B4e&&(MVt(e,i),i.parentNode&&i.parentNode.removeChild(i))}};function IVt(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Y4e=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(s){var l=Array.from(s.querySelectorAll("style[".concat(SS,"]")));return l[l.length-1]}(n),o=i!==void 0?i.nextSibling:null;r.setAttribute(SS,B4e),r.setAttribute(H4e,tI);var a=IVt();return a&&r.setAttribute("nonce",a),n.insertBefore(r,o),r},$Vt=function(){function e(t){this.element=Y4e(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 S4(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}(),RVt=function(){function e(t){this.element=Y4e(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}(),AVt=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}(),Aae=Rk,NVt={isServer:!Rk,useCSSOMInjection:!uVt},X4e=function(){function e(t,n,r){t===void 0&&(t=CS),n===void 0&&(n={});var i=this;this.options=Hl(Hl({},NVt),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&Rk&&Aae&&(Aae=!1,Rae(this)),pq(this,function(){return function(o){for(var a=o.getTag(),s=a.length,l="",c=function(d){var h=function(S){return Ak.get(S)}(d);if(h===void 0)return"continue";var p=o.names.get(h),m=a.getGroup(d);if(p===void 0||!p.size||m.length===0)return"continue";var v="".concat(SS,".g").concat(d,'[id="').concat(h,'"]'),y="";p!==void 0&&p.forEach(function(S){S.length>0&&(y+="".concat(S,","))}),l+="".concat(m).concat(v,'{content:"').concat(y,'"}').concat(fq)},u=0;u<s;u++)c(u);return l}(i)})}return e.registerId=function(t){return T5(t)},e.prototype.rehydrate=function(){!this.server&&Rk&&Rae(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(Hl(Hl({},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 AVt(i):r?new $Vt(i):new RVt(i)}(this.options),new EVt(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(T5(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(T5(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(T5(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),DVt=/&/g,LVt=/^\s*\/\/.*$/gm;function Q4e(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=Q4e(n.children,t)),n})}function FVt(e){var t,n,r,i=CS,o=i.options,a=o===void 0?CS:o,s=i.plugins,l=s===void 0?nI:s,c=function(h,p,m){return m.startsWith(n)&&m.endsWith(n)&&m.replaceAll(n,"").length>0?".".concat(t):h},u=l.slice();u.push(function(h){h.type===QM&&h.value.includes("&")&&(h.props[0]=h.props[0].replace(DVt,n).replace(r,c))}),a.prefix&&u.push(lVt),u.push(oVt);var d=function(h,p,m,v){p===void 0&&(p=""),m===void 0&&(m=""),v===void 0&&(v="&"),t=v,n=p,r=new RegExp("\\".concat(n,"\\b"),"g");var y=h.replace(LVt,""),S=rVt(m||p?"".concat(m," ").concat(p," { ").concat(y," }"):y);a.namespace&&(S=Q4e(S,a.namespace));var b=[];return $k(S,aVt(u.concat(sVt(function(C){return b.push(C)})))),b};return d.hash=l.length?l.reduce(function(h,p){return p.name||S4(15),qy(h,p.name)},U4e).toString():"",d}var jVt=new X4e,qB=FVt(),Z4e=ge.createContext({shouldForwardProp:void 0,styleSheet:jVt,stylis:qB});Z4e.Consumer;ge.createContext(void 0);function Nae(){return f.useContext(Z4e)}var BVt=function(){function e(t,n){var r=this;this.inject=function(i,o){o===void 0&&(o=qB);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,pq(this,function(){throw S4(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=qB),this.name+t.hash},e}(),HVt=function(e){return e>="A"&&e<="Z"};function Dae(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;HVt(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var J4e=function(e){return e==null||e===!1||e===""},eTe=function(e){var t,n,r=[];for(var i in e){var o=e[i];e.hasOwnProperty(i)&&!J4e(o)&&(Array.isArray(o)&&o.isCss||xS(o)?r.push("".concat(Dae(i),":"),o,";"):D_(o)?r.push.apply(r,Ik(Ik(["".concat(i," {")],eTe(o),!1),["}"],!1)):r.push("".concat(Dae(i),": ").concat((t=i,(n=o)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in cVt||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function rv(e,t,n,r){if(J4e(e))return[];if(hq(e))return[".".concat(e.styledComponentId)];if(xS(e)){if(!xS(o=e)||o.prototype&&o.prototype.isReactComponent||!t)return[e];var i=e(t);return rv(i,t,n,r)}var o;return e instanceof BVt?n?(e.inject(n,r),[e.getName(r)]):[e]:D_(e)?eTe(e):Array.isArray(e)?Array.prototype.concat.apply(nI,e.map(function(a){return rv(a,t,n,r)})):[e.toString()]}function zVt(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(xS(n)&&!hq(n))return!1}return!0}var UVt=W4e(tI),WVt=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=(r===void 0||r.isStatic)&&zVt(t),this.componentId=n,this.baseHash=qy(UVt,n),this.baseStyle=r,X4e.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=$1(i,this.staticRulesId);else{var o=$ae(rv(this.rules,t,n,r)),a=VB(qy(this.baseHash,o)>>>0);if(!n.hasNameForId(this.componentId,a)){var s=r(o,".".concat(a),void 0,this.componentId);n.insertRules(this.componentId,a,s)}i=$1(i,a),this.staticRulesId=a}else{for(var l=qy(this.baseHash,r.hash),c="",u=0;u<this.rules.length;u++){var d=this.rules[u];if(typeof d=="string")c+=d;else if(d){var h=$ae(rv(d,t,n,r));l=qy(l,h+u),c+=h}}if(c){var p=VB(l>>>0);n.hasNameForId(this.componentId,p)||n.insertRules(this.componentId,p,r(c,".".concat(p),void 0,this.componentId)),i=$1(i,p)}}return i},e}(),tTe=ge.createContext(void 0);tTe.Consumer;var rN={};function VVt(e,t,n){var r=hq(e),i=e,o=!nN(e),a=t.attrs,s=a===void 0?nI:a,l=t.componentId,c=l===void 0?function(_,T){var x=typeof _!="string"?"sc":kae(_);rN[x]=(rN[x]||0)+1;var E="".concat(x,"-").concat(mVt(tI+x+rN[x]));return T?"".concat(T,"-").concat(E):E}(t.displayName,t.parentComponentId):l,u=t.displayName,d=u===void 0?function(_){return nN(_)?"styled.".concat(_):"Styled(".concat(gVt(_),")")}(e):u,h=t.displayName&&t.componentId?"".concat(kae(t.displayName),"-").concat(t.componentId):t.componentId||c,p=r&&i.attrs?i.attrs.concat(s).filter(Boolean):s,m=t.shouldForwardProp;if(r&&i.shouldForwardProp){var v=i.shouldForwardProp;if(t.shouldForwardProp){var y=t.shouldForwardProp;m=function(_,T){return v(_,T)&&y(_,T)}}else m=v}var S=new WVt(n,h,r?i.componentStyle:void 0);function b(_,T){return function(x,E,k){var M=x.attrs,P=x.componentStyle,D=x.defaultProps,R=x.foldedComponentIds,A=x.styledComponentId,H=x.target,F=ge.useContext(tTe),z=Nae(),W=x.shouldForwardProp||z.shouldForwardProp,q=dVt(E,F,D)||CS,Z=function(ce,fe,ee){for(var ne,ue=Hl(Hl({},fe),{className:void 0,theme:ee}),ye=0;ye<ce.length;ye+=1){var me=xS(ne=ce[ye])?ne(ue):ne;for(var pe in me)ue[pe]=pe==="className"?$1(ue[pe],me[pe]):pe==="style"?Hl(Hl({},ue[pe]),me[pe]):me[pe]}return fe.className&&(ue.className=$1(ue.className,fe.className)),ue}(M,E,q),N=Z.as||H,B={};for(var V in Z)Z[V]===void 0||V[0]==="$"||V==="as"||V==="theme"&&Z.theme===q||(V==="forwardedAs"?B.as=Z.forwardedAs:W&&!W(V,N)||(B[V]=Z[V]));var Y=function(ce,fe){var ee=Nae(),ne=ce.generateAndInjectStyles(fe,ee.styleSheet,ee.stylis);return ne}(P,Z),ie=$1(R,A);return Y&&(ie+=" "+Y),Z.className&&(ie+=" "+Z.className),B[nN(N)&&!z4e.has(N)?"class":"className"]=ie,B.ref=k,f.createElement(N,B)}(C,_,T)}b.displayName=d;var C=ge.forwardRef(b);return C.attrs=p,C.componentStyle=S,C.displayName=d,C.shouldForwardProp=m,C.foldedComponentIds=r?$1(i.foldedComponentIds,i.styledComponentId):"",C.styledComponentId=h,C.target=r?i.target:e,Object.defineProperty(C,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(_){this._foldedDefaultProps=r?function(T){for(var x=[],E=1;E<arguments.length;E++)x[E-1]=arguments[E];for(var k=0,M=x;k<M.length;k++)KB(T,M[k],!0);return T}({},i.defaultProps,_):_}}),pq(C,function(){return".".concat(C.styledComponentId)}),o&&G4e(C,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),C}function Lae(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 Fae=function(e){return Object.assign(e,{isCss:!0})};function KVt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(xS(e)||D_(e))return Fae(rv(Lae(nI,Ik([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?rv(r):Fae(rv(Lae(r,t)))}function GB(e,t,n){if(n===void 0&&(n=CS),!t)throw S4(1,t);var r=function(i){for(var o=[],a=1;a<arguments.length;a++)o[a-1]=arguments[a];return e(t,n,KVt.apply(void 0,Ik([i],o,!1)))};return r.attrs=function(i){return GB(e,t,Hl(Hl({},n),{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)}))},r.withConfig=function(i){return GB(e,t,Hl(Hl({},n),i))},r}var nTe=function(e){return GB(VVt,e)},gi=nTe;z4e.forEach(function(e){gi[e]=nTe(e)});const qVt=[{id:"1",name:"开源版文档",description:"notebase-doc开源版文档",type:"public",coverImage:"/notebase/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:"/notebase/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:"/notebase/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:"/notebase/images/spaces/paid.jpg",starred:!1,parentId:null,createdAt:"2024-01-01",updatedAt:"2024-01-24",createdBy:"1",memberCount:2,documentCount:5}],rI=Wc((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:qVt})},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:GVt,Paragraph:YVt}=UE,XVt=gi(Zv)`
|
||
.ant-card-body {
|
||
height: 200px;
|
||
}
|
||
`,QVt=({space:e,onClick:t})=>U.jsxs(XVt,{hoverable:!0,onClick:t,children:[U.jsx(GVt,{level:4,style:{marginBottom:8},children:e.name}),U.jsx(YVt,{ellipsis:{rows:2},children:e.description})]}),ZVt=({visible:e,onClose:t})=>{const[n]=Or.useForm(),{createSpace:r}=rI(),[i,o]=ge.useState(!1),a=async s=>{try{o(!0),await r(s),ws.success("创建成功"),t(),n.resetFields()}catch{ws.error("创建失败")}finally{o(!1)}};return U.jsx(Ia,{title:"创建空间",open:e,onCancel:t,onOk:()=>n.submit(),confirmLoading:i,children:U.jsxs(Or,{form:n,layout:"vertical",onFinish:a,children:[U.jsx(Or.Item,{name:"name",label:"空间名称",rules:[{required:!0,message:"请输入空间名称"}],children:U.jsx($i,{placeholder:"请输入空间名称"})}),U.jsx(Or.Item,{name:"description",label:"空间描述",rules:[{required:!0,message:"请输入空间描述"}],children:U.jsx($i.TextArea,{placeholder:"请输入空间描述"})}),U.jsx(Or.Item,{name:"type",label:"空间类型",initialValue:"private",rules:[{required:!0}],children:U.jsxs(bs,{children:[U.jsx(bs.Option,{value:"private",children:"私有"}),U.jsx(bs.Option,{value:"public",children:"公开"})]})})]})})},JVt=gi.div`
|
||
padding: 24px;
|
||
`,eKt=gi.div`
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
margin-bottom: 24px;
|
||
`,tKt=gi.h2`
|
||
margin: 0;
|
||
`,nKt=()=>{const e=ss(),{spaces:t,fetchSpaces:n}=rI(),[r,i]=ge.useState("grid"),[o,a]=ge.useState(!0),[s,l]=ge.useState(!1);console.log("spaces",t,o),ge.useEffect(()=>{(async()=>{try{await n()}finally{a(!1)}})()},[n]);const c=u=>{e(`/spaces/${u}`)};return U.jsxs(JVt,{children:[U.jsxs(eKt,{children:[U.jsx(tKt,{children:"知识空间"}),U.jsxs(ma,{children:[U.jsxs(ti.Group,{value:r,onChange:u=>i(u.target.value),buttonStyle:"solid",children:[U.jsxs(ti.Button,{value:"grid",children:[U.jsx(iwe,{})," 网格"]}),U.jsxs(ti.Button,{value:"list",children:[U.jsx(owe,{})," 列表"]})]}),U.jsx(hr,{type:"primary",icon:U.jsx(XE,{}),onClick:()=>l(!0),children:"创建空间"})]})]}),U.jsx(DE,{gutter:[16,16],children:t.map(u=>U.jsx(_v,{xs:24,sm:12,md:8,lg:6,children:U.jsx(QVt,{space:u,onClick:()=>c(u.id)})},u.id))}),U.jsx(ZVt,{visible:s,onClose:()=>l(!1)})]})},rKt=()=>{const e=io(),{locale:t}=f.useContext(qs),n=localStorage.getItem(ZX),[r,i]=f.useState(n||"/chat"),o=ss(),{isLoggedIn:a,hasRoleAgent:s}=f.useContext(qs),{footerStyle:l}=b4(),{currentOrg:c,setCurrentOrg:u}=pg(M=>({currentOrg:M.currentOrg,setCurrentOrg:M.setCurrentOrg})),{userInfo:d,setUserInfo:h}=qa(M=>({userInfo:M.userInfo,setUserInfo:M.setUserInfo})),{setAgentInfo:p}=Kv(M=>({setAgentInfo:M.setAgentInfo})),m=Sd(M=>M.removeThread),v=w4e(M=>M.setWorkgroupResult),[y,S]=f.useState(!1),b=Sd(M=>M.threads);f.useEffect(()=>{const M=b.some(P=>P.unreadCount>0);S(M)},[b]);const[C,_]=f.useState([]);f.useEffect(()=>{const M=[{path:"/",name:e.formatMessage({id:"menu.dashboard.notebase"}),icon:U.jsx(lwe,{}),component:U.jsx(nKt,{})},{path:"/setting",name:e.formatMessage({id:"menu.dashboard.mine"}),icon:U.jsx(UP,{}),component:U.jsx(C4e,{})}];_(M)},[e,t]),O4e(),cq(),k4e(),DK();const T=async()=>{if(!a||(c==null?void 0:c.uid)===""||!s)return;const M=await L$e(c==null?void 0:c.uid);console.log("getAgentProfile response:",c==null?void 0:c.uid,M.data),M.data.code===200&&p(M.data.data)},x=async()=>{if(a){if(d.currentOrganization===void 0||d.currentOrganization===null){console.log("before initOrganization",d);return}console.log("after initOrganization"),u(d==null?void 0:d.currentOrganization),T()}};f.useEffect(()=>(x(),()=>{console.log("un - useEffect")}),[a,d]);const E=async()=>{const M=await P4e();console.log("initProfile response:",M.data),M.data.code===200?h(M.data.data):Wn.error(e.formatMessage({id:"dashboard.error.message",defaultMessage:"获取数据失败"}))};f.useEffect(()=>{a&&E()},[a]);const k=async()=>{if(!a||(c==null?void 0:c.uid)===""||!s)return;const M={orgUid:c==null?void 0:c.uid,pageNumber:0,pageSize:20},P=await BWt(M);console.log("initWorkgroups",P.data),P.data.code===200?v(P.data):console.log("获取工作组失败")};return f.useEffect(()=>{k()},[a,c]),f.useEffect(()=>{const M=R=>{var H,F;console.log("handleTransfer:",R);const A=JSON.parse(R);if(console.log("handleTransfer contentObject",A.message,A.thread),((F=(H=A.message)==null?void 0:H.user)==null?void 0:F.uid)===(d==null?void 0:d.uid)){Wn.success("转接会话发送成功,请等待对方响应");return}},P=R=>{var F,z,W;console.log("handleTransferAccept:",R);const A=JSON.parse(R),H=JSON.parse((F=A.message)==null?void 0:F.content);m(H==null?void 0:H.thread),Wn.success(`${(W=(z=A.message)==null?void 0:z.user)==null?void 0:W.nickname} 已接受转接会话`)},D=R=>{var H,F;console.log("handleTransferReject:",R);const A=JSON.parse(R);Wn.success(`${(F=(H=A.message)==null?void 0:H.user)==null?void 0:F.nickname} 已拒绝转接会话`)};return Dr.on(lD,M),Dr.on(cD,P),Dr.on(uD,D),()=>{Dr.off(lD,M),Dr.off(cD,P),Dr.off(uD,D)}},[]),U.jsxs(iEe,{collapsed:!0,collapsedButtonRender:!1,layout:"side",style:{height:"100vh"},route:{routes:C},location:{pathname:r},menu:{type:"group",collapsedShowTitle:!0},avatarProps:null,actionsRender:M=>M.isMobile?[]:[U.jsx(cwe,{onClick:pxe},"QuestionCircleFilled"),U.jsx(zWt,{}),U.jsx(jWt,{})],menuHeaderRender:()=>U.jsx(T4e,{}),menuFooterRender:M=>{M!=null&&M.collapsed},onMenuHeaderClick:M=>{console.log("onMenuHeaderClick",M)},menuItemRender:(M,P)=>U.jsx(U.Fragment,{children:U.jsxs("div",{onClick:()=>{i(M.path),o(M.path),localStorage.setItem(ZX,M.path)},children:[y&&U.jsxs(U.Fragment,{children:[M.path==="/chat"&&U.jsx(Al,{size:"small",dot:y,offset:[-5,5],children:P}),M.path!=="/chat"&&P]}),!y&&U.jsx(U.Fragment,{children:P})]})}),children:[U.jsx(GM,{children:U.jsx(NP,{},t.locale)}),U.jsx(YM,{style:l,children:U.jsx(E4e,{})}),U.jsx("audio",{id:"audioPlay",src:"soundUrl",hidden:!0})]})},iKt=()=>U.jsx(U.Fragment,{children:U.jsx(NP,{})}),oKt=({open:e,onClose:t})=>{const n=io(),{translateString:r}=ah(),i=()=>{t()},o=()=>{t()};return U.jsx(U.Fragment,{children:U.jsx(Ia,{title:n.formatMessage({id:"profile.password.change.title",defaultMessage:"Change Password"}),forceRender:!0,open:e,footer:null,onCancel:o,children:U.jsxs(ai,{initialValues:{oldPassword:"",newPassword:"",confirmPassword:""},onFinish:async a=>{if(console.log("changePassword:",a),a.newPassword.trim().length<6){Wn.error(n.formatMessage({id:"profile.password.length.error",defaultMessage:"Password must be at least 6 characters"}));return}if(a.newPassword!==a.confirmPassword){Wn.error(n.formatMessage({id:"profile.password.mismatch",defaultMessage:"The two passwords do not match"}));return}const s={oldPassword:a.oldPassword,newPassword:a.newPassword},l=await HWt(s);console.log("changePassword response:",l),l.data.code===200?(Wn.success(n.formatMessage({id:"profile.password.change.success",defaultMessage:"Password changed successfully!"})),i()):Wn.error(r(l.data.message))},children:[U.jsx(ji.Password,{name:"oldPassword",label:n.formatMessage({id:"profile.password.old",defaultMessage:"Old Password"}),extra:n.formatMessage({id:"profile.password.old.empty",defaultMessage:"Old password can be empty for phone login users"})}),U.jsx(ji.Password,{name:"newPassword",label:n.formatMessage({id:"profile.password.new",defaultMessage:"New Password"})}),U.jsx(ji.Password,{name:"confirmPassword",label:n.formatMessage({id:"profile.password.confirm",defaultMessage:"Confirm Password"})})]})})})},rTe=({children:e,onSuccess:t,onError:n})=>{const r={file:null,file_name:"test.png",file_type:"image/png",is_avatar:"true",kb_type:ZPe,category_uid:"",kb_uid:"",client:So},i={name:"file",accept:"image/*",action:Ahe(),headers:{Authorization:"Bearer "+localStorage.getItem(Gw)},data:r,showUploadList:!1,beforeUpload(o){console.log("beforeUpload",o);const a=Kn(new Date).format("YYYYMMDDHHmmss")+"_"+o.name;r.file=o,r.file_name=a,r.file_type=o.type,console.log("beforeUpload",r)},onChange(o){if(o.file.status!=="uploading"&&console.log("not uploading:",o.file),o.file.status==="done")if(console.log("response: ",o.file.response),o.file.response.code===200){const a=o.file.response.data.fileUrl;t(a),Wn.success(`${o.file.name} 上传成功`)}else n(o.file),Wn.error(`${o.file.name} 上传失败`);else o.file.status==="error"&&(Wn.error(`${o.file.name} 上传失败`),n(o.file))}};return U.jsx(dC,{...i,children:e})},aKt=({open:e,onSubmit:t,onClose:n})=>{const r=io(),[i]=ai.useForm(),{translateString:o}=ah(),{userInfo:a,deviceUid:s}=qa(x=>({userInfo:x.userInfo,deviceUid:x.deviceUid})),l=pg(x=>x.currentOrg),c=f.useRef(),[u,d]=f.useState(""),[h,p]=f.useState(""),[m,v]=f.useState(!1),y=async(x,E)=>{console.log("captchaUid",x," captchaValue",E),d(x),p(E)},S=async x=>{console.log("captcha check result",x),v(x)},b=()=>{n()},C=()=>{n()},_=async()=>{i.validateFields().then(async x=>{if(console.log("changeEmail:",x),a.email===x.email){Wn.error(r.formatMessage({id:"profile.email.not.changed",defaultMessage:"Email is not changed!"}));return}const E={email:x.email,code:x.code,platform:Eu},k=await I4e(E);console.log("changeEmail response:",k),k.data.code===200?(Wn.success(r.formatMessage({id:"profile.email.change.success",defaultMessage:"Email changed successfully!"})),t(x.email),b()):Wn.error(o(k.data.message))})},T=()=>{setTimeout(()=>{var x;console.log("endCaptchaTiming"),(x=c.current)==null||x.endTiming()},2)};return U.jsx(U.Fragment,{children:U.jsx(Ia,{title:r.formatMessage({id:"profile.email.change.title",defaultMessage:"Change Email"}),forceRender:!0,open:e,footer:null,onCancel:C,children:U.jsxs(ai,{form:i,onFinish:async x=>{console.log("changeEmail:",x),_()},children:[U.jsx(ji,{fieldProps:{size:"large",prefix:U.jsx(YE,{})},name:"email",placeholder:r.formatMessage({id:"profile.email.placeholder",defaultMessage:"Enter email address"}),rules:[{required:!0,message:r.formatMessage({id:"profile.email.required",defaultMessage:"Please enter email address!"})},{pattern:/^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z0-9]{2,6}$/,message:r.formatMessage({id:"profile.email.format.invalid",defaultMessage:"Invalid email format"})},{max:50,message:r.formatMessage({id:"profile.email.length.limit",defaultMessage:"Email cannot exceed 50 characters"})}]}),U.jsx(ai.Item,{name:"captchaCode",children:U.jsx(IC,{onKaptchaChange:y,onKaptchaCheck:S})}),U.jsx(QE,{fieldProps:{size:"large",prefix:U.jsx(r0,{})},captchaProps:{size:"large",disabled:!m},placeholder:r.formatMessage({id:"profile.email.verification.code.placeholder",defaultMessage:"Enter verification code"}),captchaTextRender:(x,E)=>x?`${E} ${r.formatMessage({id:"profile.email.verification.code.countdown",defaultMessage:"seconds"})}`:r.formatMessage({id:"profile.email.verification.code.get",defaultMessage:"Get Code"}),phoneName:"email",name:"code",rules:[{required:!0,message:r.formatMessage({id:"profile.email.verification.code.required",defaultMessage:"Please enter verification code!"})}],fieldRef:c,onGetCaptcha:async x=>{if(x){if(a.email===x){Wn.error(r.formatMessage({id:"profile.email.not.changed",defaultMessage:"Email is not changed!"})),T();return}const E={email:x,type:OPe,captchaUid:u,captchaCode:h,deviceUid:s,userUid:a.uid,orgUid:l.uid,platform:Eu},k=await FEe(E);if(k.data.code!==200){Wn.error(k.data.message),T();return}Wn.success(k.data.message)}else Wn.error(r.formatMessage({id:"profile.email.format.error",defaultMessage:"Invalid email format"}))}})]})})})},sKt=({open:e,onSubmit:t,onClose:n})=>{const r=io(),[i]=ai.useForm(),{translateString:o}=ah(),{userInfo:a,deviceUid:s}=qa(x=>({userInfo:x.userInfo,deviceUid:x.deviceUid})),l=pg(x=>x.currentOrg),c=f.useRef(),[u,d]=f.useState(""),[h,p]=f.useState(""),[m,v]=f.useState(!1),y=async(x,E)=>{console.log("captchaUid",x," captchaValue",E),d(x),p(E)},S=async x=>{console.log("captcha check result",x),v(x)},b=()=>{n()},C=()=>{n()},_=async()=>{i.validateFields().then(async x=>{if(console.log("changeMobile:",x),a.mobile===x.mobile){Wn.error(r.formatMessage({id:"profile.mobile.not.changed",defaultMessage:"Mobile number is not changed!"}));return}const E={mobile:x.mobile,code:x.code,platform:Eu},k=await $4e(E);console.log("changeMobile response:",k),k.data.code===200?(Wn.success(r.formatMessage({id:"profile.mobile.change.success",defaultMessage:"Mobile number changed successfully!"})),t(x.mobile),b()):Wn.error(o(k.data.message))})},T=()=>{setTimeout(()=>{var x;console.log("endCaptchaTiming"),(x=c.current)==null||x.endTiming()},2)};return U.jsx(U.Fragment,{children:U.jsx(Ia,{title:r.formatMessage({id:"profile.mobile.change.title",defaultMessage:"Change Mobile"}),forceRender:!0,open:e,footer:null,onCancel:C,children:U.jsxs(ai,{form:i,onFinish:async x=>{console.log("changeMobile:",x),_()},children:[U.jsx(ji,{fieldProps:{size:"large",prefix:U.jsx(YE,{})},name:"mobile",placeholder:r.formatMessage({id:"profile.mobile.placeholder",defaultMessage:"Enter mobile number"}),rules:[{required:!0,message:r.formatMessage({id:"profile.mobile.required",defaultMessage:"Please enter mobile number!"})},{pattern:/^1\d{10}$/,message:r.formatMessage({id:"profile.mobile.format.invalid",defaultMessage:"Invalid mobile format"})}]}),U.jsx(ai.Item,{name:"captchaCode",children:U.jsx(IC,{onKaptchaChange:y,onKaptchaCheck:S})}),U.jsx(QE,{fieldProps:{size:"large",prefix:U.jsx(r0,{})},captchaProps:{size:"large",disabled:!m},placeholder:r.formatMessage({id:"profile.mobile.verification.code.placeholder",defaultMessage:"Enter verification code"}),captchaTextRender:(x,E)=>x?`${E} ${r.formatMessage({id:"profile.mobile.verification.code.countdown",defaultMessage:"seconds"})}`:r.formatMessage({id:"profile.mobile.verification.code.get",defaultMessage:"Get Code"}),phoneName:"mobile",name:"code",rules:[{required:!0,message:r.formatMessage({id:"profile.mobile.verification.code.required",defaultMessage:"Please enter verification code!"})}],fieldRef:c,onGetCaptcha:async x=>{if(x&&x.length===11){if(a.mobile===x){Wn.error(r.formatMessage({id:"profile.mobile.not.changed",defaultMessage:"Mobile number is not changed!"})),T();return}const E={mobile:x,type:TPe,captchaUid:u,captchaCode:h,deviceUid:s,userUid:a.uid,orgUid:l.uid,platform:Eu},k=await NK(E);if(k.data.code!==200){Wn.error(k.data.message),T();return}Wn.success(k.data.message)}else Wn.error(r.formatMessage({id:"profile.mobile.format.error",defaultMessage:"Invalid mobile format"}))}})]})})})},lKt={labelCol:{span:8},wrapperCol:{span:8}},jae=()=>{const e=io(),[t]=ai.useForm(),{translateString:n}=ah(),{userInfo:r,setUserInfo:i}=qa(P=>({userInfo:P.userInfo,setUserInfo:P.setUserInfo})),[o,a]=f.useState(""),[s,l]=f.useState(!1),[c,u]=f.useState(!1),[d,h]=f.useState(!1),p=()=>{l(!0)},m=()=>{u(!0)},v=()=>{h(!0)},y=()=>{l(!1)},S=()=>{u(!1)},b=P=>{u(!1),r.email=P,i(r),t.setFieldValue("email",P)},C=()=>{h(!1)},_=P=>{h(!1),r.mobile=P,i(r),t.setFieldValue("mobile",P)},T=P=>{console.log("handleUploadSuccess:",P),a(P)},x=P=>{console.log("handleUploadError:",P)},E=async P=>{const D={...r,...P,avatar:o};console.log(D);const R=await M4e(D);console.log("updateProfile response:",R.data),R.data.code===200?(Wn.success(e.formatMessage({id:"profile.update.success",defaultMessage:"Profile updated successfully"})),i(R.data.data)):Wn.error(R.data.message)},k=P=>Array.isArray(P)?P:P==null?void 0:P.fileList;f.useEffect(()=>{r&&a(r.avatar)},[r]);const M=async()=>{const P=await P4e();console.log("handleRefreshProfile getProfile response:",P.data),P.data.code===200?(i(P.data.data),t.setFieldsValue({uid:P.data.data.uid,username:P.data.data.username,nickname:n(P.data.data.nickname),email:P.data.data.email,mobile:P.data.data.mobile,description:n(P.data.data.description)})):Wn.error(P.data.message)};return f.useEffect(()=>{M()},[]),U.jsxs("div",{className:"profile-container",children:[U.jsxs(ai,{...lKt,form:t,onFinish:E,children:[U.jsx(ji,{name:"uid",label:"UID",readonly:!0}),U.jsx(ai.Item,{name:"avatar",valuePropName:"fileList",getValueFromEvent:k,label:e.formatMessage({id:"profile.form.avatar",defaultMessage:"Avatar"}),children:U.jsxs(rTe,{onSuccess:T,onError:x,children:[U.jsx(yg,{src:o}),U.jsx(hr,{icon:U.jsx(NV,{}),children:e.formatMessage({id:"profile.form.upload",defaultMessage:"Upload"})})]},"avatar")}),U.jsx(ji,{name:"username",label:e.formatMessage({id:"profile.form.username",defaultMessage:"Username"}),rules:[{required:!0}]}),U.jsx(hr,{onClick:p,children:e.formatMessage({id:"profile.button.change.password",defaultMessage:"Change Password"})}),U.jsx(ji,{name:"nickname",label:e.formatMessage({id:"profile.form.nickname",defaultMessage:"Nickname"}),rules:[{required:!0}]}),U.jsx(ji,{name:"email",label:r.emailVerified?e.formatMessage({id:"profile.email.verified",defaultMessage:"Email Verified"}):e.formatMessage({id:"profile.email.unverified",defaultMessage:"Email Unverified"}),rules:[{type:"email"}],readonly:!0}),U.jsx(hr,{onClick:m,children:e.formatMessage({id:"profile.button.change.email",defaultMessage:"Change Email"})}),U.jsx(ji,{name:"mobile",label:r.mobileVerified?e.formatMessage({id:"profile.mobile.verified",defaultMessage:"Mobile Verified"}):e.formatMessage({id:"profile.mobile.unverified",defaultMessage:"Mobile Unverified"}),readonly:!0}),U.jsx(hr,{onClick:v,children:e.formatMessage({id:"profile.button.change.mobile",defaultMessage:"Change Mobile"})}),U.jsx(sK,{name:"description",label:e.formatMessage({id:"profile.form.description",defaultMessage:"Description"})})]}),s&&U.jsx(oKt,{open:s,onClose:y}),c&&U.jsx(aKt,{open:c,onSubmit:b,onClose:S}),d&&U.jsx(sKt,{open:d,onSubmit:_,onClose:C})]})},cKt=()=>{const e=io(),t=wM(),{isMqttConnected:n}=cq(),[r,i]=f.useState(!0),[o,a]=f.useState(!0),[s,l]=f.useState(!1),c=x=>{console.log("radio checked",x.target.value),l(x.target.value),os?window.electronAPI.setOpenAtLogin(x.target.value):console.log("not electron")},u=async()=>{if(os){const x=await window.electronAPI.getOpenAtLogin();console.log("openAtLogin:",x),l(x)}};f.useEffect(()=>{u(),Jpt(),mxe(),console.log("isNetworkOnline:",t);const x=localStorage.getItem(d3);x===null?(localStorage.setItem(d3,"true"),i(!0)):i(x==="true");const E=localStorage.getItem(W2);E===null?(localStorage.setItem(W2,"true"),a(!0)):a(E==="true")},[]);const{themeMode:d,setThemeMode:h,mode:p,changeMode:m,locale:v,changeLocale:y}=f.useContext(qs),S=x=>{console.log("radio checked",x.target.value),h(x.target.value),nmt(x.target.value)},b=x=>{console.log("language change",x.target.value),y(x.target.value)},C=x=>{console.log("play audio switch",x),localStorage.setItem(d3,x?"true":"false"),i(x)},_=x=>{console.log("show network status notification",x),localStorage.setItem(W2,x?"true":"false"),a(x)},T=x=>{console.log("mode change",x.target.value),m(x.target.value)};return U.jsxs("div",{className:"profile-container",children:[U.jsx("p",{children:U.jsx(rk,{checkedChildren:e.formatMessage({id:"setting.basic.sound.on",defaultMessage:"已开启消息提示音"}),unCheckedChildren:e.formatMessage({id:"setting.basic.sound.off",defaultMessage:"已关闭消息提示音"}),value:r,onChange:C})}),U.jsx("p",{children:U.jsx(rk,{checkedChildren:e.formatMessage({id:"setting.basic.notification.on",defaultMessage:"已开启网络状态通知"}),unCheckedChildren:e.formatMessage({id:"setting.basic.notification.off",defaultMessage:"已关闭网络状态通知"}),value:o,onChange:_})}),pv&&U.jsxs(U.Fragment,{children:[U.jsx("p",{children:e.formatMessage({id:"setting.basic.connection.status",defaultMessage:"长链接状态:"})}),U.jsx("div",{children:n?e.formatMessage({id:"setting.basic.connection.connected",defaultMessage:"✅连接正常"}):e.formatMessage({id:"setting.basic.connection.disconnected",defaultMessage:"❌连接断开"})})]}),os&&U.jsxs(U.Fragment,{children:[U.jsx("p",{children:e.formatMessage({id:"setting.basic.startup",defaultMessage:"开机启动:"})}),U.jsxs(ti.Group,{onChange:c,value:s,children:[U.jsx(ti,{value:!0,children:e.formatMessage({id:"setting.basic.startup.on",defaultMessage:"开机启动"})}),U.jsx(ti,{value:!1,children:e.formatMessage({id:"setting.basic.startup.off",defaultMessage:"不开机启动"})})]})]}),U.jsx("p",{children:e.formatMessage({id:"setting.basic.theme",defaultMessage:"颜色主题:"})}),U.jsxs(ti.Group,{onChange:S,value:d,children:[U.jsx(ti,{value:"light",children:U.jsx(Oc,{id:"theme.light"})}),U.jsx(ti,{value:"dark",children:U.jsx(Oc,{id:"theme.dark"})}),U.jsx(ti,{value:"system",children:U.jsx(Oc,{id:"theme.system"})})]}),U.jsxs("div",{children:[U.jsx("p",{children:e.formatMessage({id:"setting.basic.language",defaultMessage:"语言设置:"})}),U.jsxs(ti.Group,{value:v.locale,onChange:b,children:[U.jsx(ti,{value:"en",children:e.formatMessage({id:"i18n.lang.en-US"})},"en"),U.jsx(ti,{value:"zh-cn",children:e.formatMessage({id:"i18n.lang.zh-CN"})},"zh-cn"),U.jsx(ti,{value:"zh-tw",children:e.formatMessage({id:"i18n.lang.zh-TW"})},"zh-tw")]})]}),pv&&U.jsxs("div",{children:[U.jsx("p",{children:e.formatMessage({id:"setting.basic.mode",defaultMessage:"模式设置:"})}),U.jsxs(ti.Group,{value:p,onChange:T,children:[U.jsx(ti,{value:ab,children:e.formatMessage({id:"setting.basic.mode.team",defaultMessage:"团队模式"})},ab),U.jsx(ti,{value:mv,children:e.formatMessage({id:"setting.basic.mode.agent",defaultMessage:"客服模式"})},mv),U.jsx(ti,{value:J8,children:e.formatMessage({id:"setting.basic.mode.personal",defaultMessage:"个人模式"})},J8)]})]})]})},uKt=()=>{const e=qa(n=>n.userInfo),t=()=>{var r;console.log("downloadQRCode");const n=(r=document.getElementById("myqrcode"))==null?void 0:r.querySelector("canvas");if(n){const i=n.toDataURL(),o=document.createElement("a");o.download=e.username+"_profile.png",o.href=i,document.body.appendChild(o),o.click(),document.body.removeChild(o)}else console.log("canvas is null")};return U.jsxs("div",{id:"myqrcode",style:{textAlign:"center",marginTop:"50px"},children:[U.jsx(CCe,{style:{margin:"auto"},errorLevel:"H",value:"https://www.weiyuai.cn/",icon:"/agent/logo.png"}),U.jsx(hr,{type:"primary",onClick:t,style:{marginTop:"20px"},children:"下载二维码"})]})},dKt=()=>U.jsx(U.Fragment,{children:U.jsx("div",{children:"ShortcutAdmin"})}),fKt=()=>{const e=ss();return U.jsx(BE,{status:"404",title:"404",subTitle:"Sorry, the page you visited does not exist.",extra:U.jsx(hr,{type:"primary",onClick:()=>e("/"),children:"返回主页"})})},hKt={labelCol:{span:8},wrapperCol:{span:8}},pKt=()=>{const e=io(),[t]=ai.useForm(),{userInfo:n,setUserInfo:r}=qa(u=>({userInfo:u.userInfo,setUserInfo:u.setUserInfo})),[i,o]=f.useState(""),a={file:null,file_name:"test.png",file_type:"image/png"},s={name:"file",action:Ahe(),headers:{Authorization:"Bearer "+localStorage.getItem(Gw)},showUploadList:!1,data:a,beforeUpload(u){const d=Kn(new Date).format("YYYYMMDDHHmmss")+"_"+u.name;a.file=u,a.file_name=d,a.file_type=u.type,console.log("beforeUpload",a)},onChange(u){if(u.file.status!=="uploading"&&console.log(u.file,u.fileList),u.file.status==="done"){const d=u.file.response.data.fileUrl;console.log("url: ",d),o(d),Wn.success(`${u.file.name} file uploaded successfully`)}else u.file.status==="error"&&Wn.error(`${u.file.name} file upload failed.`)}},l=async u=>{const d={...n,...u,avatar:i};console.log(d);const h=await M4e(d);console.log("updateProfile response:",h),h.data.code===200?(Wn.success("修改成功"),r(h.data.data)):Wn.error("修改失败")},c=u=>Array.isArray(u)?u:u==null?void 0:u.fileList;return f.useEffect(()=>{n&&o(n.avatar)},[n]),U.jsxs("div",{className:"profile-container",children:[U.jsx("p",{children:"员工信息"}),U.jsxs(ai,{...hKt,style:{marginLeft:20},form:t,onFinish:l,initialValues:{nickname:n.nickname,email:n.email,mobile:n.mobile,description:n.description},children:[U.jsx(Or.Item,{name:"avatar",valuePropName:"fileList",getValueFromEvent:c,label:e.formatMessage({id:"pages.robot.tab.avatar",defaultMessage:"Avatar"}),children:U.jsxs(dC,{...s,children:[U.jsx(yg,{src:i}),U.jsx(hr,{icon:U.jsx(NV,{}),children:e.formatMessage({id:"pages.robot.upload",defaultMessage:"Upload"})})]},"avatar")}),U.jsx(ji,{name:"nickname",label:"昵称",rules:[{required:!0}],children:U.jsx($i,{})}),U.jsx(ji,{name:"email",label:"邮箱",rules:[{type:"email"}],disabled:!0,children:U.jsx($i,{})}),U.jsx(ji,{name:"mobile",label:"手机号",disabled:!0,children:U.jsx($i,{})}),U.jsx(sK,{name:"description",label:"描述",children:U.jsx($i.TextArea,{})})]})]})},mKt=({open:e,onSubmit:t,onClose:n})=>{const r=io(),[i]=ai.useForm(),{translateString:o}=ah(),{userInfo:a,deviceUid:s}=qa(x=>({userInfo:x.userInfo,deviceUid:x.deviceUid})),l=pg(x=>x.currentOrg),c=f.useRef(),[u,d]=f.useState(""),[h,p]=f.useState(""),[m,v]=f.useState(!1);f.useEffect(()=>{e?i.setFieldsValue({email:a==null?void 0:a.email}):(i.resetFields(),T())},[e]);const y=async(x,E)=>{console.log("captchaUid",x," captchaValue",E),d(x),p(E)},S=async x=>{console.log("captcha check result",x),v(x)},b=()=>{n()},C=()=>{n()},_=async()=>{i.validateFields().then(async x=>{console.log("changeEmail:",x);const E={email:x.email,code:x.code,platform:Eu},k=await I4e(E);console.log("changeEmail response:",k),k.data.code===200?(Wn.success("Email verify successfully!"),t(x.email),b()):Wn.error(o(k.data.message))})},T=()=>{setTimeout(()=>{var x;console.log("endCaptchaTiming"),(x=c.current)==null||x.endTiming()},2)};return U.jsx(U.Fragment,{children:U.jsx(Ia,{title:r.formatMessage({id:"pages.settings.verify.email",defaultMessage:"验证邮箱"}),forceRender:!0,open:e,footer:null,onCancel:C,children:U.jsxs(ai,{form:i,onFinish:async x=>{console.log("changeEmail:",x),_()},children:[U.jsx(ji,{fieldProps:{size:"large",prefix:U.jsx(YE,{})},name:"email",placeholder:r.formatMessage({id:"pages.login.email.placeholder",defaultMessage:"邮箱"}),rules:[{required:!0},{pattern:/^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z0-9]{2,6}$/,message:"邮箱格式不正确"},{max:50,message:"邮箱不得超过50字符"}],readonly:!0}),U.jsx(ai.Item,{name:"captchaCode",rules:[],children:U.jsx(IC,{onKaptchaChange:y,onKaptchaCheck:S})}),U.jsx(QE,{fieldProps:{size:"large",prefix:U.jsx(r0,{}),allowClear:!0},captchaProps:{size:"large",disabled:!m},placeholder:r.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"请输入验证码"}),captchaTextRender:(x,E)=>x?`${E} ${r.formatMessage({id:"pages.getCaptchaSecondText",defaultMessage:"获取验证码"})}`:r.formatMessage({id:"pages.login.phoneLogin.getVerificationCode",defaultMessage:"获取验证码"}),phoneName:"email",name:"code",rules:[{required:!0}],fieldRef:c,onGetCaptcha:async x=>{if(console.log("email:",x),x){const E={email:x,type:PPe,captchaUid:u,captchaCode:h,deviceUid:s,userUid:a==null?void 0:a.uid,orgUid:l.uid,platform:Eu},k=await FEe(E);if(console.log("sendEmailCode",k),k.data.code!==200){Wn.error(o(k.data.message)),T();return}Wn.success(o(k.data.message))}else Wn.error("手机号格式错误")}})]})})})},gKt=({open:e,onSubmit:t,onClose:n})=>{const r=io(),[i]=ai.useForm(),{translateString:o}=ah(),{userInfo:a,deviceUid:s}=qa(x=>({userInfo:x.userInfo,deviceUid:x.deviceUid})),l=pg(x=>x.currentOrg),c=f.useRef(),[u,d]=f.useState(""),[h,p]=f.useState(""),[m,v]=f.useState(!1);f.useEffect(()=>{e?i.setFieldsValue({mobile:a==null?void 0:a.mobile}):(i.resetFields(),T())},[e]);const y=async(x,E)=>{console.log("captchaUid",x," captchaValue",E),d(x),p(E)},S=async x=>{console.log("captcha check result",x),v(x)},b=()=>{n()},C=()=>{n()},_=async()=>{i.validateFields().then(async x=>{console.log("changeMobile:",x);const E={mobile:x.mobile,code:x.code,platform:Eu},k=await $4e(E);console.log("changeMobile response:",k),k.data.code===200?(Wn.success("Mobile verify successfully!"),t(x.mobile),b()):Wn.error(o(k.data.message))})},T=()=>{setTimeout(()=>{var x;console.log("endCaptchaTiming"),(x=c.current)==null||x.endTiming()},2)};return U.jsx(U.Fragment,{children:U.jsx(Ia,{title:r.formatMessage({id:"pages.settings.verify.mobile",defaultMessage:"验证手机号"}),forceRender:!0,open:e,footer:null,onCancel:C,children:U.jsxs(ai,{form:i,onFinish:async x=>{console.log("changeMobile:",x),_()},children:[U.jsx(ji,{fieldProps:{size:"large",prefix:U.jsx(YE,{})},name:"mobile",placeholder:r.formatMessage({id:"pages.login.phoneNumber.placeholder",defaultMessage:"手机号"}),rules:[{required:!0},{pattern:/^1\d{10}$/}],readonly:!0}),U.jsx(ai.Item,{name:"captchaCode",rules:[],children:U.jsx(IC,{onKaptchaChange:y,onKaptchaCheck:S})}),U.jsx(QE,{fieldProps:{size:"large",prefix:U.jsx(r0,{}),allowClear:!0},captchaProps:{size:"large",disabled:!m},placeholder:r.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"请输入验证码"}),captchaTextRender:(x,E)=>x?`${E} ${r.formatMessage({id:"pages.getCaptchaSecondText",defaultMessage:"获取验证码"})}`:r.formatMessage({id:"pages.login.phoneLogin.getVerificationCode",defaultMessage:"获取验证码"}),phoneName:"mobile",name:"code",rules:[{required:!0}],fieldRef:c,onGetCaptcha:async x=>{if(console.log("mobile:",x),x&&x.length===11){const E={mobile:x,type:kPe,captchaUid:u,captchaCode:h,deviceUid:s,userUid:a==null?void 0:a.uid,orgUid:l.uid,platform:Eu},k=await NK(E);if(console.log("sendMobileCode",k),k.data.code!==200){Wn.error(o(k.data.message)),T();return}Wn.success(o(k.data.message))}else Wn.error("手机号格式错误")}})]})})})},vKt=()=>{const e=io(),t=ss(),[n]=ai.useForm(),{userInfo:r,setUserInfo:i}=qa(S=>({userInfo:S.userInfo,setUserInfo:S.setUserInfo})),[o,a]=f.useState(!1),[s,l]=f.useState(!1),c=()=>{a(!0)},u=()=>{l(!0)},d=()=>{a(!1)},h=S=>{a(!1),r.email=S,r.emailVerified=!0,i(r),n.setFieldValue("email",S)},p=()=>{l(!1)},m=S=>{l(!1),r.mobile=S,r.mobileVerified=!0,i(r),n.setFieldValue("mobile",S)};f.useEffect(()=>{n.setFieldsValue({uid:r.uid,username:r.username,nickname:r.nickname,email:r.email,mobile:r.mobile})},[]);const v=()=>{t("/setting/profile")},y=()=>{t("/setting/profile")};return U.jsxs("div",{children:[U.jsxs(ai,{form:n,submitter:!1,children:[U.jsx(ji,{name:"email",label:r!=null&&r.emailVerified?e.formatMessage({id:"email.verified",defaultMessage:"Email Verified"}):e.formatMessage({id:"email.unverified",defaultMessage:"email unverified"}),readonly:!0}),!(r!=null&&r.emailVerified)&&r.email!=null&&U.jsx(hr,{onClick:c,children:e.formatMessage({id:"pages.settings.verify.email",defaultMessage:"验证邮箱"})}),U.jsx(hr,{type:"link",onClick:v,children:"重置邮箱"}),U.jsx(ji,{name:"mobile",label:r!=null&&r.mobileVerified?e.formatMessage({id:"mobile.verified",defaultMessage:"Mobile Verified"}):e.formatMessage({id:"mobile.unverified",defaultMessage:"mobile unverified"}),readonly:!0}),!(r!=null&&r.mobileVerified)&&r.mobile!=null&&U.jsx(hr,{onClick:u,children:e.formatMessage({id:"pages.settings.verify.mobile",defaultMessage:"验证手机号"})}),U.jsx(hr,{type:"link",onClick:y,children:"重置手机号"})]}),o&&U.jsx(mKt,{open:o,onSubmit:h,onClose:d}),s&&U.jsx(gKt,{open:s,onSubmit:m,onClose:p})]})},yKt=e=>{console.log(e)},bKt=[{key:"personal",label:"个人认证",children:U.jsx(vKt,{})}],SKt=()=>U.jsx("div",{className:"profile-container",children:U.jsx(rC,{defaultActiveKey:"personal",items:bKt,onChange:yKt})}),CKt=()=>{const[e]=ai.useForm(),t=io(),{translateString:n}=ah(),{agentInfo:r,setAgentInfo:i}=Kv(d=>({agentInfo:d.agentInfo,setAgentInfo:d.setAgentInfo})),[o,a]=f.useState("");f.useEffect(()=>{var d;r&&e.setFieldsValue({nickname:n(r==null?void 0:r.nickname),email:r==null?void 0:r.email,mobile:r==null?void 0:r.mobile,description:n(r==null?void 0:r.description),memberUid:(d=r==null?void 0:r.member)==null?void 0:d.uid})},[r]);const s=d=>{console.log("handleUploadSuccess:",d),a(d)},l=d=>{console.log("handleUploadError:",d),Wn.error(d)},c=async d=>{var m,v,y,S,b,C,_,T,x,E,k,M,P,D;console.log("onFinish:",d),Wn.loading(t.formatMessage({id:"updating"}));const h={...r,...d,avatar:o,serviceSettings:{...r.serviceSettings,quickFaqUids:(v=(m=r==null?void 0:r.serviceSettings)==null?void 0:m.quickFaqs)==null?void 0:v.map(R=>R.uid),faqUids:(S=(y=r==null?void 0:r.serviceSettings)==null?void 0:y.faqs)==null?void 0:S.map(R=>R.uid),guessFaqUids:(C=(b=r==null?void 0:r.serviceSettings)==null?void 0:b.guessFaqs)==null?void 0:C.map(R=>R.uid),hotFaqUids:(T=(_=r==null?void 0:r.serviceSettings)==null?void 0:_.hotFaqs)==null?void 0:T.map(R=>R.uid),shortcutFaqUids:(E=(x=r==null?void 0:r.serviceSettings)==null?void 0:x.shortcutFaqs)==null?void 0:E.map(R=>R.uid)},robotSettings:{...r.robotSettings,robotUid:(M=(k=r==null?void 0:r.robotSettings)==null?void 0:k.robot)==null?void 0:M.uid},leaveMsgSettings:{...r.leaveMsgSettings,worktimeUids:(D=(P=r==null?void 0:r.leaveMsgSettings)==null?void 0:P.worktimes)==null?void 0:D.map(R=>R.uid)},autoReplySettings:{...r.autoReplySettings}};console.log("agentObject:",h);const p=await F$e(h);console.log("updateAgent response:",p),p.data.code===200?(Wn.destroy(),Wn.success(t.formatMessage({id:"update.success"})),i(p.data.data)):(Wn.destroy(),Wn.error(p.data.message))},u=d=>Array.isArray(d)?d:d==null?void 0:d.fileList;return f.useEffect(()=>{var d;r&&(a(r.avatar),e.setFieldsValue({member:(d=r==null?void 0:r.member)==null?void 0:d.nickname}))},[r]),U.jsx(U.Fragment,{children:U.jsxs(ai,{form:e,style:{marginLeft:"20px"},onFinish:c,children:[U.jsx(ai.Item,{name:"avatar",valuePropName:"fileList",getValueFromEvent:u,label:t.formatMessage({id:"pages.robot.tab.avatar",defaultMessage:"Avatar"}),children:U.jsxs(rTe,{onSuccess:s,onError:l,children:[U.jsx(yg,{src:o}),U.jsx(hr,{icon:U.jsx(NV,{}),children:t.formatMessage({id:"pages.robot.upload",defaultMessage:"Upload"})})]},"avatar")}),U.jsx(ji,{width:"md",name:"nickname",label:"客服卡片-展示客服昵称",rules:[{required:!0,message:"请输入客服昵称"}]}),U.jsx(ji,{width:"md",name:"email",label:"客服卡片-展示邮箱",rules:[{required:!0,message:"请输入邮箱"}]}),U.jsx(ji,{width:"md",name:"mobile",label:"客服卡片-展示手机号",rules:[{required:!0,message:"请输入手机号"}]}),U.jsx(sK,{width:"md",name:"description",label:"客服卡片-展示描述",rules:[{required:!0,message:"请输入描述"}]})]})})},xKt=()=>{const e=io(),[t,n]=f.useState([]),r=[{key:"basic",label:e.formatMessage({id:"pages.agent.tab.basic",defaultMessage:"Basic"}),children:U.jsx(CKt,{})}];return f.useEffect(()=>{n(r)},[]),U.jsx(U.Fragment,{children:U.jsx(rC,{style:{marginLeft:20},defaultActiveKey:"basic",items:t})})},{Sider:wKt,Content:_Kt}=xo,YB=()=>{const{leftSiderStyle:e,leftSiderWidth:t,headerStyle:n,contentStyle:r}=b4();return U.jsx(U.Fragment,{children:U.jsxs(xo,{children:[U.jsx(wKt,{style:e,width:t,children:U.jsx(Z9,{style:n,children:"home"})}),U.jsxs(xo,{children:[U.jsx(Z9,{style:n,children:"home"}),U.jsx(_Kt,{style:r,children:"home"})]})]})})},EKt=()=>{console.log("useMulticast");const e=()=>setInterval(()=>{},5e3);f.useEffect(()=>{console.log("useMulticast useEffect");const t=e();return()=>{console.log("un - useEffect"),clearInterval(t)}},[])};class TKt{constructor(){this.encoder=new TextEncoder,this._pieces=[],this._parts=[]}append_buffer(t){this.flush(),this._parts.push(t)}append(t){this._pieces.push(t)}flush(){if(this._pieces.length>0){const t=new Uint8Array(this._pieces);this._parts.push(t),this._pieces=[]}}toArrayBuffer(){const t=[];for(const n of this._parts)t.push(n);return kKt(t).buffer}}function kKt(e){let t=0;for(const i of e)t+=i.byteLength;const n=new Uint8Array(t);let r=0;for(const i of e){const o=new Uint8Array(i.buffer,i.byteOffset,i.byteLength);n.set(o,r),r+=i.byteLength}return n}function iTe(e){return new OKt(e).unpack()}function oTe(e){const t=new PKt,n=t.pack(e);return n instanceof Promise?n.then(()=>t.getBuffer()):t.getBuffer()}class OKt{constructor(t){this.index=0,this.dataBuffer=t,this.dataView=new Uint8Array(this.dataBuffer),this.length=this.dataBuffer.byteLength}unpack(){const t=this.unpack_uint8();if(t<128)return t;if((t^224)<32)return(t^224)-32;let n;if((n=t^160)<=15)return this.unpack_raw(n);if((n=t^176)<=15)return this.unpack_string(n);if((n=t^144)<=15)return this.unpack_array(n);if((n=t^128)<=15)return this.unpack_map(n);switch(t){case 192:return null;case 193:return;case 194:return!1;case 195:return!0;case 202:return this.unpack_float();case 203:return this.unpack_double();case 204:return this.unpack_uint8();case 205:return this.unpack_uint16();case 206:return this.unpack_uint32();case 207:return this.unpack_uint64();case 208:return this.unpack_int8();case 209:return this.unpack_int16();case 210:return this.unpack_int32();case 211:return this.unpack_int64();case 212:return;case 213:return;case 214:return;case 215:return;case 216:return n=this.unpack_uint16(),this.unpack_string(n);case 217:return n=this.unpack_uint32(),this.unpack_string(n);case 218:return n=this.unpack_uint16(),this.unpack_raw(n);case 219:return n=this.unpack_uint32(),this.unpack_raw(n);case 220:return n=this.unpack_uint16(),this.unpack_array(n);case 221:return n=this.unpack_uint32(),this.unpack_array(n);case 222:return n=this.unpack_uint16(),this.unpack_map(n);case 223:return n=this.unpack_uint32(),this.unpack_map(n)}}unpack_uint8(){const t=this.dataView[this.index]&255;return this.index++,t}unpack_uint16(){const t=this.read(2),n=(t[0]&255)*256+(t[1]&255);return this.index+=2,n}unpack_uint32(){const t=this.read(4),n=((t[0]*256+t[1])*256+t[2])*256+t[3];return this.index+=4,n}unpack_uint64(){const t=this.read(8),n=((((((t[0]*256+t[1])*256+t[2])*256+t[3])*256+t[4])*256+t[5])*256+t[6])*256+t[7];return this.index+=8,n}unpack_int8(){const t=this.unpack_uint8();return t<128?t:t-256}unpack_int16(){const t=this.unpack_uint16();return t<32768?t:t-65536}unpack_int32(){const t=this.unpack_uint32();return t<2**31?t:t-2**32}unpack_int64(){const t=this.unpack_uint64();return t<2**63?t:t-2**64}unpack_raw(t){if(this.length<this.index+t)throw new Error(`BinaryPackFailure: index is out of range ${this.index} ${t} ${this.length}`);const n=this.dataBuffer.slice(this.index,this.index+t);return this.index+=t,n}unpack_string(t){const n=this.read(t);let r=0,i="",o,a;for(;r<t;)o=n[r],o<160?(a=o,r++):(o^192)<32?(a=(o&31)<<6|n[r+1]&63,r+=2):(o^224)<16?(a=(o&15)<<12|(n[r+1]&63)<<6|n[r+2]&63,r+=3):(a=(o&7)<<18|(n[r+1]&63)<<12|(n[r+2]&63)<<6|n[r+3]&63,r+=4),i+=String.fromCodePoint(a);return this.index+=t,i}unpack_array(t){const n=new Array(t);for(let r=0;r<t;r++)n[r]=this.unpack();return n}unpack_map(t){const n={};for(let r=0;r<t;r++){const i=this.unpack();n[i]=this.unpack()}return n}unpack_float(){const t=this.unpack_uint32(),n=t>>31,r=(t>>23&255)-127,i=t&8388607|8388608;return(n===0?1:-1)*i*2**(r-23)}unpack_double(){const t=this.unpack_uint32(),n=this.unpack_uint32(),r=t>>31,i=(t>>20&2047)-1023,a=(t&1048575|1048576)*2**(i-20)+n*2**(i-52);return(r===0?1:-1)*a}read(t){const n=this.index;if(n+t<=this.length)return this.dataView.subarray(n,n+t);throw new Error("BinaryPackFailure: read index out of range")}}class PKt{getBuffer(){return this._bufferBuilder.toArrayBuffer()}pack(t){if(typeof t=="string")this.pack_string(t);else if(typeof t=="number")Math.floor(t)===t?this.pack_integer(t):this.pack_double(t);else if(typeof t=="boolean")t===!0?this._bufferBuilder.append(195):t===!1&&this._bufferBuilder.append(194);else if(t===void 0)this._bufferBuilder.append(192);else if(typeof t=="object")if(t===null)this._bufferBuilder.append(192);else{const n=t.constructor;if(t instanceof Array){const r=this.pack_array(t);if(r instanceof Promise)return r.then(()=>this._bufferBuilder.flush())}else if(t instanceof ArrayBuffer)this.pack_bin(new Uint8Array(t));else if("BYTES_PER_ELEMENT"in t){const r=t;this.pack_bin(new Uint8Array(r.buffer,r.byteOffset,r.byteLength))}else if(t instanceof Date)this.pack_string(t.toString());else{if(t instanceof Blob)return t.arrayBuffer().then(r=>{this.pack_bin(new Uint8Array(r)),this._bufferBuilder.flush()});if(n==Object||n.toString().startsWith("class")){const r=this.pack_object(t);if(r instanceof Promise)return r.then(()=>this._bufferBuilder.flush())}else throw new Error(`Type "${n.toString()}" not yet supported`)}}else throw new Error(`Type "${typeof t}" not yet supported`);this._bufferBuilder.flush()}pack_bin(t){const n=t.length;if(n<=15)this.pack_uint8(160+n);else if(n<=65535)this._bufferBuilder.append(218),this.pack_uint16(n);else if(n<=4294967295)this._bufferBuilder.append(219),this.pack_uint32(n);else throw new Error("Invalid length");this._bufferBuilder.append_buffer(t)}pack_string(t){const n=this._textEncoder.encode(t),r=n.length;if(r<=15)this.pack_uint8(176+r);else if(r<=65535)this._bufferBuilder.append(216),this.pack_uint16(r);else if(r<=4294967295)this._bufferBuilder.append(217),this.pack_uint32(r);else throw new Error("Invalid length");this._bufferBuilder.append_buffer(n)}pack_array(t){const n=t.length;if(n<=15)this.pack_uint8(144+n);else if(n<=65535)this._bufferBuilder.append(220),this.pack_uint16(n);else if(n<=4294967295)this._bufferBuilder.append(221),this.pack_uint32(n);else throw new Error("Invalid length");const r=i=>{if(i<n){const o=this.pack(t[i]);return o instanceof Promise?o.then(()=>r(i+1)):r(i+1)}};return r(0)}pack_integer(t){if(t>=-32&&t<=127)this._bufferBuilder.append(t&255);else if(t>=0&&t<=255)this._bufferBuilder.append(204),this.pack_uint8(t);else if(t>=-128&&t<=127)this._bufferBuilder.append(208),this.pack_int8(t);else if(t>=0&&t<=65535)this._bufferBuilder.append(205),this.pack_uint16(t);else if(t>=-32768&&t<=32767)this._bufferBuilder.append(209),this.pack_int16(t);else if(t>=0&&t<=4294967295)this._bufferBuilder.append(206),this.pack_uint32(t);else if(t>=-2147483648&&t<=2147483647)this._bufferBuilder.append(210),this.pack_int32(t);else if(t>=-9223372036854776e3&&t<=9223372036854776e3)this._bufferBuilder.append(211),this.pack_int64(t);else if(t>=0&&t<=18446744073709552e3)this._bufferBuilder.append(207),this.pack_uint64(t);else throw new Error("Invalid integer")}pack_double(t){let n=0;t<0&&(n=1,t=-t);const r=Math.floor(Math.log(t)/Math.LN2),i=t/2**r-1,o=Math.floor(i*2**52),a=2**32,s=n<<31|r+1023<<20|o/a&1048575,l=o%a;this._bufferBuilder.append(203),this.pack_int32(s),this.pack_int32(l)}pack_object(t){const n=Object.keys(t),r=n.length;if(r<=15)this.pack_uint8(128+r);else if(r<=65535)this._bufferBuilder.append(222),this.pack_uint16(r);else if(r<=4294967295)this._bufferBuilder.append(223),this.pack_uint32(r);else throw new Error("Invalid length");const i=o=>{if(o<n.length){const a=n[o];if(t.hasOwnProperty(a)){this.pack(a);const s=this.pack(t[a]);if(s instanceof Promise)return s.then(()=>i(o+1))}return i(o+1)}};return i(0)}pack_uint8(t){this._bufferBuilder.append(t)}pack_uint16(t){this._bufferBuilder.append(t>>8),this._bufferBuilder.append(t&255)}pack_uint32(t){const n=t&4294967295;this._bufferBuilder.append((n&4278190080)>>>24),this._bufferBuilder.append((n&16711680)>>>16),this._bufferBuilder.append((n&65280)>>>8),this._bufferBuilder.append(n&255)}pack_uint64(t){const n=t/4294967296,r=t%2**32;this._bufferBuilder.append((n&4278190080)>>>24),this._bufferBuilder.append((n&16711680)>>>16),this._bufferBuilder.append((n&65280)>>>8),this._bufferBuilder.append(n&255),this._bufferBuilder.append((r&4278190080)>>>24),this._bufferBuilder.append((r&16711680)>>>16),this._bufferBuilder.append((r&65280)>>>8),this._bufferBuilder.append(r&255)}pack_int8(t){this._bufferBuilder.append(t&255)}pack_int16(t){this._bufferBuilder.append((t&65280)>>8),this._bufferBuilder.append(t&255)}pack_int32(t){this._bufferBuilder.append(t>>>24&255),this._bufferBuilder.append((t&16711680)>>>16),this._bufferBuilder.append((t&65280)>>>8),this._bufferBuilder.append(t&255)}pack_int64(t){const n=Math.floor(t/4294967296),r=t%2**32;this._bufferBuilder.append((n&4278190080)>>>24),this._bufferBuilder.append((n&16711680)>>>16),this._bufferBuilder.append((n&65280)>>>8),this._bufferBuilder.append(n&255),this._bufferBuilder.append((r&4278190080)>>>24),this._bufferBuilder.append((r&16711680)>>>16),this._bufferBuilder.append((r&65280)>>>8),this._bufferBuilder.append(r&255)}constructor(){this._bufferBuilder=new TKt,this._textEncoder=new TextEncoder}}let aTe=!0,sTe=!0;function s8(e,t,n){const r=e.match(t);return r&&r.length>=n&&parseInt(r[n],10)}function l0(e,t,n){if(!e.RTCPeerConnection)return;const r=e.RTCPeerConnection.prototype,i=r.addEventListener;r.addEventListener=function(a,s){if(a!==t)return i.apply(this,arguments);const l=c=>{const u=n(c);u&&(s.handleEvent?s.handleEvent(u):s(u))};return this._eventMap=this._eventMap||{},this._eventMap[t]||(this._eventMap[t]=new Map),this._eventMap[t].set(s,l),i.apply(this,[a,l])};const o=r.removeEventListener;r.removeEventListener=function(a,s){if(a!==t||!this._eventMap||!this._eventMap[t])return o.apply(this,arguments);if(!this._eventMap[t].has(s))return o.apply(this,arguments);const l=this._eventMap[t].get(s);return this._eventMap[t].delete(s),this._eventMap[t].size===0&&delete this._eventMap[t],Object.keys(this._eventMap).length===0&&delete this._eventMap,o.apply(this,[a,l])},Object.defineProperty(r,"on"+t,{get(){return this["_on"+t]},set(a){this["_on"+t]&&(this.removeEventListener(t,this["_on"+t]),delete this["_on"+t]),a&&this.addEventListener(t,this["_on"+t]=a)},enumerable:!0,configurable:!0})}function MKt(e){return typeof e!="boolean"?new Error("Argument type: "+typeof e+". Please use a boolean."):(aTe=e,e?"adapter.js logging disabled":"adapter.js logging enabled")}function IKt(e){return typeof e!="boolean"?new Error("Argument type: "+typeof e+". Please use a boolean."):(sTe=!e,"adapter.js deprecation warnings "+(e?"disabled":"enabled"))}function lTe(){if(typeof window=="object"){if(aTe)return;typeof console<"u"&&typeof console.log=="function"&&console.log.apply(console,arguments)}}function mq(e,t){sTe&&console.warn(e+" is deprecated, please use "+t+" instead.")}function $Kt(e){const t={browser:null,version:null};if(typeof e>"u"||!e.navigator||!e.navigator.userAgent)return t.browser="Not a browser.",t;const{navigator:n}=e;if(n.userAgentData&&n.userAgentData.brands){const r=n.userAgentData.brands.find(i=>i.brand==="Chromium");if(r)return{browser:"chrome",version:parseInt(r.version,10)}}if(n.mozGetUserMedia)t.browser="firefox",t.version=s8(n.userAgent,/Firefox\/(\d+)\./,1);else if(n.webkitGetUserMedia||e.isSecureContext===!1&&e.webkitRTCPeerConnection)t.browser="chrome",t.version=s8(n.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else if(e.RTCPeerConnection&&n.userAgent.match(/AppleWebKit\/(\d+)\./))t.browser="safari",t.version=s8(n.userAgent,/AppleWebKit\/(\d+)\./,1),t.supportsUnifiedPlan=e.RTCRtpTransceiver&&"currentDirection"in e.RTCRtpTransceiver.prototype;else return t.browser="Not a supported browser.",t;return t}function Bae(e){return Object.prototype.toString.call(e)==="[object Object]"}function cTe(e){return Bae(e)?Object.keys(e).reduce(function(t,n){const r=Bae(e[n]),i=r?cTe(e[n]):e[n],o=r&&!Object.keys(i).length;return i===void 0||o?t:Object.assign(t,{[n]:i})},{}):e}function XB(e,t,n){!t||n.has(t.id)||(n.set(t.id,t),Object.keys(t).forEach(r=>{r.endsWith("Id")?XB(e,e.get(t[r]),n):r.endsWith("Ids")&&t[r].forEach(i=>{XB(e,e.get(i),n)})}))}function Hae(e,t,n){const r=n?"outbound-rtp":"inbound-rtp",i=new Map;if(t===null)return i;const o=[];return e.forEach(a=>{a.type==="track"&&a.trackIdentifier===t.id&&o.push(a)}),o.forEach(a=>{e.forEach(s=>{s.type===r&&s.trackId===a.id&&XB(e,s,i)})}),i}const zae=lTe;function uTe(e,t){const n=e&&e.navigator;if(!n.mediaDevices)return;const r=function(s){if(typeof s!="object"||s.mandatory||s.optional)return s;const l={};return Object.keys(s).forEach(c=>{if(c==="require"||c==="advanced"||c==="mediaSource")return;const u=typeof s[c]=="object"?s[c]:{ideal:s[c]};u.exact!==void 0&&typeof u.exact=="number"&&(u.min=u.max=u.exact);const d=function(h,p){return h?h+p.charAt(0).toUpperCase()+p.slice(1):p==="deviceId"?"sourceId":p};if(u.ideal!==void 0){l.optional=l.optional||[];let h={};typeof u.ideal=="number"?(h[d("min",c)]=u.ideal,l.optional.push(h),h={},h[d("max",c)]=u.ideal,l.optional.push(h)):(h[d("",c)]=u.ideal,l.optional.push(h))}u.exact!==void 0&&typeof u.exact!="number"?(l.mandatory=l.mandatory||{},l.mandatory[d("",c)]=u.exact):["min","max"].forEach(h=>{u[h]!==void 0&&(l.mandatory=l.mandatory||{},l.mandatory[d(h,c)]=u[h])})}),s.advanced&&(l.optional=(l.optional||[]).concat(s.advanced)),l},i=function(s,l){if(t.version>=61)return l(s);if(s=JSON.parse(JSON.stringify(s)),s&&typeof s.audio=="object"){const c=function(u,d,h){d in u&&!(h in u)&&(u[h]=u[d],delete u[d])};s=JSON.parse(JSON.stringify(s)),c(s.audio,"autoGainControl","googAutoGainControl"),c(s.audio,"noiseSuppression","googNoiseSuppression"),s.audio=r(s.audio)}if(s&&typeof s.video=="object"){let c=s.video.facingMode;c=c&&(typeof c=="object"?c:{ideal:c});const u=t.version<66;if(c&&(c.exact==="user"||c.exact==="environment"||c.ideal==="user"||c.ideal==="environment")&&!(n.mediaDevices.getSupportedConstraints&&n.mediaDevices.getSupportedConstraints().facingMode&&!u)){delete s.video.facingMode;let d;if(c.exact==="environment"||c.ideal==="environment"?d=["back","rear"]:(c.exact==="user"||c.ideal==="user")&&(d=["front"]),d)return n.mediaDevices.enumerateDevices().then(h=>{h=h.filter(m=>m.kind==="videoinput");let p=h.find(m=>d.some(v=>m.label.toLowerCase().includes(v)));return!p&&h.length&&d.includes("back")&&(p=h[h.length-1]),p&&(s.video.deviceId=c.exact?{exact:p.deviceId}:{ideal:p.deviceId}),s.video=r(s.video),zae("chrome: "+JSON.stringify(s)),l(s)})}s.video=r(s.video)}return zae("chrome: "+JSON.stringify(s)),l(s)},o=function(s){return t.version>=64?s:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[s.name]||s.name,message:s.message,constraint:s.constraint||s.constraintName,toString(){return this.name+(this.message&&": ")+this.message}}},a=function(s,l,c){i(s,u=>{n.webkitGetUserMedia(u,l,d=>{c&&c(o(d))})})};if(n.getUserMedia=a.bind(n),n.mediaDevices.getUserMedia){const s=n.mediaDevices.getUserMedia.bind(n.mediaDevices);n.mediaDevices.getUserMedia=function(l){return i(l,c=>s(c).then(u=>{if(c.audio&&!u.getAudioTracks().length||c.video&&!u.getVideoTracks().length)throw u.getTracks().forEach(d=>{d.stop()}),new DOMException("","NotFoundError");return u},u=>Promise.reject(o(u))))}}}function dTe(e){e.MediaStream=e.MediaStream||e.webkitMediaStream}function fTe(e){if(typeof e=="object"&&e.RTCPeerConnection&&!("ontrack"in e.RTCPeerConnection.prototype)){Object.defineProperty(e.RTCPeerConnection.prototype,"ontrack",{get(){return this._ontrack},set(n){this._ontrack&&this.removeEventListener("track",this._ontrack),this.addEventListener("track",this._ontrack=n)},enumerable:!0,configurable:!0});const t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){return this._ontrackpoly||(this._ontrackpoly=r=>{r.stream.addEventListener("addtrack",i=>{let o;e.RTCPeerConnection.prototype.getReceivers?o=this.getReceivers().find(s=>s.track&&s.track.id===i.track.id):o={track:i.track};const a=new Event("track");a.track=i.track,a.receiver=o,a.transceiver={receiver:o},a.streams=[r.stream],this.dispatchEvent(a)}),r.stream.getTracks().forEach(i=>{let o;e.RTCPeerConnection.prototype.getReceivers?o=this.getReceivers().find(s=>s.track&&s.track.id===i.id):o={track:i};const a=new Event("track");a.track=i,a.receiver=o,a.transceiver={receiver:o},a.streams=[r.stream],this.dispatchEvent(a)})},this.addEventListener("addstream",this._ontrackpoly)),t.apply(this,arguments)}}else l0(e,"track",t=>(t.transceiver||Object.defineProperty(t,"transceiver",{value:{receiver:t.receiver}}),t))}function hTe(e){if(typeof e=="object"&&e.RTCPeerConnection&&!("getSenders"in e.RTCPeerConnection.prototype)&&"createDTMFSender"in e.RTCPeerConnection.prototype){const t=function(i,o){return{track:o,get dtmf(){return this._dtmf===void 0&&(o.kind==="audio"?this._dtmf=i.createDTMFSender(o):this._dtmf=null),this._dtmf},_pc:i}};if(!e.RTCPeerConnection.prototype.getSenders){e.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()};const i=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(s,l){let c=i.apply(this,arguments);return c||(c=t(this,s),this._senders.push(c)),c};const o=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(s){o.apply(this,arguments);const l=this._senders.indexOf(s);l!==-1&&this._senders.splice(l,1)}}const n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(o){this._senders=this._senders||[],n.apply(this,[o]),o.getTracks().forEach(a=>{this._senders.push(t(this,a))})};const r=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(o){this._senders=this._senders||[],r.apply(this,[o]),o.getTracks().forEach(a=>{const s=this._senders.find(l=>l.track===a);s&&this._senders.splice(this._senders.indexOf(s),1)})}}else if(typeof e=="object"&&e.RTCPeerConnection&&"getSenders"in e.RTCPeerConnection.prototype&&"createDTMFSender"in e.RTCPeerConnection.prototype&&e.RTCRtpSender&&!("dtmf"in e.RTCRtpSender.prototype)){const t=e.RTCPeerConnection.prototype.getSenders;e.RTCPeerConnection.prototype.getSenders=function(){const r=t.apply(this,[]);return r.forEach(i=>i._pc=this),r},Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get(){return this._dtmf===void 0&&(this.track.kind==="audio"?this._dtmf=this._pc.createDTMFSender(this.track):this._dtmf=null),this._dtmf}})}}function pTe(e){if(!(typeof e=="object"&&e.RTCPeerConnection&&e.RTCRtpSender&&e.RTCRtpReceiver))return;if(!("getStats"in e.RTCRtpSender.prototype)){const n=e.RTCPeerConnection.prototype.getSenders;n&&(e.RTCPeerConnection.prototype.getSenders=function(){const o=n.apply(this,[]);return o.forEach(a=>a._pc=this),o});const r=e.RTCPeerConnection.prototype.addTrack;r&&(e.RTCPeerConnection.prototype.addTrack=function(){const o=r.apply(this,arguments);return o._pc=this,o}),e.RTCRtpSender.prototype.getStats=function(){const o=this;return this._pc.getStats().then(a=>Hae(a,o.track,!0))}}if(!("getStats"in e.RTCRtpReceiver.prototype)){const n=e.RTCPeerConnection.prototype.getReceivers;n&&(e.RTCPeerConnection.prototype.getReceivers=function(){const i=n.apply(this,[]);return i.forEach(o=>o._pc=this),i}),l0(e,"track",r=>(r.receiver._pc=r.srcElement,r)),e.RTCRtpReceiver.prototype.getStats=function(){const i=this;return this._pc.getStats().then(o=>Hae(o,i.track,!1))}}if(!("getStats"in e.RTCRtpSender.prototype&&"getStats"in e.RTCRtpReceiver.prototype))return;const t=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&arguments[0]instanceof e.MediaStreamTrack){const r=arguments[0];let i,o,a;return this.getSenders().forEach(s=>{s.track===r&&(i?a=!0:i=s)}),this.getReceivers().forEach(s=>(s.track===r&&(o?a=!0:o=s),s.track===r)),a||i&&o?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):i?i.getStats():o?o.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"))}return t.apply(this,arguments)}}function mTe(e){e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map(a=>this._shimmedLocalStreams[a][0])};const t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(a,s){if(!s)return t.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};const l=t.apply(this,arguments);return this._shimmedLocalStreams[s.id]?this._shimmedLocalStreams[s.id].indexOf(l)===-1&&this._shimmedLocalStreams[s.id].push(l):this._shimmedLocalStreams[s.id]=[s,l],l};const n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(a){this._shimmedLocalStreams=this._shimmedLocalStreams||{},a.getTracks().forEach(c=>{if(this.getSenders().find(d=>d.track===c))throw new DOMException("Track already exists.","InvalidAccessError")});const s=this.getSenders();n.apply(this,arguments);const l=this.getSenders().filter(c=>s.indexOf(c)===-1);this._shimmedLocalStreams[a.id]=[a].concat(l)};const r=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(a){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[a.id],r.apply(this,arguments)};const i=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(a){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},a&&Object.keys(this._shimmedLocalStreams).forEach(s=>{const l=this._shimmedLocalStreams[s].indexOf(a);l!==-1&&this._shimmedLocalStreams[s].splice(l,1),this._shimmedLocalStreams[s].length===1&&delete this._shimmedLocalStreams[s]}),i.apply(this,arguments)}}function gTe(e,t){if(!e.RTCPeerConnection)return;if(e.RTCPeerConnection.prototype.addTrack&&t.version>=65)return mTe(e);const n=e.RTCPeerConnection.prototype.getLocalStreams;e.RTCPeerConnection.prototype.getLocalStreams=function(){const u=n.apply(this);return this._reverseStreams=this._reverseStreams||{},u.map(d=>this._reverseStreams[d.id])};const r=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(u){if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},u.getTracks().forEach(d=>{if(this.getSenders().find(p=>p.track===d))throw new DOMException("Track already exists.","InvalidAccessError")}),!this._reverseStreams[u.id]){const d=new e.MediaStream(u.getTracks());this._streams[u.id]=d,this._reverseStreams[d.id]=u,u=d}r.apply(this,[u])};const i=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(u){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},i.apply(this,[this._streams[u.id]||u]),delete this._reverseStreams[this._streams[u.id]?this._streams[u.id].id:u.id],delete this._streams[u.id]},e.RTCPeerConnection.prototype.addTrack=function(u,d){if(this.signalingState==="closed")throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");const h=[].slice.call(arguments,1);if(h.length!==1||!h[0].getTracks().find(v=>v===u))throw new DOMException("The adapter.js addTrack polyfill only supports a single stream which is associated with the specified track.","NotSupportedError");if(this.getSenders().find(v=>v.track===u))throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};const m=this._streams[d.id];if(m)m.addTrack(u),Promise.resolve().then(()=>{this.dispatchEvent(new Event("negotiationneeded"))});else{const v=new e.MediaStream([u]);this._streams[d.id]=v,this._reverseStreams[v.id]=d,this.addStream(v)}return this.getSenders().find(v=>v.track===u)};function o(c,u){let d=u.sdp;return Object.keys(c._reverseStreams||[]).forEach(h=>{const p=c._reverseStreams[h],m=c._streams[p.id];d=d.replace(new RegExp(m.id,"g"),p.id)}),new RTCSessionDescription({type:u.type,sdp:d})}function a(c,u){let d=u.sdp;return Object.keys(c._reverseStreams||[]).forEach(h=>{const p=c._reverseStreams[h],m=c._streams[p.id];d=d.replace(new RegExp(p.id,"g"),m.id)}),new RTCSessionDescription({type:u.type,sdp:d})}["createOffer","createAnswer"].forEach(function(c){const u=e.RTCPeerConnection.prototype[c],d={[c](){const h=arguments;return arguments.length&&typeof arguments[0]=="function"?u.apply(this,[m=>{const v=o(this,m);h[0].apply(null,[v])},m=>{h[1]&&h[1].apply(null,m)},arguments[2]]):u.apply(this,arguments).then(m=>o(this,m))}};e.RTCPeerConnection.prototype[c]=d[c]});const s=e.RTCPeerConnection.prototype.setLocalDescription;e.RTCPeerConnection.prototype.setLocalDescription=function(){return!arguments.length||!arguments[0].type?s.apply(this,arguments):(arguments[0]=a(this,arguments[0]),s.apply(this,arguments))};const l=Object.getOwnPropertyDescriptor(e.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(e.RTCPeerConnection.prototype,"localDescription",{get(){const c=l.get.apply(this);return c.type===""?c:o(this,c)}}),e.RTCPeerConnection.prototype.removeTrack=function(u){if(this.signalingState==="closed")throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");if(!u._pc)throw new DOMException("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.","TypeError");if(!(u._pc===this))throw new DOMException("Sender was not created by this connection.","InvalidAccessError");this._streams=this._streams||{};let h;Object.keys(this._streams).forEach(p=>{this._streams[p].getTracks().find(v=>u.track===v)&&(h=this._streams[p])}),h&&(h.getTracks().length===1?this.removeStream(this._reverseStreams[h.id]):h.removeTrack(u.track),this.dispatchEvent(new Event("negotiationneeded")))}}function QB(e,t){!e.RTCPeerConnection&&e.webkitRTCPeerConnection&&(e.RTCPeerConnection=e.webkitRTCPeerConnection),e.RTCPeerConnection&&t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(n){const r=e.RTCPeerConnection.prototype[n],i={[n](){return arguments[0]=new(n==="addIceCandidate"?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),r.apply(this,arguments)}};e.RTCPeerConnection.prototype[n]=i[n]})}function vTe(e,t){l0(e,"negotiationneeded",n=>{const r=n.target;if(!((t.version<72||r.getConfiguration&&r.getConfiguration().sdpSemantics==="plan-b")&&r.signalingState!=="stable"))return n})}const Uae=Object.freeze(Object.defineProperty({__proto__:null,fixNegotiationNeeded:vTe,shimAddTrackRemoveTrack:gTe,shimAddTrackRemoveTrackWithNative:mTe,shimGetSendersWithDtmf:hTe,shimGetUserMedia:uTe,shimMediaStream:dTe,shimOnTrack:fTe,shimPeerConnection:QB,shimSenderReceiverGetStats:pTe},Symbol.toStringTag,{value:"Module"}));function yTe(e,t){const n=e&&e.navigator,r=e&&e.MediaStreamTrack;if(n.getUserMedia=function(i,o,a){mq("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),n.mediaDevices.getUserMedia(i).then(o,a)},!(t.version>55&&"autoGainControl"in n.mediaDevices.getSupportedConstraints())){const i=function(a,s,l){s in a&&!(l in a)&&(a[l]=a[s],delete a[s])},o=n.mediaDevices.getUserMedia.bind(n.mediaDevices);if(n.mediaDevices.getUserMedia=function(a){return typeof a=="object"&&typeof a.audio=="object"&&(a=JSON.parse(JSON.stringify(a)),i(a.audio,"autoGainControl","mozAutoGainControl"),i(a.audio,"noiseSuppression","mozNoiseSuppression")),o(a)},r&&r.prototype.getSettings){const a=r.prototype.getSettings;r.prototype.getSettings=function(){const s=a.apply(this,arguments);return i(s,"mozAutoGainControl","autoGainControl"),i(s,"mozNoiseSuppression","noiseSuppression"),s}}if(r&&r.prototype.applyConstraints){const a=r.prototype.applyConstraints;r.prototype.applyConstraints=function(s){return this.kind==="audio"&&typeof s=="object"&&(s=JSON.parse(JSON.stringify(s)),i(s,"autoGainControl","mozAutoGainControl"),i(s,"noiseSuppression","mozNoiseSuppression")),a.apply(this,[s])}}}}function RKt(e,t){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&(e.navigator.mediaDevices.getDisplayMedia=function(r){if(!(r&&r.video)){const i=new DOMException("getDisplayMedia without video constraints is undefined");return i.name="NotFoundError",i.code=8,Promise.reject(i)}return r.video===!0?r.video={mediaSource:t}:r.video.mediaSource=t,e.navigator.mediaDevices.getUserMedia(r)})}function bTe(e){typeof e=="object"&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function ZB(e,t){if(typeof e!="object"||!(e.RTCPeerConnection||e.mozRTCPeerConnection))return;!e.RTCPeerConnection&&e.mozRTCPeerConnection&&(e.RTCPeerConnection=e.mozRTCPeerConnection),t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(i){const o=e.RTCPeerConnection.prototype[i],a={[i](){return arguments[0]=new(i==="addIceCandidate"?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),o.apply(this,arguments)}};e.RTCPeerConnection.prototype[i]=a[i]});const n={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},r=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){const[o,a,s]=arguments;return r.apply(this,[o||null]).then(l=>{if(t.version<53&&!a)try{l.forEach(c=>{c.type=n[c.type]||c.type})}catch(c){if(c.name!=="TypeError")throw c;l.forEach((u,d)=>{l.set(d,Object.assign({},u,{type:n[u.type]||u.type}))})}return l}).then(a,s)}}function STe(e){if(!(typeof e=="object"&&e.RTCPeerConnection&&e.RTCRtpSender)||e.RTCRtpSender&&"getStats"in e.RTCRtpSender.prototype)return;const t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){const i=t.apply(this,[]);return i.forEach(o=>o._pc=this),i});const n=e.RTCPeerConnection.prototype.addTrack;n&&(e.RTCPeerConnection.prototype.addTrack=function(){const i=n.apply(this,arguments);return i._pc=this,i}),e.RTCRtpSender.prototype.getStats=function(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map)}}function CTe(e){if(!(typeof e=="object"&&e.RTCPeerConnection&&e.RTCRtpSender)||e.RTCRtpSender&&"getStats"in e.RTCRtpReceiver.prototype)return;const t=e.RTCPeerConnection.prototype.getReceivers;t&&(e.RTCPeerConnection.prototype.getReceivers=function(){const r=t.apply(this,[]);return r.forEach(i=>i._pc=this),r}),l0(e,"track",n=>(n.receiver._pc=n.srcElement,n)),e.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}function xTe(e){!e.RTCPeerConnection||"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(n){mq("removeStream","removeTrack"),this.getSenders().forEach(r=>{r.track&&n.getTracks().includes(r.track)&&this.removeTrack(r)})})}function wTe(e){e.DataChannel&&!e.RTCDataChannel&&(e.RTCDataChannel=e.DataChannel)}function _Te(e){if(!(typeof e=="object"&&e.RTCPeerConnection))return;const t=e.RTCPeerConnection.prototype.addTransceiver;t&&(e.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];let r=arguments[1]&&arguments[1].sendEncodings;r===void 0&&(r=[]),r=[...r];const i=r.length>0;i&&r.forEach(a=>{if("rid"in a&&!/^[a-z0-9]{0,16}$/i.test(a.rid))throw new TypeError("Invalid RID value provided.");if("scaleResolutionDownBy"in a&&!(parseFloat(a.scaleResolutionDownBy)>=1))throw new RangeError("scale_resolution_down_by must be >= 1.0");if("maxFramerate"in a&&!(parseFloat(a.maxFramerate)>=0))throw new RangeError("max_framerate must be >= 0.0")});const o=t.apply(this,arguments);if(i){const{sender:a}=o,s=a.getParameters();(!("encodings"in s)||s.encodings.length===1&&Object.keys(s.encodings[0]).length===0)&&(s.encodings=r,a.sendEncodings=r,this.setParametersPromises.push(a.setParameters(s).then(()=>{delete a.sendEncodings}).catch(()=>{delete a.sendEncodings})))}return o})}function ETe(e){if(!(typeof e=="object"&&e.RTCRtpSender))return;const t=e.RTCRtpSender.prototype.getParameters;t&&(e.RTCRtpSender.prototype.getParameters=function(){const r=t.apply(this,arguments);return"encodings"in r||(r.encodings=[].concat(this.sendEncodings||[{}])),r})}function TTe(e){if(!(typeof e=="object"&&e.RTCPeerConnection))return;const t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>t.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):t.apply(this,arguments)}}function kTe(e){if(!(typeof e=="object"&&e.RTCPeerConnection))return;const t=e.RTCPeerConnection.prototype.createAnswer;e.RTCPeerConnection.prototype.createAnswer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>t.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):t.apply(this,arguments)}}const Wae=Object.freeze(Object.defineProperty({__proto__:null,shimAddTransceiver:_Te,shimCreateAnswer:kTe,shimCreateOffer:TTe,shimGetDisplayMedia:RKt,shimGetParameters:ETe,shimGetUserMedia:yTe,shimOnTrack:bTe,shimPeerConnection:ZB,shimRTCDataChannel:wTe,shimReceiverGetStats:CTe,shimRemoveStream:xTe,shimSenderGetStats:STe},Symbol.toStringTag,{value:"Module"}));function OTe(e){if(!(typeof e!="object"||!e.RTCPeerConnection)){if("getLocalStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),!("addStream"in e.RTCPeerConnection.prototype)){const t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addStream=function(r){this._localStreams||(this._localStreams=[]),this._localStreams.includes(r)||this._localStreams.push(r),r.getAudioTracks().forEach(i=>t.call(this,i,r)),r.getVideoTracks().forEach(i=>t.call(this,i,r))},e.RTCPeerConnection.prototype.addTrack=function(r,...i){return i&&i.forEach(o=>{this._localStreams?this._localStreams.includes(o)||this._localStreams.push(o):this._localStreams=[o]}),t.apply(this,arguments)}}"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(n){this._localStreams||(this._localStreams=[]);const r=this._localStreams.indexOf(n);if(r===-1)return;this._localStreams.splice(r,1);const i=n.getTracks();this.getSenders().forEach(o=>{i.includes(o.track)&&this.removeTrack(o)})})}}function PTe(e){if(!(typeof e!="object"||!e.RTCPeerConnection)&&("getRemoteStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]}),!("onaddstream"in e.RTCPeerConnection.prototype))){Object.defineProperty(e.RTCPeerConnection.prototype,"onaddstream",{get(){return this._onaddstream},set(n){this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=n),this.addEventListener("track",this._onaddstreampoly=r=>{r.streams.forEach(i=>{if(this._remoteStreams||(this._remoteStreams=[]),this._remoteStreams.includes(i))return;this._remoteStreams.push(i);const o=new Event("addstream");o.stream=i,this.dispatchEvent(o)})})}});const t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){const r=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(i){i.streams.forEach(o=>{if(r._remoteStreams||(r._remoteStreams=[]),r._remoteStreams.indexOf(o)>=0)return;r._remoteStreams.push(o);const a=new Event("addstream");a.stream=o,r.dispatchEvent(a)})}),t.apply(r,arguments)}}}function MTe(e){if(typeof e!="object"||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype,n=t.createOffer,r=t.createAnswer,i=t.setLocalDescription,o=t.setRemoteDescription,a=t.addIceCandidate;t.createOffer=function(c,u){const d=arguments.length>=2?arguments[2]:arguments[0],h=n.apply(this,[d]);return u?(h.then(c,u),Promise.resolve()):h},t.createAnswer=function(c,u){const d=arguments.length>=2?arguments[2]:arguments[0],h=r.apply(this,[d]);return u?(h.then(c,u),Promise.resolve()):h};let s=function(l,c,u){const d=i.apply(this,[l]);return u?(d.then(c,u),Promise.resolve()):d};t.setLocalDescription=s,s=function(l,c,u){const d=o.apply(this,[l]);return u?(d.then(c,u),Promise.resolve()):d},t.setRemoteDescription=s,s=function(l,c,u){const d=a.apply(this,[l]);return u?(d.then(c,u),Promise.resolve()):d},t.addIceCandidate=s}function ITe(e){const t=e&&e.navigator;if(t.mediaDevices&&t.mediaDevices.getUserMedia){const n=t.mediaDevices,r=n.getUserMedia.bind(n);t.mediaDevices.getUserMedia=i=>r($Te(i))}!t.getUserMedia&&t.mediaDevices&&t.mediaDevices.getUserMedia&&(t.getUserMedia=(function(r,i,o){t.mediaDevices.getUserMedia(r).then(i,o)}).bind(t))}function $Te(e){return e&&e.video!==void 0?Object.assign({},e,{video:cTe(e.video)}):e}function RTe(e){if(!e.RTCPeerConnection)return;const t=e.RTCPeerConnection;e.RTCPeerConnection=function(r,i){if(r&&r.iceServers){const o=[];for(let a=0;a<r.iceServers.length;a++){let s=r.iceServers[a];s.urls===void 0&&s.url?(mq("RTCIceServer.url","RTCIceServer.urls"),s=JSON.parse(JSON.stringify(s)),s.urls=s.url,delete s.url,o.push(s)):o.push(r.iceServers[a])}r.iceServers=o}return new t(r,i)},e.RTCPeerConnection.prototype=t.prototype,"generateCertificate"in t&&Object.defineProperty(e.RTCPeerConnection,"generateCertificate",{get(){return t.generateCertificate}})}function ATe(e){typeof e=="object"&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function NTe(e){const t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(r){if(r){typeof r.offerToReceiveAudio<"u"&&(r.offerToReceiveAudio=!!r.offerToReceiveAudio);const i=this.getTransceivers().find(a=>a.receiver.track.kind==="audio");r.offerToReceiveAudio===!1&&i?i.direction==="sendrecv"?i.setDirection?i.setDirection("sendonly"):i.direction="sendonly":i.direction==="recvonly"&&(i.setDirection?i.setDirection("inactive"):i.direction="inactive"):r.offerToReceiveAudio===!0&&!i&&this.addTransceiver("audio",{direction:"recvonly"}),typeof r.offerToReceiveVideo<"u"&&(r.offerToReceiveVideo=!!r.offerToReceiveVideo);const o=this.getTransceivers().find(a=>a.receiver.track.kind==="video");r.offerToReceiveVideo===!1&&o?o.direction==="sendrecv"?o.setDirection?o.setDirection("sendonly"):o.direction="sendonly":o.direction==="recvonly"&&(o.setDirection?o.setDirection("inactive"):o.direction="inactive"):r.offerToReceiveVideo===!0&&!o&&this.addTransceiver("video",{direction:"recvonly"})}return t.apply(this,arguments)}}function DTe(e){typeof e!="object"||e.AudioContext||(e.AudioContext=e.webkitAudioContext)}const Vae=Object.freeze(Object.defineProperty({__proto__:null,shimAudioContext:DTe,shimCallbacksAPI:MTe,shimConstraints:$Te,shimCreateOfferLegacy:NTe,shimGetUserMedia:ITe,shimLocalStreamsAPI:OTe,shimRTCIceServerUrls:RTe,shimRemoteStreamsAPI:PTe,shimTrackEventTransceiver:ATe},Symbol.toStringTag,{value:"Module"}));var LTe={exports:{}};(function(e){const t={};t.generateIdentifier=function(){return Math.random().toString(36).substring(2,12)},t.localCName=t.generateIdentifier(),t.splitLines=function(n){return n.trim().split(`
|
||
`).map(r=>r.trim())},t.splitSections=function(n){return n.split(`
|
||
m=`).map((i,o)=>(o>0?"m="+i:i).trim()+`\r
|
||
`)},t.getDescription=function(n){const r=t.splitSections(n);return r&&r[0]},t.getMediaSections=function(n){const r=t.splitSections(n);return r.shift(),r},t.matchPrefix=function(n,r){return t.splitLines(n).filter(i=>i.indexOf(r)===0)},t.parseCandidate=function(n){let r;n.indexOf("a=candidate:")===0?r=n.substring(12).split(" "):r=n.substring(10).split(" ");const i={foundation:r[0],component:{1:"rtp",2:"rtcp"}[r[1]]||r[1],protocol:r[2].toLowerCase(),priority:parseInt(r[3],10),ip:r[4],address:r[4],port:parseInt(r[5],10),type:r[7]};for(let o=8;o<r.length;o+=2)switch(r[o]){case"raddr":i.relatedAddress=r[o+1];break;case"rport":i.relatedPort=parseInt(r[o+1],10);break;case"tcptype":i.tcpType=r[o+1];break;case"ufrag":i.ufrag=r[o+1],i.usernameFragment=r[o+1];break;default:i[r[o]]===void 0&&(i[r[o]]=r[o+1]);break}return i},t.writeCandidate=function(n){const r=[];r.push(n.foundation);const i=n.component;i==="rtp"?r.push(1):i==="rtcp"?r.push(2):r.push(i),r.push(n.protocol.toUpperCase()),r.push(n.priority),r.push(n.address||n.ip),r.push(n.port);const o=n.type;return r.push("typ"),r.push(o),o!=="host"&&n.relatedAddress&&n.relatedPort&&(r.push("raddr"),r.push(n.relatedAddress),r.push("rport"),r.push(n.relatedPort)),n.tcpType&&n.protocol.toLowerCase()==="tcp"&&(r.push("tcptype"),r.push(n.tcpType)),(n.usernameFragment||n.ufrag)&&(r.push("ufrag"),r.push(n.usernameFragment||n.ufrag)),"candidate:"+r.join(" ")},t.parseIceOptions=function(n){return n.substring(14).split(" ")},t.parseRtpMap=function(n){let r=n.substring(9).split(" ");const i={payloadType:parseInt(r.shift(),10)};return r=r[0].split("/"),i.name=r[0],i.clockRate=parseInt(r[1],10),i.channels=r.length===3?parseInt(r[2],10):1,i.numChannels=i.channels,i},t.writeRtpMap=function(n){let r=n.payloadType;n.preferredPayloadType!==void 0&&(r=n.preferredPayloadType);const i=n.channels||n.numChannels||1;return"a=rtpmap:"+r+" "+n.name+"/"+n.clockRate+(i!==1?"/"+i:"")+`\r
|
||
`},t.parseExtmap=function(n){const r=n.substring(9).split(" ");return{id:parseInt(r[0],10),direction:r[0].indexOf("/")>0?r[0].split("/")[1]:"sendrecv",uri:r[1],attributes:r.slice(2).join(" ")}},t.writeExtmap=function(n){return"a=extmap:"+(n.id||n.preferredId)+(n.direction&&n.direction!=="sendrecv"?"/"+n.direction:"")+" "+n.uri+(n.attributes?" "+n.attributes:"")+`\r
|
||
`},t.parseFmtp=function(n){const r={};let i;const o=n.substring(n.indexOf(" ")+1).split(";");for(let a=0;a<o.length;a++)i=o[a].trim().split("="),r[i[0].trim()]=i[1];return r},t.writeFmtp=function(n){let r="",i=n.payloadType;if(n.preferredPayloadType!==void 0&&(i=n.preferredPayloadType),n.parameters&&Object.keys(n.parameters).length){const o=[];Object.keys(n.parameters).forEach(a=>{n.parameters[a]!==void 0?o.push(a+"="+n.parameters[a]):o.push(a)}),r+="a=fmtp:"+i+" "+o.join(";")+`\r
|
||
`}return r},t.parseRtcpFb=function(n){const r=n.substring(n.indexOf(" ")+1).split(" ");return{type:r.shift(),parameter:r.join(" ")}},t.writeRtcpFb=function(n){let r="",i=n.payloadType;return n.preferredPayloadType!==void 0&&(i=n.preferredPayloadType),n.rtcpFeedback&&n.rtcpFeedback.length&&n.rtcpFeedback.forEach(o=>{r+="a=rtcp-fb:"+i+" "+o.type+(o.parameter&&o.parameter.length?" "+o.parameter:"")+`\r
|
||
`}),r},t.parseSsrcMedia=function(n){const r=n.indexOf(" "),i={ssrc:parseInt(n.substring(7,r),10)},o=n.indexOf(":",r);return o>-1?(i.attribute=n.substring(r+1,o),i.value=n.substring(o+1)):i.attribute=n.substring(r+1),i},t.parseSsrcGroup=function(n){const r=n.substring(13).split(" ");return{semantics:r.shift(),ssrcs:r.map(i=>parseInt(i,10))}},t.getMid=function(n){const r=t.matchPrefix(n,"a=mid:")[0];if(r)return r.substring(6)},t.parseFingerprint=function(n){const r=n.substring(14).split(" ");return{algorithm:r[0].toLowerCase(),value:r[1].toUpperCase()}},t.getDtlsParameters=function(n,r){return{role:"auto",fingerprints:t.matchPrefix(n+r,"a=fingerprint:").map(t.parseFingerprint)}},t.writeDtlsParameters=function(n,r){let i="a=setup:"+r+`\r
|
||
`;return n.fingerprints.forEach(o=>{i+="a=fingerprint:"+o.algorithm+" "+o.value+`\r
|
||
`}),i},t.parseCryptoLine=function(n){const r=n.substring(9).split(" ");return{tag:parseInt(r[0],10),cryptoSuite:r[1],keyParams:r[2],sessionParams:r.slice(3)}},t.writeCryptoLine=function(n){return"a=crypto:"+n.tag+" "+n.cryptoSuite+" "+(typeof n.keyParams=="object"?t.writeCryptoKeyParams(n.keyParams):n.keyParams)+(n.sessionParams?" "+n.sessionParams.join(" "):"")+`\r
|
||
`},t.parseCryptoKeyParams=function(n){if(n.indexOf("inline:")!==0)return null;const r=n.substring(7).split("|");return{keyMethod:"inline",keySalt:r[0],lifeTime:r[1],mkiValue:r[2]?r[2].split(":")[0]:void 0,mkiLength:r[2]?r[2].split(":")[1]:void 0}},t.writeCryptoKeyParams=function(n){return n.keyMethod+":"+n.keySalt+(n.lifeTime?"|"+n.lifeTime:"")+(n.mkiValue&&n.mkiLength?"|"+n.mkiValue+":"+n.mkiLength:"")},t.getCryptoParameters=function(n,r){return t.matchPrefix(n+r,"a=crypto:").map(t.parseCryptoLine)},t.getIceParameters=function(n,r){const i=t.matchPrefix(n+r,"a=ice-ufrag:")[0],o=t.matchPrefix(n+r,"a=ice-pwd:")[0];return i&&o?{usernameFragment:i.substring(12),password:o.substring(10)}:null},t.writeIceParameters=function(n){let r="a=ice-ufrag:"+n.usernameFragment+`\r
|
||
a=ice-pwd:`+n.password+`\r
|
||
`;return n.iceLite&&(r+=`a=ice-lite\r
|
||
`),r},t.parseRtpParameters=function(n){const r={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},o=t.splitLines(n)[0].split(" ");r.profile=o[2];for(let s=3;s<o.length;s++){const l=o[s],c=t.matchPrefix(n,"a=rtpmap:"+l+" ")[0];if(c){const u=t.parseRtpMap(c),d=t.matchPrefix(n,"a=fmtp:"+l+" ");switch(u.parameters=d.length?t.parseFmtp(d[0]):{},u.rtcpFeedback=t.matchPrefix(n,"a=rtcp-fb:"+l+" ").map(t.parseRtcpFb),r.codecs.push(u),u.name.toUpperCase()){case"RED":case"ULPFEC":r.fecMechanisms.push(u.name.toUpperCase());break}}}t.matchPrefix(n,"a=extmap:").forEach(s=>{r.headerExtensions.push(t.parseExtmap(s))});const a=t.matchPrefix(n,"a=rtcp-fb:* ").map(t.parseRtcpFb);return r.codecs.forEach(s=>{a.forEach(l=>{s.rtcpFeedback.find(u=>u.type===l.type&&u.parameter===l.parameter)||s.rtcpFeedback.push(l)})}),r},t.writeRtpDescription=function(n,r){let i="";i+="m="+n+" ",i+=r.codecs.length>0?"9":"0",i+=" "+(r.profile||"UDP/TLS/RTP/SAVPF")+" ",i+=r.codecs.map(a=>a.preferredPayloadType!==void 0?a.preferredPayloadType:a.payloadType).join(" ")+`\r
|
||
`,i+=`c=IN IP4 0.0.0.0\r
|
||
`,i+=`a=rtcp:9 IN IP4 0.0.0.0\r
|
||
`,r.codecs.forEach(a=>{i+=t.writeRtpMap(a),i+=t.writeFmtp(a),i+=t.writeRtcpFb(a)});let o=0;return r.codecs.forEach(a=>{a.maxptime>o&&(o=a.maxptime)}),o>0&&(i+="a=maxptime:"+o+`\r
|
||
`),r.headerExtensions&&r.headerExtensions.forEach(a=>{i+=t.writeExtmap(a)}),i},t.parseRtpEncodingParameters=function(n){const r=[],i=t.parseRtpParameters(n),o=i.fecMechanisms.indexOf("RED")!==-1,a=i.fecMechanisms.indexOf("ULPFEC")!==-1,s=t.matchPrefix(n,"a=ssrc:").map(h=>t.parseSsrcMedia(h)).filter(h=>h.attribute==="cname"),l=s.length>0&&s[0].ssrc;let c;const u=t.matchPrefix(n,"a=ssrc-group:FID").map(h=>h.substring(17).split(" ").map(m=>parseInt(m,10)));u.length>0&&u[0].length>1&&u[0][0]===l&&(c=u[0][1]),i.codecs.forEach(h=>{if(h.name.toUpperCase()==="RTX"&&h.parameters.apt){let p={ssrc:l,codecPayloadType:parseInt(h.parameters.apt,10)};l&&c&&(p.rtx={ssrc:c}),r.push(p),o&&(p=JSON.parse(JSON.stringify(p)),p.fec={ssrc:l,mechanism:a?"red+ulpfec":"red"},r.push(p))}}),r.length===0&&l&&r.push({ssrc:l});let d=t.matchPrefix(n,"b=");return d.length&&(d[0].indexOf("b=TIAS:")===0?d=parseInt(d[0].substring(7),10):d[0].indexOf("b=AS:")===0?d=parseInt(d[0].substring(5),10)*1e3*.95-50*40*8:d=void 0,r.forEach(h=>{h.maxBitrate=d})),r},t.parseRtcpParameters=function(n){const r={},i=t.matchPrefix(n,"a=ssrc:").map(s=>t.parseSsrcMedia(s)).filter(s=>s.attribute==="cname")[0];i&&(r.cname=i.value,r.ssrc=i.ssrc);const o=t.matchPrefix(n,"a=rtcp-rsize");r.reducedSize=o.length>0,r.compound=o.length===0;const a=t.matchPrefix(n,"a=rtcp-mux");return r.mux=a.length>0,r},t.writeRtcpParameters=function(n){let r="";return n.reducedSize&&(r+=`a=rtcp-rsize\r
|
||
`),n.mux&&(r+=`a=rtcp-mux\r
|
||
`),n.ssrc!==void 0&&n.cname&&(r+="a=ssrc:"+n.ssrc+" cname:"+n.cname+`\r
|
||
`),r},t.parseMsid=function(n){let r;const i=t.matchPrefix(n,"a=msid:");if(i.length===1)return r=i[0].substring(7).split(" "),{stream:r[0],track:r[1]};const o=t.matchPrefix(n,"a=ssrc:").map(a=>t.parseSsrcMedia(a)).filter(a=>a.attribute==="msid");if(o.length>0)return r=o[0].value.split(" "),{stream:r[0],track:r[1]}},t.parseSctpDescription=function(n){const r=t.parseMLine(n),i=t.matchPrefix(n,"a=max-message-size:");let o;i.length>0&&(o=parseInt(i[0].substring(19),10)),isNaN(o)&&(o=65536);const a=t.matchPrefix(n,"a=sctp-port:");if(a.length>0)return{port:parseInt(a[0].substring(12),10),protocol:r.fmt,maxMessageSize:o};const s=t.matchPrefix(n,"a=sctpmap:");if(s.length>0){const l=s[0].substring(10).split(" ");return{port:parseInt(l[0],10),protocol:l[1],maxMessageSize:o}}},t.writeSctpDescription=function(n,r){let i=[];return n.protocol!=="DTLS/SCTP"?i=["m="+n.kind+" 9 "+n.protocol+" "+r.protocol+`\r
|
||
`,`c=IN IP4 0.0.0.0\r
|
||
`,"a=sctp-port:"+r.port+`\r
|
||
`]:i=["m="+n.kind+" 9 "+n.protocol+" "+r.port+`\r
|
||
`,`c=IN IP4 0.0.0.0\r
|
||
`,"a=sctpmap:"+r.port+" "+r.protocol+` 65535\r
|
||
`],r.maxMessageSize!==void 0&&i.push("a=max-message-size:"+r.maxMessageSize+`\r
|
||
`),i.join("")},t.generateSessionId=function(){return Math.random().toString().substr(2,22)},t.writeSessionBoilerplate=function(n,r,i){let o;const a=r!==void 0?r:2;return n?o=n:o=t.generateSessionId(),`v=0\r
|
||
o=`+(i||"thisisadapterortc")+" "+o+" "+a+` IN IP4 127.0.0.1\r
|
||
s=-\r
|
||
t=0 0\r
|
||
`},t.getDirection=function(n,r){const i=t.splitLines(n);for(let o=0;o<i.length;o++)switch(i[o]){case"a=sendrecv":case"a=sendonly":case"a=recvonly":case"a=inactive":return i[o].substring(2)}return r?t.getDirection(r):"sendrecv"},t.getKind=function(n){return t.splitLines(n)[0].split(" ")[0].substring(2)},t.isRejected=function(n){return n.split(" ",2)[1]==="0"},t.parseMLine=function(n){const i=t.splitLines(n)[0].substring(2).split(" ");return{kind:i[0],port:parseInt(i[1],10),protocol:i[2],fmt:i.slice(3).join(" ")}},t.parseOLine=function(n){const i=t.matchPrefix(n,"o=")[0].substring(2).split(" ");return{username:i[0],sessionId:i[1],sessionVersion:parseInt(i[2],10),netType:i[3],addressType:i[4],address:i[5]}},t.isValidSDP=function(n){if(typeof n!="string"||n.length===0)return!1;const r=t.splitLines(n);for(let i=0;i<r.length;i++)if(r[i].length<2||r[i].charAt(1)!=="=")return!1;return!0},e.exports=t})(LTe);var FTe=LTe.exports;const yb=hi(FTe),AKt=Qk({__proto__:null,default:yb},[FTe]);function l8(e){if(!e.RTCIceCandidate||e.RTCIceCandidate&&"foundation"in e.RTCIceCandidate.prototype)return;const t=e.RTCIceCandidate;e.RTCIceCandidate=function(r){if(typeof r=="object"&&r.candidate&&r.candidate.indexOf("a=")===0&&(r=JSON.parse(JSON.stringify(r)),r.candidate=r.candidate.substring(2)),r.candidate&&r.candidate.length){const i=new t(r),o=yb.parseCandidate(r.candidate);for(const a in o)a in i||Object.defineProperty(i,a,{value:o[a]});return i.toJSON=function(){return{candidate:i.candidate,sdpMid:i.sdpMid,sdpMLineIndex:i.sdpMLineIndex,usernameFragment:i.usernameFragment}},i}return new t(r)},e.RTCIceCandidate.prototype=t.prototype,l0(e,"icecandidate",n=>(n.candidate&&Object.defineProperty(n,"candidate",{value:new e.RTCIceCandidate(n.candidate),writable:"false"}),n))}function JB(e){!e.RTCIceCandidate||e.RTCIceCandidate&&"relayProtocol"in e.RTCIceCandidate.prototype||l0(e,"icecandidate",t=>{if(t.candidate){const n=yb.parseCandidate(t.candidate.candidate);n.type==="relay"&&(t.candidate.relayProtocol={0:"tls",1:"tcp",2:"udp"}[n.priority>>24])}return t})}function c8(e,t){if(!e.RTCPeerConnection)return;"sctp"in e.RTCPeerConnection.prototype||Object.defineProperty(e.RTCPeerConnection.prototype,"sctp",{get(){return typeof this._sctp>"u"?null:this._sctp}});const n=function(s){if(!s||!s.sdp)return!1;const l=yb.splitSections(s.sdp);return l.shift(),l.some(c=>{const u=yb.parseMLine(c);return u&&u.kind==="application"&&u.protocol.indexOf("SCTP")!==-1})},r=function(s){const l=s.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);if(l===null||l.length<2)return-1;const c=parseInt(l[1],10);return c!==c?-1:c},i=function(s){let l=65536;return t.browser==="firefox"&&(t.version<57?s===-1?l=16384:l=2147483637:t.version<60?l=t.version===57?65535:65536:l=2147483637),l},o=function(s,l){let c=65536;t.browser==="firefox"&&t.version===57&&(c=65535);const u=yb.matchPrefix(s.sdp,"a=max-message-size:");return u.length>0?c=parseInt(u[0].substring(19),10):t.browser==="firefox"&&l!==-1&&(c=2147483637),c},a=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){if(this._sctp=null,t.browser==="chrome"&&t.version>=76){const{sdpSemantics:l}=this.getConfiguration();l==="plan-b"&&Object.defineProperty(this,"sctp",{get(){return typeof this._sctp>"u"?null:this._sctp},enumerable:!0,configurable:!0})}if(n(arguments[0])){const l=r(arguments[0]),c=i(l),u=o(arguments[0],l);let d;c===0&&u===0?d=Number.POSITIVE_INFINITY:c===0||u===0?d=Math.max(c,u):d=Math.min(c,u);const h={};Object.defineProperty(h,"maxMessageSize",{get(){return d}}),this._sctp=h}return a.apply(this,arguments)}}function u8(e){if(!(e.RTCPeerConnection&&"createDataChannel"in e.RTCPeerConnection.prototype))return;function t(r,i){const o=r.send;r.send=function(){const s=arguments[0],l=s.length||s.size||s.byteLength;if(r.readyState==="open"&&i.sctp&&l>i.sctp.maxMessageSize)throw new TypeError("Message too large (can send a maximum of "+i.sctp.maxMessageSize+" bytes)");return o.apply(r,arguments)}}const n=e.RTCPeerConnection.prototype.createDataChannel;e.RTCPeerConnection.prototype.createDataChannel=function(){const i=n.apply(this,arguments);return t(i,this),i},l0(e,"datachannel",r=>(t(r.channel,r.target),r))}function eH(e){if(!e.RTCPeerConnection||"connectionState"in e.RTCPeerConnection.prototype)return;const t=e.RTCPeerConnection.prototype;Object.defineProperty(t,"connectionState",{get(){return{completed:"connected",checking:"connecting"}[this.iceConnectionState]||this.iceConnectionState},enumerable:!0,configurable:!0}),Object.defineProperty(t,"onconnectionstatechange",{get(){return this._onconnectionstatechange||null},set(n){this._onconnectionstatechange&&(this.removeEventListener("connectionstatechange",this._onconnectionstatechange),delete this._onconnectionstatechange),n&&this.addEventListener("connectionstatechange",this._onconnectionstatechange=n)},enumerable:!0,configurable:!0}),["setLocalDescription","setRemoteDescription"].forEach(n=>{const r=t[n];t[n]=function(){return this._connectionstatechangepoly||(this._connectionstatechangepoly=i=>{const o=i.target;if(o._lastConnectionState!==o.connectionState){o._lastConnectionState=o.connectionState;const a=new Event("connectionstatechange",i);o.dispatchEvent(a)}return i},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),r.apply(this,arguments)}})}function tH(e,t){if(!e.RTCPeerConnection||t.browser==="chrome"&&t.version>=71||t.browser==="safari"&&t.version>=605)return;const n=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(i){if(i&&i.sdp&&i.sdp.indexOf(`
|
||
a=extmap-allow-mixed`)!==-1){const o=i.sdp.split(`
|
||
`).filter(a=>a.trim()!=="a=extmap-allow-mixed").join(`
|
||
`);e.RTCSessionDescription&&i instanceof e.RTCSessionDescription?arguments[0]=new e.RTCSessionDescription({type:i.type,sdp:o}):i.sdp=o}return n.apply(this,arguments)}}function d8(e,t){if(!(e.RTCPeerConnection&&e.RTCPeerConnection.prototype))return;const n=e.RTCPeerConnection.prototype.addIceCandidate;!n||n.length===0||(e.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?(t.browser==="chrome"&&t.version<78||t.browser==="firefox"&&t.version<68||t.browser==="safari")&&arguments[0]&&arguments[0].candidate===""?Promise.resolve():n.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())})}function f8(e,t){if(!(e.RTCPeerConnection&&e.RTCPeerConnection.prototype))return;const n=e.RTCPeerConnection.prototype.setLocalDescription;!n||n.length===0||(e.RTCPeerConnection.prototype.setLocalDescription=function(){let i=arguments[0]||{};if(typeof i!="object"||i.type&&i.sdp)return n.apply(this,arguments);if(i={type:i.type,sdp:i.sdp},!i.type)switch(this.signalingState){case"stable":case"have-local-offer":case"have-remote-pranswer":i.type="offer";break;default:i.type="answer";break}return i.sdp||i.type!=="offer"&&i.type!=="answer"?n.apply(this,[i]):(i.type==="offer"?this.createOffer:this.createAnswer).apply(this).then(a=>n.apply(this,[a]))})}const NKt=Object.freeze(Object.defineProperty({__proto__:null,removeExtmapAllowMixed:tH,shimAddIceCandidateNullOrEmpty:d8,shimConnectionState:eH,shimMaxMessageSize:c8,shimParameterlessSetLocalDescription:f8,shimRTCIceCandidate:l8,shimRTCIceCandidateRelayProtocol:JB,shimSendThrowTypeError:u8},Symbol.toStringTag,{value:"Module"}));function DKt({window:e}={},t={shimChrome:!0,shimFirefox:!0,shimSafari:!0}){const n=lTe,r=$Kt(e),i={browserDetails:r,commonShim:NKt,extractVersion:s8,disableLog:MKt,disableWarnings:IKt,sdp:AKt};switch(r.browser){case"chrome":if(!Uae||!QB||!t.shimChrome)return n("Chrome shim is not included in this adapter release."),i;if(r.version===null)return n("Chrome shim can not determine version, not shimming."),i;n("adapter.js shimming chrome."),i.browserShim=Uae,d8(e,r),f8(e),uTe(e,r),dTe(e),QB(e,r),fTe(e),gTe(e,r),hTe(e),pTe(e),vTe(e,r),l8(e),JB(e),eH(e),c8(e,r),u8(e),tH(e,r);break;case"firefox":if(!Wae||!ZB||!t.shimFirefox)return n("Firefox shim is not included in this adapter release."),i;n("adapter.js shimming firefox."),i.browserShim=Wae,d8(e,r),f8(e),yTe(e,r),ZB(e,r),bTe(e),xTe(e),STe(e),CTe(e),wTe(e),_Te(e),ETe(e),TTe(e),kTe(e),l8(e),eH(e),c8(e,r),u8(e);break;case"safari":if(!Vae||!t.shimSafari)return n("Safari shim is not included in this adapter release."),i;n("adapter.js shimming safari."),i.browserShim=Vae,d8(e,r),f8(e),RTe(e),NTe(e),MTe(e),OTe(e),PTe(e),ATe(e),ITe(e),DTe(e),l8(e),JB(e),c8(e,r),u8(e),tH(e,r);break;default:n("Unsupported browser!");break}return i}const Kae=DKt({window:typeof window>"u"?void 0:window});function c0(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}class jTe{constructor(){this.chunkedMTU=16300,this._dataCount=1,this.chunk=t=>{const n=[],r=t.byteLength,i=Math.ceil(r/this.chunkedMTU);let o=0,a=0;for(;a<r;){const s=Math.min(r,a+this.chunkedMTU),l=t.slice(a,s),c={__peerData:this._dataCount,n:o,data:l,total:i};n.push(c),a=s,o++}return this._dataCount++,n}}}function LKt(e){let t=0;for(const i of e)t+=i.byteLength;const n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.byteLength;return n}const iN=Kae.default||Kae,Jx=new class{isWebRTCSupported(){return typeof RTCPeerConnection<"u"}isBrowserSupported(){const e=this.getBrowser(),t=this.getVersion();return this.supportedBrowsers.includes(e)?e==="chrome"?t>=this.minChromeVersion:e==="firefox"?t>=this.minFirefoxVersion:e==="safari"?!this.isIOS&&t>=this.minSafariVersion:!1:!1}getBrowser(){return iN.browserDetails.browser}getVersion(){return iN.browserDetails.version||0}isUnifiedPlanSupported(){const e=this.getBrowser(),t=iN.browserDetails.version||0;if(e==="chrome"&&t<this.minChromeVersion)return!1;if(e==="firefox"&&t>=this.minFirefoxVersion)return!0;if(!window.RTCRtpTransceiver||!("currentDirection"in RTCRtpTransceiver.prototype))return!1;let n,r=!1;try{n=new RTCPeerConnection,n.addTransceiver("audio"),r=!0}catch{}finally{n&&n.close()}return r}toString(){return`Supports:
|
||
browser:${this.getBrowser()}
|
||
version:${this.getVersion()}
|
||
isIOS:${this.isIOS}
|
||
isWebRTCSupported:${this.isWebRTCSupported()}
|
||
isBrowserSupported:${this.isBrowserSupported()}
|
||
isUnifiedPlanSupported:${this.isUnifiedPlanSupported()}`}constructor(){this.isIOS=typeof navigator<"u"?["iPad","iPhone","iPod"].includes(navigator.platform):!1,this.supportedBrowsers=["firefox","chrome","safari"],this.minFirefoxVersion=59,this.minChromeVersion=72,this.minSafariVersion=605}},FKt=e=>!e||/^[A-Za-z0-9]+(?:[ _-][A-Za-z0-9]+)*$/.test(e),BTe=()=>Math.random().toString(36).slice(2),qae={iceServers:[{urls:"stun:stun.l.google.com:19302"},{urls:["turn:eu-0.turn.peerjs.com:3478","turn:us-0.turn.peerjs.com:3478"],username:"peerjs",credential:"peerjsp"}],sdpSemantics:"unified-plan"};class jKt extends jTe{noop(){}blobToArrayBuffer(t,n){const r=new FileReader;return r.onload=function(i){i.target&&n(i.target.result)},r.readAsArrayBuffer(t),r}binaryStringToArrayBuffer(t){const n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r)&255;return n.buffer}isSecure(){return location.protocol==="https:"}constructor(...t){super(...t),this.CLOUD_HOST="0.peerjs.com",this.CLOUD_PORT=443,this.chunkedBrowsers={Chrome:1,chrome:1},this.defaultConfig=qae,this.browser=Jx.getBrowser(),this.browserVersion=Jx.getVersion(),this.pack=oTe,this.unpack=iTe,this.supports=function(){const n={browser:Jx.isBrowserSupported(),webRTC:Jx.isWebRTCSupported(),audioVideo:!1,data:!1,binaryBlob:!1,reliable:!1};if(!n.webRTC)return n;let r;try{r=new RTCPeerConnection(qae),n.audioVideo=!0;let i;try{i=r.createDataChannel("_PEERJSTEST",{ordered:!0}),n.data=!0,n.reliable=!!i.ordered;try{i.binaryType="blob",n.binaryBlob=!Jx.isIOS}catch{}}catch{}finally{i&&i.close()}}catch{}finally{r&&r.close()}return n}(),this.validateId=FKt,this.randomToken=BTe}}const Dl=new jKt,BKt="PeerJS: ";var Gae;(function(e){e[e.Disabled=0]="Disabled",e[e.Errors=1]="Errors",e[e.Warnings=2]="Warnings",e[e.All=3]="All"})(Gae||(Gae={}));class HKt{get logLevel(){return this._logLevel}set logLevel(t){this._logLevel=t}log(...t){this._logLevel>=3&&this._print(3,...t)}warn(...t){this._logLevel>=2&&this._print(2,...t)}error(...t){this._logLevel>=1&&this._print(1,...t)}setLogFunction(t){this._print=t}_print(t,...n){const r=[BKt,...n];for(const i in r)r[i]instanceof Error&&(r[i]="("+r[i].name+") "+r[i].message);t>=3?console.log(...r):t>=2?console.warn("WARNING",...r):t>=1&&console.error("ERROR",...r)}constructor(){this._logLevel=0}}var lr=new HKt,gq={},zKt=Object.prototype.hasOwnProperty,vl="~";function L_(){}Object.create&&(L_.prototype=Object.create(null),new L_().__proto__||(vl=!1));function UKt(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function HTe(e,t,n,r,i){if(typeof n!="function")throw new TypeError("The listener must be a function");var o=new UKt(n,r||e,i),a=vl?vl+t:t;return e._events[a]?e._events[a].fn?e._events[a]=[e._events[a],o]:e._events[a].push(o):(e._events[a]=o,e._eventsCount++),e}function h8(e,t){--e._eventsCount===0?e._events=new L_:delete e._events[t]}function Ys(){this._events=new L_,this._eventsCount=0}Ys.prototype.eventNames=function(){var t=[],n,r;if(this._eventsCount===0)return t;for(r in n=this._events)zKt.call(n,r)&&t.push(vl?r.slice(1):r);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(n)):t};Ys.prototype.listeners=function(t){var n=vl?vl+t:t,r=this._events[n];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,a=new Array(o);i<o;i++)a[i]=r[i].fn;return a};Ys.prototype.listenerCount=function(t){var n=vl?vl+t:t,r=this._events[n];return r?r.fn?1:r.length:0};Ys.prototype.emit=function(t,n,r,i,o,a){var s=vl?vl+t:t;if(!this._events[s])return!1;var l=this._events[s],c=arguments.length,u,d;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),c){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,n),!0;case 3:return l.fn.call(l.context,n,r),!0;case 4:return l.fn.call(l.context,n,r,i),!0;case 5:return l.fn.call(l.context,n,r,i,o),!0;case 6:return l.fn.call(l.context,n,r,i,o,a),!0}for(d=1,u=new Array(c-1);d<c;d++)u[d-1]=arguments[d];l.fn.apply(l.context,u)}else{var h=l.length,p;for(d=0;d<h;d++)switch(l[d].once&&this.removeListener(t,l[d].fn,void 0,!0),c){case 1:l[d].fn.call(l[d].context);break;case 2:l[d].fn.call(l[d].context,n);break;case 3:l[d].fn.call(l[d].context,n,r);break;case 4:l[d].fn.call(l[d].context,n,r,i);break;default:if(!u)for(p=1,u=new Array(c-1);p<c;p++)u[p-1]=arguments[p];l[d].fn.apply(l[d].context,u)}}return!0};Ys.prototype.on=function(t,n,r){return HTe(this,t,n,r,!1)};Ys.prototype.once=function(t,n,r){return HTe(this,t,n,r,!0)};Ys.prototype.removeListener=function(t,n,r,i){var o=vl?vl+t:t;if(!this._events[o])return this;if(!n)return h8(this,o),this;var a=this._events[o];if(a.fn)a.fn===n&&(!i||a.once)&&(!r||a.context===r)&&h8(this,o);else{for(var s=0,l=[],c=a.length;s<c;s++)(a[s].fn!==n||i&&!a[s].once||r&&a[s].context!==r)&&l.push(a[s]);l.length?this._events[o]=l.length===1?l[0]:l:h8(this,o)}return this};Ys.prototype.removeAllListeners=function(t){var n;return t?(n=vl?vl+t:t,this._events[n]&&h8(this,n)):(this._events=new L_,this._eventsCount=0),this};Ys.prototype.off=Ys.prototype.removeListener;Ys.prototype.addListener=Ys.prototype.on;Ys.prefixed=vl;Ys.EventEmitter=Ys;gq=Ys;var u0={};c0(u0,"ConnectionType",()=>zf);c0(u0,"PeerErrorType",()=>Qo);c0(u0,"BaseConnectionErrorType",()=>F_);c0(u0,"DataConnectionErrorType",()=>j_);c0(u0,"SerializationType",()=>wS);c0(u0,"SocketEventType",()=>Lf);c0(u0,"ServerMessageType",()=>ns);var zf;(function(e){e.Data="data",e.Media="media"})(zf||(zf={}));var Qo;(function(e){e.BrowserIncompatible="browser-incompatible",e.Disconnected="disconnected",e.InvalidID="invalid-id",e.InvalidKey="invalid-key",e.Network="network",e.PeerUnavailable="peer-unavailable",e.SslUnavailable="ssl-unavailable",e.ServerError="server-error",e.SocketError="socket-error",e.SocketClosed="socket-closed",e.UnavailableID="unavailable-id",e.WebRTC="webrtc"})(Qo||(Qo={}));var F_;(function(e){e.NegotiationFailed="negotiation-failed",e.ConnectionClosed="connection-closed"})(F_||(F_={}));var j_;(function(e){e.NotOpenYet="not-open-yet",e.MessageToBig="message-too-big"})(j_||(j_={}));var wS;(function(e){e.Binary="binary",e.BinaryUTF8="binary-utf8",e.JSON="json",e.None="raw"})(wS||(wS={}));var Lf;(function(e){e.Message="message",e.Disconnected="disconnected",e.Error="error",e.Close="close"})(Lf||(Lf={}));var ns;(function(e){e.Heartbeat="HEARTBEAT",e.Candidate="CANDIDATE",e.Offer="OFFER",e.Answer="ANSWER",e.Open="OPEN",e.Error="ERROR",e.IdTaken="ID-TAKEN",e.InvalidKey="INVALID-KEY",e.Leave="LEAVE",e.Expire="EXPIRE"})(ns||(ns={}));var vq={};vq=JSON.parse('{"name":"peerjs","version":"1.5.4","keywords":["peerjs","webrtc","p2p","rtc"],"description":"PeerJS client","homepage":"https://peerjs.com","bugs":{"url":"https://github.com/peers/peerjs/issues"},"repository":{"type":"git","url":"https://github.com/peers/peerjs"},"license":"MIT","contributors":["Michelle Bu <michelle@michellebu.com>","afrokick <devbyru@gmail.com>","ericz <really.ez@gmail.com>","Jairo <kidandcat@gmail.com>","Jonas Gloning <34194370+jonasgloning@users.noreply.github.com>","Jairo Caro-Accino Viciana <jairo@galax.be>","Carlos Caballero <carlos.caballero.gonzalez@gmail.com>","hc <hheennrryy@gmail.com>","Muhammad Asif <capripio@gmail.com>","PrashoonB <prashoonbhattacharjee@gmail.com>","Harsh Bardhan Mishra <47351025+HarshCasper@users.noreply.github.com>","akotynski <aleksanderkotbury@gmail.com>","lmb <i@lmb.io>","Jairooo <jairocaro@msn.com>","Moritz Stückler <moritz.stueckler@gmail.com>","Simon <crydotsnakegithub@gmail.com>","Denis Lukov <denismassters@gmail.com>","Philipp Hancke <fippo@andyet.net>","Hans Oksendahl <hansoksendahl@gmail.com>","Jess <jessachandler@gmail.com>","khankuan <khankuan@gmail.com>","DUODVK <kurmanov.work@gmail.com>","XiZhao <kwang1imsa@gmail.com>","Matthias Lohr <matthias@lohr.me>","=frank tree <=frnktrb@googlemail.com>","Andre Eckardt <aeckardt@outlook.com>","Chris Cowan <agentme49@gmail.com>","Alex Chuev <alex@chuev.com>","alxnull <alxnull@e.mail.de>","Yemel Jardi <angel.jardi@gmail.com>","Ben Parnell <benjaminparnell.94@gmail.com>","Benny Lichtner <bennlich@gmail.com>","fresheneesz <bitetrudpublic@gmail.com>","bob.barstead@exaptive.com <bob.barstead@exaptive.com>","chandika <chandika@gmail.com>","emersion <contact@emersion.fr>","Christopher Van <cvan@users.noreply.github.com>","eddieherm <edhermoso@gmail.com>","Eduardo Pinho <enet4mikeenet@gmail.com>","Evandro Zanatta <ezanatta@tray.net.br>","Gardner Bickford <gardner@users.noreply.github.com>","Gian Luca <gianluca.cecchi@cynny.com>","PatrickJS <github@gdi2290.com>","jonnyf <github@jonathanfoss.co.uk>","Hizkia Felix <hizkifw@gmail.com>","Hristo Oskov <hristo.oskov@gmail.com>","Isaac Madwed <i.madwed@gmail.com>","Ilya Konanykhin <ilya.konanykhin@gmail.com>","jasonbarry <jasbarry@me.com>","Jonathan Burke <jonathan.burke.1311@googlemail.com>","Josh Hamit <josh.hamit@gmail.com>","Jordan Austin <jrax86@gmail.com>","Joel Wetzell <jwetzell@yahoo.com>","xizhao <kevin.wang@cloudera.com>","Alberto Torres <kungfoobar@gmail.com>","Jonathan Mayol <mayoljonathan@gmail.com>","Jefferson Felix <me@jsfelix.dev>","Rolf Erik Lekang <me@rolflekang.com>","Kevin Mai-Husan Chia <mhchia@users.noreply.github.com>","Pepijn de Vos <pepijndevos@gmail.com>","JooYoung <qkdlql@naver.com>","Tobias Speicher <rootcommander@gmail.com>","Steve Blaurock <sblaurock@gmail.com>","Kyrylo Shegeda <shegeda@ualberta.ca>","Diwank Singh Tomer <singh@diwank.name>","Sören Balko <Soeren.Balko@gmail.com>","Arpit Solanki <solankiarpit1997@gmail.com>","Yuki Ito <yuki@gnnk.net>","Artur Zayats <zag2art@gmail.com>"],"funding":{"type":"opencollective","url":"https://opencollective.com/peer"},"collective":{"type":"opencollective","url":"https://opencollective.com/peer"},"files":["dist/*"],"sideEffects":["lib/global.ts","lib/supports.ts"],"main":"dist/bundler.cjs","module":"dist/bundler.mjs","browser-minified":"dist/peerjs.min.js","browser-unminified":"dist/peerjs.js","browser-minified-msgpack":"dist/serializer.msgpack.mjs","types":"dist/types.d.ts","engines":{"node":">= 14"},"targets":{"types":{"source":"lib/exports.ts"},"main":{"source":"lib/exports.ts","sourceMap":{"inlineSources":true}},"module":{"source":"lib/exports.ts","includeNodeModules":["eventemitter3"],"sourceMap":{"inlineSources":true}},"browser-minified":{"context":"browser","outputFormat":"global","optimize":true,"engines":{"browsers":"chrome >= 83, edge >= 83, firefox >= 80, safari >= 15"},"source":"lib/global.ts"},"browser-unminified":{"context":"browser","outputFormat":"global","optimize":false,"engines":{"browsers":"chrome >= 83, edge >= 83, firefox >= 80, safari >= 15"},"source":"lib/global.ts"},"browser-minified-msgpack":{"context":"browser","outputFormat":"esmodule","isLibrary":true,"optimize":true,"engines":{"browsers":"chrome >= 83, edge >= 83, firefox >= 102, safari >= 15"},"source":"lib/dataconnection/StreamConnection/MsgPack.ts"}},"scripts":{"contributors":"git-authors-cli --print=false && prettier --write package.json && git add package.json package-lock.json && git commit -m \\"chore(contributors): update and sort contributors list\\"","check":"tsc --noEmit && tsc -p e2e/tsconfig.json --noEmit","watch":"parcel watch","build":"rm -rf dist && parcel build","prepublishOnly":"npm run build","test":"jest","test:watch":"jest --watch","coverage":"jest --coverage --collectCoverageFrom=\\"./lib/**\\"","format":"prettier --write .","format:check":"prettier --check .","semantic-release":"semantic-release","e2e":"wdio run e2e/wdio.local.conf.ts","e2e:bstack":"wdio run e2e/wdio.bstack.conf.ts"},"devDependencies":{"@parcel/config-default":"^2.9.3","@parcel/packager-ts":"^2.9.3","@parcel/transformer-typescript-tsc":"^2.9.3","@parcel/transformer-typescript-types":"^2.9.3","@semantic-release/changelog":"^6.0.1","@semantic-release/git":"^10.0.1","@swc/core":"^1.3.27","@swc/jest":"^0.2.24","@types/jasmine":"^4.3.4","@wdio/browserstack-service":"^8.11.2","@wdio/cli":"^8.11.2","@wdio/globals":"^8.11.2","@wdio/jasmine-framework":"^8.11.2","@wdio/local-runner":"^8.11.2","@wdio/spec-reporter":"^8.11.2","@wdio/types":"^8.10.4","http-server":"^14.1.1","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","mock-socket":"^9.0.0","parcel":"^2.9.3","prettier":"^3.0.0","semantic-release":"^21.0.0","ts-node":"^10.9.1","typescript":"^5.0.0","wdio-geckodriver-service":"^5.0.1"},"dependencies":{"@msgpack/msgpack":"^2.8.0","eventemitter3":"^4.0.7","peerjs-js-binarypack":"^2.1.0","webrtc-adapter":"^9.0.0"},"alias":{"process":false,"buffer":false}}');class WKt extends gq.EventEmitter{constructor(t,n,r,i,o,a=5e3){super(),this.pingInterval=a,this._disconnected=!0,this._messagesQueue=[];const s=t?"wss://":"ws://";this._baseUrl=s+n+":"+r+i+"peerjs?key="+o}start(t,n){this._id=t;const r=`${this._baseUrl}&id=${t}&token=${n}`;this._socket||!this._disconnected||(this._socket=new WebSocket(r+"&version="+vq.version),this._disconnected=!1,this._socket.onmessage=i=>{let o;try{o=JSON.parse(i.data),lr.log("Server message received:",o)}catch{lr.log("Invalid server message",i.data);return}this.emit(Lf.Message,o)},this._socket.onclose=i=>{this._disconnected||(lr.log("Socket closed.",i),this._cleanup(),this._disconnected=!0,this.emit(Lf.Disconnected))},this._socket.onopen=()=>{this._disconnected||(this._sendQueuedMessages(),lr.log("Socket open"),this._scheduleHeartbeat())})}_scheduleHeartbeat(){this._wsPingTimer=setTimeout(()=>{this._sendHeartbeat()},this.pingInterval)}_sendHeartbeat(){if(!this._wsOpen()){lr.log("Cannot send heartbeat, because socket closed");return}const t=JSON.stringify({type:ns.Heartbeat});this._socket.send(t),this._scheduleHeartbeat()}_wsOpen(){return!!this._socket&&this._socket.readyState===1}_sendQueuedMessages(){const t=[...this._messagesQueue];this._messagesQueue=[];for(const n of t)this.send(n)}send(t){if(this._disconnected)return;if(!this._id){this._messagesQueue.push(t);return}if(!t.type){this.emit(Lf.Error,"Invalid message");return}if(!this._wsOpen())return;const n=JSON.stringify(t);this._socket.send(n)}close(){this._disconnected||(this._cleanup(),this._disconnected=!0)}_cleanup(){this._socket&&(this._socket.onopen=this._socket.onmessage=this._socket.onclose=null,this._socket.close(),this._socket=void 0),clearTimeout(this._wsPingTimer)}}class zTe{constructor(t){this.connection=t}startConnection(t){const n=this._startPeerConnection();if(this.connection.peerConnection=n,this.connection.type===zf.Media&&t._stream&&this._addTracksToConnection(t._stream,n),t.originator){const r=this.connection,i={ordered:!!t.reliable},o=n.createDataChannel(r.label,i);r._initializeDataChannel(o),this._makeOffer()}else this.handleSDP("OFFER",t.sdp)}_startPeerConnection(){lr.log("Creating RTCPeerConnection.");const t=new RTCPeerConnection(this.connection.provider.options.config);return this._setupListeners(t),t}_setupListeners(t){const n=this.connection.peer,r=this.connection.connectionId,i=this.connection.type,o=this.connection.provider;lr.log("Listening for ICE candidates."),t.onicecandidate=a=>{!a.candidate||!a.candidate.candidate||(lr.log(`Received ICE candidates for ${n}:`,a.candidate),o.socket.send({type:ns.Candidate,payload:{candidate:a.candidate,type:i,connectionId:r},dst:n}))},t.oniceconnectionstatechange=()=>{switch(t.iceConnectionState){case"failed":lr.log("iceConnectionState is failed, closing connections to "+n),this.connection.emitError(F_.NegotiationFailed,"Negotiation of connection to "+n+" failed."),this.connection.close();break;case"closed":lr.log("iceConnectionState is closed, closing connections to "+n),this.connection.emitError(F_.ConnectionClosed,"Connection to "+n+" closed."),this.connection.close();break;case"disconnected":lr.log("iceConnectionState changed to disconnected on the connection with "+n);break;case"completed":t.onicecandidate=()=>{};break}this.connection.emit("iceStateChanged",t.iceConnectionState)},lr.log("Listening for data channel"),t.ondatachannel=a=>{lr.log("Received data channel");const s=a.channel;o.getConnection(n,r)._initializeDataChannel(s)},lr.log("Listening for remote stream"),t.ontrack=a=>{lr.log("Received remote stream");const s=a.streams[0],l=o.getConnection(n,r);if(l.type===zf.Media){const c=l;this._addStreamToMediaConnection(s,c)}}}cleanup(){lr.log("Cleaning up PeerConnection to "+this.connection.peer);const t=this.connection.peerConnection;if(!t)return;this.connection.peerConnection=null,t.onicecandidate=t.oniceconnectionstatechange=t.ondatachannel=t.ontrack=()=>{};const n=t.signalingState!=="closed";let r=!1;const i=this.connection.dataChannel;i&&(r=!!i.readyState&&i.readyState!=="closed"),(n||r)&&t.close()}async _makeOffer(){const t=this.connection.peerConnection,n=this.connection.provider;try{const r=await t.createOffer(this.connection.options.constraints);lr.log("Created offer."),this.connection.options.sdpTransform&&typeof this.connection.options.sdpTransform=="function"&&(r.sdp=this.connection.options.sdpTransform(r.sdp)||r.sdp);try{await t.setLocalDescription(r),lr.log("Set localDescription:",r,`for:${this.connection.peer}`);let i={sdp:r,type:this.connection.type,connectionId:this.connection.connectionId,metadata:this.connection.metadata};if(this.connection.type===zf.Data){const o=this.connection;i={...i,label:o.label,reliable:o.reliable,serialization:o.serialization}}n.socket.send({type:ns.Offer,payload:i,dst:this.connection.peer})}catch(i){i!="OperationError: Failed to set local offer sdp: Called in wrong state: kHaveRemoteOffer"&&(n.emitError(Qo.WebRTC,i),lr.log("Failed to setLocalDescription, ",i))}}catch(r){n.emitError(Qo.WebRTC,r),lr.log("Failed to createOffer, ",r)}}async _makeAnswer(){const t=this.connection.peerConnection,n=this.connection.provider;try{const r=await t.createAnswer();lr.log("Created answer."),this.connection.options.sdpTransform&&typeof this.connection.options.sdpTransform=="function"&&(r.sdp=this.connection.options.sdpTransform(r.sdp)||r.sdp);try{await t.setLocalDescription(r),lr.log("Set localDescription:",r,`for:${this.connection.peer}`),n.socket.send({type:ns.Answer,payload:{sdp:r,type:this.connection.type,connectionId:this.connection.connectionId},dst:this.connection.peer})}catch(i){n.emitError(Qo.WebRTC,i),lr.log("Failed to setLocalDescription, ",i)}}catch(r){n.emitError(Qo.WebRTC,r),lr.log("Failed to create answer, ",r)}}async handleSDP(t,n){n=new RTCSessionDescription(n);const r=this.connection.peerConnection,i=this.connection.provider;lr.log("Setting remote description",n);const o=this;try{await r.setRemoteDescription(n),lr.log(`Set remoteDescription:${t} for:${this.connection.peer}`),t==="OFFER"&&await o._makeAnswer()}catch(a){i.emitError(Qo.WebRTC,a),lr.log("Failed to setRemoteDescription, ",a)}}async handleCandidate(t){lr.log("handleCandidate:",t);try{await this.connection.peerConnection.addIceCandidate(t),lr.log(`Added ICE candidate for:${this.connection.peer}`)}catch(n){this.connection.provider.emitError(Qo.WebRTC,n),lr.log("Failed to handleCandidate, ",n)}}_addTracksToConnection(t,n){if(lr.log(`add tracks from stream ${t.id} to peer connection`),!n.addTrack)return lr.error("Your browser does't support RTCPeerConnection#addTrack. Ignored.");t.getTracks().forEach(r=>{n.addTrack(r,t)})}_addStreamToMediaConnection(t,n){lr.log(`add stream ${t.id} to media connection ${n.connectionId}`),n.addStream(t)}}class UTe extends gq.EventEmitter{emitError(t,n){lr.error("Error:",n),this.emit("error",new VKt(`${t}`,n))}}class VKt extends Error{constructor(t,n){typeof n=="string"?super(n):(super(),Object.assign(this,n)),this.type=t}}class WTe extends UTe{get open(){return this._open}constructor(t,n,r){super(),this.peer=t,this.provider=n,this.options=r,this._open=!1,this.metadata=r.metadata}}var kH;const _w=class _w extends WTe{get type(){return zf.Media}get localStream(){return this._localStream}get remoteStream(){return this._remoteStream}constructor(t,n,r){super(t,n,r),this._localStream=this.options._stream,this.connectionId=this.options.connectionId||_w.ID_PREFIX+Dl.randomToken(),this._negotiator=new zTe(this),this._localStream&&this._negotiator.startConnection({_stream:this._localStream,originator:!0})}_initializeDataChannel(t){this.dataChannel=t,this.dataChannel.onopen=()=>{lr.log(`DC#${this.connectionId} dc connection success`),this.emit("willCloseOnRemote")},this.dataChannel.onclose=()=>{lr.log(`DC#${this.connectionId} dc closed for:`,this.peer),this.close()}}addStream(t){lr.log("Receiving stream",t),this._remoteStream=t,super.emit("stream",t)}handleMessage(t){const n=t.type,r=t.payload;switch(t.type){case ns.Answer:this._negotiator.handleSDP(n,r.sdp),this._open=!0;break;case ns.Candidate:this._negotiator.handleCandidate(r.candidate);break;default:lr.warn(`Unrecognized message type:${n} from peer:${this.peer}`);break}}answer(t,n={}){if(this._localStream){lr.warn("Local stream already exists on this MediaConnection. Are you answering a call twice?");return}this._localStream=t,n&&n.sdpTransform&&(this.options.sdpTransform=n.sdpTransform),this._negotiator.startConnection({...this.options._payload,_stream:t});const r=this.provider._getMessages(this.connectionId);for(const i of r)this.handleMessage(i);this._open=!0}close(){this._negotiator&&(this._negotiator.cleanup(),this._negotiator=null),this._localStream=null,this._remoteStream=null,this.provider&&(this.provider._removeConnection(this),this.provider=null),this.options&&this.options._stream&&(this.options._stream=null),this.open&&(this._open=!1,super.emit("close"))}};kH=new WeakMap,ar(_w,kH,_w.ID_PREFIX="mc_");let Nk=_w;class KKt{constructor(t){this._options=t}_buildRequest(t){const n=this._options.secure?"https":"http",{host:r,port:i,path:o,key:a}=this._options,s=new URL(`${n}://${r}:${i}${o}${a}/${t}`);return s.searchParams.set("ts",`${Date.now()}${Math.random()}`),s.searchParams.set("version",vq.version),fetch(s.href,{referrerPolicy:this._options.referrerPolicy})}async retrieveId(){try{const t=await this._buildRequest("id");if(t.status!==200)throw new Error(`Error. Status:${t.status}`);return t.text()}catch(t){lr.error("Error retrieving ID",t);let n="";throw this._options.path==="/"&&this._options.host!==Dl.CLOUD_HOST&&(n=" If you passed in a `path` to your self-hosted PeerServer, you'll also need to pass in that same path when creating a new Peer."),new Error("Could not get an ID from the server."+n)}}async listAllPeers(){try{const t=await this._buildRequest("peers");if(t.status!==200){if(t.status===401){let n="";throw this._options.host===Dl.CLOUD_HOST?n="It looks like you're using the cloud server. You can email team@peerjs.com to enable peer listing for your API key.":n="You need to enable `allow_discovery` on your self-hosted PeerServer to use this feature.",new Error("It doesn't look like you have permission to list peers IDs. "+n)}throw new Error(`Error. Status:${t.status}`)}return t.json()}catch(t){throw lr.error("Error retrieving list peers",t),new Error("Could not get list peers from the server."+t)}}}var OH,PH;const v1=class v1 extends WTe{get type(){return zf.Data}constructor(t,n,r){super(t,n,r),this.connectionId=this.options.connectionId||v1.ID_PREFIX+BTe(),this.label=this.options.label||this.connectionId,this.reliable=!!this.options.reliable,this._negotiator=new zTe(this),this._negotiator.startConnection(this.options._payload||{originator:!0,reliable:this.reliable})}_initializeDataChannel(t){this.dataChannel=t,this.dataChannel.onopen=()=>{lr.log(`DC#${this.connectionId} dc connection success`),this._open=!0,this.emit("open")},this.dataChannel.onmessage=n=>{lr.log(`DC#${this.connectionId} dc onmessage:`,n.data)},this.dataChannel.onclose=()=>{lr.log(`DC#${this.connectionId} dc closed for:`,this.peer),this.close()}}close(t){if(t!=null&&t.flush){this.send({__peerData:{type:"close"}});return}this._negotiator&&(this._negotiator.cleanup(),this._negotiator=null),this.provider&&(this.provider._removeConnection(this),this.provider=null),this.dataChannel&&(this.dataChannel.onopen=null,this.dataChannel.onmessage=null,this.dataChannel.onclose=null,this.dataChannel=null),this.open&&(this._open=!1,super.emit("close"))}send(t,n=!1){if(!this.open){this.emitError(j_.NotOpenYet,"Connection is not open. You should listen for the `open` event before sending messages.");return}return this._send(t,n)}async handleMessage(t){const n=t.payload;switch(t.type){case ns.Answer:await this._negotiator.handleSDP(t.type,n.sdp);break;case ns.Candidate:await this._negotiator.handleCandidate(n.candidate);break;default:lr.warn("Unrecognized message type:",t.type,"from peer:",this.peer);break}}};OH=new WeakMap,PH=new WeakMap,ar(v1,OH,v1.ID_PREFIX="dc_"),ar(v1,PH,v1.MAX_BUFFERED_AMOUNT=8388608);let Dk=v1;class yq extends Dk{get bufferSize(){return this._bufferSize}_initializeDataChannel(t){super._initializeDataChannel(t),this.dataChannel.binaryType="arraybuffer",this.dataChannel.addEventListener("message",n=>this._handleDataMessage(n))}_bufferedSend(t){(this._buffering||!this._trySend(t))&&(this._buffer.push(t),this._bufferSize=this._buffer.length)}_trySend(t){if(!this.open)return!1;if(this.dataChannel.bufferedAmount>Dk.MAX_BUFFERED_AMOUNT)return this._buffering=!0,setTimeout(()=>{this._buffering=!1,this._tryBuffer()},50),!1;try{this.dataChannel.send(t)}catch(n){return lr.error(`DC#:${this.connectionId} Error when sending:`,n),this._buffering=!0,this.close(),!1}return!0}_tryBuffer(){if(!this.open||this._buffer.length===0)return;const t=this._buffer[0];this._trySend(t)&&(this._buffer.shift(),this._bufferSize=this._buffer.length,this._tryBuffer())}close(t){if(t!=null&&t.flush){this.send({__peerData:{type:"close"}});return}this._buffer=[],this._bufferSize=0,super.close()}constructor(...t){super(...t),this._buffer=[],this._bufferSize=0,this._buffering=!1}}class oN extends yq{close(t){super.close(t),this._chunkedData={}}constructor(t,n,r){super(t,n,r),this.chunker=new jTe,this.serialization=wS.Binary,this._chunkedData={}}_handleDataMessage({data:t}){const n=iTe(t),r=n.__peerData;if(r){if(r.type==="close"){this.close();return}this._handleChunk(n);return}this.emit("data",n)}_handleChunk(t){const n=t.__peerData,r=this._chunkedData[n]||{data:[],count:0,total:t.total};if(r.data[t.n]=new Uint8Array(t.data),r.count++,this._chunkedData[n]=r,r.total===r.count){delete this._chunkedData[n];const i=LKt(r.data);this._handleDataMessage({data:i})}}_send(t,n){const r=oTe(t);if(r instanceof Promise)return this._send_blob(r);if(!n&&r.byteLength>this.chunker.chunkedMTU){this._sendChunks(r);return}this._bufferedSend(r)}async _send_blob(t){const n=await t;if(n.byteLength>this.chunker.chunkedMTU){this._sendChunks(n);return}this._bufferedSend(n)}_sendChunks(t){const n=this.chunker.chunk(t);lr.log(`DC#${this.connectionId} Try to send ${n.length} chunks...`);for(const r of n)this.send(r,!0)}}class qKt extends yq{_handleDataMessage({data:t}){super.emit("data",t)}_send(t,n){this._bufferedSend(t)}constructor(...t){super(...t),this.serialization=wS.None}}class GKt extends yq{_handleDataMessage({data:t}){const n=this.parse(this.decoder.decode(t)),r=n.__peerData;if(r&&r.type==="close"){this.close();return}this.emit("data",n)}_send(t,n){const r=this.encoder.encode(this.stringify(t));if(r.byteLength>=Dl.chunkedMTU){this.emitError(j_.MessageToBig,"Message too big for JSON channel");return}this._bufferedSend(r)}constructor(...t){super(...t),this.serialization=wS.JSON,this.encoder=new TextEncoder,this.decoder=new TextDecoder,this.stringify=JSON.stringify,this.parse=JSON.parse}}var MH;const Ew=class Ew extends UTe{get id(){return this._id}get options(){return this._options}get open(){return this._open}get socket(){return this._socket}get connections(){const t=Object.create(null);for(const[n,r]of this._connections)t[n]=r;return t}get destroyed(){return this._destroyed}get disconnected(){return this._disconnected}constructor(t,n){super(),this._serializers={raw:qKt,json:GKt,binary:oN,"binary-utf8":oN,default:oN},this._id=null,this._lastServerId=null,this._destroyed=!1,this._disconnected=!1,this._open=!1,this._connections=new Map,this._lostMessages=new Map;let r;if(t&&t.constructor==Object?n=t:t&&(r=t.toString()),n={debug:0,host:Dl.CLOUD_HOST,port:Dl.CLOUD_PORT,path:"/",key:Ew.DEFAULT_KEY,token:Dl.randomToken(),config:Dl.defaultConfig,referrerPolicy:"strict-origin-when-cross-origin",serializers:{},...n},this._options=n,this._serializers={...this._serializers,...this.options.serializers},this._options.host==="/"&&(this._options.host=window.location.hostname),this._options.path&&(this._options.path[0]!=="/"&&(this._options.path="/"+this._options.path),this._options.path[this._options.path.length-1]!=="/"&&(this._options.path+="/")),this._options.secure===void 0&&this._options.host!==Dl.CLOUD_HOST?this._options.secure=Dl.isSecure():this._options.host==Dl.CLOUD_HOST&&(this._options.secure=!0),this._options.logFunction&&lr.setLogFunction(this._options.logFunction),lr.logLevel=this._options.debug||0,this._api=new KKt(n),this._socket=this._createServerConnection(),!Dl.supports.audioVideo&&!Dl.supports.data){this._delayedAbort(Qo.BrowserIncompatible,"The current browser does not support WebRTC");return}if(r&&!Dl.validateId(r)){this._delayedAbort(Qo.InvalidID,`ID "${r}" is invalid`);return}r?this._initialize(r):this._api.retrieveId().then(i=>this._initialize(i)).catch(i=>this._abort(Qo.ServerError,i))}_createServerConnection(){const t=new WKt(this._options.secure,this._options.host,this._options.port,this._options.path,this._options.key,this._options.pingInterval);return t.on(Lf.Message,n=>{this._handleMessage(n)}),t.on(Lf.Error,n=>{this._abort(Qo.SocketError,n)}),t.on(Lf.Disconnected,()=>{this.disconnected||(this.emitError(Qo.Network,"Lost connection to server."),this.disconnect())}),t.on(Lf.Close,()=>{this.disconnected||this._abort(Qo.SocketClosed,"Underlying socket is already closed.")}),t}_initialize(t){this._id=t,this.socket.start(t,this._options.token)}_handleMessage(t){const n=t.type,r=t.payload,i=t.src;switch(n){case ns.Open:this._lastServerId=this.id,this._open=!0,this.emit("open",this.id);break;case ns.Error:this._abort(Qo.ServerError,r.msg);break;case ns.IdTaken:this._abort(Qo.UnavailableID,`ID "${this.id}" is taken`);break;case ns.InvalidKey:this._abort(Qo.InvalidKey,`API KEY "${this._options.key}" is invalid`);break;case ns.Leave:lr.log(`Received leave message from ${i}`),this._cleanupPeer(i),this._connections.delete(i);break;case ns.Expire:this.emitError(Qo.PeerUnavailable,`Could not connect to peer ${i}`);break;case ns.Offer:{const o=r.connectionId;let a=this.getConnection(i,o);if(a&&(a.close(),lr.warn(`Offer received for existing Connection ID:${o}`)),r.type===zf.Media){const l=new Nk(i,this,{connectionId:o,_payload:r,metadata:r.metadata});a=l,this._addConnection(i,a),this.emit("call",l)}else if(r.type===zf.Data){const l=new this._serializers[r.serialization](i,this,{connectionId:o,_payload:r,metadata:r.metadata,label:r.label,serialization:r.serialization,reliable:r.reliable});a=l,this._addConnection(i,a),this.emit("connection",l)}else{lr.warn(`Received malformed connection type:${r.type}`);return}const s=this._getMessages(o);for(const l of s)a.handleMessage(l);break}default:{if(!r){lr.warn(`You received a malformed message from ${i} of type ${n}`);return}const o=r.connectionId,a=this.getConnection(i,o);a&&a.peerConnection?a.handleMessage(t):o?this._storeMessage(o,t):lr.warn("You received an unrecognized message:",t);break}}}_storeMessage(t,n){this._lostMessages.has(t)||this._lostMessages.set(t,[]),this._lostMessages.get(t).push(n)}_getMessages(t){const n=this._lostMessages.get(t);return n?(this._lostMessages.delete(t),n):[]}connect(t,n={}){if(n={serialization:"default",...n},this.disconnected){lr.warn("You cannot connect to a new Peer because you called .disconnect() on this Peer and ended your connection with the server. You can create a new Peer to reconnect, or call reconnect on this peer if you believe its ID to still be available."),this.emitError(Qo.Disconnected,"Cannot connect to new Peer after disconnecting from server.");return}const r=new this._serializers[n.serialization](t,this,n);return this._addConnection(t,r),r}call(t,n,r={}){if(this.disconnected){lr.warn("You cannot connect to a new Peer because you called .disconnect() on this Peer and ended your connection with the server. You can create a new Peer to reconnect."),this.emitError(Qo.Disconnected,"Cannot connect to new Peer after disconnecting from server.");return}if(!n){lr.error("To call a peer, you must provide a stream from your browser's `getUserMedia`.");return}const i=new Nk(t,this,{...r,_stream:n});return this._addConnection(t,i),i}_addConnection(t,n){lr.log(`add connection ${n.type}:${n.connectionId} to peerId:${t}`),this._connections.has(t)||this._connections.set(t,[]),this._connections.get(t).push(n)}_removeConnection(t){const n=this._connections.get(t.peer);if(n){const r=n.indexOf(t);r!==-1&&n.splice(r,1)}this._lostMessages.delete(t.connectionId)}getConnection(t,n){const r=this._connections.get(t);if(!r)return null;for(const i of r)if(i.connectionId===n)return i;return null}_delayedAbort(t,n){setTimeout(()=>{this._abort(t,n)},0)}_abort(t,n){lr.error("Aborting!"),this.emitError(t,n),this._lastServerId?this.disconnect():this.destroy()}destroy(){this.destroyed||(lr.log(`Destroy peer with ID:${this.id}`),this.disconnect(),this._cleanup(),this._destroyed=!0,this.emit("close"))}_cleanup(){for(const t of this._connections.keys())this._cleanupPeer(t),this._connections.delete(t);this.socket.removeAllListeners()}_cleanupPeer(t){const n=this._connections.get(t);if(n)for(const r of n)r.close()}disconnect(){if(this.disconnected)return;const t=this.id;lr.log(`Disconnect peer with ID:${t}`),this._disconnected=!0,this._open=!1,this.socket.close(),this._lastServerId=t,this._id=null,this.emit("disconnected",t)}reconnect(){if(this.disconnected&&!this.destroyed)lr.log(`Attempting reconnection to server with ID ${this._lastServerId}`),this._disconnected=!1,this._initialize(this._lastServerId);else{if(this.destroyed)throw new Error("This peer cannot reconnect to the server. It has already been destroyed.");if(!this.disconnected&&!this.open)lr.error("In a hurry? We're still trying to make the initial connection!");else throw new Error(`Peer ${this.id} cannot reconnect because it is not disconnected from the server!`)}}listAllPeers(t=n=>{}){this._api.listAllPeers().then(n=>t(n)).catch(n=>this._abort(Qo.ServerError,n))}};MH=new WeakMap,ar(Ew,MH,Ew.DEFAULT_KEY="peerjs");let nH=Ew,YKt="127.0.0.1",XKt=9e3,QKt="/";function ZKt(){console.log("usePeer");const e=qa(a=>a.userInfo);let t=null,n=null;const r=a=>{n=t.connect(a),n.on("open",()=>{console.log("Connected to peer with ID:",a),n.send("hi!")})},i=a=>{n?(console.log("sending message:",a),n.send(a)):console.error("no connection to send message")},o=a=>{navigator.mediaDevices.getUserMedia({audio:!0,video:!0}).then(s=>{t.call(a,s).on("stream",c=>{})}).catch(s=>{console.error("Failed to get local stream",s)})};return f.useEffect(()=>{const a=new nH(e.uid,{host:YKt,port:XKt,path:QKt});console.log("Starting self peer with ID:",e.uid),a.on("open",function(){console.log("self peer opened!")}),a.on("connection",s=>{s.on("data",l=>{console.log("connection data:",l)}),s.on("open",()=>{s.send("connection data open!")})}),a.on("call",s=>{navigator.mediaDevices.getUserMedia({audio:!0,video:!0}).then(l=>{s.answer(l),s.on("stream",c=>{})}).catch(l=>{console.error("Failed to get local stream",l)})})},[e]),{peer:t,connectOtherPeer:r,sendMessage:i,callOtherPeer:o}}const JKt=()=>{const e=io(),[t,n]=f.useState("/chat"),r=ss(),{isLoggedIn:i,mode:o}=f.useContext(qs),{footerStyle:a}=b4(),[s,l]=f.useState(!1),c=Sd(p=>p.threads);f.useEffect(()=>{const p=c.some(m=>m.unreadCount>0);l(p)},[c]);const u=[{path:"/anonymous/home",name:e.formatMessage({id:"menu.dashboard.chat"}),icon:U.jsx(lwe,{}),component:U.jsx(YB,{})}],[d,h]=f.useState(u);return O4e(),k4e(),EKt(),ZKt(),DK(),f.useEffect(()=>{h(u)},[o]),f.useEffect(()=>(i&&r("/chat"),()=>{console.log("un - useEffect")}),[i]),U.jsxs(iEe,{collapsed:!0,collapsedButtonRender:!1,layout:"side",style:{height:"100vh"},route:{routes:d},location:{pathname:t},menu:{type:"group",collapsedShowTitle:!0},avatarProps:null,actionsRender:p=>p.isMobile?[]:[U.jsx(cwe,{onClick:pxe},"QuestionCircleFilled")],menuHeaderRender:()=>U.jsx(T4e,{}),menuFooterRender:p=>{p!=null&&p.collapsed},onMenuHeaderClick:p=>{console.log("onMenuHeaderClick",p)},menuItemRender:(p,m)=>U.jsx(U.Fragment,{children:U.jsxs("a",{onClick:()=>{n(p.path),r(p.path)},children:[s&&U.jsxs(U.Fragment,{children:[p.path==="/anonymous/home"&&U.jsx(Al,{size:"small",dot:s,offset:[-5,5],children:m}),p.path!=="/anonymous/home"&&m]}),!s&&U.jsx(U.Fragment,{children:m})]})}),children:[U.jsx(GM,{children:U.jsx(NP,{})}),U.jsx(YM,{style:a,children:U.jsx(E4e,{})}),U.jsx("audio",{id:"audioPlay",src:"soundUrl",hidden:!0})]})},{Sider:eqt,Content:tqt}=xo,nqt=()=>{const{leftSiderStyle:e,leftSiderWidth:t,headerStyle:n,contentStyle:r}=b4();return U.jsx(U.Fragment,{children:U.jsxs(xo,{children:[U.jsx(eqt,{style:e,width:t}),U.jsxs(xo,{children:[U.jsx(Z9,{style:n,children:"setting"}),U.jsx(tqt,{style:r,children:"setting"})]})]})})},Yae={opensource:{color:"#1890ff",gradient:"linear-gradient(135deg, #1890ff 0%, #096dd9 100%)"},commercial:{color:"#52c41a",gradient:"linear-gradient(135deg, #52c41a 0%, #389e0d 100%)"},help:{color:"#722ed1",gradient:"linear-gradient(135deg, #722ed1 0%, #531dab 100%)"},paid:{color:"#f5222d",gradient:"linear-gradient(135deg, #f5222d 0%, #cf1322 100%)"}},rqt=gi(Zv)`
|
||
cursor: pointer;
|
||
transition: all 0.3s;
|
||
|
||
&:hover {
|
||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
||
}
|
||
`,iqt=gi.div`
|
||
height: 160px;
|
||
background: ${e=>{var t;return e.bgImage?`url(${e.bgImage})`:((t=Yae[e.type])==null?void 0:t.gradient)||Yae.opensource.gradient}};
|
||
background-size: cover;
|
||
background-position: center;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
color: white;
|
||
font-size: 24px;
|
||
position: relative;
|
||
border-radius: 8px 8px 0 0;
|
||
overflow: hidden;
|
||
|
||
&::before {
|
||
content: "";
|
||
position: absolute;
|
||
top: 0;
|
||
left: 0;
|
||
right: 0;
|
||
bottom: 0;
|
||
background: rgba(0, 0, 0, 0.2);
|
||
}
|
||
|
||
& > div {
|
||
position: relative;
|
||
z-index: 1;
|
||
}
|
||
`,oqt=gi.div`
|
||
position: absolute;
|
||
top: 8px;
|
||
right: 8px;
|
||
font-size: 20px;
|
||
color: #fff;
|
||
cursor: pointer;
|
||
|
||
&:hover {
|
||
transform: scale(1.1);
|
||
}
|
||
`,aqt=gi.div`
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
margin-top: 8px;
|
||
color: #8c8c8c;
|
||
font-size: 12px;
|
||
`,sqt=gi.div`
|
||
display: flex;
|
||
gap: 12px;
|
||
`,Xae=gi.span`
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 4px;
|
||
`,lqt=gi(TP)`
|
||
position: absolute;
|
||
top: 8px;
|
||
left: 8px;
|
||
`,cqt=({space:e,onClick:t})=>{const n=e.type==="public"?"opensource":"paid";return U.jsxs(rqt,{hoverable:!0,onClick:t,children:[U.jsxs(iqt,{bgImage:e.coverImage,type:n,children:[U.jsx(lqt,{color:e.type==="public"?"blue":"red",children:e.type==="public"?"公开":"私有"}),U.jsx("div",{children:e.name}),U.jsx(oqt,{onClick:r=>{r.stopPropagation()},children:e.starred?U.jsx(O_,{}):U.jsx(P_,{})})]}),U.jsx(Zv.Meta,{title:e.name,description:e.description}),U.jsxs(aqt,{children:[U.jsxs(sqt,{children:[U.jsx(ta,{title:"成员数",children:U.jsxs(Xae,{children:[U.jsx(AV,{})," ",e.memberCount]})}),U.jsx(ta,{title:"文档数",children:U.jsxs(Xae,{children:[U.jsx(swe,{})," ",e.documentCount]})})]}),U.jsx(hr,{type:"text",icon:e.starred?U.jsx(O_,{}):U.jsx(P_,{}),onClick:r=>{r.stopPropagation()}})]})]})},uqt=({visible:e,onCancel:t,onOk:n})=>{const[r]=Or.useForm(),[i,o]=ge.useState(!1),[a,s]=ge.useState([]),l=async()=>{var c,u;try{o(!0);const d=await r.validateFields();await n({...d,coverImage:(u=(c=a[0])==null?void 0:c.response)==null?void 0:u.url}),r.resetFields(),s([]),t()}catch(d){console.error("Create space failed:",d),ws.error("创建空间失败")}finally{o(!1)}};return U.jsx(Ia,{title:"创建知识空间",open:e,onCancel:t,onOk:l,confirmLoading:i,children:U.jsxs(Or,{form:r,layout:"vertical",initialValues:{type:"public"},children:[U.jsx(Or.Item,{name:"name",label:"空间名称",rules:[{required:!0,message:"请输入空间名称"}],children:U.jsx($i,{placeholder:"请输入空间名称"})}),U.jsx(Or.Item,{name:"description",label:"空间描述",rules:[{required:!0,message:"请输入空间描述"}],children:U.jsx($i.TextArea,{placeholder:"请输入空间描述",rows:4})}),U.jsx(Or.Item,{name:"type",label:"空间类型",rules:[{required:!0,message:"请选择空间类型"}],children:U.jsxs(ti.Group,{children:[U.jsx(ti,{value:"public",children:"公开空间"}),U.jsx(ti,{value:"private",children:"私有空间"})]})}),U.jsx(Or.Item,{label:"封面图片",extra:"支持 jpg、png 格式,建议尺寸 400x200",children:U.jsx(dC,{listType:"picture-card",maxCount:1,fileList:a,onChange:({fileList:c})=>s(c),action:"/api/upload",accept:"image/*",children:a.length===0&&U.jsxs("div",{children:[U.jsx(XE,{}),U.jsx("div",{style:{marginTop:8},children:"上传图片"})]})})})]})})},dqt=gi.div`
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
margin-bottom: 24px;
|
||
padding: 0 8px;
|
||
`,fqt=gi.div`
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 16px;
|
||
`,hqt=gi(ti.Group)`
|
||
margin-left: 16px;
|
||
`,pqt=gi.div`
|
||
display: flex;
|
||
justify-content: center;
|
||
align-items: center;
|
||
min-height: 200px;
|
||
`,mqt=gi(Zv)`
|
||
margin-bottom: 16px;
|
||
|
||
.ant-card-body {
|
||
padding: 16px;
|
||
}
|
||
|
||
.space-title {
|
||
font-size: 16px;
|
||
font-weight: 500;
|
||
margin-bottom: 8px;
|
||
}
|
||
|
||
.space-description {
|
||
color: rgba(0, 0, 0, 0.45);
|
||
margin-bottom: 16px;
|
||
}
|
||
`,gqt=gi.div`
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
margin-top: 8px;
|
||
color: #8c8c8c;
|
||
font-size: 12px;
|
||
`,vqt=gi.div`
|
||
display: flex;
|
||
gap: 12px;
|
||
`,Qae=gi.span`
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 4px;
|
||
`,Zae=()=>{const{spaces:e,fetchSpaces:t,toggleStarSpace:n}=rI(),[r,i]=ge.useState("grid"),[o,a]=ge.useState(!0),s=ss(),[l,c]=ge.useState(!1);ge.useEffect(()=>{(async()=>{try{await t()}finally{a(!1)}})()},[t]);const u=async h=>{try{console.log("Creating space:",h),ws.success("创建空间成功"),await t()}catch(p){console.error("Create space failed:",p),ws.error("创建空间失败")}},d=h=>{s(`/spaces/${h}`)};return o?U.jsx(pqt,{children:U.jsx(Cl,{size:"large"})}):U.jsxs("div",{children:[U.jsx(dqt,{children:U.jsxs(fqt,{children:[U.jsxs(hqt,{value:r,onChange:h=>i(h.target.value),buttonStyle:"solid",children:[U.jsxs(ti.Button,{value:"grid",children:[U.jsx(iwe,{})," 网格"]}),U.jsxs(ti.Button,{value:"list",children:[U.jsx(owe,{})," 列表"]})]}),U.jsx(hr,{type:"primary",icon:U.jsx(XE,{}),onClick:()=>c(!0),children:"创建空间"})]})}),U.jsx(lj,{grid:r==="grid"?{gutter:16,xs:1,sm:2,md:3,lg:3,xl:4,xxl:4}:void 0,dataSource:e,renderItem:h=>U.jsx(lj.Item,{children:r==="grid"?U.jsx(cqt,{space:h,onClick:()=>d(h.id)}):U.jsxs(mqt,{onClick:()=>d(h.id),children:[U.jsx("div",{className:"space-title",children:h.name}),U.jsx("div",{className:"space-description",children:h.description}),U.jsxs(gqt,{children:[U.jsxs(vqt,{children:[U.jsx(ta,{title:"成员数",children:U.jsxs(Qae,{children:[U.jsx(AV,{})," ",h.memberCount]})}),U.jsx(ta,{title:"文档数",children:U.jsxs(Qae,{children:[U.jsx(swe,{})," ",h.documentCount]})})]}),U.jsxs(ma,{children:[U.jsx(hr,{type:"text",icon:h.starred?U.jsx(O_,{}):U.jsx(P_,{}),onClick:()=>n(h.id)}),U.jsx(hr,{type:"primary",onClick:()=>d(h.id),children:"查看详情"})]})]})]})})}),U.jsx(uqt,{visible:l,onCancel:()=>c(!1),onOk:u})]})},yqt=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,s=a&&(r?document.documentMode||6:+(o||i)[1]),l=!o&&/WebKit\//.test(e),c=l&&/Qt\/\d+\.\d+/.test(e),u=!o&&/Chrome\//.test(e),d=/Opera\//.test(e),h=/Apple Computer/.test(navigator.vendor),p=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),m=/PhantomJS/.test(e),v=h&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),y=/Android/.test(e),S=v||y||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),b=v||/Mac/.test(t),C=/\bCrOS\b/.test(e),_=/win/i.test(t),T=d&&e.match(/Version\/(\d*\.\d*)/);T&&(T=Number(T[1])),T&&T>=15&&(d=!1,l=!0);var x=b&&(c||d&&(T==null||T<12.11)),E=n||a&&s>=9;function k(g){return new RegExp("(^|\\s)"+g+"(?:$|\\s)\\s*")}var M=function(g,w){var $=g.className,I=k(w).exec($);if(I){var L=$.slice(I.index+I[0].length);g.className=$.slice(0,I.index)+(L?I[1]+L:"")}};function P(g){for(var w=g.childNodes.length;w>0;--w)g.removeChild(g.firstChild);return g}function D(g,w){return P(g).appendChild(w)}function R(g,w,$,I){var L=document.createElement(g);if($&&(L.className=$),I&&(L.style.cssText=I),typeof w=="string")L.appendChild(document.createTextNode(w));else if(w)for(var te=0;te<w.length;++te)L.appendChild(w[te]);return L}function A(g,w,$,I){var L=R(g,w,$,I);return L.setAttribute("role","presentation"),L}var H;document.createRange?H=function(g,w,$,I){var L=document.createRange();return L.setEnd(I||g,$),L.setStart(g,w),L}:H=function(g,w,$){var I=document.body.createTextRange();try{I.moveToElementText(g.parentNode)}catch{return I}return I.collapse(!0),I.moveEnd("character",$),I.moveStart("character",w),I};function F(g,w){if(w.nodeType==3&&(w=w.parentNode),g.contains)return g.contains(w);do if(w.nodeType==11&&(w=w.host),w==g)return!0;while(w=w.parentNode)}function z(){var g;try{g=document.activeElement}catch{g=document.body||null}for(;g&&g.shadowRoot&&g.shadowRoot.activeElement;)g=g.shadowRoot.activeElement;return g}function W(g,w){var $=g.className;k(w).test($)||(g.className+=($?" ":"")+w)}function q(g,w){for(var $=g.split(" "),I=0;I<$.length;I++)$[I]&&!k($[I]).test(w)&&(w+=" "+$[I]);return w}var Z=function(g){g.select()};v?Z=function(g){g.selectionStart=0,g.selectionEnd=g.value.length}:a&&(Z=function(g){try{g.select()}catch{}});function N(g){var w=Array.prototype.slice.call(arguments,1);return function(){return g.apply(null,w)}}function B(g,w,$){w||(w={});for(var I in g)g.hasOwnProperty(I)&&($!==!1||!w.hasOwnProperty(I))&&(w[I]=g[I]);return w}function V(g,w,$,I,L){w==null&&(w=g.search(/[^\s\u00a0]/),w==-1&&(w=g.length));for(var te=I||0,de=L||0;;){var Ee=g.indexOf(" ",te);if(Ee<0||Ee>=w)return de+(w-te);de+=Ee-te,de+=$-de%$,te=Ee+1}}var Y=function(){this.id=null,this.f=null,this.time=0,this.handler=N(this.onTimeout,this)};Y.prototype.onTimeout=function(g){g.id=0,g.time<=+new Date?g.f():setTimeout(g.handler,g.time-+new Date)},Y.prototype.set=function(g,w){this.f=w;var $=+new Date+g;(!this.id||$<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,g),this.time=$)};function ie(g,w){for(var $=0;$<g.length;++$)if(g[$]==w)return $;return-1}var ce=50,fe={toString:function(){return"CodeMirror.Pass"}},ee={scroll:!1},ne={origin:"*mouse"},ue={origin:"+move"};function ye(g,w,$){for(var I=0,L=0;;){var te=g.indexOf(" ",I);te==-1&&(te=g.length);var de=te-I;if(te==g.length||L+de>=w)return I+Math.min(de,w-L);if(L+=te-I,L+=$-L%$,I=te+1,L>=w)return I}}var me=[""];function pe(g){for(;me.length<=g;)me.push(he(me)+" ");return me[g]}function he(g){return g[g.length-1]}function _e(g,w){for(var $=[],I=0;I<g.length;I++)$[I]=w(g[I],I);return $}function le(g,w,$){for(var I=0,L=$(w);I<g.length&&$(g[I])<=L;)I++;g.splice(I,0,w)}function xe(){}function we(g,w){var $;return Object.create?$=Object.create(g):(xe.prototype=g,$=new xe),w&&B(w,$),$}var De=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Fe(g){return/\w/.test(g)||g>""&&(g.toUpperCase()!=g.toLowerCase()||De.test(g))}function Ce(g,w){return w?w.source.indexOf("\\w")>-1&&Fe(g)?!0:w.test(g):Fe(g)}function Te(g){for(var w in g)if(g.hasOwnProperty(w)&&g[w])return!1;return!0}var ke=/[\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 Pe(g){return g.charCodeAt(0)>=768&&ke.test(g)}function Ne(g,w,$){for(;($<0?w>0:w<g.length)&&Pe(g.charAt(w));)w+=$;return w}function We(g,w,$){for(var I=w>$?-1:1;;){if(w==$)return w;var L=(w+$)/2,te=I<0?Math.ceil(L):Math.floor(L);if(te==w)return g(te)?w:$;g(te)?$=te:w=te+I}}function Q(g,w,$,I){if(!g)return I(w,$,"ltr",0);for(var L=!1,te=0;te<g.length;++te){var de=g[te];(de.from<$&&de.to>w||w==$&&de.to==w)&&(I(Math.max(de.from,w),Math.min(de.to,$),de.level==1?"rtl":"ltr",te),L=!0)}L||I(w,$,"ltr")}var K=null;function J(g,w,$){var I;K=null;for(var L=0;L<g.length;++L){var te=g[L];if(te.from<w&&te.to>w)return L;te.to==w&&(te.from!=te.to&&$=="before"?I=L:K=L),te.from==w&&(te.from!=te.to&&$!="before"?I=L:K=L)}return I??K}var be=function(){var g="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",w="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function $(Be){return Be<=247?g.charAt(Be):1424<=Be&&Be<=1524?"R":1536<=Be&&Be<=1785?w.charAt(Be-1536):1774<=Be&&Be<=2220?"r":8192<=Be&&Be<=8203?"w":Be==8204?"b":"L"}var I=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,L=/[stwN]/,te=/[LRr]/,de=/[Lb1n]/,Ee=/[1n]/;function Ie(Be,nt,at){this.level=Be,this.from=nt,this.to=at}return function(Be,nt){var at=nt=="ltr"?"L":"R";if(Be.length==0||nt=="ltr"&&!I.test(Be))return!1;for(var Et=Be.length,yt=[],rn=0;rn<Et;++rn)yt.push($(Be.charCodeAt(rn)));for(var dn=0,En=at;dn<Et;++dn){var Bn=yt[dn];Bn=="m"?yt[dn]=En:En=Bn}for(var Un=0,Hn=at;Un<Et;++Un){var Yn=yt[Un];Yn=="1"&&Hn=="r"?yt[Un]="n":te.test(Yn)&&(Hn=Yn,Yn=="r"&&(yt[Un]="R"))}for(var vr=1,pr=yt[0];vr<Et-1;++vr){var Kr=yt[vr];Kr=="+"&&pr=="1"&&yt[vr+1]=="1"?yt[vr]="1":Kr==","&&pr==yt[vr+1]&&(pr=="1"||pr=="n")&&(yt[vr]=pr),pr=Kr}for(var Ki=0;Ki<Et;++Ki){var Da=yt[Ki];if(Da==",")yt[Ki]="N";else if(Da=="%"){var _o=void 0;for(_o=Ki+1;_o<Et&&yt[_o]=="%";++_o);for(var _l=Ki&&yt[Ki-1]=="!"||_o<Et&&yt[_o]=="1"?"1":"N",Js=Ki;Js<_o;++Js)yt[Js]=_l;Ki=_o-1}}for(var oa=0,el=at;oa<Et;++oa){var Qa=yt[oa];el=="L"&&Qa=="1"?yt[oa]="L":te.test(Qa)&&(el=Qa)}for(var Sa=0;Sa<Et;++Sa)if(L.test(yt[Sa])){var aa=void 0;for(aa=Sa+1;aa<Et&&L.test(yt[aa]);++aa);for(var Do=(Sa?yt[Sa-1]:at)=="L",tl=(aa<Et?yt[aa]:at)=="L",z0=Do==tl?Do?"L":"R":at,Kp=Sa;Kp<aa;++Kp)yt[Kp]=z0;Sa=aa-1}for(var fs=[],uf,La=0;La<Et;)if(de.test(yt[La])){var XI=La;for(++La;La<Et&&de.test(yt[La]);++La);fs.push(new Ie(0,XI,La))}else{var gh=La,Lg=fs.length,Fg=nt=="rtl"?1:0;for(++La;La<Et&&yt[La]!="L";++La);for(var Is=gh;Is<La;)if(Ee.test(yt[Is])){gh<Is&&(fs.splice(Lg,0,new Ie(1,gh,Is)),Lg+=Fg);var U0=Is;for(++Is;Is<La&&Ee.test(yt[Is]);++Is);fs.splice(Lg,0,new Ie(2,U0,Is)),Lg+=Fg,gh=Is}else++Is;gh<La&&fs.splice(Lg,0,new Ie(1,gh,La))}return nt=="ltr"&&(fs[0].level==1&&(uf=Be.match(/^\s+/))&&(fs[0].from=uf[0].length,fs.unshift(new Ie(0,0,uf[0].length))),he(fs).level==1&&(uf=Be.match(/\s+$/))&&(he(fs).to-=uf[0].length,fs.push(new Ie(0,Et-uf[0].length,Et)))),nt=="rtl"?fs.reverse():fs}}();function Oe(g,w){var $=g.order;return $==null&&($=g.order=be(g.text,w)),$}var Se=[],Ke=function(g,w,$){if(g.addEventListener)g.addEventListener(w,$,!1);else if(g.attachEvent)g.attachEvent("on"+w,$);else{var I=g._handlers||(g._handlers={});I[w]=(I[w]||Se).concat($)}};function tt(g,w){return g._handlers&&g._handlers[w]||Se}function se(g,w,$){if(g.removeEventListener)g.removeEventListener(w,$,!1);else if(g.detachEvent)g.detachEvent("on"+w,$);else{var I=g._handlers,L=I&&I[w];if(L){var te=ie(L,$);te>-1&&(I[w]=L.slice(0,te).concat(L.slice(te+1)))}}}function ze(g,w){var $=tt(g,w);if($.length)for(var I=Array.prototype.slice.call(arguments,2),L=0;L<$.length;++L)$[L].apply(null,I)}function Ye(g,w,$){return typeof w=="string"&&(w={type:w,preventDefault:function(){this.defaultPrevented=!0}}),ze(g,$||w.type,g,w),St(w)||w.codemirrorIgnore}function Ue(g){var w=g._handlers&&g._handlers.cursorActivity;if(w)for(var $=g.curOp.cursorActivityHandlers||(g.curOp.cursorActivityHandlers=[]),I=0;I<w.length;++I)ie($,w[I])==-1&&$.push(w[I])}function Je(g,w){return tt(g,w).length>0}function Ze(g){g.prototype.on=function(w,$){Ke(this,w,$)},g.prototype.off=function(w,$){se(this,w,$)}}function rt(g){g.preventDefault?g.preventDefault():g.returnValue=!1}function qt(g){g.stopPropagation?g.stopPropagation():g.cancelBubble=!0}function St(g){return g.defaultPrevented!=null?g.defaultPrevented:g.returnValue==!1}function Ot(g){rt(g),qt(g)}function Bt(g){return g.target||g.srcElement}function Dt(g){var w=g.which;return w==null&&(g.button&1?w=1:g.button&2?w=3:g.button&4&&(w=2)),b&&g.ctrlKey&&w==1&&(w=3),w}var an=function(){if(a&&s<9)return!1;var g=R("div");return"draggable"in g||"dragDrop"in g}(),Vt;function Kt(g){if(Vt==null){var w=R("span","");D(g,R("span",[w,document.createTextNode("x")])),g.firstChild.offsetHeight!=0&&(Vt=w.offsetWidth<=1&&w.offsetHeight>2&&!(a&&s<8))}var $=Vt?R("span",""):R("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return $.setAttribute("cm-text",""),$}var Qt;function et(g){if(Qt!=null)return Qt;var w=D(g,document.createTextNode("AخA")),$=H(w,0,1).getBoundingClientRect(),I=H(w,1,2).getBoundingClientRect();return P(g),!$||$.left==$.right?!1:Qt=I.right-$.right<3}var ot=`
|
||
|
||
b`.split(/\n/).length!=3?function(g){for(var w=0,$=[],I=g.length;w<=I;){var L=g.indexOf(`
|
||
`,w);L==-1&&(L=g.length);var te=g.slice(w,g.charAt(L-1)=="\r"?L-1:L),de=te.indexOf("\r");de!=-1?($.push(te.slice(0,de)),w+=de+1):($.push(te),w=L+1)}return $}:function(g){return g.split(/\r\n?|\n/)},Qe=window.getSelection?function(g){try{return g.selectionStart!=g.selectionEnd}catch{return!1}}:function(g){var w;try{w=g.ownerDocument.selection.createRange()}catch{}return!w||w.parentElement()!=g?!1:w.compareEndPoints("StartToEnd",w)!=0},ct=function(){var g=R("div");return"oncopy"in g?!0:(g.setAttribute("oncopy","return;"),typeof g.oncopy=="function")}(),Nt=null;function Lt(g){if(Nt!=null)return Nt;var w=D(g,R("span","x")),$=w.getBoundingClientRect(),I=H(w,0,1).getBoundingClientRect();return Nt=Math.abs($.left-I.left)>1}var Zt={},Wt={};function At(g,w){arguments.length>2&&(w.dependencies=Array.prototype.slice.call(arguments,2)),Zt[g]=w}function $t(g,w){Wt[g]=w}function Gt(g){if(typeof g=="string"&&Wt.hasOwnProperty(g))g=Wt[g];else if(g&&typeof g.name=="string"&&Wt.hasOwnProperty(g.name)){var w=Wt[g.name];typeof w=="string"&&(w={name:w}),g=we(w,g),g.name=w.name}else{if(typeof g=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(g))return Gt("application/xml");if(typeof g=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(g))return Gt("application/json")}return typeof g=="string"?{name:g}:g||{name:"null"}}function Ft(g,w){w=Gt(w);var $=Zt[w.name];if(!$)return Ft(g,"text/plain");var I=$(g,w);if(cn.hasOwnProperty(w.name)){var L=cn[w.name];for(var te in L)L.hasOwnProperty(te)&&(I.hasOwnProperty(te)&&(I["_"+te]=I[te]),I[te]=L[te])}if(I.name=w.name,w.helperType&&(I.helperType=w.helperType),w.modeProps)for(var de in w.modeProps)I[de]=w.modeProps[de];return I}var cn={};function _t(g,w){var $=cn.hasOwnProperty(g)?cn[g]:cn[g]={};B(w,$)}function jt(g,w){if(w===!0)return w;if(g.copyState)return g.copyState(w);var $={};for(var I in w){var L=w[I];L instanceof Array&&(L=L.concat([])),$[I]=L}return $}function nn(g,w){for(var $;g.innerMode&&($=g.innerMode(w),!(!$||$.mode==g));)w=$.state,g=$.mode;return $||{mode:g,state:w}}function Ht(g,w,$){return g.startState?g.startState(w,$):!0}var Tt=function(g,w,$){this.pos=this.start=0,this.string=g,this.tabSize=w||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=$};Tt.prototype.eol=function(){return this.pos>=this.string.length},Tt.prototype.sol=function(){return this.pos==this.lineStart},Tt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Tt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Tt.prototype.eat=function(g){var w=this.string.charAt(this.pos),$;if(typeof g=="string"?$=w==g:$=w&&(g.test?g.test(w):g(w)),$)return++this.pos,w},Tt.prototype.eatWhile=function(g){for(var w=this.pos;this.eat(g););return this.pos>w},Tt.prototype.eatSpace=function(){for(var g=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>g},Tt.prototype.skipToEnd=function(){this.pos=this.string.length},Tt.prototype.skipTo=function(g){var w=this.string.indexOf(g,this.pos);if(w>-1)return this.pos=w,!0},Tt.prototype.backUp=function(g){this.pos-=g},Tt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=V(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},Tt.prototype.indentation=function(){return V(this.string,null,this.tabSize)-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},Tt.prototype.match=function(g,w,$){if(typeof g=="string"){var I=function(de){return $?de.toLowerCase():de},L=this.string.substr(this.pos,g.length);if(I(L)==I(g))return w!==!1&&(this.pos+=g.length),!0}else{var te=this.string.slice(this.pos).match(g);return te&&te.index>0?null:(te&&w!==!1&&(this.pos+=te[0].length),te)}},Tt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Tt.prototype.hideFirstChars=function(g,w){this.lineStart+=g;try{return w()}finally{this.lineStart-=g}},Tt.prototype.lookAhead=function(g){var w=this.lineOracle;return w&&w.lookAhead(g)},Tt.prototype.baseToken=function(){var g=this.lineOracle;return g&&g.baseToken(this.pos)};function gt(g,w){if(w-=g.first,w<0||w>=g.size)throw new Error("There is no line "+(w+g.first)+" in the document.");for(var $=g;!$.lines;)for(var I=0;;++I){var L=$.children[I],te=L.chunkSize();if(w<te){$=L;break}w-=te}return $.lines[w]}function Ve(g,w,$){var I=[],L=w.line;return g.iter(w.line,$.line+1,function(te){var de=te.text;L==$.line&&(de=de.slice(0,$.ch)),L==w.line&&(de=de.slice(w.ch)),I.push(de),++L}),I}function Yt(g,w,$){var I=[];return g.iter(w,$,function(L){I.push(L.text)}),I}function mt(g,w){var $=w-g.height;if($)for(var I=g;I;I=I.parent)I.height+=$}function Mt(g){if(g.parent==null)return null;for(var w=g.parent,$=ie(w.lines,g),I=w.parent;I;w=I,I=I.parent)for(var L=0;I.children[L]!=w;++L)$+=I.children[L].chunkSize();return $+w.first}function zt(g,w){var $=g.first;e:do{for(var I=0;I<g.children.length;++I){var L=g.children[I],te=L.height;if(w<te){g=L;continue e}w-=te,$+=L.chunkSize()}return $}while(!g.lines);for(var de=0;de<g.lines.length;++de){var Ee=g.lines[de],Ie=Ee.height;if(w<Ie)break;w-=Ie}return $+de}function Dn(g,w){return w>=g.first&&w<g.first+g.size}function Xn(g,w){return String(g.lineNumberFormatter(w+g.firstLineNumber))}function O(g,w,$){if($===void 0&&($=null),!(this instanceof O))return new O(g,w,$);this.line=g,this.ch=w,this.sticky=$}function j(g,w){return g.line-w.line||g.ch-w.ch}function oe(g,w){return g.sticky==w.sticky&&j(g,w)==0}function Ae(g){return O(g.line,g.ch)}function Ge(g,w){return j(g,w)<0?w:g}function ft(g,w){return j(g,w)<0?g:w}function Jt(g,w){return Math.max(g.first,Math.min(w,g.first+g.size-1))}function on(g,w){if(w.line<g.first)return O(g.first,0);var $=g.first+g.size-1;return w.line>$?O($,gt(g,$).text.length):Qn(w,gt(g,w.line).text.length)}function Qn(g,w){var $=g.ch;return $==null||$>w?O(g.line,w):$<0?O(g.line,0):g}function ni(g,w){for(var $=[],I=0;I<w.length;I++)$[I]=on(g,w[I]);return $}var zr=function(g,w){this.state=g,this.lookAhead=w},Yr=function(g,w,$,I){this.state=w,this.doc=g,this.line=$,this.maxLookAhead=I||0,this.baseTokens=null,this.baseTokenPos=1};Yr.prototype.lookAhead=function(g){var w=this.doc.getLine(this.line+g);return w!=null&&g>this.maxLookAhead&&(this.maxLookAhead=g),w},Yr.prototype.baseToken=function(g){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=g;)this.baseTokenPos+=2;var w=this.baseTokens[this.baseTokenPos+1];return{type:w&&w.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-g}},Yr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Yr.fromSaved=function(g,w,$){return w instanceof zr?new Yr(g,jt(g.mode,w.state),$,w.lookAhead):new Yr(g,jt(g.mode,w),$)},Yr.prototype.save=function(g){var w=g!==!1?jt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new zr(w,this.maxLookAhead):w};function Rr(g,w,$,I){var L=[g.state.modeGen],te={};Wi(g,w.text,g.doc.mode,$,function(Be,nt){return L.push(Be,nt)},te,I);for(var de=$.state,Ee=function(Be){$.baseTokens=L;var nt=g.state.overlays[Be],at=1,Et=0;$.state=!0,Wi(g,w.text,nt.mode,$,function(yt,rn){for(var dn=at;Et<yt;){var En=L[at];En>yt&&L.splice(at,1,yt,L[at+1],En),at+=2,Et=Math.min(yt,En)}if(rn)if(nt.opaque)L.splice(dn,at-dn,yt,"overlay "+rn),at=dn+2;else for(;dn<at;dn+=2){var Bn=L[dn+1];L[dn+1]=(Bn?Bn+" ":"")+"overlay "+rn}},te),$.state=de,$.baseTokens=null,$.baseTokenPos=1},Ie=0;Ie<g.state.overlays.length;++Ie)Ee(Ie);return{styles:L,classes:te.bgClass||te.textClass?te:null}}function wn(g,w,$){if(!w.styles||w.styles[0]!=g.state.modeGen){var I=Pn(g,Mt(w)),L=w.text.length>g.options.maxHighlightLength&&jt(g.doc.mode,I.state),te=Rr(g,w,I);L&&(I.state=L),w.stateAfter=I.save(!L),w.styles=te.styles,te.classes?w.styleClasses=te.classes:w.styleClasses&&(w.styleClasses=null),$===g.doc.highlightFrontier&&(g.doc.modeFrontier=Math.max(g.doc.modeFrontier,++g.doc.highlightFrontier))}return w.styles}function Pn(g,w,$){var I=g.doc,L=g.display;if(!I.mode.startState)return new Yr(I,!0,w);var te=mr(g,w,$),de=te>I.first&>(I,te-1).stateAfter,Ee=de?Yr.fromSaved(I,de,te):new Yr(I,Ht(I.mode),te);return I.iter(te,w,function(Ie){Ar(g,Ie.text,Ee);var Be=Ee.line;Ie.stateAfter=Be==w-1||Be%5==0||Be>=L.viewFrom&&Be<L.viewTo?Ee.save():null,Ee.nextLine()}),$&&(I.modeFrontier=Ee.line),Ee}function Ar(g,w,$,I){var L=g.doc.mode,te=new Tt(w,g.options.tabSize,$);for(te.start=te.pos=I||0,w==""&&bn(L,$.state);!te.eol();)Cn(L,te,$.state),te.start=te.pos}function bn(g,w){if(g.blankLine)return g.blankLine(w);if(g.innerMode){var $=nn(g,w);if($.mode.blankLine)return $.mode.blankLine($.state)}}function Cn(g,w,$,I){for(var L=0;L<10;L++){I&&(I[0]=nn(g,$).mode);var te=g.token(w,$);if(w.pos>w.start)return te}throw new Error("Mode "+g.name+" failed to advance stream.")}var tr=function(g,w,$){this.start=g.start,this.end=g.pos,this.string=g.current(),this.type=w||null,this.state=$};function Ir(g,w,$,I){var L=g.doc,te=L.mode,de;w=on(L,w);var Ee=gt(L,w.line),Ie=Pn(g,w.line,$),Be=new Tt(Ee.text,g.options.tabSize,Ie),nt;for(I&&(nt=[]);(I||Be.pos<w.ch)&&!Be.eol();)Be.start=Be.pos,de=Cn(te,Be,Ie.state),I&&nt.push(new tr(Be,de,jt(L.mode,Ie.state)));return I?nt:new tr(Be,de,Ie.state)}function li(g,w){if(g)for(;;){var $=g.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!$)break;g=g.slice(0,$.index)+g.slice($.index+$[0].length);var I=$[1]?"bgClass":"textClass";w[I]==null?w[I]=$[2]:new RegExp("(?:^|\\s)"+$[2]+"(?:$|\\s)").test(w[I])||(w[I]+=" "+$[2])}return g}function Wi(g,w,$,I,L,te,de){var Ee=$.flattenSpans;Ee==null&&(Ee=g.options.flattenSpans);var Ie=0,Be=null,nt=new Tt(w,g.options.tabSize,I),at,Et=g.options.addModeClass&&[null];for(w==""&&li(bn($,I.state),te);!nt.eol();){if(nt.pos>g.options.maxHighlightLength?(Ee=!1,de&&Ar(g,w,I,nt.pos),nt.pos=w.length,at=null):at=li(Cn($,nt,I.state,Et),te),Et){var yt=Et[0].name;yt&&(at="m-"+(at?yt+" "+at:yt))}if(!Ee||Be!=at){for(;Ie<nt.start;)Ie=Math.min(nt.start,Ie+5e3),L(Ie,Be);Be=at}nt.start=nt.pos}for(;Ie<nt.pos;){var rn=Math.min(nt.pos,Ie+5e3);L(rn,Be),Ie=rn}}function mr(g,w,$){for(var I,L,te=g.doc,de=$?-1:w-(g.doc.mode.innerMode?1e3:100),Ee=w;Ee>de;--Ee){if(Ee<=te.first)return te.first;var Ie=gt(te,Ee-1),Be=Ie.stateAfter;if(Be&&(!$||Ee+(Be instanceof zr?Be.lookAhead:0)<=te.modeFrontier))return Ee;var nt=V(Ie.text,null,g.options.tabSize);(L==null||I>nt)&&(L=Ee-1,I=nt)}return L}function Li(g,w){if(g.modeFrontier=Math.min(g.modeFrontier,w),!(g.highlightFrontier<w-10)){for(var $=g.first,I=w-1;I>$;I--){var L=gt(g,I).stateAfter;if(L&&(!(L instanceof zr)||I+L.lookAhead<w)){$=I+1;break}}g.highlightFrontier=Math.min(g.highlightFrontier,$)}}var dr=!1,xn=!1;function zn(){dr=!0}function Gn(){xn=!0}function rr(g,w,$){this.marker=g,this.from=w,this.to=$}function jr(g,w){if(g)for(var $=0;$<g.length;++$){var I=g[$];if(I.marker==w)return I}}function Ao(g,w){for(var $,I=0;I<g.length;++I)g[I]!=w&&($||($=[])).push(g[I]);return $}function ra(g,w,$){var I=$&&window.WeakSet&&($.markedSpans||($.markedSpans=new WeakSet));I&&g.markedSpans&&I.has(g.markedSpans)?g.markedSpans.push(w):(g.markedSpans=g.markedSpans?g.markedSpans.concat([w]):[w],I&&I.add(g.markedSpans)),w.marker.attachLine(g)}function Ei(g,w,$){var I;if(g)for(var L=0;L<g.length;++L){var te=g[L],de=te.marker,Ee=te.from==null||(de.inclusiveLeft?te.from<=w:te.from<w);if(Ee||te.from==w&&de.type=="bookmark"&&(!$||!te.marker.insertLeft)){var Ie=te.to==null||(de.inclusiveRight?te.to>=w:te.to>w);(I||(I=[])).push(new rr(de,te.from,Ie?null:te.to))}}return I}function ia(g,w,$){var I;if(g)for(var L=0;L<g.length;++L){var te=g[L],de=te.marker,Ee=te.to==null||(de.inclusiveRight?te.to>=w:te.to>w);if(Ee||te.from==w&&de.type=="bookmark"&&(!$||te.marker.insertLeft)){var Ie=te.from==null||(de.inclusiveLeft?te.from<=w:te.from<w);(I||(I=[])).push(new rr(de,Ie?null:te.from-w,te.to==null?null:te.to-w))}}return I}function Jl(g,w){if(w.full)return null;var $=Dn(g,w.from.line)&>(g,w.from.line).markedSpans,I=Dn(g,w.to.line)&>(g,w.to.line).markedSpans;if(!$&&!I)return null;var L=w.from.ch,te=w.to.ch,de=j(w.from,w.to)==0,Ee=Ei($,L,de),Ie=ia(I,te,de),Be=w.text.length==1,nt=he(w.text).length+(Be?L:0);if(Ee)for(var at=0;at<Ee.length;++at){var Et=Ee[at];if(Et.to==null){var yt=jr(Ie,Et.marker);yt?Be&&(Et.to=yt.to==null?null:yt.to+nt):Et.to=L}}if(Ie)for(var rn=0;rn<Ie.length;++rn){var dn=Ie[rn];if(dn.to!=null&&(dn.to+=nt),dn.from==null){var En=jr(Ee,dn.marker);En||(dn.from=nt,Be&&(Ee||(Ee=[])).push(dn))}else dn.from+=nt,Be&&(Ee||(Ee=[])).push(dn)}Ee&&(Ee=Gc(Ee)),Ie&&Ie!=Ee&&(Ie=Gc(Ie));var Bn=[Ee];if(!Be){var Un=w.text.length-2,Hn;if(Un>0&&Ee)for(var Yn=0;Yn<Ee.length;++Yn)Ee[Yn].to==null&&(Hn||(Hn=[])).push(new rr(Ee[Yn].marker,null,null));for(var vr=0;vr<Un;++vr)Bn.push(Hn);Bn.push(Ie)}return Bn}function Gc(g){for(var w=0;w<g.length;++w){var $=g[w];$.from!=null&&$.from==$.to&&$.marker.clearWhenEmpty!==!1&&g.splice(w--,1)}return g.length?g:null}function ch(g,w,$){var I=null;if(g.iter(w.line,$.line+1,function(yt){if(yt.markedSpans)for(var rn=0;rn<yt.markedSpans.length;++rn){var dn=yt.markedSpans[rn].marker;dn.readOnly&&(!I||ie(I,dn)==-1)&&(I||(I=[])).push(dn)}}),!I)return null;for(var L=[{from:w,to:$}],te=0;te<I.length;++te)for(var de=I[te],Ee=de.find(0),Ie=0;Ie<L.length;++Ie){var Be=L[Ie];if(!(j(Be.to,Ee.from)<0||j(Be.from,Ee.to)>0)){var nt=[Ie,1],at=j(Be.from,Ee.from),Et=j(Be.to,Ee.to);(at<0||!de.inclusiveLeft&&!at)&&nt.push({from:Be.from,to:Ee.from}),(Et>0||!de.inclusiveRight&&!Et)&&nt.push({from:Ee.to,to:Be.to}),L.splice.apply(L,nt),Ie+=nt.length-3}}return L}function qn(g){var w=g.markedSpans;if(w){for(var $=0;$<w.length;++$)w[$].marker.detachLine(g);g.markedSpans=null}}function kr(g,w){if(w){for(var $=0;$<w.length;++$)w[$].marker.attachLine(g);g.markedSpans=w}}function Jr(g){return g.inclusiveLeft?-1:0}function Vi(g){return g.inclusiveRight?1:0}function Fi(g,w){var $=g.lines.length-w.lines.length;if($!=0)return $;var I=g.find(),L=w.find(),te=j(I.from,L.from)||Jr(g)-Jr(w);if(te)return-te;var de=j(I.to,L.to)||Vi(g)-Vi(w);return de||w.id-g.id}function Uu(g,w){var $=xn&&g.markedSpans,I;if($)for(var L=void 0,te=0;te<$.length;++te)L=$[te],L.marker.collapsed&&(w?L.from:L.to)==null&&(!I||Fi(I,L.marker)<0)&&(I=L.marker);return I}function Yc(g){return Uu(g,!0)}function Wu(g){return Uu(g,!1)}function uh(g,w){var $=xn&&g.markedSpans,I;if($)for(var L=0;L<$.length;++L){var te=$[L];te.marker.collapsed&&(te.from==null||te.from<w)&&(te.to==null||te.to>w)&&(!I||Fi(I,te.marker)<0)&&(I=te.marker)}return I}function $4(g,w,$,I,L){var te=gt(g,w),de=xn&&te.markedSpans;if(de)for(var Ee=0;Ee<de.length;++Ee){var Ie=de[Ee];if(Ie.marker.collapsed){var Be=Ie.marker.find(0),nt=j(Be.from,$)||Jr(Ie.marker)-Jr(L),at=j(Be.to,I)||Vi(Ie.marker)-Vi(L);if(!(nt>=0&&at<=0||nt<=0&&at>=0)&&(nt<=0&&(Ie.marker.inclusiveRight&&L.inclusiveLeft?j(Be.to,$)>=0:j(Be.to,$)>0)||nt>=0&&(Ie.marker.inclusiveRight&&L.inclusiveLeft?j(Be.from,I)<=0:j(Be.from,I)<0)))return!0}}}function cs(g){for(var w;w=Yc(g);)g=w.find(-1,!0).line;return g}function xI(g){for(var w;w=Wu(g);)g=w.find(1,!0).line;return g}function wI(g){for(var w,$;w=Wu(g);)g=w.find(1,!0).line,($||($=[])).push(g);return $}function Lp(g,w){var $=gt(g,w),I=cs($);return $==I?w:Mt(I)}function Og(g,w){if(w>g.lastLine())return w;var $=gt(g,w),I;if(!Xc(g,$))return w;for(;I=Wu($);)$=I.find(1,!0).line;return Mt($)+1}function Xc(g,w){var $=xn&&w.markedSpans;if($){for(var I=void 0,L=0;L<$.length;++L)if(I=$[L],!!I.marker.collapsed){if(I.from==null)return!0;if(!I.marker.widgetNode&&I.from==0&&I.marker.inclusiveLeft&&UC(g,w,I))return!0}}}function UC(g,w,$){if($.to==null){var I=$.marker.find(1,!0);return UC(g,I.line,jr(I.line.markedSpans,$.marker))}if($.marker.inclusiveRight&&$.to==w.text.length)return!0;for(var L=void 0,te=0;te<w.markedSpans.length;++te)if(L=w.markedSpans[te],L.marker.collapsed&&!L.marker.widgetNode&&L.from==$.to&&(L.to==null||L.to!=$.from)&&(L.marker.inclusiveLeft||$.marker.inclusiveRight)&&UC(g,w,L))return!0}function Vu(g){g=cs(g);for(var w=0,$=g.parent,I=0;I<$.lines.length;++I){var L=$.lines[I];if(L==g)break;w+=L.height}for(var te=$.parent;te;$=te,te=$.parent)for(var de=0;de<te.children.length;++de){var Ee=te.children[de];if(Ee==$)break;w+=Ee.height}return w}function p0(g){if(g.height==0)return 0;for(var w=g.text.length,$,I=g;$=Yc(I);){var L=$.find(0,!0);I=L.from.line,w+=L.from.ch-L.to.ch}for(I=g;$=Wu(I);){var te=$.find(0,!0);w-=I.text.length-te.from.ch,I=te.to.line,w+=I.text.length-te.to.ch}return w}function Pg(g){var w=g.display,$=g.doc;w.maxLine=gt($,$.first),w.maxLineLength=p0(w.maxLine),w.maxLineChanged=!0,$.iter(function(I){var L=p0(I);L>w.maxLineLength&&(w.maxLineLength=L,w.maxLine=I)})}var of=function(g,w,$){this.text=g,kr(this,w),this.height=$?$(this):1};of.prototype.lineNo=function(){return Mt(this)},Ze(of);function R4(g,w,$,I){g.text=w,g.stateAfter&&(g.stateAfter=null),g.styles&&(g.styles=null),g.order!=null&&(g.order=null),qn(g),kr(g,$);var L=I?I(g):1;L!=g.height&&mt(g,L)}function m0(g){g.parent=null,qn(g)}var g0={},v0={};function WC(g,w){if(!g||/^\s*$/.test(g))return null;var $=w.addModeClass?v0:g0;return $[g]||($[g]=g.replace(/\S+/g,"cm-$&"))}function A4(g,w){var $=A("span",null,null,l?"padding-right: .1px":null),I={pre:A("pre",[$],"CodeMirror-line"),content:$,col:0,pos:0,cm:g,trailingSpace:!1,splitSpaces:g.getOption("lineWrapping")};w.measure={};for(var L=0;L<=(w.rest?w.rest.length:0);L++){var te=L?w.rest[L-1]:w.line,de=void 0;I.pos=0,I.addToken=VC,et(g.display.measure)&&(de=Oe(te,g.doc.direction))&&(I.addToken=qC(I.addToken,de)),I.map=[];var Ee=w!=g.display.externalMeasured&&Mt(te);Ya(te,I,wn(g,te,Ee)),te.styleClasses&&(te.styleClasses.bgClass&&(I.bgClass=q(te.styleClasses.bgClass,I.bgClass||"")),te.styleClasses.textClass&&(I.textClass=q(te.styleClasses.textClass,I.textClass||""))),I.map.length==0&&I.map.push(0,0,I.content.appendChild(Kt(g.display.measure))),L==0?(w.measure.map=I.map,w.measure.cache={}):((w.measure.maps||(w.measure.maps=[])).push(I.map),(w.measure.caches||(w.measure.caches=[])).push({}))}if(l){var Ie=I.content.lastChild;(/\bcm-tab\b/.test(Ie.className)||Ie.querySelector&&Ie.querySelector(".cm-tab"))&&(I.content.className="cm-tab-wrap-hack")}return ze(g,"renderLine",g,w.line,I.pre),I.pre.className&&(I.textClass=q(I.pre.className,I.textClass||"")),I}function y0(g){var w=R("span","•","cm-invalidchar");return w.title="\\u"+g.charCodeAt(0).toString(16),w.setAttribute("aria-label",w.title),w}function VC(g,w,$,I,L,te,de){if(w){var Ee=g.splitSpaces?KC(w,g.trailingSpace):w,Ie=g.cm.state.specialChars,Be=!1,nt;if(!Ie.test(w))g.col+=w.length,nt=document.createTextNode(Ee),g.map.push(g.pos,g.pos+w.length,nt),a&&s<9&&(Be=!0),g.pos+=w.length;else{nt=document.createDocumentFragment();for(var at=0;;){Ie.lastIndex=at;var Et=Ie.exec(w),yt=Et?Et.index-at:w.length-at;if(yt){var rn=document.createTextNode(Ee.slice(at,at+yt));a&&s<9?nt.appendChild(R("span",[rn])):nt.appendChild(rn),g.map.push(g.pos,g.pos+yt,rn),g.col+=yt,g.pos+=yt}if(!Et)break;at+=yt+1;var dn=void 0;if(Et[0]==" "){var En=g.cm.options.tabSize,Bn=En-g.col%En;dn=nt.appendChild(R("span",pe(Bn),"cm-tab")),dn.setAttribute("role","presentation"),dn.setAttribute("cm-text"," "),g.col+=Bn}else Et[0]=="\r"||Et[0]==`
|
||
`?(dn=nt.appendChild(R("span",Et[0]=="\r"?"␍":"","cm-invalidchar")),dn.setAttribute("cm-text",Et[0]),g.col+=1):(dn=g.cm.options.specialCharPlaceholder(Et[0]),dn.setAttribute("cm-text",Et[0]),a&&s<9?nt.appendChild(R("span",[dn])):nt.appendChild(dn),g.col+=1);g.map.push(g.pos,g.pos+1,dn),g.pos++}}if(g.trailingSpace=Ee.charCodeAt(w.length-1)==32,$||I||L||Be||te||de){var Un=$||"";I&&(Un+=I),L&&(Un+=L);var Hn=R("span",[nt],Un,te);if(de)for(var Yn in de)de.hasOwnProperty(Yn)&&Yn!="style"&&Yn!="class"&&Hn.setAttribute(Yn,de[Yn]);return g.content.appendChild(Hn)}g.content.appendChild(nt)}}function KC(g,w){if(g.length>1&&!/ /.test(g))return g;for(var $=w,I="",L=0;L<g.length;L++){var te=g.charAt(L);te==" "&&$&&(L==g.length-1||g.charCodeAt(L+1)==32)&&(te=" "),I+=te,$=te==" "}return I}function qC(g,w){return function($,I,L,te,de,Ee,Ie){L=L?L+" cm-force-border":"cm-force-border";for(var Be=$.pos,nt=Be+I.length;;){for(var at=void 0,Et=0;Et<w.length&&(at=w[Et],!(at.to>Be&&at.from<=Be));Et++);if(at.to>=nt)return g($,I,L,te,de,Ee,Ie);g($,I.slice(0,at.to-Be),L,te,null,Ee,Ie),te=null,I=I.slice(at.to-Be),Be=at.to}}}function b0(g,w,$,I){var L=!I&&$.widgetNode;L&&g.map.push(g.pos,g.pos+w,L),!I&&g.cm.display.input.needsContentAttribute&&(L||(L=g.content.appendChild(document.createElement("span"))),L.setAttribute("cm-marker",$.id)),L&&(g.cm.display.input.setUneditable(L),g.content.appendChild(L)),g.pos+=w,g.trailingSpace=!1}function Ya(g,w,$){var I=g.markedSpans,L=g.text,te=0;if(!I){for(var de=1;de<$.length;de+=2)w.addToken(w,L.slice(te,te=$[de]),WC($[de+1],w.cm.options));return}for(var Ee=L.length,Ie=0,Be=1,nt="",at,Et,yt=0,rn,dn,En,Bn,Un;;){if(yt==Ie){rn=dn=En=Et="",Un=null,Bn=null,yt=1/0;for(var Hn=[],Yn=void 0,vr=0;vr<I.length;++vr){var pr=I[vr],Kr=pr.marker;if(Kr.type=="bookmark"&&pr.from==Ie&&Kr.widgetNode)Hn.push(Kr);else if(pr.from<=Ie&&(pr.to==null||pr.to>Ie||Kr.collapsed&&pr.to==Ie&&pr.from==Ie)){if(pr.to!=null&&pr.to!=Ie&&yt>pr.to&&(yt=pr.to,dn=""),Kr.className&&(rn+=" "+Kr.className),Kr.css&&(Et=(Et?Et+";":"")+Kr.css),Kr.startStyle&&pr.from==Ie&&(En+=" "+Kr.startStyle),Kr.endStyle&&pr.to==yt&&(Yn||(Yn=[])).push(Kr.endStyle,pr.to),Kr.title&&((Un||(Un={})).title=Kr.title),Kr.attributes)for(var Ki in Kr.attributes)(Un||(Un={}))[Ki]=Kr.attributes[Ki];Kr.collapsed&&(!Bn||Fi(Bn.marker,Kr)<0)&&(Bn=pr)}else pr.from>Ie&&yt>pr.from&&(yt=pr.from)}if(Yn)for(var Da=0;Da<Yn.length;Da+=2)Yn[Da+1]==yt&&(dn+=" "+Yn[Da]);if(!Bn||Bn.from==Ie)for(var _o=0;_o<Hn.length;++_o)b0(w,0,Hn[_o]);if(Bn&&(Bn.from||0)==Ie){if(b0(w,(Bn.to==null?Ee+1:Bn.to)-Ie,Bn.marker,Bn.from==null),Bn.to==null)return;Bn.to==Ie&&(Bn=!1)}}if(Ie>=Ee)break;for(var _l=Math.min(Ee,yt);;){if(nt){var Js=Ie+nt.length;if(!Bn){var oa=Js>_l?nt.slice(0,_l-Ie):nt;w.addToken(w,oa,at?at+rn:rn,En,Ie+oa.length==yt?dn:"",Et,Un)}if(Js>=_l){nt=nt.slice(_l-Ie),Ie=_l;break}Ie=Js,En=""}nt=L.slice(te,te=$[Be++]),at=WC($[Be++],w.cm.options)}}}function Fp(g,w,$){this.line=w,this.rest=wI(w),this.size=this.rest?Mt(he(this.rest))-$+1:1,this.node=this.text=null,this.hidden=Xc(g,w)}function af(g,w,$){for(var I=[],L,te=w;te<$;te=L){var de=new Fp(g.doc,gt(g.doc,te),te);L=te+de.size,I.push(de)}return I}var dh=null;function S0(g){dh?dh.ops.push(g):g.ownsGroup=dh={ops:[g],delayedCallbacks:[]}}function N4(g){var w=g.delayedCallbacks,$=0;do{for(;$<w.length;$++)w[$].call(null);for(var I=0;I<g.ops.length;I++){var L=g.ops[I];if(L.cursorActivityHandlers)for(;L.cursorActivityCalled<L.cursorActivityHandlers.length;)L.cursorActivityHandlers[L.cursorActivityCalled++].call(null,L.cm)}}while($<w.length)}function D4(g,w){var $=g.ownsGroup;if($)try{N4($)}finally{dh=null,w($)}}var sf=null;function No(g,w){var $=tt(g,w);if($.length){var I=Array.prototype.slice.call(arguments,2),L;dh?L=dh.delayedCallbacks:sf?L=sf:(L=sf=[],setTimeout(fh,0));for(var te=function(Ee){L.push(function(){return $[Ee].apply(null,I)})},de=0;de<$.length;++de)te(de)}}function fh(){var g=sf;sf=null;for(var w=0;w<g.length;++w)g[w]()}function C0(g,w,$,I){for(var L=0;L<w.changes.length;L++){var te=w.changes[L];te=="text"?L4(g,w):te=="gutter"?_0(g,w,$,I):te=="class"?GC(g,w):te=="widget"&&E0(g,w,I)}w.changes=null}function hh(g){return g.node==g.text&&(g.node=R("div",null,null,"position: relative"),g.text.parentNode&&g.text.parentNode.replaceChild(g.node,g.text),g.node.appendChild(g.text),a&&s<8&&(g.node.style.zIndex=2)),g.node}function x0(g,w){var $=w.bgClass?w.bgClass+" "+(w.line.bgClass||""):w.line.bgClass;if($&&($+=" CodeMirror-linebackground"),w.background)$?w.background.className=$:(w.background.parentNode.removeChild(w.background),w.background=null);else if($){var I=hh(w);w.background=I.insertBefore(R("div",null,$),I.firstChild),g.display.input.setUneditable(w.background)}}function w0(g,w){var $=g.display.externalMeasured;return $&&$.line==w.line?(g.display.externalMeasured=null,w.measure=$.measure,$.built):A4(g,w)}function L4(g,w){var $=w.text.className,I=w0(g,w);w.text==w.node&&(w.node=I.pre),w.text.parentNode.replaceChild(I.pre,w.text),w.text=I.pre,I.bgClass!=w.bgClass||I.textClass!=w.textClass?(w.bgClass=I.bgClass,w.textClass=I.textClass,GC(g,w)):$&&(w.text.className=$)}function GC(g,w){x0(g,w),w.line.wrapClass?hh(w).className=w.line.wrapClass:w.node!=w.text&&(w.node.className="");var $=w.textClass?w.textClass+" "+(w.line.textClass||""):w.line.textClass;w.text.className=$||""}function _0(g,w,$,I){if(w.gutter&&(w.node.removeChild(w.gutter),w.gutter=null),w.gutterBackground&&(w.node.removeChild(w.gutterBackground),w.gutterBackground=null),w.line.gutterClass){var L=hh(w);w.gutterBackground=R("div",null,"CodeMirror-gutter-background "+w.line.gutterClass,"left: "+(g.options.fixedGutter?I.fixedPos:-I.gutterTotalWidth)+"px; width: "+I.gutterTotalWidth+"px"),g.display.input.setUneditable(w.gutterBackground),L.insertBefore(w.gutterBackground,w.text)}var te=w.line.gutterMarkers;if(g.options.lineNumbers||te){var de=hh(w),Ee=w.gutter=R("div",null,"CodeMirror-gutter-wrapper","left: "+(g.options.fixedGutter?I.fixedPos:-I.gutterTotalWidth)+"px");if(Ee.setAttribute("aria-hidden","true"),g.display.input.setUneditable(Ee),de.insertBefore(Ee,w.text),w.line.gutterClass&&(Ee.className+=" "+w.line.gutterClass),g.options.lineNumbers&&(!te||!te["CodeMirror-linenumbers"])&&(w.lineNumber=Ee.appendChild(R("div",Xn(g.options,$),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+I.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+g.display.lineNumInnerWidth+"px"))),te)for(var Ie=0;Ie<g.display.gutterSpecs.length;++Ie){var Be=g.display.gutterSpecs[Ie].className,nt=te.hasOwnProperty(Be)&&te[Be];nt&&Ee.appendChild(R("div",[nt],"CodeMirror-gutter-elt","left: "+I.gutterLeft[Be]+"px; width: "+I.gutterWidth[Be]+"px"))}}}function E0(g,w,$){w.alignable&&(w.alignable=null);for(var I=k("CodeMirror-linewidget"),L=w.node.firstChild,te=void 0;L;L=te)te=L.nextSibling,I.test(L.className)&&w.node.removeChild(L);T0(g,w,$)}function _I(g,w,$,I){var L=w0(g,w);return w.text=w.node=L.pre,L.bgClass&&(w.bgClass=L.bgClass),L.textClass&&(w.textClass=L.textClass),GC(g,w),_0(g,w,$,I),T0(g,w,I),w.node}function T0(g,w,$){if(k0(g,w.line,w,$,!0),w.rest)for(var I=0;I<w.rest.length;I++)k0(g,w.rest[I],w,$,!1)}function k0(g,w,$,I,L){if(w.widgets)for(var te=hh($),de=0,Ee=w.widgets;de<Ee.length;++de){var Ie=Ee[de],Be=R("div",[Ie.node],"CodeMirror-linewidget"+(Ie.className?" "+Ie.className:""));Ie.handleMouseEvents||Be.setAttribute("cm-ignore-events","true"),EI(Ie,Be,$,I),g.display.input.setUneditable(Be),L&&Ie.above?te.insertBefore(Be,$.gutter||$.text):te.appendChild(Be),No(Ie,"redraw")}}function EI(g,w,$,I){if(g.noHScroll){($.alignable||($.alignable=[])).push(w);var L=I.wrapperWidth;w.style.left=I.fixedPos+"px",g.coverGutter||(L-=I.gutterTotalWidth,w.style.paddingLeft=I.gutterTotalWidth+"px"),w.style.width=L+"px"}g.coverGutter&&(w.style.zIndex=5,w.style.position="relative",g.noHScroll||(w.style.marginLeft=-I.gutterTotalWidth+"px"))}function jp(g){if(g.height!=null)return g.height;var w=g.doc.cm;if(!w)return 0;if(!F(document.body,g.node)){var $="position: relative;";g.coverGutter&&($+="margin-left: -"+w.display.gutters.offsetWidth+"px;"),g.noHScroll&&($+="width: "+w.display.wrapper.clientWidth+"px;"),D(w.display.measure,R("div",[g.node],null,$))}return g.height=g.node.parentNode.offsetHeight}function Ku(g,w){for(var $=Bt(w);$!=g.wrapper;$=$.parentNode)if(!$||$.nodeType==1&&$.getAttribute("cm-ignore-events")=="true"||$.parentNode==g.sizer&&$!=g.mover)return!0}function Mg(g){return g.lineSpace.offsetTop}function O0(g){return g.mover.offsetHeight-g.lineSpace.offsetHeight}function F4(g){if(g.cachedPaddingH)return g.cachedPaddingH;var w=D(g.measure,R("pre","x","CodeMirror-line-like")),$=window.getComputedStyle?window.getComputedStyle(w):w.currentStyle,I={left:parseInt($.paddingLeft),right:parseInt($.paddingRight)};return!isNaN(I.left)&&!isNaN(I.right)&&(g.cachedPaddingH=I),I}function ec(g){return ce-g.display.nativeBarWidth}function qu(g){return g.display.scroller.clientWidth-ec(g)-g.display.barWidth}function P0(g){return g.display.scroller.clientHeight-ec(g)-g.display.barHeight}function j4(g,w,$){var I=g.options.lineWrapping,L=I&&qu(g);if(!w.measure.heights||I&&w.measure.width!=L){var te=w.measure.heights=[];if(I){w.measure.width=L;for(var de=w.text.firstChild.getClientRects(),Ee=0;Ee<de.length-1;Ee++){var Ie=de[Ee],Be=de[Ee+1];Math.abs(Ie.bottom-Be.bottom)>2&&te.push((Ie.bottom+Be.top)/2-$.top)}}te.push($.bottom-$.top)}}function B4(g,w,$){if(g.line==w)return{map:g.measure.map,cache:g.measure.cache};if(g.rest){for(var I=0;I<g.rest.length;I++)if(g.rest[I]==w)return{map:g.measure.maps[I],cache:g.measure.caches[I]};for(var L=0;L<g.rest.length;L++)if(Mt(g.rest[L])>$)return{map:g.measure.maps[L],cache:g.measure.caches[L],before:!0}}}function TI(g,w){w=cs(w);var $=Mt(w),I=g.display.externalMeasured=new Fp(g.doc,w,$);I.lineN=$;var L=I.built=A4(g,I);return I.text=L.pre,D(g.display.lineMeasure,L.pre),I}function H4(g,w,$,I){return Ti(g,Ps(g,w),$,I)}function Bp(g,w){if(w>=g.display.viewFrom&&w<g.display.viewTo)return g.display.view[An(g,w)];var $=g.display.externalMeasured;if($&&w>=$.lineN&&w<$.lineN+$.size)return $}function Ps(g,w){var $=Mt(w),I=Bp(g,$);I&&!I.text?I=null:I&&I.changes&&(C0(g,I,$,Ut(g)),g.curOp.forceUpdate=!0),I||(I=TI(g,w));var L=B4(I,w,$);return{line:w,view:I,rect:null,map:L.map,cache:L.cache,before:L.before,hasHeights:!1}}function Ti(g,w,$,I,L){w.before&&($=-1);var te=$+(I||""),de;return w.cache.hasOwnProperty(te)?de=w.cache[te]:(w.rect||(w.rect=w.view.text.getBoundingClientRect()),w.hasHeights||(j4(g,w.view,w.rect),w.hasHeights=!0),de=YC(g,w,$,I),de.bogus||(w.cache[te]=de)),{left:de.left,right:de.right,top:L?de.rtop:de.top,bottom:L?de.rbottom:de.bottom}}var Ig={left:0,right:0,top:0,bottom:0};function Qs(g,w,$){for(var I,L,te,de,Ee,Ie,Be=0;Be<g.length;Be+=3)if(Ee=g[Be],Ie=g[Be+1],w<Ee?(L=0,te=1,de="left"):w<Ie?(L=w-Ee,te=L+1):(Be==g.length-3||w==Ie&&g[Be+3]>w)&&(te=Ie-Ee,L=te-1,w>=Ie&&(de="right")),L!=null){if(I=g[Be+2],Ee==Ie&&$==(I.insertLeft?"left":"right")&&(de=$),$=="left"&&L==0)for(;Be&&g[Be-2]==g[Be-3]&&g[Be-1].insertLeft;)I=g[(Be-=3)+2],de="left";if($=="right"&&L==Ie-Ee)for(;Be<g.length-3&&g[Be+3]==g[Be+4]&&!g[Be+5].insertLeft;)I=g[(Be+=3)+2],de="right";break}return{node:I,start:L,end:te,collapse:de,coverStart:Ee,coverEnd:Ie}}function kI(g,w){var $=Ig;if(w=="left")for(var I=0;I<g.length&&($=g[I]).left==$.right;I++);else for(var L=g.length-1;L>=0&&($=g[L]).left==$.right;L--);return $}function YC(g,w,$,I){var L=Qs(w.map,$,I),te=L.node,de=L.start,Ee=L.end,Ie=L.collapse,Be;if(te.nodeType==3){for(var nt=0;nt<4;nt++){for(;de&&Pe(w.line.text.charAt(L.coverStart+de));)--de;for(;L.coverStart+Ee<L.coverEnd&&Pe(w.line.text.charAt(L.coverStart+Ee));)++Ee;if(a&&s<9&&de==0&&Ee==L.coverEnd-L.coverStart?Be=te.parentNode.getBoundingClientRect():Be=kI(H(te,de,Ee).getClientRects(),I),Be.left||Be.right||de==0)break;Ee=de,de=de-1,Ie="right"}a&&s<11&&(Be=z4(g.display.measure,Be))}else{de>0&&(Ie=I="right");var at;g.options.lineWrapping&&(at=te.getClientRects()).length>1?Be=at[I=="right"?at.length-1:0]:Be=te.getBoundingClientRect()}if(a&&s<9&&!de&&(!Be||!Be.left&&!Be.right)){var Et=te.parentNode.getClientRects()[0];Et?Be={left:Et.left,right:Et.left+xt(g.display),top:Et.top,bottom:Et.bottom}:Be=Ig}for(var yt=Be.top-w.rect.top,rn=Be.bottom-w.rect.top,dn=(yt+rn)/2,En=w.view.measure.heights,Bn=0;Bn<En.length-1&&!(dn<En[Bn]);Bn++);var Un=Bn?En[Bn-1]:0,Hn=En[Bn],Yn={left:(Ie=="right"?Be.right:Be.left)-w.rect.left,right:(Ie=="left"?Be.left:Be.right)-w.rect.left,top:Un,bottom:Hn};return!Be.left&&!Be.right&&(Yn.bogus=!0),g.options.singleCursorHeightPerLine||(Yn.rtop=yt,Yn.rbottom=rn),Yn}function z4(g,w){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Lt(g))return w;var $=screen.logicalXDPI/screen.deviceXDPI,I=screen.logicalYDPI/screen.deviceYDPI;return{left:w.left*$,right:w.right*$,top:w.top*I,bottom:w.bottom*I}}function lf(g){if(g.measure&&(g.measure.cache={},g.measure.heights=null,g.rest))for(var w=0;w<g.rest.length;w++)g.measure.caches[w]={}}function M0(g){g.display.externalMeasure=null,P(g.display.lineMeasure);for(var w=0;w<g.display.view.length;w++)lf(g.display.view[w])}function Qc(g){M0(g),g.display.cachedCharWidth=g.display.cachedTextHeight=g.display.cachedPaddingH=null,g.options.lineWrapping||(g.display.maxLineChanged=!0),g.display.lineNumChars=null}function Gu(){return u&&y?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function XC(){return u&&y?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function X(g){var w=cs(g),$=w.widgets,I=0;if($)for(var L=0;L<$.length;++L)$[L].above&&(I+=jp($[L]));return I}function re(g,w,$,I,L){if(!L){var te=X(w);$.top+=te,$.bottom+=te}if(I=="line")return $;I||(I="local");var de=Vu(w);if(I=="local"?de+=Mg(g.display):de-=g.display.viewOffset,I=="page"||I=="window"){var Ee=g.display.lineSpace.getBoundingClientRect();de+=Ee.top+(I=="window"?0:XC());var Ie=Ee.left+(I=="window"?0:Gu());$.left+=Ie,$.right+=Ie}return $.top+=de,$.bottom+=de,$}function ve(g,w,$){if($=="div")return w;var I=w.left,L=w.top;if($=="page")I-=Gu(),L-=XC();else if($=="local"||!$){var te=g.display.sizer.getBoundingClientRect();I+=te.left,L+=te.top}var de=g.display.lineSpace.getBoundingClientRect();return{left:I-de.left,top:L-de.top}}function $e(g,w,$,I,L){return I||(I=gt(g.doc,w.line)),re(g,I,H4(g,I,w.ch,L),$)}function He(g,w,$,I,L,te){I=I||gt(g.doc,w.line),L||(L=Ps(g,I));function de(rn,dn){var En=Ti(g,L,rn,dn?"right":"left",te);return dn?En.left=En.right:En.right=En.left,re(g,I,En,$)}var Ee=Oe(I,g.doc.direction),Ie=w.ch,Be=w.sticky;if(Ie>=I.text.length?(Ie=I.text.length,Be="before"):Ie<=0&&(Ie=0,Be="after"),!Ee)return de(Be=="before"?Ie-1:Ie,Be=="before");function nt(rn,dn,En){var Bn=Ee[dn],Un=Bn.level==1;return de(En?rn-1:rn,Un!=En)}var at=J(Ee,Ie,Be),Et=K,yt=nt(Ie,at,Be=="before");return Et!=null&&(yt.other=nt(Ie,Et,Be!="before")),yt}function qe(g,w){var $=0;w=on(g.doc,w),g.options.lineWrapping||($=xt(g.display)*w.ch);var I=gt(g.doc,w.line),L=Vu(I)+Mg(g.display);return{left:$,right:$,top:L,bottom:L+I.height}}function it(g,w,$,I,L){var te=O(g,w,$);return te.xRel=L,I&&(te.outside=I),te}function st(g,w,$){var I=g.doc;if($+=g.display.viewOffset,$<0)return it(I.first,0,null,-1,-1);var L=zt(I,$),te=I.first+I.size-1;if(L>te)return it(I.first+I.size-1,gt(I,te).text.length,null,1,1);w<0&&(w=0);for(var de=gt(I,L);;){var Ee=dt(g,de,L,w,$),Ie=uh(de,Ee.ch+(Ee.xRel>0||Ee.outside>0?1:0));if(!Ie)return Ee;var Be=Ie.find(1);if(Be.line==L)return Be;de=gt(I,L=Be.line)}}function vt(g,w,$,I){I-=X(w);var L=w.text.length,te=We(function(de){return Ti(g,$,de-1).bottom<=I},L,0);return L=We(function(de){return Ti(g,$,de).top>I},te,L),{begin:te,end:L}}function Ct(g,w,$,I){$||($=Ps(g,w));var L=re(g,w,Ti(g,$,I),"line").top;return vt(g,w,$,L)}function kt(g,w,$,I){return g.bottom<=$?!1:g.top>$?!0:(I?g.left:g.right)>w}function dt(g,w,$,I,L){L-=Vu(w);var te=Ps(g,w),de=X(w),Ee=0,Ie=w.text.length,Be=!0,nt=Oe(w,g.doc.direction);if(nt){var at=(g.options.lineWrapping?bt:Rt)(g,w,$,te,nt,I,L);Be=at.level!=1,Ee=Be?at.from:at.to-1,Ie=Be?at.to:at.from-1}var Et=null,yt=null,rn=We(function(vr){var pr=Ti(g,te,vr);return pr.top+=de,pr.bottom+=de,kt(pr,I,L,!1)?(pr.top<=L&&pr.left<=I&&(Et=vr,yt=pr),!0):!1},Ee,Ie),dn,En,Bn=!1;if(yt){var Un=I-yt.left<yt.right-I,Hn=Un==Be;rn=Et+(Hn?0:1),En=Hn?"after":"before",dn=Un?yt.left:yt.right}else{!Be&&(rn==Ie||rn==Ee)&&rn++,En=rn==0?"after":rn==w.text.length?"before":Ti(g,te,rn-(Be?1:0)).bottom+de<=L==Be?"after":"before";var Yn=He(g,O($,rn,En),"line",w,te);dn=Yn.left,Bn=L<Yn.top?-1:L>=Yn.bottom?1:0}return rn=Ne(w.text,rn,1),it($,rn,En,Bn,I-dn)}function Rt(g,w,$,I,L,te,de){var Ee=We(function(at){var Et=L[at],yt=Et.level!=1;return kt(He(g,O($,yt?Et.to:Et.from,yt?"before":"after"),"line",w,I),te,de,!0)},0,L.length-1),Ie=L[Ee];if(Ee>0){var Be=Ie.level!=1,nt=He(g,O($,Be?Ie.from:Ie.to,Be?"after":"before"),"line",w,I);kt(nt,te,de,!0)&&nt.top>de&&(Ie=L[Ee-1])}return Ie}function bt(g,w,$,I,L,te,de){var Ee=vt(g,w,I,de),Ie=Ee.begin,Be=Ee.end;/\s/.test(w.text.charAt(Be-1))&&Be--;for(var nt=null,at=null,Et=0;Et<L.length;Et++){var yt=L[Et];if(!(yt.from>=Be||yt.to<=Ie)){var rn=yt.level!=1,dn=Ti(g,I,rn?Math.min(Be,yt.to)-1:Math.max(Ie,yt.from)).right,En=dn<te?te-dn+1e9:dn-te;(!nt||at>En)&&(nt=yt,at=En)}}return nt||(nt=L[L.length-1]),nt.from<Ie&&(nt={from:Ie,to:nt.to,level:nt.level}),nt.to>Be&&(nt={from:nt.from,to:Be,level:nt.level}),nt}var wt;function It(g){if(g.cachedTextHeight!=null)return g.cachedTextHeight;if(wt==null){wt=R("pre",null,"CodeMirror-line-like");for(var w=0;w<49;++w)wt.appendChild(document.createTextNode("x")),wt.appendChild(R("br"));wt.appendChild(document.createTextNode("x"))}D(g.measure,wt);var $=wt.offsetHeight/50;return $>3&&(g.cachedTextHeight=$),P(g.measure),$||1}function xt(g){if(g.cachedCharWidth!=null)return g.cachedCharWidth;var w=R("span","xxxxxxxxxx"),$=R("pre",[w],"CodeMirror-line-like");D(g.measure,$);var I=w.getBoundingClientRect(),L=(I.right-I.left)/10;return L>2&&(g.cachedCharWidth=L),L||10}function Ut(g){for(var w=g.display,$={},I={},L=w.gutters.clientLeft,te=w.gutters.firstChild,de=0;te;te=te.nextSibling,++de){var Ee=g.display.gutterSpecs[de].className;$[Ee]=te.offsetLeft+te.clientLeft+L,I[Ee]=te.clientWidth}return{fixedPos:Xt(w),gutterTotalWidth:w.gutters.offsetWidth,gutterLeft:$,gutterWidth:I,wrapperWidth:w.wrapper.clientWidth}}function Xt(g){return g.scroller.getBoundingClientRect().left-g.sizer.getBoundingClientRect().left}function en(g){var w=It(g.display),$=g.options.lineWrapping,I=$&&Math.max(5,g.display.scroller.clientWidth/xt(g.display)-3);return function(L){if(Xc(g.doc,L))return 0;var te=0;if(L.widgets)for(var de=0;de<L.widgets.length;de++)L.widgets[de].height&&(te+=L.widgets[de].height);return $?te+(Math.ceil(L.text.length/I)||1)*w:te+w}}function un(g){var w=g.doc,$=en(g);w.iter(function(I){var L=$(I);L!=I.height&&mt(I,L)})}function _n(g,w,$,I){var L=g.display;if(!$&&Bt(w).getAttribute("cm-not-content")=="true")return null;var te,de,Ee=L.lineSpace.getBoundingClientRect();try{te=w.clientX-Ee.left,de=w.clientY-Ee.top}catch{return null}var Ie=st(g,te,de),Be;if(I&&Ie.xRel>0&&(Be=gt(g.doc,Ie.line).text).length==Ie.ch){var nt=V(Be,Be.length,g.options.tabSize)-Be.length;Ie=O(Ie.line,Math.max(0,Math.round((te-F4(g.display).left)/xt(g.display))-nt))}return Ie}function An(g,w){if(w>=g.display.viewTo||(w-=g.display.viewFrom,w<0))return null;for(var $=g.display.view,I=0;I<$.length;I++)if(w-=$[I].size,w<0)return I}function yn(g,w,$,I){w==null&&(w=g.doc.first),$==null&&($=g.doc.first+g.doc.size),I||(I=0);var L=g.display;if(I&&$<L.viewTo&&(L.updateLineNumbers==null||L.updateLineNumbers>w)&&(L.updateLineNumbers=w),g.curOp.viewChanged=!0,w>=L.viewTo)xn&&Lp(g.doc,w)<L.viewTo&&jn(g);else if($<=L.viewFrom)xn&&Og(g.doc,$+I)>L.viewFrom?jn(g):(L.viewFrom+=I,L.viewTo+=I);else if(w<=L.viewFrom&&$>=L.viewTo)jn(g);else if(w<=L.viewFrom){var te=Ln(g,$,$+I,1);te?(L.view=L.view.slice(te.index),L.viewFrom=te.lineN,L.viewTo+=I):jn(g)}else if($>=L.viewTo){var de=Ln(g,w,w,-1);de?(L.view=L.view.slice(0,de.index),L.viewTo=de.lineN):jn(g)}else{var Ee=Ln(g,w,w,-1),Ie=Ln(g,$,$+I,1);Ee&&Ie?(L.view=L.view.slice(0,Ee.index).concat(af(g,Ee.lineN,Ie.lineN)).concat(L.view.slice(Ie.index)),L.viewTo+=I):jn(g)}var Be=L.externalMeasured;Be&&($<Be.lineN?Be.lineN+=I:w<Be.lineN+Be.size&&(L.externalMeasured=null))}function kn(g,w,$){g.curOp.viewChanged=!0;var I=g.display,L=g.display.externalMeasured;if(L&&w>=L.lineN&&w<L.lineN+L.size&&(I.externalMeasured=null),!(w<I.viewFrom||w>=I.viewTo)){var te=I.view[An(g,w)];if(te.node!=null){var de=te.changes||(te.changes=[]);ie(de,$)==-1&&de.push($)}}}function jn(g){g.display.viewFrom=g.display.viewTo=g.doc.first,g.display.view=[],g.display.viewOffset=0}function Ln(g,w,$,I){var L=An(g,w),te,de=g.display.view;if(!xn||$==g.doc.first+g.doc.size)return{index:L,lineN:$};for(var Ee=g.display.viewFrom,Ie=0;Ie<L;Ie++)Ee+=de[Ie].size;if(Ee!=w){if(I>0){if(L==de.length-1)return null;te=Ee+de[L].size-w,L++}else te=Ee-w;w+=te,$+=te}for(;Lp(g.doc,$)!=$;){if(L==(I<0?0:de.length-1))return null;$+=I*de[L-(I<0?1:0)].size,L+=I}return{index:L,lineN:$}}function er(g,w,$){var I=g.display,L=I.view;L.length==0||w>=I.viewTo||$<=I.viewFrom?(I.view=af(g,w,$),I.viewFrom=w):(I.viewFrom>w?I.view=af(g,w,I.viewFrom).concat(I.view):I.viewFrom<w&&(I.view=I.view.slice(An(g,w))),I.viewFrom=w,I.viewTo<$?I.view=I.view.concat(af(g,I.viewTo,$)):I.viewTo>$&&(I.view=I.view.slice(0,An(g,$)))),I.viewTo=$}function Br(g){for(var w=g.display.view,$=0,I=0;I<w.length;I++){var L=w[I];!L.hidden&&(!L.node||L.changes)&&++$}return $}function Ur(g){g.display.input.showSelection(g.display.input.prepareSelection())}function Xr(g,w){w===void 0&&(w=!0);var $=g.doc,I={},L=I.cursors=document.createDocumentFragment(),te=I.selection=document.createDocumentFragment(),de=g.options.$customCursor;de&&(w=!0);for(var Ee=0;Ee<$.sel.ranges.length;Ee++)if(!(!w&&Ee==$.sel.primIndex)){var Ie=$.sel.ranges[Ee];if(!(Ie.from().line>=g.display.viewTo||Ie.to().line<g.display.viewFrom)){var Be=Ie.empty();if(de){var nt=de(g,Ie);nt&&us(g,nt,L)}else(Be||g.options.showCursorWhenSelecting)&&us(g,Ie.head,L);Be||Xa(g,Ie,te)}}return I}function us(g,w,$){var I=He(g,w,"div",null,null,!g.options.singleCursorHeightPerLine),L=$.appendChild(R("div"," ","CodeMirror-cursor"));if(L.style.left=I.left+"px",L.style.top=I.top+"px",L.style.height=Math.max(0,I.bottom-I.top)*g.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(g.getWrapperElement().className)){var te=$e(g,w,"div",null,null),de=te.right-te.left;L.style.width=(de>0?de:g.defaultCharWidth())+"px"}if(I.other){var Ee=$.appendChild(R("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));Ee.style.display="",Ee.style.left=I.other.left+"px",Ee.style.top=I.other.top+"px",Ee.style.height=(I.other.bottom-I.other.top)*.85+"px"}}function Nr(g,w){return g.top-w.top||g.left-w.left}function Xa(g,w,$){var I=g.display,L=g.doc,te=document.createDocumentFragment(),de=F4(g.display),Ee=de.left,Ie=Math.max(I.sizerWidth,qu(g)-I.sizer.offsetLeft)-de.right,Be=L.direction=="ltr";function nt(Hn,Yn,vr,pr){Yn<0&&(Yn=0),Yn=Math.round(Yn),pr=Math.round(pr),te.appendChild(R("div",null,"CodeMirror-selected","position: absolute; left: "+Hn+`px;
|
||
top: `+Yn+"px; width: "+(vr??Ie-Hn)+`px;
|
||
height: `+(pr-Yn)+"px"))}function at(Hn,Yn,vr){var pr=gt(L,Hn),Kr=pr.text.length,Ki,Da;function _o(oa,el){return $e(g,O(Hn,oa),"div",pr,el)}function _l(oa,el,Qa){var Sa=Ct(g,pr,null,oa),aa=el=="ltr"==(Qa=="after")?"left":"right",Do=Qa=="after"?Sa.begin:Sa.end-(/\s/.test(pr.text.charAt(Sa.end-1))?2:1);return _o(Do,aa)[aa]}var Js=Oe(pr,L.direction);return Q(Js,Yn||0,vr??Kr,function(oa,el,Qa,Sa){var aa=Qa=="ltr",Do=_o(oa,aa?"left":"right"),tl=_o(el-1,aa?"right":"left"),z0=Yn==null&&oa==0,Kp=vr==null&&el==Kr,fs=Sa==0,uf=!Js||Sa==Js.length-1;if(tl.top-Do.top<=3){var La=(Be?z0:Kp)&&fs,XI=(Be?Kp:z0)&&uf,gh=La?Ee:(aa?Do:tl).left,Lg=XI?Ie:(aa?tl:Do).right;nt(gh,Do.top,Lg-gh,Do.bottom)}else{var Fg,Is,U0,QI;aa?(Fg=Be&&z0&&fs?Ee:Do.left,Is=Be?Ie:_l(oa,Qa,"before"),U0=Be?Ee:_l(el,Qa,"after"),QI=Be&&Kp&&uf?Ie:tl.right):(Fg=Be?_l(oa,Qa,"before"):Ee,Is=!Be&&z0&&fs?Ie:Do.right,U0=!Be&&Kp&&uf?Ee:tl.left,QI=Be?_l(el,Qa,"after"):Ie),nt(Fg,Do.top,Is-Fg,Do.bottom),Do.bottom<tl.top&&nt(Ee,Do.bottom,null,tl.top),nt(U0,tl.top,QI-U0,tl.bottom)}(!Ki||Nr(Do,Ki)<0)&&(Ki=Do),Nr(tl,Ki)<0&&(Ki=tl),(!Da||Nr(Do,Da)<0)&&(Da=Do),Nr(tl,Da)<0&&(Da=tl)}),{start:Ki,end:Da}}var Et=w.from(),yt=w.to();if(Et.line==yt.line)at(Et.line,Et.ch,yt.ch);else{var rn=gt(L,Et.line),dn=gt(L,yt.line),En=cs(rn)==cs(dn),Bn=at(Et.line,Et.ch,En?rn.text.length+1:null).end,Un=at(yt.line,En?0:null,yt.ch).start;En&&(Bn.top<Un.top-2?(nt(Bn.right,Bn.top,null,Bn.bottom),nt(Ee,Un.top,Un.left,Un.bottom)):nt(Bn.right,Bn.top,Un.left-Bn.right,Bn.bottom)),Bn.bottom<Un.top&&nt(Ee,Bn.bottom,null,Un.top)}$.appendChild(te)}function ba(g){if(g.state.focused){var w=g.display;clearInterval(w.blinker);var $=!0;w.cursorDiv.style.visibility="",g.options.cursorBlinkRate>0?w.blinker=setInterval(function(){g.hasFocus()||cf(g),w.cursorDiv.style.visibility=($=!$)?"":"hidden"},g.options.cursorBlinkRate):g.options.cursorBlinkRate<0&&(w.cursorDiv.style.visibility="hidden")}}function $g(g){g.hasFocus()||(g.display.input.focus(),g.state.focused||Yu(g))}function Ra(g){g.state.delayingBlurEvent=!0,setTimeout(function(){g.state.delayingBlurEvent&&(g.state.delayingBlurEvent=!1,g.state.focused&&cf(g))},100)}function Yu(g,w){g.state.delayingBlurEvent&&!g.state.draggingText&&(g.state.delayingBlurEvent=!1),g.options.readOnly!="nocursor"&&(g.state.focused||(ze(g,"focus",g,w),g.state.focused=!0,W(g.display.wrapper,"CodeMirror-focused"),!g.curOp&&g.display.selForContextMenu!=g.doc.sel&&(g.display.input.reset(),l&&setTimeout(function(){return g.display.input.reset(!0)},20)),g.display.input.receivedFocus()),ba(g))}function cf(g,w){g.state.delayingBlurEvent||(g.state.focused&&(ze(g,"blur",g,w),g.state.focused=!1,M(g.display.wrapper,"CodeMirror-focused")),clearInterval(g.display.blinker),setTimeout(function(){g.state.focused||(g.display.shift=!1)},150))}function U4(g){for(var w=g.display,$=w.lineDiv.offsetTop,I=Math.max(0,w.scroller.getBoundingClientRect().top),L=w.lineDiv.getBoundingClientRect().top,te=0,de=0;de<w.view.length;de++){var Ee=w.view[de],Ie=g.options.lineWrapping,Be=void 0,nt=0;if(!Ee.hidden){if(L+=Ee.line.height,a&&s<8){var at=Ee.node.offsetTop+Ee.node.offsetHeight;Be=at-$,$=at}else{var Et=Ee.node.getBoundingClientRect();Be=Et.bottom-Et.top,!Ie&&Ee.text.firstChild&&(nt=Ee.text.firstChild.getBoundingClientRect().right-Et.left-1)}var yt=Ee.line.height-Be;if((yt>.005||yt<-.005)&&(L<I&&(te-=yt),mt(Ee.line,Be),nG(Ee.line),Ee.rest))for(var rn=0;rn<Ee.rest.length;rn++)nG(Ee.rest[rn]);if(nt>g.display.sizerWidth){var dn=Math.ceil(nt/xt(g.display));dn>g.display.maxLineLength&&(g.display.maxLineLength=dn,g.display.maxLine=Ee.line,g.display.maxLineChanged=!0)}}}Math.abs(te)>2&&(w.scroller.scrollTop+=te)}function nG(g){if(g.widgets)for(var w=0;w<g.widgets.length;++w){var $=g.widgets[w],I=$.node.parentNode;I&&($.height=I.offsetHeight)}}function W4(g,w,$){var I=$&&$.top!=null?Math.max(0,$.top):g.scroller.scrollTop;I=Math.floor(I-Mg(g));var L=$&&$.bottom!=null?$.bottom:I+g.wrapper.clientHeight,te=zt(w,I),de=zt(w,L);if($&&$.ensure){var Ee=$.ensure.from.line,Ie=$.ensure.to.line;Ee<te?(te=Ee,de=zt(w,Vu(gt(w,Ee))+g.wrapper.clientHeight)):Math.min(Ie,w.lastLine())>=de&&(te=zt(w,Vu(gt(w,Ie))-g.wrapper.clientHeight),de=Ie)}return{from:te,to:Math.max(de,te+1)}}function M8e(g,w){if(!Ye(g,"scrollCursorIntoView")){var $=g.display,I=$.sizer.getBoundingClientRect(),L=null;if(w.top+I.top<0?L=!0:w.bottom+I.top>(window.innerHeight||document.documentElement.clientHeight)&&(L=!1),L!=null&&!m){var te=R("div","",null,`position: absolute;
|
||
top: `+(w.top-$.viewOffset-Mg(g.display))+`px;
|
||
height: `+(w.bottom-w.top+ec(g)+$.barHeight)+`px;
|
||
left: `+w.left+"px; width: "+Math.max(2,w.right-w.left)+"px;");g.display.lineSpace.appendChild(te),te.scrollIntoView(L),g.display.lineSpace.removeChild(te)}}}function I8e(g,w,$,I){I==null&&(I=0);var L;!g.options.lineWrapping&&w==$&&($=w.sticky=="before"?O(w.line,w.ch+1,"before"):w,w=w.ch?O(w.line,w.sticky=="before"?w.ch-1:w.ch,"after"):w);for(var te=0;te<5;te++){var de=!1,Ee=He(g,w),Ie=!$||$==w?Ee:He(g,$);L={left:Math.min(Ee.left,Ie.left),top:Math.min(Ee.top,Ie.top)-I,right:Math.max(Ee.left,Ie.left),bottom:Math.max(Ee.bottom,Ie.bottom)+I};var Be=OI(g,L),nt=g.doc.scrollTop,at=g.doc.scrollLeft;if(Be.scrollTop!=null&&(ZC(g,Be.scrollTop),Math.abs(g.doc.scrollTop-nt)>1&&(de=!0)),Be.scrollLeft!=null&&(Rg(g,Be.scrollLeft),Math.abs(g.doc.scrollLeft-at)>1&&(de=!0)),!de)break}return L}function $8e(g,w){var $=OI(g,w);$.scrollTop!=null&&ZC(g,$.scrollTop),$.scrollLeft!=null&&Rg(g,$.scrollLeft)}function OI(g,w){var $=g.display,I=It(g.display);w.top<0&&(w.top=0);var L=g.curOp&&g.curOp.scrollTop!=null?g.curOp.scrollTop:$.scroller.scrollTop,te=P0(g),de={};w.bottom-w.top>te&&(w.bottom=w.top+te);var Ee=g.doc.height+O0($),Ie=w.top<I,Be=w.bottom>Ee-I;if(w.top<L)de.scrollTop=Ie?0:w.top;else if(w.bottom>L+te){var nt=Math.min(w.top,(Be?Ee:w.bottom)-te);nt!=L&&(de.scrollTop=nt)}var at=g.options.fixedGutter?0:$.gutters.offsetWidth,Et=g.curOp&&g.curOp.scrollLeft!=null?g.curOp.scrollLeft:$.scroller.scrollLeft-at,yt=qu(g)-$.gutters.offsetWidth,rn=w.right-w.left>yt;return rn&&(w.right=w.left+yt),w.left<10?de.scrollLeft=0:w.left<Et?de.scrollLeft=Math.max(0,w.left+at-(rn?0:10)):w.right>yt+Et-3&&(de.scrollLeft=w.right+(rn?0:10)-yt),de}function PI(g,w){w!=null&&(V4(g),g.curOp.scrollTop=(g.curOp.scrollTop==null?g.doc.scrollTop:g.curOp.scrollTop)+w)}function I0(g){V4(g);var w=g.getCursor();g.curOp.scrollToPos={from:w,to:w,margin:g.options.cursorScrollMargin}}function QC(g,w,$){(w!=null||$!=null)&&V4(g),w!=null&&(g.curOp.scrollLeft=w),$!=null&&(g.curOp.scrollTop=$)}function R8e(g,w){V4(g),g.curOp.scrollToPos=w}function V4(g){var w=g.curOp.scrollToPos;if(w){g.curOp.scrollToPos=null;var $=qe(g,w.from),I=qe(g,w.to);rG(g,$,I,w.margin)}}function rG(g,w,$,I){var L=OI(g,{left:Math.min(w.left,$.left),top:Math.min(w.top,$.top)-I,right:Math.max(w.right,$.right),bottom:Math.max(w.bottom,$.bottom)+I});QC(g,L.scrollLeft,L.scrollTop)}function ZC(g,w){Math.abs(g.doc.scrollTop-w)<2||(n||II(g,{top:w}),iG(g,w,!0),n&&II(g),tx(g,100))}function iG(g,w,$){w=Math.max(0,Math.min(g.display.scroller.scrollHeight-g.display.scroller.clientHeight,w)),!(g.display.scroller.scrollTop==w&&!$)&&(g.doc.scrollTop=w,g.display.scrollbars.setScrollTop(w),g.display.scroller.scrollTop!=w&&(g.display.scroller.scrollTop=w))}function Rg(g,w,$,I){w=Math.max(0,Math.min(w,g.display.scroller.scrollWidth-g.display.scroller.clientWidth)),!(($?w==g.doc.scrollLeft:Math.abs(g.doc.scrollLeft-w)<2)&&!I)&&(g.doc.scrollLeft=w,cG(g),g.display.scroller.scrollLeft!=w&&(g.display.scroller.scrollLeft=w),g.display.scrollbars.setScrollLeft(w))}function JC(g){var w=g.display,$=w.gutters.offsetWidth,I=Math.round(g.doc.height+O0(g.display));return{clientHeight:w.scroller.clientHeight,viewHeight:w.wrapper.clientHeight,scrollWidth:w.scroller.scrollWidth,clientWidth:w.scroller.clientWidth,viewWidth:w.wrapper.clientWidth,barLeft:g.options.fixedGutter?$:0,docHeight:I,scrollHeight:I+ec(g)+w.barHeight,nativeBarWidth:w.nativeBarWidth,gutterWidth:$}}var Ag=function(g,w,$){this.cm=$;var I=this.vert=R("div",[R("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),L=this.horiz=R("div",[R("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");I.tabIndex=L.tabIndex=-1,g(I),g(L),Ke(I,"scroll",function(){I.clientHeight&&w(I.scrollTop,"vertical")}),Ke(L,"scroll",function(){L.clientWidth&&w(L.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ag.prototype.update=function(g){var w=g.scrollWidth>g.clientWidth+1,$=g.scrollHeight>g.clientHeight+1,I=g.nativeBarWidth;if($){this.vert.style.display="block",this.vert.style.bottom=w?I+"px":"0";var L=g.viewHeight-(w?I:0);this.vert.firstChild.style.height=Math.max(0,g.scrollHeight-g.clientHeight+L)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(w){this.horiz.style.display="block",this.horiz.style.right=$?I+"px":"0",this.horiz.style.left=g.barLeft+"px";var te=g.viewWidth-g.barLeft-($?I:0);this.horiz.firstChild.style.width=Math.max(0,g.scrollWidth-g.clientWidth+te)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&g.clientHeight>0&&(I==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:$?I:0,bottom:w?I:0}},Ag.prototype.setScrollLeft=function(g){this.horiz.scrollLeft!=g&&(this.horiz.scrollLeft=g),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ag.prototype.setScrollTop=function(g){this.vert.scrollTop!=g&&(this.vert.scrollTop=g),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ag.prototype.zeroWidthHack=function(){var g=b&&!p?"12px":"18px";this.horiz.style.height=this.vert.style.width=g,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Y,this.disableVert=new Y},Ag.prototype.enableZeroWidthBar=function(g,w,$){g.style.pointerEvents="auto";function I(){var L=g.getBoundingClientRect(),te=$=="vert"?document.elementFromPoint(L.right-1,(L.top+L.bottom)/2):document.elementFromPoint((L.right+L.left)/2,L.bottom-1);te!=g?g.style.pointerEvents="none":w.set(1e3,I)}w.set(1e3,I)},Ag.prototype.clear=function(){var g=this.horiz.parentNode;g.removeChild(this.horiz),g.removeChild(this.vert)};var ex=function(){};ex.prototype.update=function(){return{bottom:0,right:0}},ex.prototype.setScrollLeft=function(){},ex.prototype.setScrollTop=function(){},ex.prototype.clear=function(){};function $0(g,w){w||(w=JC(g));var $=g.display.barWidth,I=g.display.barHeight;oG(g,w);for(var L=0;L<4&&$!=g.display.barWidth||I!=g.display.barHeight;L++)$!=g.display.barWidth&&g.options.lineWrapping&&U4(g),oG(g,JC(g)),$=g.display.barWidth,I=g.display.barHeight}function oG(g,w){var $=g.display,I=$.scrollbars.update(w);$.sizer.style.paddingRight=($.barWidth=I.right)+"px",$.sizer.style.paddingBottom=($.barHeight=I.bottom)+"px",$.heightForcer.style.borderBottom=I.bottom+"px solid transparent",I.right&&I.bottom?($.scrollbarFiller.style.display="block",$.scrollbarFiller.style.height=I.bottom+"px",$.scrollbarFiller.style.width=I.right+"px"):$.scrollbarFiller.style.display="",I.bottom&&g.options.coverGutterNextToScrollbar&&g.options.fixedGutter?($.gutterFiller.style.display="block",$.gutterFiller.style.height=I.bottom+"px",$.gutterFiller.style.width=w.gutterWidth+"px"):$.gutterFiller.style.display=""}var aG={native:Ag,null:ex};function sG(g){g.display.scrollbars&&(g.display.scrollbars.clear(),g.display.scrollbars.addClass&&M(g.display.wrapper,g.display.scrollbars.addClass)),g.display.scrollbars=new aG[g.options.scrollbarStyle](function(w){g.display.wrapper.insertBefore(w,g.display.scrollbarFiller),Ke(w,"mousedown",function(){g.state.focused&&setTimeout(function(){return g.display.input.focus()},0)}),w.setAttribute("cm-not-content","true")},function(w,$){$=="horizontal"?Rg(g,w):ZC(g,w)},g),g.display.scrollbars.addClass&&W(g.display.wrapper,g.display.scrollbars.addClass)}var A8e=0;function Ng(g){g.curOp={cm:g,viewChanged:!1,startHeight:g.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:++A8e,markArrays:null},S0(g.curOp)}function Dg(g){var w=g.curOp;w&&D4(w,function($){for(var I=0;I<$.ops.length;I++)$.ops[I].cm.curOp=null;N8e($)})}function N8e(g){for(var w=g.ops,$=0;$<w.length;$++)D8e(w[$]);for(var I=0;I<w.length;I++)L8e(w[I]);for(var L=0;L<w.length;L++)F8e(w[L]);for(var te=0;te<w.length;te++)j8e(w[te]);for(var de=0;de<w.length;de++)B8e(w[de])}function D8e(g){var w=g.cm,$=w.display;z8e(w),g.updateMaxLine&&Pg(w),g.mustUpdate=g.viewChanged||g.forceUpdate||g.scrollTop!=null||g.scrollToPos&&(g.scrollToPos.from.line<$.viewFrom||g.scrollToPos.to.line>=$.viewTo)||$.maxLineChanged&&w.options.lineWrapping,g.update=g.mustUpdate&&new K4(w,g.mustUpdate&&{top:g.scrollTop,ensure:g.scrollToPos},g.forceUpdate)}function L8e(g){g.updatedDisplay=g.mustUpdate&&MI(g.cm,g.update)}function F8e(g){var w=g.cm,$=w.display;g.updatedDisplay&&U4(w),g.barMeasure=JC(w),$.maxLineChanged&&!w.options.lineWrapping&&(g.adjustWidthTo=H4(w,$.maxLine,$.maxLine.text.length).left+3,w.display.sizerWidth=g.adjustWidthTo,g.barMeasure.scrollWidth=Math.max($.scroller.clientWidth,$.sizer.offsetLeft+g.adjustWidthTo+ec(w)+w.display.barWidth),g.maxScrollLeft=Math.max(0,$.sizer.offsetLeft+g.adjustWidthTo-qu(w))),(g.updatedDisplay||g.selectionChanged)&&(g.preparedSelection=$.input.prepareSelection())}function j8e(g){var w=g.cm;g.adjustWidthTo!=null&&(w.display.sizer.style.minWidth=g.adjustWidthTo+"px",g.maxScrollLeft<w.doc.scrollLeft&&Rg(w,Math.min(w.display.scroller.scrollLeft,g.maxScrollLeft),!0),w.display.maxLineChanged=!1);var $=g.focus&&g.focus==z();g.preparedSelection&&w.display.input.showSelection(g.preparedSelection,$),(g.updatedDisplay||g.startHeight!=w.doc.height)&&$0(w,g.barMeasure),g.updatedDisplay&&RI(w,g.barMeasure),g.selectionChanged&&ba(w),w.state.focused&&g.updateInput&&w.display.input.reset(g.typing),$&&$g(g.cm)}function B8e(g){var w=g.cm,$=w.display,I=w.doc;if(g.updatedDisplay&&lG(w,g.update),$.wheelStartX!=null&&(g.scrollTop!=null||g.scrollLeft!=null||g.scrollToPos)&&($.wheelStartX=$.wheelStartY=null),g.scrollTop!=null&&iG(w,g.scrollTop,g.forceScroll),g.scrollLeft!=null&&Rg(w,g.scrollLeft,!0,!0),g.scrollToPos){var L=I8e(w,on(I,g.scrollToPos.from),on(I,g.scrollToPos.to),g.scrollToPos.margin);M8e(w,L)}var te=g.maybeHiddenMarkers,de=g.maybeUnhiddenMarkers;if(te)for(var Ee=0;Ee<te.length;++Ee)te[Ee].lines.length||ze(te[Ee],"hide");if(de)for(var Ie=0;Ie<de.length;++Ie)de[Ie].lines.length&&ze(de[Ie],"unhide");$.wrapper.offsetHeight&&(I.scrollTop=w.display.scroller.scrollTop),g.changeObjs&&ze(w,"changes",w,g.changeObjs),g.update&&g.update.finish()}function wl(g,w){if(g.curOp)return w();Ng(g);try{return w()}finally{Dg(g)}}function Aa(g,w){return function(){if(g.curOp)return w.apply(g,arguments);Ng(g);try{return w.apply(g,arguments)}finally{Dg(g)}}}function Ms(g){return function(){if(this.curOp)return g.apply(this,arguments);Ng(this);try{return g.apply(this,arguments)}finally{Dg(this)}}}function Na(g){return function(){var w=this.cm;if(!w||w.curOp)return g.apply(this,arguments);Ng(w);try{return g.apply(this,arguments)}finally{Dg(w)}}}function tx(g,w){g.doc.highlightFrontier<g.display.viewTo&&g.state.highlight.set(w,N(H8e,g))}function H8e(g){var w=g.doc;if(!(w.highlightFrontier>=g.display.viewTo)){var $=+new Date+g.options.workTime,I=Pn(g,w.highlightFrontier),L=[];w.iter(I.line,Math.min(w.first+w.size,g.display.viewTo+500),function(te){if(I.line>=g.display.viewFrom){var de=te.styles,Ee=te.text.length>g.options.maxHighlightLength?jt(w.mode,I.state):null,Ie=Rr(g,te,I,!0);Ee&&(I.state=Ee),te.styles=Ie.styles;var Be=te.styleClasses,nt=Ie.classes;nt?te.styleClasses=nt:Be&&(te.styleClasses=null);for(var at=!de||de.length!=te.styles.length||Be!=nt&&(!Be||!nt||Be.bgClass!=nt.bgClass||Be.textClass!=nt.textClass),Et=0;!at&&Et<de.length;++Et)at=de[Et]!=te.styles[Et];at&&L.push(I.line),te.stateAfter=I.save(),I.nextLine()}else te.text.length<=g.options.maxHighlightLength&&Ar(g,te.text,I),te.stateAfter=I.line%5==0?I.save():null,I.nextLine();if(+new Date>$)return tx(g,g.options.workDelay),!0}),w.highlightFrontier=I.line,w.modeFrontier=Math.max(w.modeFrontier,I.line),L.length&&wl(g,function(){for(var te=0;te<L.length;te++)kn(g,L[te],"text")})}}var K4=function(g,w,$){var I=g.display;this.viewport=w,this.visible=W4(I,g.doc,w),this.editorIsHidden=!I.wrapper.offsetWidth,this.wrapperHeight=I.wrapper.clientHeight,this.wrapperWidth=I.wrapper.clientWidth,this.oldDisplayWidth=qu(g),this.force=$,this.dims=Ut(g),this.events=[]};K4.prototype.signal=function(g,w){Je(g,w)&&this.events.push(arguments)},K4.prototype.finish=function(){for(var g=0;g<this.events.length;g++)ze.apply(null,this.events[g])};function z8e(g){var w=g.display;!w.scrollbarsClipped&&w.scroller.offsetWidth&&(w.nativeBarWidth=w.scroller.offsetWidth-w.scroller.clientWidth,w.heightForcer.style.height=ec(g)+"px",w.sizer.style.marginBottom=-w.nativeBarWidth+"px",w.sizer.style.borderRightWidth=ec(g)+"px",w.scrollbarsClipped=!0)}function U8e(g){if(g.hasFocus())return null;var w=z();if(!w||!F(g.display.lineDiv,w))return null;var $={activeElt:w};if(window.getSelection){var I=window.getSelection();I.anchorNode&&I.extend&&F(g.display.lineDiv,I.anchorNode)&&($.anchorNode=I.anchorNode,$.anchorOffset=I.anchorOffset,$.focusNode=I.focusNode,$.focusOffset=I.focusOffset)}return $}function W8e(g){if(!(!g||!g.activeElt||g.activeElt==z())&&(g.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(g.activeElt.nodeName)&&g.anchorNode&&F(document.body,g.anchorNode)&&F(document.body,g.focusNode))){var w=window.getSelection(),$=document.createRange();$.setEnd(g.anchorNode,g.anchorOffset),$.collapse(!1),w.removeAllRanges(),w.addRange($),w.extend(g.focusNode,g.focusOffset)}}function MI(g,w){var $=g.display,I=g.doc;if(w.editorIsHidden)return jn(g),!1;if(!w.force&&w.visible.from>=$.viewFrom&&w.visible.to<=$.viewTo&&($.updateLineNumbers==null||$.updateLineNumbers>=$.viewTo)&&$.renderedView==$.view&&Br(g)==0)return!1;uG(g)&&(jn(g),w.dims=Ut(g));var L=I.first+I.size,te=Math.max(w.visible.from-g.options.viewportMargin,I.first),de=Math.min(L,w.visible.to+g.options.viewportMargin);$.viewFrom<te&&te-$.viewFrom<20&&(te=Math.max(I.first,$.viewFrom)),$.viewTo>de&&$.viewTo-de<20&&(de=Math.min(L,$.viewTo)),xn&&(te=Lp(g.doc,te),de=Og(g.doc,de));var Ee=te!=$.viewFrom||de!=$.viewTo||$.lastWrapHeight!=w.wrapperHeight||$.lastWrapWidth!=w.wrapperWidth;er(g,te,de),$.viewOffset=Vu(gt(g.doc,$.viewFrom)),g.display.mover.style.top=$.viewOffset+"px";var Ie=Br(g);if(!Ee&&Ie==0&&!w.force&&$.renderedView==$.view&&($.updateLineNumbers==null||$.updateLineNumbers>=$.viewTo))return!1;var Be=U8e(g);return Ie>4&&($.lineDiv.style.display="none"),V8e(g,$.updateLineNumbers,w.dims),Ie>4&&($.lineDiv.style.display=""),$.renderedView=$.view,W8e(Be),P($.cursorDiv),P($.selectionDiv),$.gutters.style.height=$.sizer.style.minHeight=0,Ee&&($.lastWrapHeight=w.wrapperHeight,$.lastWrapWidth=w.wrapperWidth,tx(g,400)),$.updateLineNumbers=null,!0}function lG(g,w){for(var $=w.viewport,I=!0;;I=!1){if(!I||!g.options.lineWrapping||w.oldDisplayWidth==qu(g)){if($&&$.top!=null&&($={top:Math.min(g.doc.height+O0(g.display)-P0(g),$.top)}),w.visible=W4(g.display,g.doc,$),w.visible.from>=g.display.viewFrom&&w.visible.to<=g.display.viewTo)break}else I&&(w.visible=W4(g.display,g.doc,$));if(!MI(g,w))break;U4(g);var L=JC(g);Ur(g),$0(g,L),RI(g,L),w.force=!1}w.signal(g,"update",g),(g.display.viewFrom!=g.display.reportedViewFrom||g.display.viewTo!=g.display.reportedViewTo)&&(w.signal(g,"viewportChange",g,g.display.viewFrom,g.display.viewTo),g.display.reportedViewFrom=g.display.viewFrom,g.display.reportedViewTo=g.display.viewTo)}function II(g,w){var $=new K4(g,w);if(MI(g,$)){U4(g),lG(g,$);var I=JC(g);Ur(g),$0(g,I),RI(g,I),$.finish()}}function V8e(g,w,$){var I=g.display,L=g.options.lineNumbers,te=I.lineDiv,de=te.firstChild;function Ee(rn){var dn=rn.nextSibling;return l&&b&&g.display.currentWheelTarget==rn?rn.style.display="none":rn.parentNode.removeChild(rn),dn}for(var Ie=I.view,Be=I.viewFrom,nt=0;nt<Ie.length;nt++){var at=Ie[nt];if(!at.hidden)if(!at.node||at.node.parentNode!=te){var Et=_I(g,at,Be,$);te.insertBefore(Et,de)}else{for(;de!=at.node;)de=Ee(de);var yt=L&&w!=null&&w<=Be&&at.lineNumber;at.changes&&(ie(at.changes,"gutter")>-1&&(yt=!1),C0(g,at,Be,$)),yt&&(P(at.lineNumber),at.lineNumber.appendChild(document.createTextNode(Xn(g.options,Be)))),de=at.node.nextSibling}Be+=at.size}for(;de;)de=Ee(de)}function $I(g){var w=g.gutters.offsetWidth;g.sizer.style.marginLeft=w+"px",No(g,"gutterChanged",g)}function RI(g,w){g.display.sizer.style.minHeight=w.docHeight+"px",g.display.heightForcer.style.top=w.docHeight+"px",g.display.gutters.style.height=w.docHeight+g.display.barHeight+ec(g)+"px"}function cG(g){var w=g.display,$=w.view;if(!(!w.alignWidgets&&(!w.gutters.firstChild||!g.options.fixedGutter))){for(var I=Xt(w)-w.scroller.scrollLeft+g.doc.scrollLeft,L=w.gutters.offsetWidth,te=I+"px",de=0;de<$.length;de++)if(!$[de].hidden){g.options.fixedGutter&&($[de].gutter&&($[de].gutter.style.left=te),$[de].gutterBackground&&($[de].gutterBackground.style.left=te));var Ee=$[de].alignable;if(Ee)for(var Ie=0;Ie<Ee.length;Ie++)Ee[Ie].style.left=te}g.options.fixedGutter&&(w.gutters.style.left=I+L+"px")}}function uG(g){if(!g.options.lineNumbers)return!1;var w=g.doc,$=Xn(g.options,w.first+w.size-1),I=g.display;if($.length!=I.lineNumChars){var L=I.measure.appendChild(R("div",[R("div",$)],"CodeMirror-linenumber CodeMirror-gutter-elt")),te=L.firstChild.offsetWidth,de=L.offsetWidth-te;return I.lineGutter.style.width="",I.lineNumInnerWidth=Math.max(te,I.lineGutter.offsetWidth-de)+1,I.lineNumWidth=I.lineNumInnerWidth+de,I.lineNumChars=I.lineNumInnerWidth?$.length:-1,I.lineGutter.style.width=I.lineNumWidth+"px",$I(g.display),!0}return!1}function AI(g,w){for(var $=[],I=!1,L=0;L<g.length;L++){var te=g[L],de=null;if(typeof te!="string"&&(de=te.style,te=te.className),te=="CodeMirror-linenumbers")if(w)I=!0;else continue;$.push({className:te,style:de})}return w&&!I&&$.push({className:"CodeMirror-linenumbers",style:null}),$}function dG(g){var w=g.gutters,$=g.gutterSpecs;P(w),g.lineGutter=null;for(var I=0;I<$.length;++I){var L=$[I],te=L.className,de=L.style,Ee=w.appendChild(R("div",null,"CodeMirror-gutter "+te));de&&(Ee.style.cssText=de),te=="CodeMirror-linenumbers"&&(g.lineGutter=Ee,Ee.style.width=(g.lineNumWidth||1)+"px")}w.style.display=$.length?"":"none",$I(g)}function nx(g){dG(g.display),yn(g),cG(g)}function K8e(g,w,$,I){var L=this;this.input=$,L.scrollbarFiller=R("div",null,"CodeMirror-scrollbar-filler"),L.scrollbarFiller.setAttribute("cm-not-content","true"),L.gutterFiller=R("div",null,"CodeMirror-gutter-filler"),L.gutterFiller.setAttribute("cm-not-content","true"),L.lineDiv=A("div",null,"CodeMirror-code"),L.selectionDiv=R("div",null,null,"position: relative; z-index: 1"),L.cursorDiv=R("div",null,"CodeMirror-cursors"),L.measure=R("div",null,"CodeMirror-measure"),L.lineMeasure=R("div",null,"CodeMirror-measure"),L.lineSpace=A("div",[L.measure,L.lineMeasure,L.selectionDiv,L.cursorDiv,L.lineDiv],null,"position: relative; outline: none");var te=A("div",[L.lineSpace],"CodeMirror-lines");L.mover=R("div",[te],null,"position: relative"),L.sizer=R("div",[L.mover],"CodeMirror-sizer"),L.sizerWidth=null,L.heightForcer=R("div",null,null,"position: absolute; height: "+ce+"px; width: 1px;"),L.gutters=R("div",null,"CodeMirror-gutters"),L.lineGutter=null,L.scroller=R("div",[L.sizer,L.heightForcer,L.gutters],"CodeMirror-scroll"),L.scroller.setAttribute("tabIndex","-1"),L.wrapper=R("div",[L.scrollbarFiller,L.gutterFiller,L.scroller],"CodeMirror"),L.wrapper.setAttribute("translate","no"),a&&s<8&&(L.gutters.style.zIndex=-1,L.scroller.style.paddingRight=0),!l&&!(n&&S)&&(L.scroller.draggable=!0),g&&(g.appendChild?g.appendChild(L.wrapper):g(L.wrapper)),L.viewFrom=L.viewTo=w.first,L.reportedViewFrom=L.reportedViewTo=w.first,L.view=[],L.renderedView=null,L.externalMeasured=null,L.viewOffset=0,L.lastWrapHeight=L.lastWrapWidth=0,L.updateLineNumbers=null,L.nativeBarWidth=L.barHeight=L.barWidth=0,L.scrollbarsClipped=!1,L.lineNumWidth=L.lineNumInnerWidth=L.lineNumChars=null,L.alignWidgets=!1,L.cachedCharWidth=L.cachedTextHeight=L.cachedPaddingH=null,L.maxLine=null,L.maxLineLength=0,L.maxLineChanged=!1,L.wheelDX=L.wheelDY=L.wheelStartX=L.wheelStartY=null,L.shift=!1,L.selForContextMenu=null,L.activeTouch=null,L.gutterSpecs=AI(I.gutters,I.lineNumbers),dG(L),$.init(L)}var q4=0,ph=null;a?ph=-.53:n?ph=15:u?ph=-.7:h&&(ph=-1/3);function fG(g){var w=g.wheelDeltaX,$=g.wheelDeltaY;return w==null&&g.detail&&g.axis==g.HORIZONTAL_AXIS&&(w=g.detail),$==null&&g.detail&&g.axis==g.VERTICAL_AXIS?$=g.detail:$==null&&($=g.wheelDelta),{x:w,y:$}}function q8e(g){var w=fG(g);return w.x*=ph,w.y*=ph,w}function hG(g,w){var $=fG(w),I=$.x,L=$.y,te=ph;w.deltaMode===0&&(I=w.deltaX,L=w.deltaY,te=1);var de=g.display,Ee=de.scroller,Ie=Ee.scrollWidth>Ee.clientWidth,Be=Ee.scrollHeight>Ee.clientHeight;if(I&&Ie||L&&Be){if(L&&b&&l){e:for(var nt=w.target,at=de.view;nt!=Ee;nt=nt.parentNode)for(var Et=0;Et<at.length;Et++)if(at[Et].node==nt){g.display.currentWheelTarget=nt;break e}}if(I&&!n&&!d&&te!=null){L&&Be&&ZC(g,Math.max(0,Ee.scrollTop+L*te)),Rg(g,Math.max(0,Ee.scrollLeft+I*te)),(!L||L&&Be)&&rt(w),de.wheelStartX=null;return}if(L&&te!=null){var yt=L*te,rn=g.doc.scrollTop,dn=rn+de.wrapper.clientHeight;yt<0?rn=Math.max(0,rn+yt-50):dn=Math.min(g.doc.height,dn+yt+50),II(g,{top:rn,bottom:dn})}q4<20&&w.deltaMode!==0&&(de.wheelStartX==null?(de.wheelStartX=Ee.scrollLeft,de.wheelStartY=Ee.scrollTop,de.wheelDX=I,de.wheelDY=L,setTimeout(function(){if(de.wheelStartX!=null){var En=Ee.scrollLeft-de.wheelStartX,Bn=Ee.scrollTop-de.wheelStartY,Un=Bn&&de.wheelDY&&Bn/de.wheelDY||En&&de.wheelDX&&En/de.wheelDX;de.wheelStartX=de.wheelStartY=null,Un&&(ph=(ph*q4+Un)/(q4+1),++q4)}},200)):(de.wheelDX+=I,de.wheelDY+=L))}}var tc=function(g,w){this.ranges=g,this.primIndex=w};tc.prototype.primary=function(){return this.ranges[this.primIndex]},tc.prototype.equals=function(g){if(g==this)return!0;if(g.primIndex!=this.primIndex||g.ranges.length!=this.ranges.length)return!1;for(var w=0;w<this.ranges.length;w++){var $=this.ranges[w],I=g.ranges[w];if(!oe($.anchor,I.anchor)||!oe($.head,I.head))return!1}return!0},tc.prototype.deepCopy=function(){for(var g=[],w=0;w<this.ranges.length;w++)g[w]=new ki(Ae(this.ranges[w].anchor),Ae(this.ranges[w].head));return new tc(g,this.primIndex)},tc.prototype.somethingSelected=function(){for(var g=0;g<this.ranges.length;g++)if(!this.ranges[g].empty())return!0;return!1},tc.prototype.contains=function(g,w){w||(w=g);for(var $=0;$<this.ranges.length;$++){var I=this.ranges[$];if(j(w,I.from())>=0&&j(g,I.to())<=0)return $}return-1};var ki=function(g,w){this.anchor=g,this.head=w};ki.prototype.from=function(){return ft(this.anchor,this.head)},ki.prototype.to=function(){return Ge(this.anchor,this.head)},ki.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Xu(g,w,$){var I=g&&g.options.selectionsMayTouch,L=w[$];w.sort(function(Et,yt){return j(Et.from(),yt.from())}),$=ie(w,L);for(var te=1;te<w.length;te++){var de=w[te],Ee=w[te-1],Ie=j(Ee.to(),de.from());if(I&&!de.empty()?Ie>0:Ie>=0){var Be=ft(Ee.from(),de.from()),nt=Ge(Ee.to(),de.to()),at=Ee.empty()?de.from()==de.head:Ee.from()==Ee.head;te<=$&&--$,w.splice(--te,2,new ki(at?nt:Be,at?Be:nt))}}return new tc(w,$)}function Hp(g,w){return new tc([new ki(g,w||g)],0)}function zp(g){return g.text?O(g.from.line+g.text.length-1,he(g.text).length+(g.text.length==1?g.from.ch:0)):g.to}function pG(g,w){if(j(g,w.from)<0)return g;if(j(g,w.to)<=0)return zp(w);var $=g.line+w.text.length-(w.to.line-w.from.line)-1,I=g.ch;return g.line==w.to.line&&(I+=zp(w).ch-w.to.ch),O($,I)}function NI(g,w){for(var $=[],I=0;I<g.sel.ranges.length;I++){var L=g.sel.ranges[I];$.push(new ki(pG(L.anchor,w),pG(L.head,w)))}return Xu(g.cm,$,g.sel.primIndex)}function mG(g,w,$){return g.line==w.line?O($.line,g.ch-w.ch+$.ch):O($.line+(g.line-w.line),g.ch)}function G8e(g,w,$){for(var I=[],L=O(g.first,0),te=L,de=0;de<w.length;de++){var Ee=w[de],Ie=mG(Ee.from,L,te),Be=mG(zp(Ee),L,te);if(L=Ee.to,te=Be,$=="around"){var nt=g.sel.ranges[de],at=j(nt.head,nt.anchor)<0;I[de]=new ki(at?Be:Ie,at?Ie:Be)}else I[de]=new ki(Ie,Ie)}return new tc(I,g.sel.primIndex)}function DI(g){g.doc.mode=Ft(g.options,g.doc.modeOption),rx(g)}function rx(g){g.doc.iter(function(w){w.stateAfter&&(w.stateAfter=null),w.styles&&(w.styles=null)}),g.doc.modeFrontier=g.doc.highlightFrontier=g.doc.first,tx(g,100),g.state.modeGen++,g.curOp&&yn(g)}function gG(g,w){return w.from.ch==0&&w.to.ch==0&&he(w.text)==""&&(!g.cm||g.cm.options.wholeLineUpdateBefore)}function LI(g,w,$,I){function L(Un){return $?$[Un]:null}function te(Un,Hn,Yn){R4(Un,Hn,Yn,I),No(Un,"change",Un,w)}function de(Un,Hn){for(var Yn=[],vr=Un;vr<Hn;++vr)Yn.push(new of(Be[vr],L(vr),I));return Yn}var Ee=w.from,Ie=w.to,Be=w.text,nt=gt(g,Ee.line),at=gt(g,Ie.line),Et=he(Be),yt=L(Be.length-1),rn=Ie.line-Ee.line;if(w.full)g.insert(0,de(0,Be.length)),g.remove(Be.length,g.size-Be.length);else if(gG(g,w)){var dn=de(0,Be.length-1);te(at,at.text,yt),rn&&g.remove(Ee.line,rn),dn.length&&g.insert(Ee.line,dn)}else if(nt==at)if(Be.length==1)te(nt,nt.text.slice(0,Ee.ch)+Et+nt.text.slice(Ie.ch),yt);else{var En=de(1,Be.length-1);En.push(new of(Et+nt.text.slice(Ie.ch),yt,I)),te(nt,nt.text.slice(0,Ee.ch)+Be[0],L(0)),g.insert(Ee.line+1,En)}else if(Be.length==1)te(nt,nt.text.slice(0,Ee.ch)+Be[0]+at.text.slice(Ie.ch),L(0)),g.remove(Ee.line+1,rn);else{te(nt,nt.text.slice(0,Ee.ch)+Be[0],L(0)),te(at,Et+at.text.slice(Ie.ch),yt);var Bn=de(1,Be.length-1);rn>1&&g.remove(Ee.line+1,rn-1),g.insert(Ee.line+1,Bn)}No(g,"change",g,w)}function Up(g,w,$){function I(L,te,de){if(L.linked)for(var Ee=0;Ee<L.linked.length;++Ee){var Ie=L.linked[Ee];if(Ie.doc!=te){var Be=de&&Ie.sharedHist;$&&!Be||(w(Ie.doc,Be),I(Ie.doc,L,Be))}}}I(g,null,!0)}function vG(g,w){if(w.cm)throw new Error("This document is already in use.");g.doc=w,w.cm=g,un(g),DI(g),yG(g),g.options.direction=w.direction,g.options.lineWrapping||Pg(g),g.options.mode=w.modeOption,yn(g)}function yG(g){(g.doc.direction=="rtl"?W:M)(g.display.lineDiv,"CodeMirror-rtl")}function Y8e(g){wl(g,function(){yG(g),yn(g)})}function G4(g){this.done=[],this.undone=[],this.undoDepth=g?g.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=g?g.maxGeneration:1}function FI(g,w){var $={from:Ae(w.from),to:zp(w),text:Ve(g,w.from,w.to)};return CG(g,$,w.from.line,w.to.line+1),Up(g,function(I){return CG(I,$,w.from.line,w.to.line+1)},!0),$}function bG(g){for(;g.length;){var w=he(g);if(w.ranges)g.pop();else break}}function X8e(g,w){if(w)return bG(g.done),he(g.done);if(g.done.length&&!he(g.done).ranges)return he(g.done);if(g.done.length>1&&!g.done[g.done.length-2].ranges)return g.done.pop(),he(g.done)}function SG(g,w,$,I){var L=g.history;L.undone.length=0;var te=+new Date,de,Ee;if((L.lastOp==I||L.lastOrigin==w.origin&&w.origin&&(w.origin.charAt(0)=="+"&&L.lastModTime>te-(g.cm?g.cm.options.historyEventDelay:500)||w.origin.charAt(0)=="*"))&&(de=X8e(L,L.lastOp==I)))Ee=he(de.changes),j(w.from,w.to)==0&&j(w.from,Ee.to)==0?Ee.to=zp(w):de.changes.push(FI(g,w));else{var Ie=he(L.done);for((!Ie||!Ie.ranges)&&Y4(g.sel,L.done),de={changes:[FI(g,w)],generation:L.generation},L.done.push(de);L.done.length>L.undoDepth;)L.done.shift(),L.done[0].ranges||L.done.shift()}L.done.push($),L.generation=++L.maxGeneration,L.lastModTime=L.lastSelTime=te,L.lastOp=L.lastSelOp=I,L.lastOrigin=L.lastSelOrigin=w.origin,Ee||ze(g,"historyAdded")}function Q8e(g,w,$,I){var L=w.charAt(0);return L=="*"||L=="+"&&$.ranges.length==I.ranges.length&&$.somethingSelected()==I.somethingSelected()&&new Date-g.history.lastSelTime<=(g.cm?g.cm.options.historyEventDelay:500)}function Z8e(g,w,$,I){var L=g.history,te=I&&I.origin;$==L.lastSelOp||te&&L.lastSelOrigin==te&&(L.lastModTime==L.lastSelTime&&L.lastOrigin==te||Q8e(g,te,he(L.done),w))?L.done[L.done.length-1]=w:Y4(w,L.done),L.lastSelTime=+new Date,L.lastSelOrigin=te,L.lastSelOp=$,I&&I.clearRedo!==!1&&bG(L.undone)}function Y4(g,w){var $=he(w);$&&$.ranges&&$.equals(g)||w.push(g)}function CG(g,w,$,I){var L=w["spans_"+g.id],te=0;g.iter(Math.max(g.first,$),Math.min(g.first+g.size,I),function(de){de.markedSpans&&((L||(L=w["spans_"+g.id]={}))[te]=de.markedSpans),++te})}function J8e(g){if(!g)return null;for(var w,$=0;$<g.length;++$)g[$].marker.explicitlyCleared?w||(w=g.slice(0,$)):w&&w.push(g[$]);return w?w.length?w:null:g}function e9e(g,w){var $=w["spans_"+g.id];if(!$)return null;for(var I=[],L=0;L<w.text.length;++L)I.push(J8e($[L]));return I}function xG(g,w){var $=e9e(g,w),I=Jl(g,w);if(!$)return I;if(!I)return $;for(var L=0;L<$.length;++L){var te=$[L],de=I[L];if(te&&de)e:for(var Ee=0;Ee<de.length;++Ee){for(var Ie=de[Ee],Be=0;Be<te.length;++Be)if(te[Be].marker==Ie.marker)continue e;te.push(Ie)}else de&&($[L]=de)}return $}function R0(g,w,$){for(var I=[],L=0;L<g.length;++L){var te=g[L];if(te.ranges){I.push($?tc.prototype.deepCopy.call(te):te);continue}var de=te.changes,Ee=[];I.push({changes:Ee});for(var Ie=0;Ie<de.length;++Ie){var Be=de[Ie],nt=void 0;if(Ee.push({from:Be.from,to:Be.to,text:Be.text}),w)for(var at in Be)(nt=at.match(/^spans_(\d+)$/))&&ie(w,Number(nt[1]))>-1&&(he(Ee)[at]=Be[at],delete Be[at])}}return I}function jI(g,w,$,I){if(I){var L=g.anchor;if($){var te=j(w,L)<0;te!=j($,L)<0?(L=w,w=$):te!=j(w,$)<0&&(w=$)}return new ki(L,w)}else return new ki($||w,w)}function X4(g,w,$,I,L){L==null&&(L=g.cm&&(g.cm.display.shift||g.extend)),ds(g,new tc([jI(g.sel.primary(),w,$,L)],0),I)}function wG(g,w,$){for(var I=[],L=g.cm&&(g.cm.display.shift||g.extend),te=0;te<g.sel.ranges.length;te++)I[te]=jI(g.sel.ranges[te],w[te],null,L);var de=Xu(g.cm,I,g.sel.primIndex);ds(g,de,$)}function BI(g,w,$,I){var L=g.sel.ranges.slice(0);L[w]=$,ds(g,Xu(g.cm,L,g.sel.primIndex),I)}function _G(g,w,$,I){ds(g,Hp(w,$),I)}function t9e(g,w,$){var I={ranges:w.ranges,update:function(L){this.ranges=[];for(var te=0;te<L.length;te++)this.ranges[te]=new ki(on(g,L[te].anchor),on(g,L[te].head))},origin:$&&$.origin};return ze(g,"beforeSelectionChange",g,I),g.cm&&ze(g.cm,"beforeSelectionChange",g.cm,I),I.ranges!=w.ranges?Xu(g.cm,I.ranges,I.ranges.length-1):w}function EG(g,w,$){var I=g.history.done,L=he(I);L&&L.ranges?(I[I.length-1]=w,Q4(g,w,$)):ds(g,w,$)}function ds(g,w,$){Q4(g,w,$),Z8e(g,g.sel,g.cm?g.cm.curOp.id:NaN,$)}function Q4(g,w,$){(Je(g,"beforeSelectionChange")||g.cm&&Je(g.cm,"beforeSelectionChange"))&&(w=t9e(g,w,$));var I=$&&$.bias||(j(w.primary().head,g.sel.primary().head)<0?-1:1);TG(g,OG(g,w,I,!0)),!($&&$.scroll===!1)&&g.cm&&g.cm.getOption("readOnly")!="nocursor"&&I0(g.cm)}function TG(g,w){w.equals(g.sel)||(g.sel=w,g.cm&&(g.cm.curOp.updateInput=1,g.cm.curOp.selectionChanged=!0,Ue(g.cm)),No(g,"cursorActivity",g))}function kG(g){TG(g,OG(g,g.sel,null,!1))}function OG(g,w,$,I){for(var L,te=0;te<w.ranges.length;te++){var de=w.ranges[te],Ee=w.ranges.length==g.sel.ranges.length&&g.sel.ranges[te],Ie=Z4(g,de.anchor,Ee&&Ee.anchor,$,I),Be=Z4(g,de.head,Ee&&Ee.head,$,I);(L||Ie!=de.anchor||Be!=de.head)&&(L||(L=w.ranges.slice(0,te)),L[te]=new ki(Ie,Be))}return L?Xu(g.cm,L,w.primIndex):w}function A0(g,w,$,I,L){var te=gt(g,w.line);if(te.markedSpans)for(var de=0;de<te.markedSpans.length;++de){var Ee=te.markedSpans[de],Ie=Ee.marker,Be="selectLeft"in Ie?!Ie.selectLeft:Ie.inclusiveLeft,nt="selectRight"in Ie?!Ie.selectRight:Ie.inclusiveRight;if((Ee.from==null||(Be?Ee.from<=w.ch:Ee.from<w.ch))&&(Ee.to==null||(nt?Ee.to>=w.ch:Ee.to>w.ch))){if(L&&(ze(Ie,"beforeCursorEnter"),Ie.explicitlyCleared))if(te.markedSpans){--de;continue}else break;if(!Ie.atomic)continue;if($){var at=Ie.find(I<0?1:-1),Et=void 0;if((I<0?nt:Be)&&(at=PG(g,at,-I,at&&at.line==w.line?te:null)),at&&at.line==w.line&&(Et=j(at,$))&&(I<0?Et<0:Et>0))return A0(g,at,w,I,L)}var yt=Ie.find(I<0?-1:1);return(I<0?Be:nt)&&(yt=PG(g,yt,I,yt.line==w.line?te:null)),yt?A0(g,yt,w,I,L):null}}return w}function Z4(g,w,$,I,L){var te=I||1,de=A0(g,w,$,te,L)||!L&&A0(g,w,$,te,!0)||A0(g,w,$,-te,L)||!L&&A0(g,w,$,-te,!0);return de||(g.cantEdit=!0,O(g.first,0))}function PG(g,w,$,I){return $<0&&w.ch==0?w.line>g.first?on(g,O(w.line-1)):null:$>0&&w.ch==(I||gt(g,w.line)).text.length?w.line<g.first+g.size-1?O(w.line+1,0):null:new O(w.line,w.ch+$)}function MG(g){g.setSelection(O(g.firstLine(),0),O(g.lastLine()),ee)}function IG(g,w,$){var I={canceled:!1,from:w.from,to:w.to,text:w.text,origin:w.origin,cancel:function(){return I.canceled=!0}};return $&&(I.update=function(L,te,de,Ee){L&&(I.from=on(g,L)),te&&(I.to=on(g,te)),de&&(I.text=de),Ee!==void 0&&(I.origin=Ee)}),ze(g,"beforeChange",g,I),g.cm&&ze(g.cm,"beforeChange",g.cm,I),I.canceled?(g.cm&&(g.cm.curOp.updateInput=2),null):{from:I.from,to:I.to,text:I.text,origin:I.origin}}function N0(g,w,$){if(g.cm){if(!g.cm.curOp)return Aa(g.cm,N0)(g,w,$);if(g.cm.state.suppressEdits)return}if(!((Je(g,"beforeChange")||g.cm&&Je(g.cm,"beforeChange"))&&(w=IG(g,w,!0),!w))){var I=dr&&!$&&ch(g,w.from,w.to);if(I)for(var L=I.length-1;L>=0;--L)$G(g,{from:I[L].from,to:I[L].to,text:L?[""]:w.text,origin:w.origin});else $G(g,w)}}function $G(g,w){if(!(w.text.length==1&&w.text[0]==""&&j(w.from,w.to)==0)){var $=NI(g,w);SG(g,w,$,g.cm?g.cm.curOp.id:NaN),ix(g,w,$,Jl(g,w));var I=[];Up(g,function(L,te){!te&&ie(I,L.history)==-1&&(DG(L.history,w),I.push(L.history)),ix(L,w,null,Jl(L,w))})}}function J4(g,w,$){var I=g.cm&&g.cm.state.suppressEdits;if(!(I&&!$)){for(var L=g.history,te,de=g.sel,Ee=w=="undo"?L.done:L.undone,Ie=w=="undo"?L.undone:L.done,Be=0;Be<Ee.length&&(te=Ee[Be],!($?te.ranges&&!te.equals(g.sel):!te.ranges));Be++);if(Be!=Ee.length){for(L.lastOrigin=L.lastSelOrigin=null;;)if(te=Ee.pop(),te.ranges){if(Y4(te,Ie),$&&!te.equals(g.sel)){ds(g,te,{clearRedo:!1});return}de=te}else if(I){Ee.push(te);return}else break;var nt=[];Y4(de,Ie),Ie.push({changes:nt,generation:L.generation}),L.generation=te.generation||++L.maxGeneration;for(var at=Je(g,"beforeChange")||g.cm&&Je(g.cm,"beforeChange"),Et=function(dn){var En=te.changes[dn];if(En.origin=w,at&&!IG(g,En,!1))return Ee.length=0,{};nt.push(FI(g,En));var Bn=dn?NI(g,En):he(Ee);ix(g,En,Bn,xG(g,En)),!dn&&g.cm&&g.cm.scrollIntoView({from:En.from,to:zp(En)});var Un=[];Up(g,function(Hn,Yn){!Yn&&ie(Un,Hn.history)==-1&&(DG(Hn.history,En),Un.push(Hn.history)),ix(Hn,En,null,xG(Hn,En))})},yt=te.changes.length-1;yt>=0;--yt){var rn=Et(yt);if(rn)return rn.v}}}}function RG(g,w){if(w!=0&&(g.first+=w,g.sel=new tc(_e(g.sel.ranges,function(L){return new ki(O(L.anchor.line+w,L.anchor.ch),O(L.head.line+w,L.head.ch))}),g.sel.primIndex),g.cm)){yn(g.cm,g.first,g.first-w,w);for(var $=g.cm.display,I=$.viewFrom;I<$.viewTo;I++)kn(g.cm,I,"gutter")}}function ix(g,w,$,I){if(g.cm&&!g.cm.curOp)return Aa(g.cm,ix)(g,w,$,I);if(w.to.line<g.first){RG(g,w.text.length-1-(w.to.line-w.from.line));return}if(!(w.from.line>g.lastLine())){if(w.from.line<g.first){var L=w.text.length-1-(g.first-w.from.line);RG(g,L),w={from:O(g.first,0),to:O(w.to.line+L,w.to.ch),text:[he(w.text)],origin:w.origin}}var te=g.lastLine();w.to.line>te&&(w={from:w.from,to:O(te,gt(g,te).text.length),text:[w.text[0]],origin:w.origin}),w.removed=Ve(g,w.from,w.to),$||($=NI(g,w)),g.cm?n9e(g.cm,w,I):LI(g,w,I),Q4(g,$,ee),g.cantEdit&&Z4(g,O(g.firstLine(),0))&&(g.cantEdit=!1)}}function n9e(g,w,$){var I=g.doc,L=g.display,te=w.from,de=w.to,Ee=!1,Ie=te.line;g.options.lineWrapping||(Ie=Mt(cs(gt(I,te.line))),I.iter(Ie,de.line+1,function(yt){if(yt==L.maxLine)return Ee=!0,!0})),I.sel.contains(w.from,w.to)>-1&&Ue(g),LI(I,w,$,en(g)),g.options.lineWrapping||(I.iter(Ie,te.line+w.text.length,function(yt){var rn=p0(yt);rn>L.maxLineLength&&(L.maxLine=yt,L.maxLineLength=rn,L.maxLineChanged=!0,Ee=!1)}),Ee&&(g.curOp.updateMaxLine=!0)),Li(I,te.line),tx(g,400);var Be=w.text.length-(de.line-te.line)-1;w.full?yn(g):te.line==de.line&&w.text.length==1&&!gG(g.doc,w)?kn(g,te.line,"text"):yn(g,te.line,de.line+1,Be);var nt=Je(g,"changes"),at=Je(g,"change");if(at||nt){var Et={from:te,to:de,text:w.text,removed:w.removed,origin:w.origin};at&&No(g,"change",g,Et),nt&&(g.curOp.changeObjs||(g.curOp.changeObjs=[])).push(Et)}g.display.selForContextMenu=null}function D0(g,w,$,I,L){var te;I||(I=$),j(I,$)<0&&(te=[I,$],$=te[0],I=te[1]),typeof w=="string"&&(w=g.splitLines(w)),N0(g,{from:$,to:I,text:w,origin:L})}function AG(g,w,$,I){$<g.line?g.line+=I:w<g.line&&(g.line=w,g.ch=0)}function NG(g,w,$,I){for(var L=0;L<g.length;++L){var te=g[L],de=!0;if(te.ranges){te.copied||(te=g[L]=te.deepCopy(),te.copied=!0);for(var Ee=0;Ee<te.ranges.length;Ee++)AG(te.ranges[Ee].anchor,w,$,I),AG(te.ranges[Ee].head,w,$,I);continue}for(var Ie=0;Ie<te.changes.length;++Ie){var Be=te.changes[Ie];if($<Be.from.line)Be.from=O(Be.from.line+I,Be.from.ch),Be.to=O(Be.to.line+I,Be.to.ch);else if(w<=Be.to.line){de=!1;break}}de||(g.splice(0,L+1),L=0)}}function DG(g,w){var $=w.from.line,I=w.to.line,L=w.text.length-(I-$)-1;NG(g.done,$,I,L),NG(g.undone,$,I,L)}function ox(g,w,$,I){var L=w,te=w;return typeof w=="number"?te=gt(g,Jt(g,w)):L=Mt(w),L==null?null:(I(te,L)&&g.cm&&kn(g.cm,L,$),te)}function ax(g){this.lines=g,this.parent=null;for(var w=0,$=0;$<g.length;++$)g[$].parent=this,w+=g[$].height;this.height=w}ax.prototype={chunkSize:function(){return this.lines.length},removeInner:function(g,w){for(var $=g,I=g+w;$<I;++$){var L=this.lines[$];this.height-=L.height,m0(L),No(L,"delete")}this.lines.splice(g,w)},collapse:function(g){g.push.apply(g,this.lines)},insertInner:function(g,w,$){this.height+=$,this.lines=this.lines.slice(0,g).concat(w).concat(this.lines.slice(g));for(var I=0;I<w.length;++I)w[I].parent=this},iterN:function(g,w,$){for(var I=g+w;g<I;++g)if($(this.lines[g]))return!0}};function sx(g){this.children=g;for(var w=0,$=0,I=0;I<g.length;++I){var L=g[I];w+=L.chunkSize(),$+=L.height,L.parent=this}this.size=w,this.height=$,this.parent=null}sx.prototype={chunkSize:function(){return this.size},removeInner:function(g,w){this.size-=w;for(var $=0;$<this.children.length;++$){var I=this.children[$],L=I.chunkSize();if(g<L){var te=Math.min(w,L-g),de=I.height;if(I.removeInner(g,te),this.height-=de-I.height,L==te&&(this.children.splice($--,1),I.parent=null),(w-=te)==0)break;g=0}else g-=L}if(this.size-w<25&&(this.children.length>1||!(this.children[0]instanceof ax))){var Ee=[];this.collapse(Ee),this.children=[new ax(Ee)],this.children[0].parent=this}},collapse:function(g){for(var w=0;w<this.children.length;++w)this.children[w].collapse(g)},insertInner:function(g,w,$){this.size+=w.length,this.height+=$;for(var I=0;I<this.children.length;++I){var L=this.children[I],te=L.chunkSize();if(g<=te){if(L.insertInner(g,w,$),L.lines&&L.lines.length>50){for(var de=L.lines.length%25+25,Ee=de;Ee<L.lines.length;){var Ie=new ax(L.lines.slice(Ee,Ee+=25));L.height-=Ie.height,this.children.splice(++I,0,Ie),Ie.parent=this}L.lines=L.lines.slice(0,de),this.maybeSpill()}break}g-=te}},maybeSpill:function(){if(!(this.children.length<=10)){var g=this;do{var w=g.children.splice(g.children.length-5,5),$=new sx(w);if(g.parent){g.size-=$.size,g.height-=$.height;var L=ie(g.parent.children,g);g.parent.children.splice(L+1,0,$)}else{var I=new sx(g.children);I.parent=g,g.children=[I,$],g=I}$.parent=g.parent}while(g.children.length>10);g.parent.maybeSpill()}},iterN:function(g,w,$){for(var I=0;I<this.children.length;++I){var L=this.children[I],te=L.chunkSize();if(g<te){var de=Math.min(w,te-g);if(L.iterN(g,de,$))return!0;if((w-=de)==0)break;g=0}else g-=te}}};var lx=function(g,w,$){if($)for(var I in $)$.hasOwnProperty(I)&&(this[I]=$[I]);this.doc=g,this.node=w};lx.prototype.clear=function(){var g=this.doc.cm,w=this.line.widgets,$=this.line,I=Mt($);if(!(I==null||!w)){for(var L=0;L<w.length;++L)w[L]==this&&w.splice(L--,1);w.length||($.widgets=null);var te=jp(this);mt($,Math.max(0,$.height-te)),g&&(wl(g,function(){LG(g,$,-te),kn(g,I,"widget")}),No(g,"lineWidgetCleared",g,this,I))}},lx.prototype.changed=function(){var g=this,w=this.height,$=this.doc.cm,I=this.line;this.height=null;var L=jp(this)-w;L&&(Xc(this.doc,I)||mt(I,I.height+L),$&&wl($,function(){$.curOp.forceUpdate=!0,LG($,I,L),No($,"lineWidgetChanged",$,g,Mt(I))}))},Ze(lx);function LG(g,w,$){Vu(w)<(g.curOp&&g.curOp.scrollTop||g.doc.scrollTop)&&PI(g,$)}function r9e(g,w,$,I){var L=new lx(g,$,I),te=g.cm;return te&&L.noHScroll&&(te.display.alignWidgets=!0),ox(g,w,"widget",function(de){var Ee=de.widgets||(de.widgets=[]);if(L.insertAt==null?Ee.push(L):Ee.splice(Math.min(Ee.length,Math.max(0,L.insertAt)),0,L),L.line=de,te&&!Xc(g,de)){var Ie=Vu(de)<g.scrollTop;mt(de,de.height+jp(L)),Ie&&PI(te,L.height),te.curOp.forceUpdate=!0}return!0}),te&&No(te,"lineWidgetAdded",te,L,typeof w=="number"?w:Mt(w)),L}var FG=0,Wp=function(g,w){this.lines=[],this.type=w,this.doc=g,this.id=++FG};Wp.prototype.clear=function(){if(!this.explicitlyCleared){var g=this.doc.cm,w=g&&!g.curOp;if(w&&Ng(g),Je(this,"clear")){var $=this.find();$&&No(this,"clear",$.from,$.to)}for(var I=null,L=null,te=0;te<this.lines.length;++te){var de=this.lines[te],Ee=jr(de.markedSpans,this);g&&!this.collapsed?kn(g,Mt(de),"text"):g&&(Ee.to!=null&&(L=Mt(de)),Ee.from!=null&&(I=Mt(de))),de.markedSpans=Ao(de.markedSpans,Ee),Ee.from==null&&this.collapsed&&!Xc(this.doc,de)&&g&&mt(de,It(g.display))}if(g&&this.collapsed&&!g.options.lineWrapping)for(var Ie=0;Ie<this.lines.length;++Ie){var Be=cs(this.lines[Ie]),nt=p0(Be);nt>g.display.maxLineLength&&(g.display.maxLine=Be,g.display.maxLineLength=nt,g.display.maxLineChanged=!0)}I!=null&&g&&this.collapsed&&yn(g,I,L+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,g&&kG(g.doc)),g&&No(g,"markerCleared",g,this,I,L),w&&Dg(g),this.parent&&this.parent.clear()}},Wp.prototype.find=function(g,w){g==null&&this.type=="bookmark"&&(g=1);for(var $,I,L=0;L<this.lines.length;++L){var te=this.lines[L],de=jr(te.markedSpans,this);if(de.from!=null&&($=O(w?te:Mt(te),de.from),g==-1))return $;if(de.to!=null&&(I=O(w?te:Mt(te),de.to),g==1))return I}return $&&{from:$,to:I}},Wp.prototype.changed=function(){var g=this,w=this.find(-1,!0),$=this,I=this.doc.cm;!w||!I||wl(I,function(){var L=w.line,te=Mt(w.line),de=Bp(I,te);if(de&&(lf(de),I.curOp.selectionChanged=I.curOp.forceUpdate=!0),I.curOp.updateMaxLine=!0,!Xc($.doc,L)&&$.height!=null){var Ee=$.height;$.height=null;var Ie=jp($)-Ee;Ie&&mt(L,L.height+Ie)}No(I,"markerChanged",I,g)})},Wp.prototype.attachLine=function(g){if(!this.lines.length&&this.doc.cm){var w=this.doc.cm.curOp;(!w.maybeHiddenMarkers||ie(w.maybeHiddenMarkers,this)==-1)&&(w.maybeUnhiddenMarkers||(w.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(g)},Wp.prototype.detachLine=function(g){if(this.lines.splice(ie(this.lines,g),1),!this.lines.length&&this.doc.cm){var w=this.doc.cm.curOp;(w.maybeHiddenMarkers||(w.maybeHiddenMarkers=[])).push(this)}},Ze(Wp);function L0(g,w,$,I,L){if(I&&I.shared)return i9e(g,w,$,I,L);if(g.cm&&!g.cm.curOp)return Aa(g.cm,L0)(g,w,$,I,L);var te=new Wp(g,L),de=j(w,$);if(I&&B(I,te,!1),de>0||de==0&&te.clearWhenEmpty!==!1)return te;if(te.replacedWith&&(te.collapsed=!0,te.widgetNode=A("span",[te.replacedWith],"CodeMirror-widget"),I.handleMouseEvents||te.widgetNode.setAttribute("cm-ignore-events","true"),I.insertLeft&&(te.widgetNode.insertLeft=!0)),te.collapsed){if($4(g,w.line,w,$,te)||w.line!=$.line&&$4(g,$.line,w,$,te))throw new Error("Inserting collapsed marker partially overlapping an existing one");Gn()}te.addToHistory&&SG(g,{from:w,to:$,origin:"markText"},g.sel,NaN);var Ee=w.line,Ie=g.cm,Be;if(g.iter(Ee,$.line+1,function(at){Ie&&te.collapsed&&!Ie.options.lineWrapping&&cs(at)==Ie.display.maxLine&&(Be=!0),te.collapsed&&Ee!=w.line&&mt(at,0),ra(at,new rr(te,Ee==w.line?w.ch:null,Ee==$.line?$.ch:null),g.cm&&g.cm.curOp),++Ee}),te.collapsed&&g.iter(w.line,$.line+1,function(at){Xc(g,at)&&mt(at,0)}),te.clearOnEnter&&Ke(te,"beforeCursorEnter",function(){return te.clear()}),te.readOnly&&(zn(),(g.history.done.length||g.history.undone.length)&&g.clearHistory()),te.collapsed&&(te.id=++FG,te.atomic=!0),Ie){if(Be&&(Ie.curOp.updateMaxLine=!0),te.collapsed)yn(Ie,w.line,$.line+1);else if(te.className||te.startStyle||te.endStyle||te.css||te.attributes||te.title)for(var nt=w.line;nt<=$.line;nt++)kn(Ie,nt,"text");te.atomic&&kG(Ie.doc),No(Ie,"markerAdded",Ie,te)}return te}var cx=function(g,w){this.markers=g,this.primary=w;for(var $=0;$<g.length;++$)g[$].parent=this};cx.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var g=0;g<this.markers.length;++g)this.markers[g].clear();No(this,"clear")}},cx.prototype.find=function(g,w){return this.primary.find(g,w)},Ze(cx);function i9e(g,w,$,I,L){I=B(I),I.shared=!1;var te=[L0(g,w,$,I,L)],de=te[0],Ee=I.widgetNode;return Up(g,function(Ie){Ee&&(I.widgetNode=Ee.cloneNode(!0)),te.push(L0(Ie,on(Ie,w),on(Ie,$),I,L));for(var Be=0;Be<Ie.linked.length;++Be)if(Ie.linked[Be].isParent)return;de=he(te)}),new cx(te,de)}function jG(g){return g.findMarks(O(g.first,0),g.clipPos(O(g.lastLine())),function(w){return w.parent})}function o9e(g,w){for(var $=0;$<w.length;$++){var I=w[$],L=I.find(),te=g.clipPos(L.from),de=g.clipPos(L.to);if(j(te,de)){var Ee=L0(g,te,de,I.primary,I.primary.type);I.markers.push(Ee),Ee.parent=I}}}function a9e(g){for(var w=function(I){var L=g[I],te=[L.primary.doc];Up(L.primary.doc,function(Ie){return te.push(Ie)});for(var de=0;de<L.markers.length;de++){var Ee=L.markers[de];ie(te,Ee.doc)==-1&&(Ee.parent=null,L.markers.splice(de--,1))}},$=0;$<g.length;$++)w($)}var s9e=0,Zs=function(g,w,$,I,L){if(!(this instanceof Zs))return new Zs(g,w,$,I,L);$==null&&($=0),sx.call(this,[new ax([new of("",null)])]),this.first=$,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=$;var te=O($,0);this.sel=Hp(te),this.history=new G4(null),this.id=++s9e,this.modeOption=w,this.lineSep=I,this.direction=L=="rtl"?"rtl":"ltr",this.extend=!1,typeof g=="string"&&(g=this.splitLines(g)),LI(this,{from:te,to:te,text:g}),ds(this,Hp(te),ee)};Zs.prototype=we(sx.prototype,{constructor:Zs,iter:function(g,w,$){$?this.iterN(g-this.first,w-g,$):this.iterN(this.first,this.first+this.size,g)},insert:function(g,w){for(var $=0,I=0;I<w.length;++I)$+=w[I].height;this.insertInner(g-this.first,w,$)},remove:function(g,w){this.removeInner(g-this.first,w)},getValue:function(g){var w=Yt(this,this.first,this.first+this.size);return g===!1?w:w.join(g||this.lineSeparator())},setValue:Na(function(g){var w=O(this.first,0),$=this.first+this.size-1;N0(this,{from:w,to:O($,gt(this,$).text.length),text:this.splitLines(g),origin:"setValue",full:!0},!0),this.cm&&QC(this.cm,0,0),ds(this,Hp(w),ee)}),replaceRange:function(g,w,$,I){w=on(this,w),$=$?on(this,$):w,D0(this,g,w,$,I)},getRange:function(g,w,$){var I=Ve(this,on(this,g),on(this,w));return $===!1?I:$===""?I.join(""):I.join($||this.lineSeparator())},getLine:function(g){var w=this.getLineHandle(g);return w&&w.text},getLineHandle:function(g){if(Dn(this,g))return gt(this,g)},getLineNumber:function(g){return Mt(g)},getLineHandleVisualStart:function(g){return typeof g=="number"&&(g=gt(this,g)),cs(g)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(g){return on(this,g)},getCursor:function(g){var w=this.sel.primary(),$;return g==null||g=="head"?$=w.head:g=="anchor"?$=w.anchor:g=="end"||g=="to"||g===!1?$=w.to():$=w.from(),$},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Na(function(g,w,$){_G(this,on(this,typeof g=="number"?O(g,w||0):g),null,$)}),setSelection:Na(function(g,w,$){_G(this,on(this,g),on(this,w||g),$)}),extendSelection:Na(function(g,w,$){X4(this,on(this,g),w&&on(this,w),$)}),extendSelections:Na(function(g,w){wG(this,ni(this,g),w)}),extendSelectionsBy:Na(function(g,w){var $=_e(this.sel.ranges,g);wG(this,ni(this,$),w)}),setSelections:Na(function(g,w,$){if(g.length){for(var I=[],L=0;L<g.length;L++)I[L]=new ki(on(this,g[L].anchor),on(this,g[L].head||g[L].anchor));w==null&&(w=Math.min(g.length-1,this.sel.primIndex)),ds(this,Xu(this.cm,I,w),$)}}),addSelection:Na(function(g,w,$){var I=this.sel.ranges.slice(0);I.push(new ki(on(this,g),on(this,w||g))),ds(this,Xu(this.cm,I,I.length-1),$)}),getSelection:function(g){for(var w=this.sel.ranges,$,I=0;I<w.length;I++){var L=Ve(this,w[I].from(),w[I].to());$=$?$.concat(L):L}return g===!1?$:$.join(g||this.lineSeparator())},getSelections:function(g){for(var w=[],$=this.sel.ranges,I=0;I<$.length;I++){var L=Ve(this,$[I].from(),$[I].to());g!==!1&&(L=L.join(g||this.lineSeparator())),w[I]=L}return w},replaceSelection:function(g,w,$){for(var I=[],L=0;L<this.sel.ranges.length;L++)I[L]=g;this.replaceSelections(I,w,$||"+input")},replaceSelections:Na(function(g,w,$){for(var I=[],L=this.sel,te=0;te<L.ranges.length;te++){var de=L.ranges[te];I[te]={from:de.from(),to:de.to(),text:this.splitLines(g[te]),origin:$}}for(var Ee=w&&w!="end"&&G8e(this,I,w),Ie=I.length-1;Ie>=0;Ie--)N0(this,I[Ie]);Ee?EG(this,Ee):this.cm&&I0(this.cm)}),undo:Na(function(){J4(this,"undo")}),redo:Na(function(){J4(this,"redo")}),undoSelection:Na(function(){J4(this,"undo",!0)}),redoSelection:Na(function(){J4(this,"redo",!0)}),setExtending:function(g){this.extend=g},getExtending:function(){return this.extend},historySize:function(){for(var g=this.history,w=0,$=0,I=0;I<g.done.length;I++)g.done[I].ranges||++w;for(var L=0;L<g.undone.length;L++)g.undone[L].ranges||++$;return{undo:w,redo:$}},clearHistory:function(){var g=this;this.history=new G4(this.history),Up(this,function(w){return w.history=g.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(g){return g&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(g){return this.history.generation==(g||this.cleanGeneration)},getHistory:function(){return{done:R0(this.history.done),undone:R0(this.history.undone)}},setHistory:function(g){var w=this.history=new G4(this.history);w.done=R0(g.done.slice(0),null,!0),w.undone=R0(g.undone.slice(0),null,!0)},setGutterMarker:Na(function(g,w,$){return ox(this,g,"gutter",function(I){var L=I.gutterMarkers||(I.gutterMarkers={});return L[w]=$,!$&&Te(L)&&(I.gutterMarkers=null),!0})}),clearGutter:Na(function(g){var w=this;this.iter(function($){$.gutterMarkers&&$.gutterMarkers[g]&&ox(w,$,"gutter",function(){return $.gutterMarkers[g]=null,Te($.gutterMarkers)&&($.gutterMarkers=null),!0})})}),lineInfo:function(g){var w;if(typeof g=="number"){if(!Dn(this,g)||(w=g,g=gt(this,g),!g))return null}else if(w=Mt(g),w==null)return null;return{line:w,handle:g,text:g.text,gutterMarkers:g.gutterMarkers,textClass:g.textClass,bgClass:g.bgClass,wrapClass:g.wrapClass,widgets:g.widgets}},addLineClass:Na(function(g,w,$){return ox(this,g,w=="gutter"?"gutter":"class",function(I){var L=w=="text"?"textClass":w=="background"?"bgClass":w=="gutter"?"gutterClass":"wrapClass";if(!I[L])I[L]=$;else{if(k($).test(I[L]))return!1;I[L]+=" "+$}return!0})}),removeLineClass:Na(function(g,w,$){return ox(this,g,w=="gutter"?"gutter":"class",function(I){var L=w=="text"?"textClass":w=="background"?"bgClass":w=="gutter"?"gutterClass":"wrapClass",te=I[L];if(te)if($==null)I[L]=null;else{var de=te.match(k($));if(!de)return!1;var Ee=de.index+de[0].length;I[L]=te.slice(0,de.index)+(!de.index||Ee==te.length?"":" ")+te.slice(Ee)||null}else return!1;return!0})}),addLineWidget:Na(function(g,w,$){return r9e(this,g,w,$)}),removeLineWidget:function(g){g.clear()},markText:function(g,w,$){return L0(this,on(this,g),on(this,w),$,$&&$.type||"range")},setBookmark:function(g,w){var $={replacedWith:w&&(w.nodeType==null?w.widget:w),insertLeft:w&&w.insertLeft,clearWhenEmpty:!1,shared:w&&w.shared,handleMouseEvents:w&&w.handleMouseEvents};return g=on(this,g),L0(this,g,g,$,"bookmark")},findMarksAt:function(g){g=on(this,g);var w=[],$=gt(this,g.line).markedSpans;if($)for(var I=0;I<$.length;++I){var L=$[I];(L.from==null||L.from<=g.ch)&&(L.to==null||L.to>=g.ch)&&w.push(L.marker.parent||L.marker)}return w},findMarks:function(g,w,$){g=on(this,g),w=on(this,w);var I=[],L=g.line;return this.iter(g.line,w.line+1,function(te){var de=te.markedSpans;if(de)for(var Ee=0;Ee<de.length;Ee++){var Ie=de[Ee];!(Ie.to!=null&&L==g.line&&g.ch>=Ie.to||Ie.from==null&&L!=g.line||Ie.from!=null&&L==w.line&&Ie.from>=w.ch)&&(!$||$(Ie.marker))&&I.push(Ie.marker.parent||Ie.marker)}++L}),I},getAllMarks:function(){var g=[];return this.iter(function(w){var $=w.markedSpans;if($)for(var I=0;I<$.length;++I)$[I].from!=null&&g.push($[I].marker)}),g},posFromIndex:function(g){var w,$=this.first,I=this.lineSeparator().length;return this.iter(function(L){var te=L.text.length+I;if(te>g)return w=g,!0;g-=te,++$}),on(this,O($,w))},indexFromPos:function(g){g=on(this,g);var w=g.ch;if(g.line<this.first||g.ch<0)return 0;var $=this.lineSeparator().length;return this.iter(this.first,g.line,function(I){w+=I.text.length+$}),w},copy:function(g){var w=new Zs(Yt(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return w.scrollTop=this.scrollTop,w.scrollLeft=this.scrollLeft,w.sel=this.sel,w.extend=!1,g&&(w.history.undoDepth=this.history.undoDepth,w.setHistory(this.getHistory())),w},linkedDoc:function(g){g||(g={});var w=this.first,$=this.first+this.size;g.from!=null&&g.from>w&&(w=g.from),g.to!=null&&g.to<$&&($=g.to);var I=new Zs(Yt(this,w,$),g.mode||this.modeOption,w,this.lineSep,this.direction);return g.sharedHist&&(I.history=this.history),(this.linked||(this.linked=[])).push({doc:I,sharedHist:g.sharedHist}),I.linked=[{doc:this,isParent:!0,sharedHist:g.sharedHist}],o9e(I,jG(this)),I},unlinkDoc:function(g){if(g instanceof co&&(g=g.doc),this.linked)for(var w=0;w<this.linked.length;++w){var $=this.linked[w];if($.doc==g){this.linked.splice(w,1),g.unlinkDoc(this),a9e(jG(this));break}}if(g.history==this.history){var I=[g.id];Up(g,function(L){return I.push(L.id)},!0),g.history=new G4(null),g.history.done=R0(this.history.done,I),g.history.undone=R0(this.history.undone,I)}},iterLinkedDocs:function(g){Up(this,g)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(g){return this.lineSep?g.split(this.lineSep):ot(g)},lineSeparator:function(){return this.lineSep||`
|
||
`},setDirection:Na(function(g){g!="rtl"&&(g="ltr"),g!=this.direction&&(this.direction=g,this.iter(function(w){return w.order=null}),this.cm&&Y8e(this.cm))})}),Zs.prototype.eachLine=Zs.prototype.iter;var BG=0;function l9e(g){var w=this;if(HG(w),!(Ye(w,g)||Ku(w.display,g))){rt(g),a&&(BG=+new Date);var $=_n(w,g,!0),I=g.dataTransfer.files;if(!(!$||w.isReadOnly()))if(I&&I.length&&window.FileReader&&window.File)for(var L=I.length,te=Array(L),de=0,Ee=function(){++de==L&&Aa(w,function(){$=on(w.doc,$);var yt={from:$,to:$,text:w.doc.splitLines(te.filter(function(rn){return rn!=null}).join(w.doc.lineSeparator())),origin:"paste"};N0(w.doc,yt),EG(w.doc,Hp(on(w.doc,$),on(w.doc,zp(yt))))})()},Ie=function(yt,rn){if(w.options.allowDropFileTypes&&ie(w.options.allowDropFileTypes,yt.type)==-1){Ee();return}var dn=new FileReader;dn.onerror=function(){return Ee()},dn.onload=function(){var En=dn.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(En)){Ee();return}te[rn]=En,Ee()},dn.readAsText(yt)},Be=0;Be<I.length;Be++)Ie(I[Be],Be);else{if(w.state.draggingText&&w.doc.sel.contains($)>-1){w.state.draggingText(g),setTimeout(function(){return w.display.input.focus()},20);return}try{var nt=g.dataTransfer.getData("Text");if(nt){var at;if(w.state.draggingText&&!w.state.draggingText.copy&&(at=w.listSelections()),Q4(w.doc,Hp($,$)),at)for(var Et=0;Et<at.length;++Et)D0(w.doc,"",at[Et].anchor,at[Et].head,"drag");w.replaceSelection(nt,"around","paste"),w.display.input.focus()}}catch{}}}}function c9e(g,w){if(a&&(!g.state.draggingText||+new Date-BG<100)){Ot(w);return}if(!(Ye(g,w)||Ku(g.display,w))&&(w.dataTransfer.setData("Text",g.getSelection()),w.dataTransfer.effectAllowed="copyMove",w.dataTransfer.setDragImage&&!h)){var $=R("img",null,null,"position: fixed; left: 0; top: 0;");$.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",d&&($.width=$.height=1,g.display.wrapper.appendChild($),$._top=$.offsetTop),w.dataTransfer.setDragImage($,0,0),d&&$.parentNode.removeChild($)}}function u9e(g,w){var $=_n(g,w);if($){var I=document.createDocumentFragment();us(g,$,I),g.display.dragCursor||(g.display.dragCursor=R("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),g.display.lineSpace.insertBefore(g.display.dragCursor,g.display.cursorDiv)),D(g.display.dragCursor,I)}}function HG(g){g.display.dragCursor&&(g.display.lineSpace.removeChild(g.display.dragCursor),g.display.dragCursor=null)}function zG(g){if(document.getElementsByClassName){for(var w=document.getElementsByClassName("CodeMirror"),$=[],I=0;I<w.length;I++){var L=w[I].CodeMirror;L&&$.push(L)}$.length&&$[0].operation(function(){for(var te=0;te<$.length;te++)g($[te])})}}var UG=!1;function d9e(){UG||(f9e(),UG=!0)}function f9e(){var g;Ke(window,"resize",function(){g==null&&(g=setTimeout(function(){g=null,zG(h9e)},100))}),Ke(window,"blur",function(){return zG(cf)})}function h9e(g){var w=g.display;w.cachedCharWidth=w.cachedTextHeight=w.cachedPaddingH=null,w.scrollbarsClipped=!1,g.setSize()}for(var Vp={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"},ux=0;ux<10;ux++)Vp[ux+48]=Vp[ux+96]=String(ux);for(var eT=65;eT<=90;eT++)Vp[eT]=String.fromCharCode(eT);for(var dx=1;dx<=12;dx++)Vp[dx+111]=Vp[dx+63235]="F"+dx;var mh={};mh.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"},mh.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"},mh.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"},mh.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"]},mh.default=b?mh.macDefault:mh.pcDefault;function p9e(g){var w=g.split(/-(?!$)/);g=w[w.length-1];for(var $,I,L,te,de=0;de<w.length-1;de++){var Ee=w[de];if(/^(cmd|meta|m)$/i.test(Ee))te=!0;else if(/^a(lt)?$/i.test(Ee))$=!0;else if(/^(c|ctrl|control)$/i.test(Ee))I=!0;else if(/^s(hift)?$/i.test(Ee))L=!0;else throw new Error("Unrecognized modifier name: "+Ee)}return $&&(g="Alt-"+g),I&&(g="Ctrl-"+g),te&&(g="Cmd-"+g),L&&(g="Shift-"+g),g}function m9e(g){var w={};for(var $ in g)if(g.hasOwnProperty($)){var I=g[$];if(/^(name|fallthrough|(de|at)tach)$/.test($))continue;if(I=="..."){delete g[$];continue}for(var L=_e($.split(" "),p9e),te=0;te<L.length;te++){var de=void 0,Ee=void 0;te==L.length-1?(Ee=L.join(" "),de=I):(Ee=L.slice(0,te+1).join(" "),de="...");var Ie=w[Ee];if(!Ie)w[Ee]=de;else if(Ie!=de)throw new Error("Inconsistent bindings for "+Ee)}delete g[$]}for(var Be in w)g[Be]=w[Be];return g}function F0(g,w,$,I){w=tT(w);var L=w.call?w.call(g,I):w[g];if(L===!1)return"nothing";if(L==="...")return"multi";if(L!=null&&$(L))return"handled";if(w.fallthrough){if(Object.prototype.toString.call(w.fallthrough)!="[object Array]")return F0(g,w.fallthrough,$,I);for(var te=0;te<w.fallthrough.length;te++){var de=F0(g,w.fallthrough[te],$,I);if(de)return de}}}function WG(g){var w=typeof g=="string"?g:Vp[g.keyCode];return w=="Ctrl"||w=="Alt"||w=="Shift"||w=="Mod"}function VG(g,w,$){var I=g;return w.altKey&&I!="Alt"&&(g="Alt-"+g),(x?w.metaKey:w.ctrlKey)&&I!="Ctrl"&&(g="Ctrl-"+g),(x?w.ctrlKey:w.metaKey)&&I!="Mod"&&(g="Cmd-"+g),!$&&w.shiftKey&&I!="Shift"&&(g="Shift-"+g),g}function KG(g,w){if(d&&g.keyCode==34&&g.char)return!1;var $=Vp[g.keyCode];return $==null||g.altGraphKey?!1:(g.keyCode==3&&g.code&&($=g.code),VG($,g,w))}function tT(g){return typeof g=="string"?mh[g]:g}function j0(g,w){for(var $=g.doc.sel.ranges,I=[],L=0;L<$.length;L++){for(var te=w($[L]);I.length&&j(te.from,he(I).to)<=0;){var de=I.pop();if(j(de.from,te.from)<0){te.from=de.from;break}}I.push(te)}wl(g,function(){for(var Ee=I.length-1;Ee>=0;Ee--)D0(g.doc,"",I[Ee].from,I[Ee].to,"+delete");I0(g)})}function HI(g,w,$){var I=Ne(g.text,w+$,$);return I<0||I>g.text.length?null:I}function zI(g,w,$){var I=HI(g,w.ch,$);return I==null?null:new O(w.line,I,$<0?"after":"before")}function UI(g,w,$,I,L){if(g){w.doc.direction=="rtl"&&(L=-L);var te=Oe($,w.doc.direction);if(te){var de=L<0?he(te):te[0],Ee=L<0==(de.level==1),Ie=Ee?"after":"before",Be;if(de.level>0||w.doc.direction=="rtl"){var nt=Ps(w,$);Be=L<0?$.text.length-1:0;var at=Ti(w,nt,Be).top;Be=We(function(Et){return Ti(w,nt,Et).top==at},L<0==(de.level==1)?de.from:de.to-1,Be),Ie=="before"&&(Be=HI($,Be,1))}else Be=L<0?de.to:de.from;return new O(I,Be,Ie)}}return new O(I,L<0?$.text.length:0,L<0?"before":"after")}function g9e(g,w,$,I){var L=Oe(w,g.doc.direction);if(!L)return zI(w,$,I);$.ch>=w.text.length?($.ch=w.text.length,$.sticky="before"):$.ch<=0&&($.ch=0,$.sticky="after");var te=J(L,$.ch,$.sticky),de=L[te];if(g.doc.direction=="ltr"&&de.level%2==0&&(I>0?de.to>$.ch:de.from<$.ch))return zI(w,$,I);var Ee=function(Bn,Un){return HI(w,Bn instanceof O?Bn.ch:Bn,Un)},Ie,Be=function(Bn){return g.options.lineWrapping?(Ie=Ie||Ps(g,w),Ct(g,w,Ie,Bn)):{begin:0,end:w.text.length}},nt=Be($.sticky=="before"?Ee($,-1):$.ch);if(g.doc.direction=="rtl"||de.level==1){var at=de.level==1==I<0,Et=Ee($,at?1:-1);if(Et!=null&&(at?Et<=de.to&&Et<=nt.end:Et>=de.from&&Et>=nt.begin)){var yt=at?"before":"after";return new O($.line,Et,yt)}}var rn=function(Bn,Un,Hn){for(var Yn=function(Ki,Da){return Da?new O($.line,Ee(Ki,1),"before"):new O($.line,Ki,"after")};Bn>=0&&Bn<L.length;Bn+=Un){var vr=L[Bn],pr=Un>0==(vr.level!=1),Kr=pr?Hn.begin:Ee(Hn.end,-1);if(vr.from<=Kr&&Kr<vr.to||(Kr=pr?vr.from:Ee(vr.to,-1),Hn.begin<=Kr&&Kr<Hn.end))return Yn(Kr,pr)}},dn=rn(te+I,I,nt);if(dn)return dn;var En=I>0?nt.end:Ee(nt.begin,-1);return En!=null&&!(I>0&&En==w.text.length)&&(dn=rn(I>0?0:L.length-1,I,Be(En)),dn)?dn:null}var fx={selectAll:MG,singleSelection:function(g){return g.setSelection(g.getCursor("anchor"),g.getCursor("head"),ee)},killLine:function(g){return j0(g,function(w){if(w.empty()){var $=gt(g.doc,w.head.line).text.length;return w.head.ch==$&&w.head.line<g.lastLine()?{from:w.head,to:O(w.head.line+1,0)}:{from:w.head,to:O(w.head.line,$)}}else return{from:w.from(),to:w.to()}})},deleteLine:function(g){return j0(g,function(w){return{from:O(w.from().line,0),to:on(g.doc,O(w.to().line+1,0))}})},delLineLeft:function(g){return j0(g,function(w){return{from:O(w.from().line,0),to:w.from()}})},delWrappedLineLeft:function(g){return j0(g,function(w){var $=g.charCoords(w.head,"div").top+5,I=g.coordsChar({left:0,top:$},"div");return{from:I,to:w.from()}})},delWrappedLineRight:function(g){return j0(g,function(w){var $=g.charCoords(w.head,"div").top+5,I=g.coordsChar({left:g.display.lineDiv.offsetWidth+100,top:$},"div");return{from:w.from(),to:I}})},undo:function(g){return g.undo()},redo:function(g){return g.redo()},undoSelection:function(g){return g.undoSelection()},redoSelection:function(g){return g.redoSelection()},goDocStart:function(g){return g.extendSelection(O(g.firstLine(),0))},goDocEnd:function(g){return g.extendSelection(O(g.lastLine()))},goLineStart:function(g){return g.extendSelectionsBy(function(w){return qG(g,w.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(g){return g.extendSelectionsBy(function(w){return GG(g,w.head)},{origin:"+move",bias:1})},goLineEnd:function(g){return g.extendSelectionsBy(function(w){return v9e(g,w.head.line)},{origin:"+move",bias:-1})},goLineRight:function(g){return g.extendSelectionsBy(function(w){var $=g.cursorCoords(w.head,"div").top+5;return g.coordsChar({left:g.display.lineDiv.offsetWidth+100,top:$},"div")},ue)},goLineLeft:function(g){return g.extendSelectionsBy(function(w){var $=g.cursorCoords(w.head,"div").top+5;return g.coordsChar({left:0,top:$},"div")},ue)},goLineLeftSmart:function(g){return g.extendSelectionsBy(function(w){var $=g.cursorCoords(w.head,"div").top+5,I=g.coordsChar({left:0,top:$},"div");return I.ch<g.getLine(I.line).search(/\S/)?GG(g,w.head):I},ue)},goLineUp:function(g){return g.moveV(-1,"line")},goLineDown:function(g){return g.moveV(1,"line")},goPageUp:function(g){return g.moveV(-1,"page")},goPageDown:function(g){return g.moveV(1,"page")},goCharLeft:function(g){return g.moveH(-1,"char")},goCharRight:function(g){return g.moveH(1,"char")},goColumnLeft:function(g){return g.moveH(-1,"column")},goColumnRight:function(g){return g.moveH(1,"column")},goWordLeft:function(g){return g.moveH(-1,"word")},goGroupRight:function(g){return g.moveH(1,"group")},goGroupLeft:function(g){return g.moveH(-1,"group")},goWordRight:function(g){return g.moveH(1,"word")},delCharBefore:function(g){return g.deleteH(-1,"codepoint")},delCharAfter:function(g){return g.deleteH(1,"char")},delWordBefore:function(g){return g.deleteH(-1,"word")},delWordAfter:function(g){return g.deleteH(1,"word")},delGroupBefore:function(g){return g.deleteH(-1,"group")},delGroupAfter:function(g){return g.deleteH(1,"group")},indentAuto:function(g){return g.indentSelection("smart")},indentMore:function(g){return g.indentSelection("add")},indentLess:function(g){return g.indentSelection("subtract")},insertTab:function(g){return g.replaceSelection(" ")},insertSoftTab:function(g){for(var w=[],$=g.listSelections(),I=g.options.tabSize,L=0;L<$.length;L++){var te=$[L].from(),de=V(g.getLine(te.line),te.ch,I);w.push(pe(I-de%I))}g.replaceSelections(w)},defaultTab:function(g){g.somethingSelected()?g.indentSelection("add"):g.execCommand("insertTab")},transposeChars:function(g){return wl(g,function(){for(var w=g.listSelections(),$=[],I=0;I<w.length;I++)if(w[I].empty()){var L=w[I].head,te=gt(g.doc,L.line).text;if(te){if(L.ch==te.length&&(L=new O(L.line,L.ch-1)),L.ch>0)L=new O(L.line,L.ch+1),g.replaceRange(te.charAt(L.ch-1)+te.charAt(L.ch-2),O(L.line,L.ch-2),L,"+transpose");else if(L.line>g.doc.first){var de=gt(g.doc,L.line-1).text;de&&(L=new O(L.line,1),g.replaceRange(te.charAt(0)+g.doc.lineSeparator()+de.charAt(de.length-1),O(L.line-1,de.length-1),L,"+transpose"))}}$.push(new ki(L,L))}g.setSelections($)})},newlineAndIndent:function(g){return wl(g,function(){for(var w=g.listSelections(),$=w.length-1;$>=0;$--)g.replaceRange(g.doc.lineSeparator(),w[$].anchor,w[$].head,"+input");w=g.listSelections();for(var I=0;I<w.length;I++)g.indentLine(w[I].from().line,null,!0);I0(g)})},openLine:function(g){return g.replaceSelection(`
|
||
`,"start")},toggleOverwrite:function(g){return g.toggleOverwrite()}};function qG(g,w){var $=gt(g.doc,w),I=cs($);return I!=$&&(w=Mt(I)),UI(!0,g,I,w,1)}function v9e(g,w){var $=gt(g.doc,w),I=xI($);return I!=$&&(w=Mt(I)),UI(!0,g,$,w,-1)}function GG(g,w){var $=qG(g,w.line),I=gt(g.doc,$.line),L=Oe(I,g.doc.direction);if(!L||L[0].level==0){var te=Math.max($.ch,I.text.search(/\S/)),de=w.line==$.line&&w.ch<=te&&w.ch;return O($.line,de?0:te,$.sticky)}return $}function nT(g,w,$){if(typeof w=="string"&&(w=fx[w],!w))return!1;g.display.input.ensurePolled();var I=g.display.shift,L=!1;try{g.isReadOnly()&&(g.state.suppressEdits=!0),$&&(g.display.shift=!1),L=w(g)!=fe}finally{g.display.shift=I,g.state.suppressEdits=!1}return L}function y9e(g,w,$){for(var I=0;I<g.state.keyMaps.length;I++){var L=F0(w,g.state.keyMaps[I],$,g);if(L)return L}return g.options.extraKeys&&F0(w,g.options.extraKeys,$,g)||F0(w,g.options.keyMap,$,g)}var b9e=new Y;function hx(g,w,$,I){var L=g.state.keySeq;if(L){if(WG(w))return"handled";if(/\'$/.test(w)?g.state.keySeq=null:b9e.set(50,function(){g.state.keySeq==L&&(g.state.keySeq=null,g.display.input.reset())}),YG(g,L+" "+w,$,I))return!0}return YG(g,w,$,I)}function YG(g,w,$,I){var L=y9e(g,w,I);return L=="multi"&&(g.state.keySeq=w),L=="handled"&&No(g,"keyHandled",g,w,$),(L=="handled"||L=="multi")&&(rt($),ba(g)),!!L}function XG(g,w){var $=KG(w,!0);return $?w.shiftKey&&!g.state.keySeq?hx(g,"Shift-"+$,w,function(I){return nT(g,I,!0)})||hx(g,$,w,function(I){if(typeof I=="string"?/^go[A-Z]/.test(I):I.motion)return nT(g,I)}):hx(g,$,w,function(I){return nT(g,I)}):!1}function S9e(g,w,$){return hx(g,"'"+$+"'",w,function(I){return nT(g,I,!0)})}var WI=null;function QG(g){var w=this;if(!(g.target&&g.target!=w.display.input.getField())&&(w.curOp.focus=z(),!Ye(w,g))){a&&s<11&&g.keyCode==27&&(g.returnValue=!1);var $=g.keyCode;w.display.shift=$==16||g.shiftKey;var I=XG(w,g);d&&(WI=I?$:null,!I&&$==88&&!ct&&(b?g.metaKey:g.ctrlKey)&&w.replaceSelection("",null,"cut")),n&&!b&&!I&&$==46&&g.shiftKey&&!g.ctrlKey&&document.execCommand&&document.execCommand("cut"),$==18&&!/\bCodeMirror-crosshair\b/.test(w.display.lineDiv.className)&&C9e(w)}}function C9e(g){var w=g.display.lineDiv;W(w,"CodeMirror-crosshair");function $(I){(I.keyCode==18||!I.altKey)&&(M(w,"CodeMirror-crosshair"),se(document,"keyup",$),se(document,"mouseover",$))}Ke(document,"keyup",$),Ke(document,"mouseover",$)}function ZG(g){g.keyCode==16&&(this.doc.sel.shift=!1),Ye(this,g)}function JG(g){var w=this;if(!(g.target&&g.target!=w.display.input.getField())&&!(Ku(w.display,g)||Ye(w,g)||g.ctrlKey&&!g.altKey||b&&g.metaKey)){var $=g.keyCode,I=g.charCode;if(d&&$==WI){WI=null,rt(g);return}if(!(d&&(!g.which||g.which<10)&&XG(w,g))){var L=String.fromCharCode(I??$);L!="\b"&&(S9e(w,g,L)||w.display.input.onKeyPress(g))}}}var x9e=400,VI=function(g,w,$){this.time=g,this.pos=w,this.button=$};VI.prototype.compare=function(g,w,$){return this.time+x9e>g&&j(w,this.pos)==0&&$==this.button};var px,mx;function w9e(g,w){var $=+new Date;return mx&&mx.compare($,g,w)?(px=mx=null,"triple"):px&&px.compare($,g,w)?(mx=new VI($,g,w),px=null,"double"):(px=new VI($,g,w),mx=null,"single")}function eY(g){var w=this,$=w.display;if(!(Ye(w,g)||$.activeTouch&&$.input.supportsTouch())){if($.input.ensurePolled(),$.shift=g.shiftKey,Ku($,g)){l||($.scroller.draggable=!1,setTimeout(function(){return $.scroller.draggable=!0},100));return}if(!KI(w,g)){var I=_n(w,g),L=Dt(g),te=I?w9e(I,L):"single";window.focus(),L==1&&w.state.selectingText&&w.state.selectingText(g),!(I&&_9e(w,L,I,te,g))&&(L==1?I?T9e(w,I,te,g):Bt(g)==$.scroller&&rt(g):L==2?(I&&X4(w.doc,I),setTimeout(function(){return $.input.focus()},20)):L==3&&(E?w.display.input.onContextMenu(g):Ra(w)))}}}function _9e(g,w,$,I,L){var te="Click";return I=="double"?te="Double"+te:I=="triple"&&(te="Triple"+te),te=(w==1?"Left":w==2?"Middle":"Right")+te,hx(g,VG(te,L),L,function(de){if(typeof de=="string"&&(de=fx[de]),!de)return!1;var Ee=!1;try{g.isReadOnly()&&(g.state.suppressEdits=!0),Ee=de(g,$)!=fe}finally{g.state.suppressEdits=!1}return Ee})}function E9e(g,w,$){var I=g.getOption("configureMouse"),L=I?I(g,w,$):{};if(L.unit==null){var te=C?$.shiftKey&&$.metaKey:$.altKey;L.unit=te?"rectangle":w=="single"?"char":w=="double"?"word":"line"}return(L.extend==null||g.doc.extend)&&(L.extend=g.doc.extend||$.shiftKey),L.addNew==null&&(L.addNew=b?$.metaKey:$.ctrlKey),L.moveOnDrag==null&&(L.moveOnDrag=!(b?$.altKey:$.ctrlKey)),L}function T9e(g,w,$,I){a?setTimeout(N($g,g),0):g.curOp.focus=z();var L=E9e(g,$,I),te=g.doc.sel,de;g.options.dragDrop&&an&&!g.isReadOnly()&&$=="single"&&(de=te.contains(w))>-1&&(j((de=te.ranges[de]).from(),w)<0||w.xRel>0)&&(j(de.to(),w)>0||w.xRel<0)?k9e(g,I,w,L):O9e(g,I,w,L)}function k9e(g,w,$,I){var L=g.display,te=!1,de=Aa(g,function(Be){l&&(L.scroller.draggable=!1),g.state.draggingText=!1,g.state.delayingBlurEvent&&(g.hasFocus()?g.state.delayingBlurEvent=!1:Ra(g)),se(L.wrapper.ownerDocument,"mouseup",de),se(L.wrapper.ownerDocument,"mousemove",Ee),se(L.scroller,"dragstart",Ie),se(L.scroller,"drop",de),te||(rt(Be),I.addNew||X4(g.doc,$,null,null,I.extend),l&&!h||a&&s==9?setTimeout(function(){L.wrapper.ownerDocument.body.focus({preventScroll:!0}),L.input.focus()},20):L.input.focus())}),Ee=function(Be){te=te||Math.abs(w.clientX-Be.clientX)+Math.abs(w.clientY-Be.clientY)>=10},Ie=function(){return te=!0};l&&(L.scroller.draggable=!0),g.state.draggingText=de,de.copy=!I.moveOnDrag,Ke(L.wrapper.ownerDocument,"mouseup",de),Ke(L.wrapper.ownerDocument,"mousemove",Ee),Ke(L.scroller,"dragstart",Ie),Ke(L.scroller,"drop",de),g.state.delayingBlurEvent=!0,setTimeout(function(){return L.input.focus()},20),L.scroller.dragDrop&&L.scroller.dragDrop()}function tY(g,w,$){if($=="char")return new ki(w,w);if($=="word")return g.findWordAt(w);if($=="line")return new ki(O(w.line,0),on(g.doc,O(w.line+1,0)));var I=$(g,w);return new ki(I.from,I.to)}function O9e(g,w,$,I){a&&Ra(g);var L=g.display,te=g.doc;rt(w);var de,Ee,Ie=te.sel,Be=Ie.ranges;if(I.addNew&&!I.extend?(Ee=te.sel.contains($),Ee>-1?de=Be[Ee]:de=new ki($,$)):(de=te.sel.primary(),Ee=te.sel.primIndex),I.unit=="rectangle")I.addNew||(de=new ki($,$)),$=_n(g,w,!0,!0),Ee=-1;else{var nt=tY(g,$,I.unit);I.extend?de=jI(de,nt.anchor,nt.head,I.extend):de=nt}I.addNew?Ee==-1?(Ee=Be.length,ds(te,Xu(g,Be.concat([de]),Ee),{scroll:!1,origin:"*mouse"})):Be.length>1&&Be[Ee].empty()&&I.unit=="char"&&!I.extend?(ds(te,Xu(g,Be.slice(0,Ee).concat(Be.slice(Ee+1)),0),{scroll:!1,origin:"*mouse"}),Ie=te.sel):BI(te,Ee,de,ne):(Ee=0,ds(te,new tc([de],0),ne),Ie=te.sel);var at=$;function Et(Hn){if(j(at,Hn)!=0)if(at=Hn,I.unit=="rectangle"){for(var Yn=[],vr=g.options.tabSize,pr=V(gt(te,$.line).text,$.ch,vr),Kr=V(gt(te,Hn.line).text,Hn.ch,vr),Ki=Math.min(pr,Kr),Da=Math.max(pr,Kr),_o=Math.min($.line,Hn.line),_l=Math.min(g.lastLine(),Math.max($.line,Hn.line));_o<=_l;_o++){var Js=gt(te,_o).text,oa=ye(Js,Ki,vr);Ki==Da?Yn.push(new ki(O(_o,oa),O(_o,oa))):Js.length>oa&&Yn.push(new ki(O(_o,oa),O(_o,ye(Js,Da,vr))))}Yn.length||Yn.push(new ki($,$)),ds(te,Xu(g,Ie.ranges.slice(0,Ee).concat(Yn),Ee),{origin:"*mouse",scroll:!1}),g.scrollIntoView(Hn)}else{var el=de,Qa=tY(g,Hn,I.unit),Sa=el.anchor,aa;j(Qa.anchor,Sa)>0?(aa=Qa.head,Sa=ft(el.from(),Qa.anchor)):(aa=Qa.anchor,Sa=Ge(el.to(),Qa.head));var Do=Ie.ranges.slice(0);Do[Ee]=P9e(g,new ki(on(te,Sa),aa)),ds(te,Xu(g,Do,Ee),ne)}}var yt=L.wrapper.getBoundingClientRect(),rn=0;function dn(Hn){var Yn=++rn,vr=_n(g,Hn,!0,I.unit=="rectangle");if(vr)if(j(vr,at)!=0){g.curOp.focus=z(),Et(vr);var pr=W4(L,te);(vr.line>=pr.to||vr.line<pr.from)&&setTimeout(Aa(g,function(){rn==Yn&&dn(Hn)}),150)}else{var Kr=Hn.clientY<yt.top?-20:Hn.clientY>yt.bottom?20:0;Kr&&setTimeout(Aa(g,function(){rn==Yn&&(L.scroller.scrollTop+=Kr,dn(Hn))}),50)}}function En(Hn){g.state.selectingText=!1,rn=1/0,Hn&&(rt(Hn),L.input.focus()),se(L.wrapper.ownerDocument,"mousemove",Bn),se(L.wrapper.ownerDocument,"mouseup",Un),te.history.lastSelOrigin=null}var Bn=Aa(g,function(Hn){Hn.buttons===0||!Dt(Hn)?En(Hn):dn(Hn)}),Un=Aa(g,En);g.state.selectingText=Un,Ke(L.wrapper.ownerDocument,"mousemove",Bn),Ke(L.wrapper.ownerDocument,"mouseup",Un)}function P9e(g,w){var $=w.anchor,I=w.head,L=gt(g.doc,$.line);if(j($,I)==0&&$.sticky==I.sticky)return w;var te=Oe(L);if(!te)return w;var de=J(te,$.ch,$.sticky),Ee=te[de];if(Ee.from!=$.ch&&Ee.to!=$.ch)return w;var Ie=de+(Ee.from==$.ch==(Ee.level!=1)?0:1);if(Ie==0||Ie==te.length)return w;var Be;if(I.line!=$.line)Be=(I.line-$.line)*(g.doc.direction=="ltr"?1:-1)>0;else{var nt=J(te,I.ch,I.sticky),at=nt-de||(I.ch-$.ch)*(Ee.level==1?-1:1);nt==Ie-1||nt==Ie?Be=at<0:Be=at>0}var Et=te[Ie+(Be?-1:0)],yt=Be==(Et.level==1),rn=yt?Et.from:Et.to,dn=yt?"after":"before";return $.ch==rn&&$.sticky==dn?w:new ki(new O($.line,rn,dn),I)}function nY(g,w,$,I){var L,te;if(w.touches)L=w.touches[0].clientX,te=w.touches[0].clientY;else try{L=w.clientX,te=w.clientY}catch{return!1}if(L>=Math.floor(g.display.gutters.getBoundingClientRect().right))return!1;I&&rt(w);var de=g.display,Ee=de.lineDiv.getBoundingClientRect();if(te>Ee.bottom||!Je(g,$))return St(w);te-=Ee.top-de.viewOffset;for(var Ie=0;Ie<g.display.gutterSpecs.length;++Ie){var Be=de.gutters.childNodes[Ie];if(Be&&Be.getBoundingClientRect().right>=L){var nt=zt(g.doc,te),at=g.display.gutterSpecs[Ie];return ze(g,$,g,nt,at.className,w),St(w)}}}function KI(g,w){return nY(g,w,"gutterClick",!0)}function rY(g,w){Ku(g.display,w)||M9e(g,w)||Ye(g,w,"contextmenu")||E||g.display.input.onContextMenu(w)}function M9e(g,w){return Je(g,"gutterContextMenu")?nY(g,w,"gutterContextMenu",!1):!1}function iY(g){g.display.wrapper.className=g.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+g.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Qc(g)}var B0={toString:function(){return"CodeMirror.Init"}},oY={},rT={};function I9e(g){var w=g.optionHandlers;function $(I,L,te,de){g.defaults[I]=L,te&&(w[I]=de?function(Ee,Ie,Be){Be!=B0&&te(Ee,Ie,Be)}:te)}g.defineOption=$,g.Init=B0,$("value","",function(I,L){return I.setValue(L)},!0),$("mode",null,function(I,L){I.doc.modeOption=L,DI(I)},!0),$("indentUnit",2,DI,!0),$("indentWithTabs",!1),$("smartIndent",!0),$("tabSize",4,function(I){rx(I),Qc(I),yn(I)},!0),$("lineSeparator",null,function(I,L){if(I.doc.lineSep=L,!!L){var te=[],de=I.doc.first;I.doc.iter(function(Ie){for(var Be=0;;){var nt=Ie.text.indexOf(L,Be);if(nt==-1)break;Be=nt+L.length,te.push(O(de,nt))}de++});for(var Ee=te.length-1;Ee>=0;Ee--)D0(I.doc,L,te[Ee],O(te[Ee].line,te[Ee].ch+L.length))}}),$("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(I,L,te){I.state.specialChars=new RegExp(L.source+(L.test(" ")?"":"| "),"g"),te!=B0&&I.refresh()}),$("specialCharPlaceholder",y0,function(I){return I.refresh()},!0),$("electricChars",!0),$("inputStyle",S?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),$("spellcheck",!1,function(I,L){return I.getInputField().spellcheck=L},!0),$("autocorrect",!1,function(I,L){return I.getInputField().autocorrect=L},!0),$("autocapitalize",!1,function(I,L){return I.getInputField().autocapitalize=L},!0),$("rtlMoveVisually",!_),$("wholeLineUpdateBefore",!0),$("theme","default",function(I){iY(I),nx(I)},!0),$("keyMap","default",function(I,L,te){var de=tT(L),Ee=te!=B0&&tT(te);Ee&&Ee.detach&&Ee.detach(I,de),de.attach&&de.attach(I,Ee||null)}),$("extraKeys",null),$("configureMouse",null),$("lineWrapping",!1,R9e,!0),$("gutters",[],function(I,L){I.display.gutterSpecs=AI(L,I.options.lineNumbers),nx(I)},!0),$("fixedGutter",!0,function(I,L){I.display.gutters.style.left=L?Xt(I.display)+"px":"0",I.refresh()},!0),$("coverGutterNextToScrollbar",!1,function(I){return $0(I)},!0),$("scrollbarStyle","native",function(I){sG(I),$0(I),I.display.scrollbars.setScrollTop(I.doc.scrollTop),I.display.scrollbars.setScrollLeft(I.doc.scrollLeft)},!0),$("lineNumbers",!1,function(I,L){I.display.gutterSpecs=AI(I.options.gutters,L),nx(I)},!0),$("firstLineNumber",1,nx,!0),$("lineNumberFormatter",function(I){return I},nx,!0),$("showCursorWhenSelecting",!1,Ur,!0),$("resetSelectionOnContextMenu",!0),$("lineWiseCopyCut",!0),$("pasteLinesPerSelection",!0),$("selectionsMayTouch",!1),$("readOnly",!1,function(I,L){L=="nocursor"&&(cf(I),I.display.input.blur()),I.display.input.readOnlyChanged(L)}),$("screenReaderLabel",null,function(I,L){L=L===""?null:L,I.display.input.screenReaderLabelChanged(L)}),$("disableInput",!1,function(I,L){L||I.display.input.reset()},!0),$("dragDrop",!0,$9e),$("allowDropFileTypes",null),$("cursorBlinkRate",530),$("cursorScrollMargin",0),$("cursorHeight",1,Ur,!0),$("singleCursorHeightPerLine",!0,Ur,!0),$("workTime",100),$("workDelay",100),$("flattenSpans",!0,rx,!0),$("addModeClass",!1,rx,!0),$("pollInterval",100),$("undoDepth",200,function(I,L){return I.doc.history.undoDepth=L}),$("historyEventDelay",1250),$("viewportMargin",10,function(I){return I.refresh()},!0),$("maxHighlightLength",1e4,rx,!0),$("moveInputWithCursor",!0,function(I,L){L||I.display.input.resetPosition()}),$("tabindex",null,function(I,L){return I.display.input.getField().tabIndex=L||""}),$("autofocus",null),$("direction","ltr",function(I,L){return I.doc.setDirection(L)},!0),$("phrases",null)}function $9e(g,w,$){var I=$&&$!=B0;if(!w!=!I){var L=g.display.dragFunctions,te=w?Ke:se;te(g.display.scroller,"dragstart",L.start),te(g.display.scroller,"dragenter",L.enter),te(g.display.scroller,"dragover",L.over),te(g.display.scroller,"dragleave",L.leave),te(g.display.scroller,"drop",L.drop)}}function R9e(g){g.options.lineWrapping?(W(g.display.wrapper,"CodeMirror-wrap"),g.display.sizer.style.minWidth="",g.display.sizerWidth=null):(M(g.display.wrapper,"CodeMirror-wrap"),Pg(g)),un(g),yn(g),Qc(g),setTimeout(function(){return $0(g)},100)}function co(g,w){var $=this;if(!(this instanceof co))return new co(g,w);this.options=w=w?B(w):{},B(oY,w,!1);var I=w.value;typeof I=="string"?I=new Zs(I,w.mode,null,w.lineSeparator,w.direction):w.mode&&(I.modeOption=w.mode),this.doc=I;var L=new co.inputStyles[w.inputStyle](this),te=this.display=new K8e(g,I,L,w);te.wrapper.CodeMirror=this,iY(this),w.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),sG(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 Y,keySeq:null,specialChars:null},w.autofocus&&!S&&te.input.focus(),a&&s<11&&setTimeout(function(){return $.display.input.reset(!0)},20),A9e(this),d9e(),Ng(this),this.curOp.forceUpdate=!0,vG(this,I),w.autofocus&&!S||this.hasFocus()?setTimeout(function(){$.hasFocus()&&!$.state.focused&&Yu($)},20):cf(this);for(var de in rT)rT.hasOwnProperty(de)&&rT[de](this,w[de],B0);uG(this),w.finishInit&&w.finishInit(this);for(var Ee=0;Ee<qI.length;++Ee)qI[Ee](this);Dg(this),l&&w.lineWrapping&&getComputedStyle(te.lineDiv).textRendering=="optimizelegibility"&&(te.lineDiv.style.textRendering="auto")}co.defaults=oY,co.optionHandlers=rT;function A9e(g){var w=g.display;Ke(w.scroller,"mousedown",Aa(g,eY)),a&&s<11?Ke(w.scroller,"dblclick",Aa(g,function(Ie){if(!Ye(g,Ie)){var Be=_n(g,Ie);if(!(!Be||KI(g,Ie)||Ku(g.display,Ie))){rt(Ie);var nt=g.findWordAt(Be);X4(g.doc,nt.anchor,nt.head)}}})):Ke(w.scroller,"dblclick",function(Ie){return Ye(g,Ie)||rt(Ie)}),Ke(w.scroller,"contextmenu",function(Ie){return rY(g,Ie)}),Ke(w.input.getField(),"contextmenu",function(Ie){w.scroller.contains(Ie.target)||rY(g,Ie)});var $,I={end:0};function L(){w.activeTouch&&($=setTimeout(function(){return w.activeTouch=null},1e3),I=w.activeTouch,I.end=+new Date)}function te(Ie){if(Ie.touches.length!=1)return!1;var Be=Ie.touches[0];return Be.radiusX<=1&&Be.radiusY<=1}function de(Ie,Be){if(Be.left==null)return!0;var nt=Be.left-Ie.left,at=Be.top-Ie.top;return nt*nt+at*at>20*20}Ke(w.scroller,"touchstart",function(Ie){if(!Ye(g,Ie)&&!te(Ie)&&!KI(g,Ie)){w.input.ensurePolled(),clearTimeout($);var Be=+new Date;w.activeTouch={start:Be,moved:!1,prev:Be-I.end<=300?I:null},Ie.touches.length==1&&(w.activeTouch.left=Ie.touches[0].pageX,w.activeTouch.top=Ie.touches[0].pageY)}}),Ke(w.scroller,"touchmove",function(){w.activeTouch&&(w.activeTouch.moved=!0)}),Ke(w.scroller,"touchend",function(Ie){var Be=w.activeTouch;if(Be&&!Ku(w,Ie)&&Be.left!=null&&!Be.moved&&new Date-Be.start<300){var nt=g.coordsChar(w.activeTouch,"page"),at;!Be.prev||de(Be,Be.prev)?at=new ki(nt,nt):!Be.prev.prev||de(Be,Be.prev.prev)?at=g.findWordAt(nt):at=new ki(O(nt.line,0),on(g.doc,O(nt.line+1,0))),g.setSelection(at.anchor,at.head),g.focus(),rt(Ie)}L()}),Ke(w.scroller,"touchcancel",L),Ke(w.scroller,"scroll",function(){w.scroller.clientHeight&&(ZC(g,w.scroller.scrollTop),Rg(g,w.scroller.scrollLeft,!0),ze(g,"scroll",g))}),Ke(w.scroller,"mousewheel",function(Ie){return hG(g,Ie)}),Ke(w.scroller,"DOMMouseScroll",function(Ie){return hG(g,Ie)}),Ke(w.wrapper,"scroll",function(){return w.wrapper.scrollTop=w.wrapper.scrollLeft=0}),w.dragFunctions={enter:function(Ie){Ye(g,Ie)||Ot(Ie)},over:function(Ie){Ye(g,Ie)||(u9e(g,Ie),Ot(Ie))},start:function(Ie){return c9e(g,Ie)},drop:Aa(g,l9e),leave:function(Ie){Ye(g,Ie)||HG(g)}};var Ee=w.input.getField();Ke(Ee,"keyup",function(Ie){return ZG.call(g,Ie)}),Ke(Ee,"keydown",Aa(g,QG)),Ke(Ee,"keypress",Aa(g,JG)),Ke(Ee,"focus",function(Ie){return Yu(g,Ie)}),Ke(Ee,"blur",function(Ie){return cf(g,Ie)})}var qI=[];co.defineInitHook=function(g){return qI.push(g)};function gx(g,w,$,I){var L=g.doc,te;$==null&&($="add"),$=="smart"&&(L.mode.indent?te=Pn(g,w).state:$="prev");var de=g.options.tabSize,Ee=gt(L,w),Ie=V(Ee.text,null,de);Ee.stateAfter&&(Ee.stateAfter=null);var Be=Ee.text.match(/^\s*/)[0],nt;if(!I&&!/\S/.test(Ee.text))nt=0,$="not";else if($=="smart"&&(nt=L.mode.indent(te,Ee.text.slice(Be.length),Ee.text),nt==fe||nt>150)){if(!I)return;$="prev"}$=="prev"?w>L.first?nt=V(gt(L,w-1).text,null,de):nt=0:$=="add"?nt=Ie+g.options.indentUnit:$=="subtract"?nt=Ie-g.options.indentUnit:typeof $=="number"&&(nt=Ie+$),nt=Math.max(0,nt);var at="",Et=0;if(g.options.indentWithTabs)for(var yt=Math.floor(nt/de);yt;--yt)Et+=de,at+=" ";if(Et<nt&&(at+=pe(nt-Et)),at!=Be)return D0(L,at,O(w,0),O(w,Be.length),"+input"),Ee.stateAfter=null,!0;for(var rn=0;rn<L.sel.ranges.length;rn++){var dn=L.sel.ranges[rn];if(dn.head.line==w&&dn.head.ch<Be.length){var En=O(w,Be.length);BI(L,rn,new ki(En,En));break}}}var Qu=null;function iT(g){Qu=g}function GI(g,w,$,I,L){var te=g.doc;g.display.shift=!1,I||(I=te.sel);var de=+new Date-200,Ee=L=="paste"||g.state.pasteIncoming>de,Ie=ot(w),Be=null;if(Ee&&I.ranges.length>1)if(Qu&&Qu.text.join(`
|
||
`)==w){if(I.ranges.length%Qu.text.length==0){Be=[];for(var nt=0;nt<Qu.text.length;nt++)Be.push(te.splitLines(Qu.text[nt]))}}else Ie.length==I.ranges.length&&g.options.pasteLinesPerSelection&&(Be=_e(Ie,function(Bn){return[Bn]}));for(var at=g.curOp.updateInput,Et=I.ranges.length-1;Et>=0;Et--){var yt=I.ranges[Et],rn=yt.from(),dn=yt.to();yt.empty()&&($&&$>0?rn=O(rn.line,rn.ch-$):g.state.overwrite&&!Ee?dn=O(dn.line,Math.min(gt(te,dn.line).text.length,dn.ch+he(Ie).length)):Ee&&Qu&&Qu.lineWise&&Qu.text.join(`
|
||
`)==Ie.join(`
|
||
`)&&(rn=dn=O(rn.line,0)));var En={from:rn,to:dn,text:Be?Be[Et%Be.length]:Ie,origin:L||(Ee?"paste":g.state.cutIncoming>de?"cut":"+input")};N0(g.doc,En),No(g,"inputRead",g,En)}w&&!Ee&&sY(g,w),I0(g),g.curOp.updateInput<2&&(g.curOp.updateInput=at),g.curOp.typing=!0,g.state.pasteIncoming=g.state.cutIncoming=-1}function aY(g,w){var $=g.clipboardData&&g.clipboardData.getData("Text");if($)return g.preventDefault(),!w.isReadOnly()&&!w.options.disableInput&&wl(w,function(){return GI(w,$,0,null,"paste")}),!0}function sY(g,w){if(!(!g.options.electricChars||!g.options.smartIndent))for(var $=g.doc.sel,I=$.ranges.length-1;I>=0;I--){var L=$.ranges[I];if(!(L.head.ch>100||I&&$.ranges[I-1].head.line==L.head.line)){var te=g.getModeAt(L.head),de=!1;if(te.electricChars){for(var Ee=0;Ee<te.electricChars.length;Ee++)if(w.indexOf(te.electricChars.charAt(Ee))>-1){de=gx(g,L.head.line,"smart");break}}else te.electricInput&&te.electricInput.test(gt(g.doc,L.head.line).text.slice(0,L.head.ch))&&(de=gx(g,L.head.line,"smart"));de&&No(g,"electricInput",g,L.head.line)}}}function lY(g){for(var w=[],$=[],I=0;I<g.doc.sel.ranges.length;I++){var L=g.doc.sel.ranges[I].head.line,te={anchor:O(L,0),head:O(L+1,0)};$.push(te),w.push(g.getRange(te.anchor,te.head))}return{text:w,ranges:$}}function cY(g,w,$,I){g.setAttribute("autocorrect",$?"":"off"),g.setAttribute("autocapitalize",I?"":"off"),g.setAttribute("spellcheck",!!w)}function uY(){var g=R("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),w=R("div",[g],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return l?g.style.width="1000px":g.setAttribute("wrap","off"),v&&(g.style.border="1px solid black"),cY(g),w}function N9e(g){var w=g.optionHandlers,$=g.helpers={};g.prototype={constructor:g,focus:function(){window.focus(),this.display.input.focus()},setOption:function(I,L){var te=this.options,de=te[I];te[I]==L&&I!="mode"||(te[I]=L,w.hasOwnProperty(I)&&Aa(this,w[I])(this,L,de),ze(this,"optionChange",this,I))},getOption:function(I){return this.options[I]},getDoc:function(){return this.doc},addKeyMap:function(I,L){this.state.keyMaps[L?"push":"unshift"](tT(I))},removeKeyMap:function(I){for(var L=this.state.keyMaps,te=0;te<L.length;++te)if(L[te]==I||L[te].name==I)return L.splice(te,1),!0},addOverlay:Ms(function(I,L){var te=I.token?I:g.getMode(this.options,I);if(te.startState)throw new Error("Overlays may not be stateful.");le(this.state.overlays,{mode:te,modeSpec:I,opaque:L&&L.opaque,priority:L&&L.priority||0},function(de){return de.priority}),this.state.modeGen++,yn(this)}),removeOverlay:Ms(function(I){for(var L=this.state.overlays,te=0;te<L.length;++te){var de=L[te].modeSpec;if(de==I||typeof I=="string"&&de.name==I){L.splice(te,1),this.state.modeGen++,yn(this);return}}}),indentLine:Ms(function(I,L,te){typeof L!="string"&&typeof L!="number"&&(L==null?L=this.options.smartIndent?"smart":"prev":L=L?"add":"subtract"),Dn(this.doc,I)&&gx(this,I,L,te)}),indentSelection:Ms(function(I){for(var L=this.doc.sel.ranges,te=-1,de=0;de<L.length;de++){var Ee=L[de];if(Ee.empty())Ee.head.line>te&&(gx(this,Ee.head.line,I,!0),te=Ee.head.line,de==this.doc.sel.primIndex&&I0(this));else{var Ie=Ee.from(),Be=Ee.to(),nt=Math.max(te,Ie.line);te=Math.min(this.lastLine(),Be.line-(Be.ch?0:1))+1;for(var at=nt;at<te;++at)gx(this,at,I);var Et=this.doc.sel.ranges;Ie.ch==0&&L.length==Et.length&&Et[de].from().ch>0&&BI(this.doc,de,new ki(Ie,Et[de].to()),ee)}}}),getTokenAt:function(I,L){return Ir(this,I,L)},getLineTokens:function(I,L){return Ir(this,O(I),L,!0)},getTokenTypeAt:function(I){I=on(this.doc,I);var L=wn(this,gt(this.doc,I.line)),te=0,de=(L.length-1)/2,Ee=I.ch,Ie;if(Ee==0)Ie=L[2];else for(;;){var Be=te+de>>1;if((Be?L[Be*2-1]:0)>=Ee)de=Be;else if(L[Be*2+1]<Ee)te=Be+1;else{Ie=L[Be*2+2];break}}var nt=Ie?Ie.indexOf("overlay "):-1;return nt<0?Ie:nt==0?null:Ie.slice(0,nt-1)},getModeAt:function(I){var L=this.doc.mode;return L.innerMode?g.innerMode(L,this.getTokenAt(I).state).mode:L},getHelper:function(I,L){return this.getHelpers(I,L)[0]},getHelpers:function(I,L){var te=[];if(!$.hasOwnProperty(L))return te;var de=$[L],Ee=this.getModeAt(I);if(typeof Ee[L]=="string")de[Ee[L]]&&te.push(de[Ee[L]]);else if(Ee[L])for(var Ie=0;Ie<Ee[L].length;Ie++){var Be=de[Ee[L][Ie]];Be&&te.push(Be)}else Ee.helperType&&de[Ee.helperType]?te.push(de[Ee.helperType]):de[Ee.name]&&te.push(de[Ee.name]);for(var nt=0;nt<de._global.length;nt++){var at=de._global[nt];at.pred(Ee,this)&&ie(te,at.val)==-1&&te.push(at.val)}return te},getStateAfter:function(I,L){var te=this.doc;return I=Jt(te,I??te.first+te.size-1),Pn(this,I+1,L).state},cursorCoords:function(I,L){var te,de=this.doc.sel.primary();return I==null?te=de.head:typeof I=="object"?te=on(this.doc,I):te=I?de.from():de.to(),He(this,te,L||"page")},charCoords:function(I,L){return $e(this,on(this.doc,I),L||"page")},coordsChar:function(I,L){return I=ve(this,I,L||"page"),st(this,I.left,I.top)},lineAtHeight:function(I,L){return I=ve(this,{top:I,left:0},L||"page").top,zt(this.doc,I+this.display.viewOffset)},heightAtLine:function(I,L,te){var de=!1,Ee;if(typeof I=="number"){var Ie=this.doc.first+this.doc.size-1;I<this.doc.first?I=this.doc.first:I>Ie&&(I=Ie,de=!0),Ee=gt(this.doc,I)}else Ee=I;return re(this,Ee,{top:0,left:0},L||"page",te||de).top+(de?this.doc.height-Vu(Ee):0)},defaultTextHeight:function(){return It(this.display)},defaultCharWidth:function(){return xt(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(I,L,te,de,Ee){var Ie=this.display;I=He(this,on(this.doc,I));var Be=I.bottom,nt=I.left;if(L.style.position="absolute",L.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(L),Ie.sizer.appendChild(L),de=="over")Be=I.top;else if(de=="above"||de=="near"){var at=Math.max(Ie.wrapper.clientHeight,this.doc.height),Et=Math.max(Ie.sizer.clientWidth,Ie.lineSpace.clientWidth);(de=="above"||I.bottom+L.offsetHeight>at)&&I.top>L.offsetHeight?Be=I.top-L.offsetHeight:I.bottom+L.offsetHeight<=at&&(Be=I.bottom),nt+L.offsetWidth>Et&&(nt=Et-L.offsetWidth)}L.style.top=Be+"px",L.style.left=L.style.right="",Ee=="right"?(nt=Ie.sizer.clientWidth-L.offsetWidth,L.style.right="0px"):(Ee=="left"?nt=0:Ee=="middle"&&(nt=(Ie.sizer.clientWidth-L.offsetWidth)/2),L.style.left=nt+"px"),te&&$8e(this,{left:nt,top:Be,right:nt+L.offsetWidth,bottom:Be+L.offsetHeight})},triggerOnKeyDown:Ms(QG),triggerOnKeyPress:Ms(JG),triggerOnKeyUp:ZG,triggerOnMouseDown:Ms(eY),execCommand:function(I){if(fx.hasOwnProperty(I))return fx[I].call(null,this)},triggerElectric:Ms(function(I){sY(this,I)}),findPosH:function(I,L,te,de){var Ee=1;L<0&&(Ee=-1,L=-L);for(var Ie=on(this.doc,I),Be=0;Be<L&&(Ie=YI(this.doc,Ie,Ee,te,de),!Ie.hitSide);++Be);return Ie},moveH:Ms(function(I,L){var te=this;this.extendSelectionsBy(function(de){return te.display.shift||te.doc.extend||de.empty()?YI(te.doc,de.head,I,L,te.options.rtlMoveVisually):I<0?de.from():de.to()},ue)}),deleteH:Ms(function(I,L){var te=this.doc.sel,de=this.doc;te.somethingSelected()?de.replaceSelection("",null,"+delete"):j0(this,function(Ee){var Ie=YI(de,Ee.head,I,L,!1);return I<0?{from:Ie,to:Ee.head}:{from:Ee.head,to:Ie}})}),findPosV:function(I,L,te,de){var Ee=1,Ie=de;L<0&&(Ee=-1,L=-L);for(var Be=on(this.doc,I),nt=0;nt<L;++nt){var at=He(this,Be,"div");if(Ie==null?Ie=at.left:at.left=Ie,Be=dY(this,at,Ee,te),Be.hitSide)break}return Be},moveV:Ms(function(I,L){var te=this,de=this.doc,Ee=[],Ie=!this.display.shift&&!de.extend&&de.sel.somethingSelected();if(de.extendSelectionsBy(function(nt){if(Ie)return I<0?nt.from():nt.to();var at=He(te,nt.head,"div");nt.goalColumn!=null&&(at.left=nt.goalColumn),Ee.push(at.left);var Et=dY(te,at,I,L);return L=="page"&&nt==de.sel.primary()&&PI(te,$e(te,Et,"div").top-at.top),Et},ue),Ee.length)for(var Be=0;Be<de.sel.ranges.length;Be++)de.sel.ranges[Be].goalColumn=Ee[Be]}),findWordAt:function(I){var L=this.doc,te=gt(L,I.line).text,de=I.ch,Ee=I.ch;if(te){var Ie=this.getHelper(I,"wordChars");(I.sticky=="before"||Ee==te.length)&&de?--de:++Ee;for(var Be=te.charAt(de),nt=Ce(Be,Ie)?function(at){return Ce(at,Ie)}:/\s/.test(Be)?function(at){return/\s/.test(at)}:function(at){return!/\s/.test(at)&&!Ce(at)};de>0&&nt(te.charAt(de-1));)--de;for(;Ee<te.length&&nt(te.charAt(Ee));)++Ee}return new ki(O(I.line,de),O(I.line,Ee))},toggleOverwrite:function(I){I!=null&&I==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?W(this.display.cursorDiv,"CodeMirror-overwrite"):M(this.display.cursorDiv,"CodeMirror-overwrite"),ze(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==z()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Ms(function(I,L){QC(this,I,L)}),getScrollInfo:function(){var I=this.display.scroller;return{left:I.scrollLeft,top:I.scrollTop,height:I.scrollHeight-ec(this)-this.display.barHeight,width:I.scrollWidth-ec(this)-this.display.barWidth,clientHeight:P0(this),clientWidth:qu(this)}},scrollIntoView:Ms(function(I,L){I==null?(I={from:this.doc.sel.primary().head,to:null},L==null&&(L=this.options.cursorScrollMargin)):typeof I=="number"?I={from:O(I,0),to:null}:I.from==null&&(I={from:I,to:null}),I.to||(I.to=I.from),I.margin=L||0,I.from.line!=null?R8e(this,I):rG(this,I.from,I.to,I.margin)}),setSize:Ms(function(I,L){var te=this,de=function(Ie){return typeof Ie=="number"||/^\d+$/.test(String(Ie))?Ie+"px":Ie};I!=null&&(this.display.wrapper.style.width=de(I)),L!=null&&(this.display.wrapper.style.height=de(L)),this.options.lineWrapping&&M0(this);var Ee=this.display.viewFrom;this.doc.iter(Ee,this.display.viewTo,function(Ie){if(Ie.widgets){for(var Be=0;Be<Ie.widgets.length;Be++)if(Ie.widgets[Be].noHScroll){kn(te,Ee,"widget");break}}++Ee}),this.curOp.forceUpdate=!0,ze(this,"refresh",this)}),operation:function(I){return wl(this,I)},startOperation:function(){return Ng(this)},endOperation:function(){return Dg(this)},refresh:Ms(function(){var I=this.display.cachedTextHeight;yn(this),this.curOp.forceUpdate=!0,Qc(this),QC(this,this.doc.scrollLeft,this.doc.scrollTop),$I(this.display),(I==null||Math.abs(I-It(this.display))>.5||this.options.lineWrapping)&&un(this),ze(this,"refresh",this)}),swapDoc:Ms(function(I){var L=this.doc;return L.cm=null,this.state.selectingText&&this.state.selectingText(),vG(this,I),Qc(this),this.display.input.reset(),QC(this,I.scrollLeft,I.scrollTop),this.curOp.forceScroll=!0,No(this,"swapDoc",this,L),L}),phrase:function(I){var L=this.options.phrases;return L&&Object.prototype.hasOwnProperty.call(L,I)?L[I]:I},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}},Ze(g),g.registerHelper=function(I,L,te){$.hasOwnProperty(I)||($[I]=g[I]={_global:[]}),$[I][L]=te},g.registerGlobalHelper=function(I,L,te,de){g.registerHelper(I,L,de),$[I]._global.push({pred:te,val:de})}}function YI(g,w,$,I,L){var te=w,de=$,Ee=gt(g,w.line),Ie=L&&g.direction=="rtl"?-$:$;function Be(){var Un=w.line+Ie;return Un<g.first||Un>=g.first+g.size?!1:(w=new O(Un,w.ch,w.sticky),Ee=gt(g,Un))}function nt(Un){var Hn;if(I=="codepoint"){var Yn=Ee.text.charCodeAt(w.ch+($>0?0:-1));if(isNaN(Yn))Hn=null;else{var vr=$>0?Yn>=55296&&Yn<56320:Yn>=56320&&Yn<57343;Hn=new O(w.line,Math.max(0,Math.min(Ee.text.length,w.ch+$*(vr?2:1))),-$)}}else L?Hn=g9e(g.cm,Ee,w,$):Hn=zI(Ee,w,$);if(Hn==null)if(!Un&&Be())w=UI(L,g.cm,Ee,w.line,Ie);else return!1;else w=Hn;return!0}if(I=="char"||I=="codepoint")nt();else if(I=="column")nt(!0);else if(I=="word"||I=="group")for(var at=null,Et=I=="group",yt=g.cm&&g.cm.getHelper(w,"wordChars"),rn=!0;!($<0&&!nt(!rn));rn=!1){var dn=Ee.text.charAt(w.ch)||`
|
||
`,En=Ce(dn,yt)?"w":Et&&dn==`
|
||
`?"n":!Et||/\s/.test(dn)?null:"p";if(Et&&!rn&&!En&&(En="s"),at&&at!=En){$<0&&($=1,nt(),w.sticky="after");break}if(En&&(at=En),$>0&&!nt(!rn))break}var Bn=Z4(g,w,te,de,!0);return oe(te,Bn)&&(Bn.hitSide=!0),Bn}function dY(g,w,$,I){var L=g.doc,te=w.left,de;if(I=="page"){var Ee=Math.min(g.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Ie=Math.max(Ee-.5*It(g.display),3);de=($>0?w.bottom:w.top)+$*Ie}else I=="line"&&(de=$>0?w.bottom+3:w.top-3);for(var Be;Be=st(g,te,de),!!Be.outside;){if($<0?de<=0:de>=L.height){Be.hitSide=!0;break}de+=$*5}return Be}var Ri=function(g){this.cm=g,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Y,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Ri.prototype.init=function(g){var w=this,$=this,I=$.cm,L=$.div=g.lineDiv;L.contentEditable=!0,cY(L,I.options.spellcheck,I.options.autocorrect,I.options.autocapitalize);function te(Ee){for(var Ie=Ee.target;Ie;Ie=Ie.parentNode){if(Ie==L)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Ie.className))break}return!1}Ke(L,"paste",function(Ee){!te(Ee)||Ye(I,Ee)||aY(Ee,I)||s<=11&&setTimeout(Aa(I,function(){return w.updateFromDOM()}),20)}),Ke(L,"compositionstart",function(Ee){w.composing={data:Ee.data,done:!1}}),Ke(L,"compositionupdate",function(Ee){w.composing||(w.composing={data:Ee.data,done:!1})}),Ke(L,"compositionend",function(Ee){w.composing&&(Ee.data!=w.composing.data&&w.readFromDOMSoon(),w.composing.done=!0)}),Ke(L,"touchstart",function(){return $.forceCompositionEnd()}),Ke(L,"input",function(){w.composing||w.readFromDOMSoon()});function de(Ee){if(!(!te(Ee)||Ye(I,Ee))){if(I.somethingSelected())iT({lineWise:!1,text:I.getSelections()}),Ee.type=="cut"&&I.replaceSelection("",null,"cut");else if(I.options.lineWiseCopyCut){var Ie=lY(I);iT({lineWise:!0,text:Ie.text}),Ee.type=="cut"&&I.operation(function(){I.setSelections(Ie.ranges,0,ee),I.replaceSelection("",null,"cut")})}else return;if(Ee.clipboardData){Ee.clipboardData.clearData();var Be=Qu.text.join(`
|
||
`);if(Ee.clipboardData.setData("Text",Be),Ee.clipboardData.getData("Text")==Be){Ee.preventDefault();return}}var nt=uY(),at=nt.firstChild;I.display.lineSpace.insertBefore(nt,I.display.lineSpace.firstChild),at.value=Qu.text.join(`
|
||
`);var Et=z();Z(at),setTimeout(function(){I.display.lineSpace.removeChild(nt),Et.focus(),Et==L&&$.showPrimarySelection()},50)}}Ke(L,"copy",de),Ke(L,"cut",de)},Ri.prototype.screenReaderLabelChanged=function(g){g?this.div.setAttribute("aria-label",g):this.div.removeAttribute("aria-label")},Ri.prototype.prepareSelection=function(){var g=Xr(this.cm,!1);return g.focus=z()==this.div,g},Ri.prototype.showSelection=function(g,w){!g||!this.cm.display.view.length||((g.focus||w)&&this.showPrimarySelection(),this.showMultipleSelections(g))},Ri.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ri.prototype.showPrimarySelection=function(){var g=this.getSelection(),w=this.cm,$=w.doc.sel.primary(),I=$.from(),L=$.to();if(w.display.viewTo==w.display.viewFrom||I.line>=w.display.viewTo||L.line<w.display.viewFrom){g.removeAllRanges();return}var te=oT(w,g.anchorNode,g.anchorOffset),de=oT(w,g.focusNode,g.focusOffset);if(!(te&&!te.bad&&de&&!de.bad&&j(ft(te,de),I)==0&&j(Ge(te,de),L)==0)){var Ee=w.display.view,Ie=I.line>=w.display.viewFrom&&fY(w,I)||{node:Ee[0].measure.map[2],offset:0},Be=L.line<w.display.viewTo&&fY(w,L);if(!Be){var nt=Ee[Ee.length-1].measure,at=nt.maps?nt.maps[nt.maps.length-1]:nt.map;Be={node:at[at.length-1],offset:at[at.length-2]-at[at.length-3]}}if(!Ie||!Be){g.removeAllRanges();return}var Et=g.rangeCount&&g.getRangeAt(0),yt;try{yt=H(Ie.node,Ie.offset,Be.offset,Be.node)}catch{}yt&&(!n&&w.state.focused?(g.collapse(Ie.node,Ie.offset),yt.collapsed||(g.removeAllRanges(),g.addRange(yt))):(g.removeAllRanges(),g.addRange(yt)),Et&&g.anchorNode==null?g.addRange(Et):n&&this.startGracePeriod()),this.rememberSelection()}},Ri.prototype.startGracePeriod=function(){var g=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){g.gracePeriod=!1,g.selectionChanged()&&g.cm.operation(function(){return g.cm.curOp.selectionChanged=!0})},20)},Ri.prototype.showMultipleSelections=function(g){D(this.cm.display.cursorDiv,g.cursors),D(this.cm.display.selectionDiv,g.selection)},Ri.prototype.rememberSelection=function(){var g=this.getSelection();this.lastAnchorNode=g.anchorNode,this.lastAnchorOffset=g.anchorOffset,this.lastFocusNode=g.focusNode,this.lastFocusOffset=g.focusOffset},Ri.prototype.selectionInEditor=function(){var g=this.getSelection();if(!g.rangeCount)return!1;var w=g.getRangeAt(0).commonAncestorContainer;return F(this.div,w)},Ri.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||z()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ri.prototype.blur=function(){this.div.blur()},Ri.prototype.getField=function(){return this.div},Ri.prototype.supportsTouch=function(){return!0},Ri.prototype.receivedFocus=function(){var g=this,w=this;this.selectionInEditor()?setTimeout(function(){return g.pollSelection()},20):wl(this.cm,function(){return w.cm.curOp.selectionChanged=!0});function $(){w.cm.state.focused&&(w.pollSelection(),w.polling.set(w.cm.options.pollInterval,$))}this.polling.set(this.cm.options.pollInterval,$)},Ri.prototype.selectionChanged=function(){var g=this.getSelection();return g.anchorNode!=this.lastAnchorNode||g.anchorOffset!=this.lastAnchorOffset||g.focusNode!=this.lastFocusNode||g.focusOffset!=this.lastFocusOffset},Ri.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var g=this.getSelection(),w=this.cm;if(y&&u&&this.cm.display.gutterSpecs.length&&D9e(g.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var $=oT(w,g.anchorNode,g.anchorOffset),I=oT(w,g.focusNode,g.focusOffset);$&&I&&wl(w,function(){ds(w.doc,Hp($,I),ee),($.bad||I.bad)&&(w.curOp.selectionChanged=!0)})}}},Ri.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var g=this.cm,w=g.display,$=g.doc.sel.primary(),I=$.from(),L=$.to();if(I.ch==0&&I.line>g.firstLine()&&(I=O(I.line-1,gt(g.doc,I.line-1).length)),L.ch==gt(g.doc,L.line).text.length&&L.line<g.lastLine()&&(L=O(L.line+1,0)),I.line<w.viewFrom||L.line>w.viewTo-1)return!1;var te,de,Ee;I.line==w.viewFrom||(te=An(g,I.line))==0?(de=Mt(w.view[0].line),Ee=w.view[0].node):(de=Mt(w.view[te].line),Ee=w.view[te-1].node.nextSibling);var Ie=An(g,L.line),Be,nt;if(Ie==w.view.length-1?(Be=w.viewTo-1,nt=w.lineDiv.lastChild):(Be=Mt(w.view[Ie+1].line)-1,nt=w.view[Ie+1].node.previousSibling),!Ee)return!1;for(var at=g.doc.splitLines(L9e(g,Ee,nt,de,Be)),Et=Ve(g.doc,O(de,0),O(Be,gt(g.doc,Be).text.length));at.length>1&&Et.length>1;)if(he(at)==he(Et))at.pop(),Et.pop(),Be--;else if(at[0]==Et[0])at.shift(),Et.shift(),de++;else break;for(var yt=0,rn=0,dn=at[0],En=Et[0],Bn=Math.min(dn.length,En.length);yt<Bn&&dn.charCodeAt(yt)==En.charCodeAt(yt);)++yt;for(var Un=he(at),Hn=he(Et),Yn=Math.min(Un.length-(at.length==1?yt:0),Hn.length-(Et.length==1?yt:0));rn<Yn&&Un.charCodeAt(Un.length-rn-1)==Hn.charCodeAt(Hn.length-rn-1);)++rn;if(at.length==1&&Et.length==1&&de==I.line)for(;yt&&yt>I.ch&&Un.charCodeAt(Un.length-rn-1)==Hn.charCodeAt(Hn.length-rn-1);)yt--,rn++;at[at.length-1]=Un.slice(0,Un.length-rn).replace(/^\u200b+/,""),at[0]=at[0].slice(yt).replace(/\u200b+$/,"");var vr=O(de,yt),pr=O(Be,Et.length?he(Et).length-rn:0);if(at.length>1||at[0]||j(vr,pr))return D0(g.doc,at,vr,pr,"+input"),!0},Ri.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ri.prototype.reset=function(){this.forceCompositionEnd()},Ri.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ri.prototype.readFromDOMSoon=function(){var g=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(g.readDOMTimeout=null,g.composing)if(g.composing.done)g.composing=null;else return;g.updateFromDOM()},80))},Ri.prototype.updateFromDOM=function(){var g=this;(this.cm.isReadOnly()||!this.pollContent())&&wl(this.cm,function(){return yn(g.cm)})},Ri.prototype.setUneditable=function(g){g.contentEditable="false"},Ri.prototype.onKeyPress=function(g){g.charCode==0||this.composing||(g.preventDefault(),this.cm.isReadOnly()||Aa(this.cm,GI)(this.cm,String.fromCharCode(g.charCode==null?g.keyCode:g.charCode),0))},Ri.prototype.readOnlyChanged=function(g){this.div.contentEditable=String(g!="nocursor")},Ri.prototype.onContextMenu=function(){},Ri.prototype.resetPosition=function(){},Ri.prototype.needsContentAttribute=!0;function fY(g,w){var $=Bp(g,w.line);if(!$||$.hidden)return null;var I=gt(g.doc,w.line),L=B4($,I,w.line),te=Oe(I,g.doc.direction),de="left";if(te){var Ee=J(te,w.ch);de=Ee%2?"right":"left"}var Ie=Qs(L.map,w.ch,de);return Ie.offset=Ie.collapse=="right"?Ie.end:Ie.start,Ie}function D9e(g){for(var w=g;w;w=w.parentNode)if(/CodeMirror-gutter-wrapper/.test(w.className))return!0;return!1}function H0(g,w){return w&&(g.bad=!0),g}function L9e(g,w,$,I,L){var te="",de=!1,Ee=g.doc.lineSeparator(),Ie=!1;function Be(yt){return function(rn){return rn.id==yt}}function nt(){de&&(te+=Ee,Ie&&(te+=Ee),de=Ie=!1)}function at(yt){yt&&(nt(),te+=yt)}function Et(yt){if(yt.nodeType==1){var rn=yt.getAttribute("cm-text");if(rn){at(rn);return}var dn=yt.getAttribute("cm-marker"),En;if(dn){var Bn=g.findMarks(O(I,0),O(L+1,0),Be(+dn));Bn.length&&(En=Bn[0].find(0))&&at(Ve(g.doc,En.from,En.to).join(Ee));return}if(yt.getAttribute("contenteditable")=="false")return;var Un=/^(pre|div|p|li|table|br)$/i.test(yt.nodeName);if(!/^br$/i.test(yt.nodeName)&&yt.textContent.length==0)return;Un&&nt();for(var Hn=0;Hn<yt.childNodes.length;Hn++)Et(yt.childNodes[Hn]);/^(pre|p)$/i.test(yt.nodeName)&&(Ie=!0),Un&&(de=!0)}else yt.nodeType==3&&at(yt.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Et(w),w!=$;)w=w.nextSibling,Ie=!1;return te}function oT(g,w,$){var I;if(w==g.display.lineDiv){if(I=g.display.lineDiv.childNodes[$],!I)return H0(g.clipPos(O(g.display.viewTo-1)),!0);w=null,$=0}else for(I=w;;I=I.parentNode){if(!I||I==g.display.lineDiv)return null;if(I.parentNode&&I.parentNode==g.display.lineDiv)break}for(var L=0;L<g.display.view.length;L++){var te=g.display.view[L];if(te.node==I)return F9e(te,w,$)}}function F9e(g,w,$){var I=g.text.firstChild,L=!1;if(!w||!F(I,w))return H0(O(Mt(g.line),0),!0);if(w==I&&(L=!0,w=I.childNodes[$],$=0,!w)){var te=g.rest?he(g.rest):g.line;return H0(O(Mt(te),te.text.length),L)}var de=w.nodeType==3?w:null,Ee=w;for(!de&&w.childNodes.length==1&&w.firstChild.nodeType==3&&(de=w.firstChild,$&&($=de.nodeValue.length));Ee.parentNode!=I;)Ee=Ee.parentNode;var Ie=g.measure,Be=Ie.maps;function nt(En,Bn,Un){for(var Hn=-1;Hn<(Be?Be.length:0);Hn++)for(var Yn=Hn<0?Ie.map:Be[Hn],vr=0;vr<Yn.length;vr+=3){var pr=Yn[vr+2];if(pr==En||pr==Bn){var Kr=Mt(Hn<0?g.line:g.rest[Hn]),Ki=Yn[vr]+Un;return(Un<0||pr!=En)&&(Ki=Yn[vr+(Un?1:0)]),O(Kr,Ki)}}}var at=nt(de,Ee,$);if(at)return H0(at,L);for(var Et=Ee.nextSibling,yt=de?de.nodeValue.length-$:0;Et;Et=Et.nextSibling){if(at=nt(Et,Et.firstChild,0),at)return H0(O(at.line,at.ch-yt),L);yt+=Et.textContent.length}for(var rn=Ee.previousSibling,dn=$;rn;rn=rn.previousSibling){if(at=nt(rn,rn.firstChild,-1),at)return H0(O(at.line,at.ch+dn),L);dn+=rn.textContent.length}}var Ko=function(g){this.cm=g,this.prevInput="",this.pollingFast=!1,this.polling=new Y,this.hasSelection=!1,this.composing=null};Ko.prototype.init=function(g){var w=this,$=this,I=this.cm;this.createField(g);var L=this.textarea;g.wrapper.insertBefore(this.wrapper,g.wrapper.firstChild),v&&(L.style.width="0px"),Ke(L,"input",function(){a&&s>=9&&w.hasSelection&&(w.hasSelection=null),$.poll()}),Ke(L,"paste",function(de){Ye(I,de)||aY(de,I)||(I.state.pasteIncoming=+new Date,$.fastPoll())});function te(de){if(!Ye(I,de)){if(I.somethingSelected())iT({lineWise:!1,text:I.getSelections()});else if(I.options.lineWiseCopyCut){var Ee=lY(I);iT({lineWise:!0,text:Ee.text}),de.type=="cut"?I.setSelections(Ee.ranges,null,ee):($.prevInput="",L.value=Ee.text.join(`
|
||
`),Z(L))}else return;de.type=="cut"&&(I.state.cutIncoming=+new Date)}}Ke(L,"cut",te),Ke(L,"copy",te),Ke(g.scroller,"paste",function(de){if(!(Ku(g,de)||Ye(I,de))){if(!L.dispatchEvent){I.state.pasteIncoming=+new Date,$.focus();return}var Ee=new Event("paste");Ee.clipboardData=de.clipboardData,L.dispatchEvent(Ee)}}),Ke(g.lineSpace,"selectstart",function(de){Ku(g,de)||rt(de)}),Ke(L,"compositionstart",function(){var de=I.getCursor("from");$.composing&&$.composing.range.clear(),$.composing={start:de,range:I.markText(de,I.getCursor("to"),{className:"CodeMirror-composing"})}}),Ke(L,"compositionend",function(){$.composing&&($.poll(),$.composing.range.clear(),$.composing=null)})},Ko.prototype.createField=function(g){this.wrapper=uY(),this.textarea=this.wrapper.firstChild},Ko.prototype.screenReaderLabelChanged=function(g){g?this.textarea.setAttribute("aria-label",g):this.textarea.removeAttribute("aria-label")},Ko.prototype.prepareSelection=function(){var g=this.cm,w=g.display,$=g.doc,I=Xr(g);if(g.options.moveInputWithCursor){var L=He(g,$.sel.primary().head,"div"),te=w.wrapper.getBoundingClientRect(),de=w.lineDiv.getBoundingClientRect();I.teTop=Math.max(0,Math.min(w.wrapper.clientHeight-10,L.top+de.top-te.top)),I.teLeft=Math.max(0,Math.min(w.wrapper.clientWidth-10,L.left+de.left-te.left))}return I},Ko.prototype.showSelection=function(g){var w=this.cm,$=w.display;D($.cursorDiv,g.cursors),D($.selectionDiv,g.selection),g.teTop!=null&&(this.wrapper.style.top=g.teTop+"px",this.wrapper.style.left=g.teLeft+"px")},Ko.prototype.reset=function(g){if(!(this.contextMenuPending||this.composing)){var w=this.cm;if(w.somethingSelected()){this.prevInput="";var $=w.getSelection();this.textarea.value=$,w.state.focused&&Z(this.textarea),a&&s>=9&&(this.hasSelection=$)}else g||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null))}},Ko.prototype.getField=function(){return this.textarea},Ko.prototype.supportsTouch=function(){return!1},Ko.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!S||z()!=this.textarea))try{this.textarea.focus()}catch{}},Ko.prototype.blur=function(){this.textarea.blur()},Ko.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ko.prototype.receivedFocus=function(){this.slowPoll()},Ko.prototype.slowPoll=function(){var g=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){g.poll(),g.cm.state.focused&&g.slowPoll()})},Ko.prototype.fastPoll=function(){var g=!1,w=this;w.pollingFast=!0;function $(){var I=w.poll();!I&&!g?(g=!0,w.polling.set(60,$)):(w.pollingFast=!1,w.slowPoll())}w.polling.set(20,$)},Ko.prototype.poll=function(){var g=this,w=this.cm,$=this.textarea,I=this.prevInput;if(this.contextMenuPending||!w.state.focused||Qe($)&&!I&&!this.composing||w.isReadOnly()||w.options.disableInput||w.state.keySeq)return!1;var L=$.value;if(L==I&&!w.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===L||b&&/[\uf700-\uf7ff]/.test(L))return w.display.input.reset(),!1;if(w.doc.sel==w.display.selForContextMenu){var te=L.charCodeAt(0);if(te==8203&&!I&&(I=""),te==8666)return this.reset(),this.cm.execCommand("undo")}for(var de=0,Ee=Math.min(I.length,L.length);de<Ee&&I.charCodeAt(de)==L.charCodeAt(de);)++de;return wl(w,function(){GI(w,L.slice(de),I.length-de,null,g.composing?"*compose":null),L.length>1e3||L.indexOf(`
|
||
`)>-1?$.value=g.prevInput="":g.prevInput=L,g.composing&&(g.composing.range.clear(),g.composing.range=w.markText(g.composing.start,w.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ko.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ko.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},Ko.prototype.onContextMenu=function(g){var w=this,$=w.cm,I=$.display,L=w.textarea;w.contextMenuPending&&w.contextMenuPending();var te=_n($,g),de=I.scroller.scrollTop;if(!te||d)return;var Ee=$.options.resetSelectionOnContextMenu;Ee&&$.doc.sel.contains(te)==-1&&Aa($,ds)($.doc,Hp(te),ee);var Ie=L.style.cssText,Be=w.wrapper.style.cssText,nt=w.wrapper.offsetParent.getBoundingClientRect();w.wrapper.style.cssText="position: static",L.style.cssText=`position: absolute; width: 30px; height: 30px;
|
||
top: `+(g.clientY-nt.top-5)+"px; left: "+(g.clientX-nt.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 at;l&&(at=window.scrollY),I.input.focus(),l&&window.scrollTo(null,at),I.input.reset(),$.somethingSelected()||(L.value=w.prevInput=" "),w.contextMenuPending=yt,I.selForContextMenu=$.doc.sel,clearTimeout(I.detectingSelectAll);function Et(){if(L.selectionStart!=null){var dn=$.somethingSelected(),En=""+(dn?L.value:"");L.value="⇚",L.value=En,w.prevInput=dn?"":"",L.selectionStart=1,L.selectionEnd=En.length,I.selForContextMenu=$.doc.sel}}function yt(){if(w.contextMenuPending==yt&&(w.contextMenuPending=!1,w.wrapper.style.cssText=Be,L.style.cssText=Ie,a&&s<9&&I.scrollbars.setScrollTop(I.scroller.scrollTop=de),L.selectionStart!=null)){(!a||a&&s<9)&&Et();var dn=0,En=function(){I.selForContextMenu==$.doc.sel&&L.selectionStart==0&&L.selectionEnd>0&&w.prevInput==""?Aa($,MG)($):dn++<10?I.detectingSelectAll=setTimeout(En,500):(I.selForContextMenu=null,I.input.reset())};I.detectingSelectAll=setTimeout(En,200)}}if(a&&s>=9&&Et(),E){Ot(g);var rn=function(){se(window,"mouseup",rn),setTimeout(yt,20)};Ke(window,"mouseup",rn)}else setTimeout(yt,50)},Ko.prototype.readOnlyChanged=function(g){g||this.reset(),this.textarea.disabled=g=="nocursor",this.textarea.readOnly=!!g},Ko.prototype.setUneditable=function(){},Ko.prototype.needsContentAttribute=!1;function j9e(g,w){if(w=w?B(w):{},w.value=g.value,!w.tabindex&&g.tabIndex&&(w.tabindex=g.tabIndex),!w.placeholder&&g.placeholder&&(w.placeholder=g.placeholder),w.autofocus==null){var $=z();w.autofocus=$==g||g.getAttribute("autofocus")!=null&&$==document.body}function I(){g.value=Ee.getValue()}var L;if(g.form&&(Ke(g.form,"submit",I),!w.leaveSubmitMethodAlone)){var te=g.form;L=te.submit;try{var de=te.submit=function(){I(),te.submit=L,te.submit(),te.submit=de}}catch{}}w.finishInit=function(Ie){Ie.save=I,Ie.getTextArea=function(){return g},Ie.toTextArea=function(){Ie.toTextArea=isNaN,I(),g.parentNode.removeChild(Ie.getWrapperElement()),g.style.display="",g.form&&(se(g.form,"submit",I),!w.leaveSubmitMethodAlone&&typeof g.form.submit=="function"&&(g.form.submit=L))}},g.style.display="none";var Ee=co(function(Ie){return g.parentNode.insertBefore(Ie,g.nextSibling)},w);return Ee}function B9e(g){g.off=se,g.on=Ke,g.wheelEventPixels=q8e,g.Doc=Zs,g.splitLines=ot,g.countColumn=V,g.findColumn=ye,g.isWordChar=Fe,g.Pass=fe,g.signal=ze,g.Line=of,g.changeEnd=zp,g.scrollbarModel=aG,g.Pos=O,g.cmpPos=j,g.modes=Zt,g.mimeModes=Wt,g.resolveMode=Gt,g.getMode=Ft,g.modeExtensions=cn,g.extendMode=_t,g.copyState=jt,g.startState=Ht,g.innerMode=nn,g.commands=fx,g.keyMap=mh,g.keyName=KG,g.isModifierKey=WG,g.lookupKey=F0,g.normalizeKeyMap=m9e,g.StringStream=Tt,g.SharedTextMarker=cx,g.TextMarker=Wp,g.LineWidget=lx,g.e_preventDefault=rt,g.e_stopPropagation=qt,g.e_stop=Ot,g.addClass=W,g.contains=F,g.rmClass=M,g.keyNames=Vp}I9e(co),N9e(co);var H9e="iter insert remove copy getEditor constructor".split(" ");for(var aT in Zs.prototype)Zs.prototype.hasOwnProperty(aT)&&ie(H9e,aT)<0&&(co.prototype[aT]=function(g){return function(){return g.apply(this.doc,arguments)}}(Zs.prototype[aT]));return Ze(Zs),co.inputStyles={textarea:Ko,contenteditable:Ri},co.defineMode=function(g){!co.defaults.mode&&g!="null"&&(co.defaults.mode=g),At.apply(this,arguments)},co.defineMIME=$t,co.defineMode("null",function(){return{token:function(g){return g.skipToEnd()}}}),co.defineMIME("text/plain","null"),co.defineExtension=function(g,w){co.prototype[g]=w},co.defineDocExtension=function(g,w){Zs.prototype[g]=w},co.fromTextArea=j9e,B9e(co),co.version="5.65.3",co},bqt=function(e){e.defineOption("placeholder","",function(s,l,c){var u=c&&c!=e.Init;if(l&&!u)s.on("blur",i),s.on("change",o),s.on("swapDoc",o),e.on(s.getInputField(),"compositionupdate",s.state.placeholderCompose=function(){r(s)}),o(s);else if(!l&&u){s.off("blur",i),s.off("change",o),s.off("swapDoc",o),e.off(s.getInputField(),"compositionupdate",s.state.placeholderCompose),t(s);var d=s.getWrapperElement();d.className=d.className.replace(" CodeMirror-empty","")}l&&!s.hasFocus()&&i(s)});function t(s){s.state.placeholder&&(s.state.placeholder.parentNode.removeChild(s.state.placeholder),s.state.placeholder=null)}function n(s){t(s);var l=s.state.placeholder=document.createElement("pre");l.style.cssText="height: 0; overflow: visible",l.style.direction=s.getOption("direction"),l.className="CodeMirror-placeholder CodeMirror-line-like";var c=s.getOption("placeholder");typeof c=="string"&&(c=document.createTextNode(c)),l.appendChild(c),s.display.lineSpace.insertBefore(l,s.display.lineSpace.firstChild)}function r(s){setTimeout(function(){var l=!1;if(s.lineCount()==1){var c=s.getInputField();l=c.nodeName=="TEXTAREA"?!s.getLine(0).length:!/[^\u200b]/.test(c.querySelector(".CodeMirror-line").textContent)}l?n(s):t(s)},20)}function i(s){a(s)&&n(s)}function o(s){var l=s.getWrapperElement(),c=a(s);l.className=l.className.replace(" CodeMirror-empty","")+(c?" CodeMirror-empty":""),c?n(s):t(s)}function a(s){return s.lineCount()===1&&s.getLine(0)===""}},Sqt=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(),s=[],l=0;l<a.length;l++){var c=a[l].head,u=o.getStateAfter(c.line),d=e.innerMode(o.getMode(),u);if(d.mode.name!=="markdown"&&d.mode.helperType!=="markdown"){o.execCommand("newlineAndIndent");return}else u=d.state;var h=u.list!==!1,p=u.quote!==0,m=o.getLine(c.line),v=t.exec(m),y=/^\s*$/.test(m.slice(0,c.ch));if(!a[l].empty()||!h&&!p||!v||y){o.execCommand("newlineAndIndent");return}if(n.test(m)){var S=p&&/>\s*$/.test(m),b=!/>\s*$/.test(m);(S||b)&&o.replaceRange("",{line:c.line,ch:0},{line:c.line,ch:c.ch+1}),s[l]=`
|
||
`}else{var C=v[1],_=v[5],T=!(r.test(v[2])||v[2].indexOf(">")>=0),x=T?parseInt(v[3],10)+1+v[4]:v[2].replace("x"," ");s[l]=`
|
||
`+C+x+_,T&&i(o,c)}}o.replaceSelections(s)};function i(o,a){var s=a.line,l=0,c=0,u=t.exec(o.getLine(s)),d=u[1];do{l+=1;var h=s+l,p=o.getLine(h),m=t.exec(p);if(m){var v=m[1],y=parseInt(u[3],10)+l-c,S=parseInt(m[3],10),b=S;if(d===v&&!isNaN(S))y===S&&(b=S+1),y>S&&(b=y+1),o.replaceRange(p.replace(t,v+b+m[4]+m[5]),{line:h,ch:0},{line:h,ch:p.length});else{if(d.length>v.length||d.length<v.length&&l===1)return;c+=1}}}while(m)}},Cqt=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}}}},xqt=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(c){return c.code=!1,null}var a={startState:function(){return{code:!1,codeBlock:!1,ateSpace:!1}},copyState:function(c){return{code:c.code,codeBlock:c.codeBlock,ateSpace:c.ateSpace}},token:function(c,u){if(u.combineTokens=null,u.codeBlock)return c.match(/^```+/)?(u.codeBlock=!1,null):(c.skipToEnd(),null);if(c.sol()&&(u.code=!1),c.sol()&&c.match(/^```+/))return c.skipToEnd(),u.codeBlock=!0,null;if(c.peek()==="`"){c.next();var d=c.pos;c.eatWhile("`");var h=1+c.pos-d;return u.code?h===i&&(u.code=!1):(i=h,u.code=!0),null}else if(u.code)return c.next(),null;if(c.eatSpace())return u.ateSpace=!0,null;if((c.sol()||u.ateSpace)&&(u.ateSpace=!1,r.gitHubSpice!==!1)){if(c.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?=.{0,6}\d)(?:[a-f0-9]{7,40}\b)/))return u.combineTokens=!0,"link";if(c.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/))return u.combineTokens=!0,"link"}return c.match(t)&&c.string.slice(c.start-2,c.start)!="]("&&(c.start==0||/\W/.test(c.string.charAt(c.start-1)))?(u.combineTokens=!0,"link"):(c.next(),null)},blankLine:o},s={taskLists:!0,strikethrough:!0,emoji:!0};for(var l in r)s[l]=r[l];return s.name="markdown",e.overlayMode(e.getMode(n,s),a)},"markdown"),e.defineMIME("text/x-gfm","gfm")},wqt=function(e){e.defineMode("markdown",function(t,n){var r=e.getMode(t,"text/html"),i=r.name=="null";function o(N){if(e.findModeByName){var B=e.findModeByName(N);B&&(N=B.mime||B.mimes[0])}var V=e.getMode(t,N);return V.name=="null"?null:V}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 s in a)a.hasOwnProperty(s)&&n.tokenTypeOverrides[s]&&(a[s]=n.tokenTypeOverrides[s]);var l=/^([*\-_])(?:\s*\1){2,}\s*$/,c=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,u=/^\[(x| )\](?=\s)/i,d=n.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,h=/^ {0,3}(?:\={1,}|-{2,})\s*$/,p=/^[^#!\[\]*_\\<>` "'(~:]+/,m=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,v=/^\s*\[[^\]]+?\]:.*$/,y=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,S=" ";function b(N,B,V){return B.f=B.inline=V,V(N,B)}function C(N,B,V){return B.f=B.block=V,V(N,B)}function _(N){return!N||!/\S/.test(N.string)}function T(N){if(N.linkTitle=!1,N.linkHref=!1,N.linkText=!1,N.em=!1,N.strong=!1,N.strikethrough=!1,N.quote=0,N.indentedCode=!1,N.f==E){var B=i;if(!B){var V=e.innerMode(r,N.htmlState);B=V.mode.name=="xml"&&V.state.tagStart===null&&!V.state.context&&V.state.tokenize.isInText}B&&(N.f=D,N.block=x,N.htmlState=null)}return N.trailingSpace=0,N.trailingSpaceNewLine=!1,N.prevLine=N.thisLine,N.thisLine={stream:null},null}function x(N,B){var V=N.column()===B.indentation,Y=_(B.prevLine.stream),ie=B.indentedCode,ce=B.prevLine.hr,fe=B.list!==!1,ee=(B.listStack[B.listStack.length-1]||0)+3;B.indentedCode=!1;var ne=B.indentation;if(B.indentationDiff===null&&(B.indentationDiff=B.indentation,fe)){for(B.list=null;ne<B.listStack[B.listStack.length-1];)B.listStack.pop(),B.listStack.length?B.indentation=B.listStack[B.listStack.length-1]:B.list=!1;B.list!==!1&&(B.indentationDiff=ne-B.listStack[B.listStack.length-1])}var ue=!Y&&!ce&&!B.prevLine.header&&(!fe||!ie)&&!B.prevLine.fencedCodeEnd,ye=(B.list===!1||ce||Y)&&B.indentation<=ee&&N.match(l),me=null;if(B.indentationDiff>=4&&(ie||B.prevLine.fencedCodeEnd||B.prevLine.header||Y))return N.skipToEnd(),B.indentedCode=!0,a.code;if(N.eatSpace())return null;if(V&&B.indentation<=ee&&(me=N.match(d))&&me[1].length<=6)return B.quote=0,B.header=me[1].length,B.thisLine.header=!0,n.highlightFormatting&&(B.formatting="header"),B.f=B.inline,M(B);if(B.indentation<=ee&&N.eat(">"))return B.quote=V?1:B.quote+1,n.highlightFormatting&&(B.formatting="quote"),N.eatSpace(),M(B);if(!ye&&!B.setext&&V&&B.indentation<=ee&&(me=N.match(c))){var pe=me[1]?"ol":"ul";return B.indentation=ne+N.current().length,B.list=!0,B.quote=0,B.listStack.push(B.indentation),B.em=!1,B.strong=!1,B.code=!1,B.strikethrough=!1,n.taskLists&&N.match(u,!1)&&(B.taskList=!0),B.f=B.inline,n.highlightFormatting&&(B.formatting=["list","list-"+pe]),M(B)}else{if(V&&B.indentation<=ee&&(me=N.match(m,!0)))return B.quote=0,B.fencedEndRE=new RegExp(me[1]+"+ *$"),B.localMode=n.fencedCodeBlockHighlighting&&o(me[2]||n.fencedCodeBlockDefaultMode),B.localMode&&(B.localState=e.startState(B.localMode)),B.f=B.block=k,n.highlightFormatting&&(B.formatting="code-block"),B.code=-1,M(B);if(B.setext||(!ue||!fe)&&!B.quote&&B.list===!1&&!B.code&&!ye&&!v.test(N.string)&&(me=N.lookAhead(1))&&(me=me.match(h)))return B.setext?(B.header=B.setext,B.setext=0,N.skipToEnd(),n.highlightFormatting&&(B.formatting="header")):(B.header=me[0].charAt(0)=="="?1:2,B.setext=B.header),B.thisLine.header=!0,B.f=B.inline,M(B);if(ye)return N.skipToEnd(),B.hr=!0,B.thisLine.hr=!0,a.hr;if(N.peek()==="[")return b(N,B,z)}return b(N,B,B.inline)}function E(N,B){var V=r.token(N,B.htmlState);if(!i){var Y=e.innerMode(r,B.htmlState);(Y.mode.name=="xml"&&Y.state.tagStart===null&&!Y.state.context&&Y.state.tokenize.isInText||B.md_inside&&N.current().indexOf(">")>-1)&&(B.f=D,B.block=x,B.htmlState=null)}return V}function k(N,B){var V=B.listStack[B.listStack.length-1]||0,Y=B.indentation<V,ie=V+3;if(B.fencedEndRE&&B.indentation<=ie&&(Y||N.match(B.fencedEndRE))){n.highlightFormatting&&(B.formatting="code-block");var ce;return Y||(ce=M(B)),B.localMode=B.localState=null,B.block=x,B.f=D,B.fencedEndRE=null,B.code=0,B.thisLine.fencedCodeEnd=!0,Y?C(N,B,B.block):ce}else return B.localMode?B.localMode.token(N,B.localState):(N.skipToEnd(),a.code)}function M(N){var B=[];if(N.formatting){B.push(a.formatting),typeof N.formatting=="string"&&(N.formatting=[N.formatting]);for(var V=0;V<N.formatting.length;V++)B.push(a.formatting+"-"+N.formatting[V]),N.formatting[V]==="header"&&B.push(a.formatting+"-"+N.formatting[V]+"-"+N.header),N.formatting[V]==="quote"&&(!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=N.quote?B.push(a.formatting+"-"+N.formatting[V]+"-"+N.quote):B.push("error"))}if(N.taskOpen)return B.push("meta"),B.length?B.join(" "):null;if(N.taskClosed)return B.push("property"),B.length?B.join(" "):null;if(N.linkHref?B.push(a.linkHref,"url"):(N.strong&&B.push(a.strong),N.em&&B.push(a.em),N.strikethrough&&B.push(a.strikethrough),N.emoji&&B.push(a.emoji),N.linkText&&B.push(a.linkText),N.code&&B.push(a.code),N.image&&B.push(a.image),N.imageAltText&&B.push(a.imageAltText,"link"),N.imageMarker&&B.push(a.imageMarker)),N.header&&B.push(a.header,a.header+"-"+N.header),N.quote&&(B.push(a.quote),!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=N.quote?B.push(a.quote+"-"+N.quote):B.push(a.quote+"-"+n.maxBlockquoteDepth)),N.list!==!1){var Y=(N.listStack.length-1)%3;Y?Y===1?B.push(a.list2):B.push(a.list3):B.push(a.list1)}return N.trailingSpaceNewLine?B.push("trailing-space-new-line"):N.trailingSpace&&B.push("trailing-space-"+(N.trailingSpace%2?"a":"b")),B.length?B.join(" "):null}function P(N,B){if(N.match(p,!0))return M(B)}function D(N,B){var V=B.text(N,B);if(typeof V<"u")return V;if(B.list)return B.list=null,M(B);if(B.taskList){var Y=N.match(u,!0)[1]===" ";return Y?B.taskOpen=!0:B.taskClosed=!0,n.highlightFormatting&&(B.formatting="task"),B.taskList=!1,M(B)}if(B.taskOpen=!1,B.taskClosed=!1,B.header&&N.match(/^#+$/,!0))return n.highlightFormatting&&(B.formatting="header"),M(B);var ie=N.next();if(B.linkTitle){B.linkTitle=!1;var ce=ie;ie==="("&&(ce=")"),ce=(ce+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var fe="^\\s*(?:[^"+ce+"\\\\]+|\\\\\\\\|\\\\.)"+ce;if(N.match(new RegExp(fe),!0))return a.linkHref}if(ie==="`"){var ee=B.formatting;n.highlightFormatting&&(B.formatting="code"),N.eatWhile("`");var ne=N.current().length;if(B.code==0&&(!B.quote||ne==1))return B.code=ne,M(B);if(ne==B.code){var ue=M(B);return B.code=0,ue}else return B.formatting=ee,M(B)}else if(B.code)return M(B);if(ie==="\\"&&(N.next(),n.highlightFormatting)){var ye=M(B),me=a.formatting+"-escape";return ye?ye+" "+me:me}if(ie==="!"&&N.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return B.imageMarker=!0,B.image=!0,n.highlightFormatting&&(B.formatting="image"),M(B);if(ie==="["&&B.imageMarker&&N.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return B.imageMarker=!1,B.imageAltText=!0,n.highlightFormatting&&(B.formatting="image"),M(B);if(ie==="]"&&B.imageAltText){n.highlightFormatting&&(B.formatting="image");var ye=M(B);return B.imageAltText=!1,B.image=!1,B.inline=B.f=A,ye}if(ie==="["&&!B.image)return B.linkText&&N.match(/^.*?\]/)||(B.linkText=!0,n.highlightFormatting&&(B.formatting="link")),M(B);if(ie==="]"&&B.linkText){n.highlightFormatting&&(B.formatting="link");var ye=M(B);return B.linkText=!1,B.inline=B.f=N.match(/\(.*?\)| ?\[.*?\]/,!1)?A:D,ye}if(ie==="<"&&N.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){B.f=B.inline=R,n.highlightFormatting&&(B.formatting="link");var ye=M(B);return ye?ye+=" ":ye="",ye+a.linkInline}if(ie==="<"&&N.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){B.f=B.inline=R,n.highlightFormatting&&(B.formatting="link");var ye=M(B);return ye?ye+=" ":ye="",ye+a.linkEmail}if(n.xml&&ie==="<"&&N.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var pe=N.string.indexOf(">",N.pos);if(pe!=-1){var he=N.string.substring(N.start,pe);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(he)&&(B.md_inside=!0)}return N.backUp(1),B.htmlState=e.startState(r),C(N,B,E)}if(n.xml&&ie==="<"&&N.match(/^\/\w*?>/))return B.md_inside=!1,"tag";if(ie==="*"||ie==="_"){for(var _e=1,le=N.pos==1?" ":N.string.charAt(N.pos-2);_e<3&&N.eat(ie);)_e++;var xe=N.peek()||" ",we=!/\s/.test(xe)&&(!y.test(xe)||/\s/.test(le)||y.test(le)),De=!/\s/.test(le)&&(!y.test(le)||/\s/.test(xe)||y.test(xe)),Fe=null,Ce=null;if(_e%2&&(!B.em&&we&&(ie==="*"||!De||y.test(le))?Fe=!0:B.em==ie&&De&&(ie==="*"||!we||y.test(xe))&&(Fe=!1)),_e>1&&(!B.strong&&we&&(ie==="*"||!De||y.test(le))?Ce=!0:B.strong==ie&&De&&(ie==="*"||!we||y.test(xe))&&(Ce=!1)),Ce!=null||Fe!=null){n.highlightFormatting&&(B.formatting=Fe==null?"strong":Ce==null?"em":"strong em"),Fe===!0&&(B.em=ie),Ce===!0&&(B.strong=ie);var ue=M(B);return Fe===!1&&(B.em=!1),Ce===!1&&(B.strong=!1),ue}}else if(ie===" "&&(N.eat("*")||N.eat("_"))){if(N.peek()===" ")return M(B);N.backUp(1)}if(n.strikethrough){if(ie==="~"&&N.eatWhile(ie)){if(B.strikethrough){n.highlightFormatting&&(B.formatting="strikethrough");var ue=M(B);return B.strikethrough=!1,ue}else if(N.match(/^[^\s]/,!1))return B.strikethrough=!0,n.highlightFormatting&&(B.formatting="strikethrough"),M(B)}else if(ie===" "&&N.match("~~",!0)){if(N.peek()===" ")return M(B);N.backUp(2)}}if(n.emoji&&ie===":"&&N.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){B.emoji=!0,n.highlightFormatting&&(B.formatting="emoji");var Te=M(B);return B.emoji=!1,Te}return ie===" "&&(N.match(/^ +$/,!1)?B.trailingSpace++:B.trailingSpace&&(B.trailingSpaceNewLine=!0)),M(B)}function R(N,B){var V=N.next();if(V===">"){B.f=B.inline=D,n.highlightFormatting&&(B.formatting="link");var Y=M(B);return Y?Y+=" ":Y="",Y+a.linkInline}return N.match(/^[^>]+/,!0),a.linkInline}function A(N,B){if(N.eatSpace())return null;var V=N.next();return V==="("||V==="["?(B.f=B.inline=F(V==="("?")":"]"),n.highlightFormatting&&(B.formatting="link-string"),B.linkHref=!0,M(B)):"error"}var H={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function F(N){return function(B,V){var Y=B.next();if(Y===N){V.f=V.inline=D,n.highlightFormatting&&(V.formatting="link-string");var ie=M(V);return V.linkHref=!1,ie}return B.match(H[N]),V.linkHref=!0,M(V)}}function z(N,B){return N.match(/^([^\]\\]|\\.)*\]:/,!1)?(B.f=W,N.next(),n.highlightFormatting&&(B.formatting="link"),B.linkText=!0,M(B)):b(N,B,D)}function W(N,B){if(N.match("]:",!0)){B.f=B.inline=q,n.highlightFormatting&&(B.formatting="link");var V=M(B);return B.linkText=!1,V}return N.match(/^([^\]\\]|\\.)+/,!0),a.linkText}function q(N,B){return N.eatSpace()?null:(N.match(/^[^\s]+/,!0),N.peek()===void 0?B.linkTitle=!0:N.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),B.f=B.inline=D,a.linkHref+" url")}var Z={startState:function(){return{f:x,prevLine:{stream:null},thisLine:{stream:null},block:x,htmlState:null,indentation:0,inline:D,text:P,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(N){return{f:N.f,prevLine:N.prevLine,thisLine:N.thisLine,block:N.block,htmlState:N.htmlState&&e.copyState(r,N.htmlState),indentation:N.indentation,localMode:N.localMode,localState:N.localMode?e.copyState(N.localMode,N.localState):null,inline:N.inline,text:N.text,formatting:!1,linkText:N.linkText,linkTitle:N.linkTitle,linkHref:N.linkHref,code:N.code,em:N.em,strong:N.strong,strikethrough:N.strikethrough,emoji:N.emoji,header:N.header,setext:N.setext,hr:N.hr,taskList:N.taskList,list:N.list,listStack:N.listStack.slice(0),quote:N.quote,indentedCode:N.indentedCode,trailingSpace:N.trailingSpace,trailingSpaceNewLine:N.trailingSpaceNewLine,md_inside:N.md_inside,fencedEndRE:N.fencedEndRE}},token:function(N,B){if(B.formatting=!1,N!=B.thisLine.stream){if(B.header=0,B.hr=!1,N.match(/^\s*$/,!0))return T(B),null;if(B.prevLine=B.thisLine,B.thisLine={stream:N},B.taskList=!1,B.trailingSpace=0,B.trailingSpaceNewLine=!1,!B.localState&&(B.f=B.block,B.f!=E)){var V=N.match(/^\s*/,!0)[0].replace(/\t/g,S).length;if(B.indentation=V,B.indentationDiff=null,V>0)return null}}return B.f(N,B)},innerMode:function(N){return N.block==E?{state:N.htmlState,mode:r}:N.localState?{state:N.localState,mode:N.localMode}:{state:N,mode:Z}},indent:function(N,B,V){return N.block==E&&r.indent?r.indent(N.htmlState,B,V):N.localState&&N.localMode.indent?N.localMode.indent(N.localState,B,V):e.Pass},blankLine:T,getType:M,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Z},"xml"),e.defineMIME("text/markdown","markdown"),e.defineMIME("text/x-markdown","markdown")},_qt=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={},s=i.htmlMode?t:n;for(var l in s)a[l]=s[l];for(var l in i)a[l]=i[l];var c,u;function d(A,H){function F(q){return H.tokenize=q,q(A,H)}var z=A.next();if(z=="<")return A.eat("!")?A.eat("[")?A.match("CDATA[")?F(m("atom","]]>")):null:A.match("--")?F(m("comment","-->")):A.match("DOCTYPE",!0,!0)?(A.eatWhile(/[\w\._\-]/),F(v(1))):null:A.eat("?")?(A.eatWhile(/[\w\._\-]/),H.tokenize=m("meta","?>"),"meta"):(c=A.eat("/")?"closeTag":"openTag",H.tokenize=h,"tag bracket");if(z=="&"){var W;return A.eat("#")?A.eat("x")?W=A.eatWhile(/[a-fA-F\d]/)&&A.eat(";"):W=A.eatWhile(/[\d]/)&&A.eat(";"):W=A.eatWhile(/[\w\.\-:]/)&&A.eat(";"),W?"atom":"error"}else return A.eatWhile(/[^&<]/),null}d.isInText=!0;function h(A,H){var F=A.next();if(F==">"||F=="/"&&A.eat(">"))return H.tokenize=d,c=F==">"?"endTag":"selfcloseTag","tag bracket";if(F=="=")return c="equals",null;if(F=="<"){H.tokenize=d,H.state=_,H.tagName=H.tagStart=null;var z=H.tokenize(A,H);return z?z+" tag error":"tag error"}else return/[\'\"]/.test(F)?(H.tokenize=p(F),H.stringStartCol=A.column(),H.tokenize(A,H)):(A.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function p(A){var H=function(F,z){for(;!F.eol();)if(F.next()==A){z.tokenize=h;break}return"string"};return H.isInAttribute=!0,H}function m(A,H){return function(F,z){for(;!F.eol();){if(F.match(H)){z.tokenize=d;break}F.next()}return A}}function v(A){return function(H,F){for(var z;(z=H.next())!=null;){if(z=="<")return F.tokenize=v(A+1),F.tokenize(H,F);if(z==">")if(A==1){F.tokenize=d;break}else return F.tokenize=v(A-1),F.tokenize(H,F)}return"meta"}}function y(A){return A&&A.toLowerCase()}function S(A,H,F){this.prev=A.context,this.tagName=H||"",this.indent=A.indented,this.startOfLine=F,(a.doNotIndent.hasOwnProperty(H)||A.context&&A.context.noIndent)&&(this.noIndent=!0)}function b(A){A.context&&(A.context=A.context.prev)}function C(A,H){for(var F;;){if(!A.context||(F=A.context.tagName,!a.contextGrabbers.hasOwnProperty(y(F))||!a.contextGrabbers[y(F)].hasOwnProperty(y(H))))return;b(A)}}function _(A,H,F){return A=="openTag"?(F.tagStart=H.column(),T):A=="closeTag"?x:_}function T(A,H,F){return A=="word"?(F.tagName=H.current(),u="tag",M):a.allowMissingTagName&&A=="endTag"?(u="tag bracket",M(A,H,F)):(u="error",T)}function x(A,H,F){if(A=="word"){var z=H.current();return F.context&&F.context.tagName!=z&&a.implicitlyClosed.hasOwnProperty(y(F.context.tagName))&&b(F),F.context&&F.context.tagName==z||a.matchClosing===!1?(u="tag",E):(u="tag error",k)}else return a.allowMissingTagName&&A=="endTag"?(u="tag bracket",E(A,H,F)):(u="error",k)}function E(A,H,F){return A!="endTag"?(u="error",E):(b(F),_)}function k(A,H,F){return u="error",E(A,H,F)}function M(A,H,F){if(A=="word")return u="attribute",P;if(A=="endTag"||A=="selfcloseTag"){var z=F.tagName,W=F.tagStart;return F.tagName=F.tagStart=null,A=="selfcloseTag"||a.autoSelfClosers.hasOwnProperty(y(z))?C(F,z):(C(F,z),F.context=new S(F,z,W==F.indented)),_}return u="error",M}function P(A,H,F){return A=="equals"?D:(a.allowMissing||(u="error"),M(A,H,F))}function D(A,H,F){return A=="string"?R:A=="word"&&a.allowUnquoted?(u="string",M):(u="error",M(A,H,F))}function R(A,H,F){return A=="string"?R:M(A,H,F)}return{startState:function(A){var H={tokenize:d,state:_,indented:A||0,tagName:null,tagStart:null,context:null};return A!=null&&(H.baseIndent=A),H},token:function(A,H){if(!H.tagName&&A.sol()&&(H.indented=A.indentation()),A.eatSpace())return null;c=null;var F=H.tokenize(A,H);return(F||c)&&F!="comment"&&(u=null,H.state=H.state(c||F,A,H),u&&(F=u=="error"?F+" error":u)),F},indent:function(A,H,F){var z=A.context;if(A.tokenize.isInAttribute)return A.tagStart==A.indented?A.stringStartCol+1:A.indented+o;if(z&&z.noIndent)return e.Pass;if(A.tokenize!=h&&A.tokenize!=d)return F?F.match(/^(\s*)/)[0].length:0;if(A.tagName)return a.multilineTagIndentPastTag!==!1?A.tagStart+A.tagName.length+2:A.tagStart+o*(a.multilineTagIndentFactor||1);if(a.alignCDATA&&/<!\[CDATA\[/.test(H))return 0;var W=H&&/^<(\/)?([\w_:\.-]*)/.exec(H);if(W&&W[1])for(;z;)if(z.tagName==W[2]){z=z.prev;break}else if(a.implicitlyClosed.hasOwnProperty(y(z.tagName)))z=z.prev;else break;else if(W)for(;z;){var q=a.contextGrabbers[y(z.tagName)];if(q&&q.hasOwnProperty(y(W[2])))z=z.prev;else break}for(;z&&z.prev&&!z.startOfLine;)z=z.prev;return z?z.indent+o:A.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:a.htmlMode?"html":"xml",helperType:a.htmlMode?"html":"xml",skipAttribute:function(A){A.state==D&&(A.state=M)},xmlCurrentTag:function(A){return A.tagName?{name:A.tagName,close:A.type=="closeTag"}:null},xmlCurrentContext:function(A){for(var H=[],F=A.context;F;F=F.prev)H.push(F.tagName);return H.reverse()}}}),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})},Eqt=function(e){var t=0,n=1,r=2;e.defineMode("yaml-frontmatter",function(i,o){var a=e.getMode(i,"yaml"),s=e.getMode(i,o&&o.base||"gfm");function l(c){return c.state==n?{mode:a,state:c.yaml}:{mode:s,state:c.inner}}return{startState:function(){return{state:t,yaml:null,inner:e.startState(s)}},copyState:function(c){return{state:c.state,yaml:c.yaml&&e.copyState(a,c.yaml),inner:e.copyState(s,c.inner)}},token:function(c,u){if(u.state==t)return c.match("---",!1)?(u.state=n,u.yaml=e.startState(a),a.token(c,u.yaml)):(u.state=r,s.token(c,u.inner));if(u.state==n){var d=c.sol()&&c.match(/(---|\.\.\.)/,!1),h=a.token(c,u.yaml);return d&&(u.state=r,u.yaml=null),h}else return s.token(c,u.inner)},innerMode:l,indent:function(c,u,d){var h=l(c);return h.mode.indent?h.mode.indent(h.state,u,d):e.Pass},blankLine:function(c){var u=l(c);if(u.mode.blankLine)return u.mode.blankLine(u.state)}}})},Tqt=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 kqt=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},VTe=function(e){return new Promise(function(t){var n=kqt(e);n.addEventListener("change",function(){return t(n.files||null)}),setTimeout(function(){var r=new MouseEvent("click");n.dispatchEvent(r)},0)})},Oqt=/[a-zA-Z0-9_\u0392-\u03c9\u00c0-\u00ff\u0600-\u06ff]+|[\u4e00-\u9fff\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af]+/g,Pqt=function(e){var t=e.match(Oqt),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 Mqt=hi(Pqt),bq=function(e){if(e==null)return Aqt;if(typeof e=="string")return Rqt(e);if(typeof e=="object")return Array.isArray(e)?Iqt(e):$qt(e);if(typeof e=="function")return iI(e);throw new Error("Expected function, string, or object as test")};function Iqt(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=bq(e[n]);return iI(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].call(this,...i))return!0;return!1}}function $qt(e){return iI(t);function t(n){let r;for(r in e)if(n[r]!==e[r])return!1;return!0}}function Rqt(e){return iI(t);function t(n){return n&&n.type===e}}function iI(e){return t;function t(n,...r){return!!(n&&typeof n=="object"&&"type"in n&&e.call(this,n,...r))}}function Aqt(){return!0}const Nqt=!0,Jae=!1,Dqt="skip",KTe=function(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null);const i=bq(t),o=r?-1:1;a(e,void 0,[])();function a(s,l,c){const u=s&&typeof s=="object"?s:{};if(typeof u.type=="string"){const h=typeof u.tagName=="string"?u.tagName:typeof u.name=="string"?u.name:void 0;Object.defineProperty(d,"name",{value:"node ("+(s.type+(h?"<"+h+">":""))+")"})}return d;function d(){let h=[],p,m,v;if((!t||i(s,l,c[c.length-1]||null))&&(h=Lqt(n(s,c)),h[0]===Jae))return h;if(s.children&&h[0]!==Dqt)for(m=(r?s.children.length:-1)+o,v=c.concat(s);m>-1&&m<s.children.length;){if(p=a(s.children[m],m,v)(),p[0]===Jae)return p;m=typeof p[1]=="number"?p[1]:m+o}return h}}};function Lqt(e){return Array.isArray(e)?e:typeof e=="number"?[Nqt,e]:[e]}const C4=function(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null),KTe(e,t,i,r);function i(o,a){const s=a[a.length-1];return n(o,s?s.children.indexOf(o):null,s)}};var ql="top",Iu="bottom",$u="right",Gl="left",Sq="auto",x4=[ql,Iu,$u,Gl],_S="start",B_="end",Fqt="clippingParents",qTe="viewport",e2="popper",jqt="reference",ese=x4.reduce(function(e,t){return e.concat([t+"-"+_S,t+"-"+B_])},[]),GTe=[].concat(x4,[Sq]).reduce(function(e,t){return e.concat([t,t+"-"+_S,t+"-"+B_])},[]),Bqt="beforeRead",Hqt="read",zqt="afterRead",Uqt="beforeMain",Wqt="main",Vqt="afterMain",Kqt="beforeWrite",qqt="write",Gqt="afterWrite",Yqt=[Bqt,Hqt,zqt,Uqt,Wqt,Vqt,Kqt,qqt,Gqt];function Qf(e){return e?(e.nodeName||"").toLowerCase():null}function Bc(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Av(e){var t=Bc(e).Element;return e instanceof t||e instanceof Element}function Cu(e){var t=Bc(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Cq(e){if(typeof ShadowRoot>"u")return!1;var t=Bc(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Xqt(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];!Cu(o)||!Qf(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function Qqt(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]),s=a.reduce(function(l,c){return l[c]="",l},{});!Cu(i)||!Qf(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const YTe={name:"applyStyles",enabled:!0,phase:"write",fn:Xqt,effect:Qqt,requires:["computeStyles"]};function Uf(e){return e.split("-")[0]}var iv=Math.max,Lk=Math.min,ES=Math.round;function rH(){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 XTe(){return!/^((?!chrome|android).)*safari/i.test(rH())}function TS(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Cu(e)&&(i=e.offsetWidth>0&&ES(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&ES(r.height)/e.offsetHeight||1);var a=Av(e)?Bc(e):window,s=a.visualViewport,l=!XTe()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/i,u=(r.top+(l&&s?s.offsetTop:0))/o,d=r.width/i,h=r.height/o;return{width:d,height:h,top:u,right:c+d,bottom:u+h,left:c,x:c,y:u}}function xq(e){var t=TS(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 QTe(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Cq(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function yp(e){return Bc(e).getComputedStyle(e)}function Zqt(e){return["table","td","th"].indexOf(Qf(e))>=0}function Eg(e){return((Av(e)?e.ownerDocument:e.document)||window.document).documentElement}function oI(e){return Qf(e)==="html"?e:e.assignedSlot||e.parentNode||(Cq(e)?e.host:null)||Eg(e)}function tse(e){return!Cu(e)||yp(e).position==="fixed"?null:e.offsetParent}function Jqt(e){var t=/firefox/i.test(rH()),n=/Trident/i.test(rH());if(n&&Cu(e)){var r=yp(e);if(r.position==="fixed")return null}var i=oI(e);for(Cq(i)&&(i=i.host);Cu(i)&&["html","body"].indexOf(Qf(i))<0;){var o=yp(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 w4(e){for(var t=Bc(e),n=tse(e);n&&Zqt(n)&&yp(n).position==="static";)n=tse(n);return n&&(Qf(n)==="html"||Qf(n)==="body"&&yp(n).position==="static")?t:n||Jqt(e)||t}function wq(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function fw(e,t,n){return iv(e,Lk(t,n))}function eGt(e,t,n){var r=fw(e,t,n);return r>n?n:r}function ZTe(){return{top:0,right:0,bottom:0,left:0}}function JTe(e){return Object.assign({},ZTe(),e)}function e5e(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var tGt=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,JTe(typeof t!="number"?t:e5e(t,x4))};function nGt(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Uf(n.placement),l=wq(s),c=[Gl,$u].indexOf(s)>=0,u=c?"height":"width";if(!(!o||!a)){var d=tGt(i.padding,n),h=xq(o),p=l==="y"?ql:Gl,m=l==="y"?Iu:$u,v=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],y=a[l]-n.rects.reference[l],S=w4(o),b=S?l==="y"?S.clientHeight||0:S.clientWidth||0:0,C=v/2-y/2,_=d[p],T=b-h[u]-d[m],x=b/2-h[u]/2+C,E=fw(_,x,T),k=l;n.modifiersData[r]=(t={},t[k]=E,t.centerOffset=E-x,t)}}function rGt(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)||QTe(t.elements.popper,i)&&(t.elements.arrow=i))}const iGt={name:"arrow",enabled:!0,phase:"main",fn:nGt,effect:rGt,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function kS(e){return e.split("-")[1]}var oGt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function aGt(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:ES(n*i)/i||0,y:ES(r*i)/i||0}}function nse(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,h=a.x,p=h===void 0?0:h,m=a.y,v=m===void 0?0:m,y=typeof u=="function"?u({x:p,y:v}):{x:p,y:v};p=y.x,v=y.y;var S=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),C=Gl,_=ql,T=window;if(c){var x=w4(n),E="clientHeight",k="clientWidth";if(x===Bc(n)&&(x=Eg(n),yp(x).position!=="static"&&s==="absolute"&&(E="scrollHeight",k="scrollWidth")),x=x,i===ql||(i===Gl||i===$u)&&o===B_){_=Iu;var M=d&&x===T&&T.visualViewport?T.visualViewport.height:x[E];v-=M-r.height,v*=l?1:-1}if(i===Gl||(i===ql||i===Iu)&&o===B_){C=$u;var P=d&&x===T&&T.visualViewport?T.visualViewport.width:x[k];p-=P-r.width,p*=l?1:-1}}var D=Object.assign({position:s},c&&oGt),R=u===!0?aGt({x:p,y:v},Bc(n)):{x:p,y:v};if(p=R.x,v=R.y,l){var A;return Object.assign({},D,(A={},A[_]=b?"0":"",A[C]=S?"0":"",A.transform=(T.devicePixelRatio||1)<=1?"translate("+p+"px, "+v+"px)":"translate3d("+p+"px, "+v+"px, 0)",A))}return Object.assign({},D,(t={},t[_]=b?v+"px":"",t[C]=S?p+"px":"",t.transform="",t))}function sGt(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,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:Uf(t.placement),variation:kS(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,nse(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,nse(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const lGt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:sGt,data:{}};var k5={passive:!0};function cGt(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,s=a===void 0?!0:a,l=Bc(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(u){u.addEventListener("scroll",n.update,k5)}),s&&l.addEventListener("resize",n.update,k5),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",n.update,k5)}),s&&l.removeEventListener("resize",n.update,k5)}}const uGt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:cGt,data:{}};var dGt={left:"right",right:"left",bottom:"top",top:"bottom"};function p8(e){return e.replace(/left|right|bottom|top/g,function(t){return dGt[t]})}var fGt={start:"end",end:"start"};function rse(e){return e.replace(/start|end/g,function(t){return fGt[t]})}function _q(e){var t=Bc(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Eq(e){return TS(Eg(e)).left+_q(e).scrollLeft}function hGt(e,t){var n=Bc(e),r=Eg(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var c=XTe();(c||!c&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+Eq(e),y:l}}function pGt(e){var t,n=Eg(e),r=_q(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=iv(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=iv(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+Eq(e),l=-r.scrollTop;return yp(i||n).direction==="rtl"&&(s+=iv(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function Tq(e){var t=yp(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function t5e(e){return["html","body","#document"].indexOf(Qf(e))>=0?e.ownerDocument.body:Cu(e)&&Tq(e)?e:t5e(oI(e))}function hw(e,t){var n;t===void 0&&(t=[]);var r=t5e(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=Bc(r),a=i?[o].concat(o.visualViewport||[],Tq(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(hw(oI(a)))}function iH(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function mGt(e,t){var n=TS(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 ise(e,t,n){return t===qTe?iH(hGt(e,n)):Av(t)?mGt(t,n):iH(pGt(Eg(e)))}function gGt(e){var t=hw(oI(e)),n=["absolute","fixed"].indexOf(yp(e).position)>=0,r=n&&Cu(e)?w4(e):e;return Av(r)?t.filter(function(i){return Av(i)&&QTe(i,r)&&Qf(i)!=="body"}):[]}function vGt(e,t,n,r){var i=t==="clippingParents"?gGt(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,c){var u=ise(e,c,r);return l.top=iv(u.top,l.top),l.right=Lk(u.right,l.right),l.bottom=Lk(u.bottom,l.bottom),l.left=iv(u.left,l.left),l},ise(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function n5e(e){var t=e.reference,n=e.element,r=e.placement,i=r?Uf(r):null,o=r?kS(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case ql:l={x:a,y:t.y-n.height};break;case Iu:l={x:a,y:t.y+t.height};break;case $u:l={x:t.x+t.width,y:s};break;case Gl:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=i?wq(i):null;if(c!=null){var u=c==="y"?"height":"width";switch(o){case _S:l[c]=l[c]-(t[u]/2-n[u]/2);break;case B_:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function H_(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,s=n.boundary,l=s===void 0?Fqt:s,c=n.rootBoundary,u=c===void 0?qTe:c,d=n.elementContext,h=d===void 0?e2:d,p=n.altBoundary,m=p===void 0?!1:p,v=n.padding,y=v===void 0?0:v,S=JTe(typeof y!="number"?y:e5e(y,x4)),b=h===e2?jqt:e2,C=e.rects.popper,_=e.elements[m?b:h],T=vGt(Av(_)?_:_.contextElement||Eg(e.elements.popper),l,u,a),x=TS(e.elements.reference),E=n5e({reference:x,element:C,strategy:"absolute",placement:i}),k=iH(Object.assign({},C,E)),M=h===e2?k:x,P={top:T.top-M.top+S.top,bottom:M.bottom-T.bottom+S.bottom,left:T.left-M.left+S.left,right:M.right-T.right+S.right},D=e.modifiersData.offset;if(h===e2&&D){var R=D[i];Object.keys(P).forEach(function(A){var H=[$u,Iu].indexOf(A)>=0?1:-1,F=[ql,Iu].indexOf(A)>=0?"y":"x";P[A]+=R[F]*H})}return P}function yGt(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?GTe:l,u=kS(r),d=u?s?ese:ese.filter(function(m){return kS(m)===u}):x4,h=d.filter(function(m){return c.indexOf(m)>=0});h.length===0&&(h=d);var p=h.reduce(function(m,v){return m[v]=H_(e,{placement:v,boundary:i,rootBoundary:o,padding:a})[Uf(v)],m},{});return Object.keys(p).sort(function(m,v){return p[m]-p[v]})}function bGt(e){if(Uf(e)===Sq)return[];var t=p8(e);return[rse(e),t,rse(t)]}function SGt(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,s=a===void 0?!0:a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,m=p===void 0?!0:p,v=n.allowedAutoPlacements,y=t.options.placement,S=Uf(y),b=S===y,C=l||(b||!m?[p8(y)]:bGt(y)),_=[y].concat(C).reduce(function(ie,ce){return ie.concat(Uf(ce)===Sq?yGt(t,{placement:ce,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:v}):ce)},[]),T=t.rects.reference,x=t.rects.popper,E=new Map,k=!0,M=_[0],P=0;P<_.length;P++){var D=_[P],R=Uf(D),A=kS(D)===_S,H=[ql,Iu].indexOf(R)>=0,F=H?"width":"height",z=H_(t,{placement:D,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),W=H?A?$u:Gl:A?Iu:ql;T[F]>x[F]&&(W=p8(W));var q=p8(W),Z=[];if(o&&Z.push(z[R]<=0),s&&Z.push(z[W]<=0,z[q]<=0),Z.every(function(ie){return ie})){M=D,k=!1;break}E.set(D,Z)}if(k)for(var N=m?3:1,B=function(ce){var fe=_.find(function(ee){var ne=E.get(ee);if(ne)return ne.slice(0,ce).every(function(ue){return ue})});if(fe)return M=fe,"break"},V=N;V>0;V--){var Y=B(V);if(Y==="break")break}t.placement!==M&&(t.modifiersData[r]._skip=!0,t.placement=M,t.reset=!0)}}const CGt={name:"flip",enabled:!0,phase:"main",fn:SGt,requiresIfExists:["offset"],data:{_skip:!1}};function ose(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 ase(e){return[ql,$u,Iu,Gl].some(function(t){return e[t]>=0})}function xGt(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=H_(t,{elementContext:"reference"}),s=H_(t,{altBoundary:!0}),l=ose(a,r),c=ose(s,i,o),u=ase(l),d=ase(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const wGt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:xGt};function _Gt(e,t,n){var r=Uf(e),i=[Gl,ql].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[Gl,$u].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function EGt(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=GTe.reduce(function(u,d){return u[d]=_Gt(d,t.rects,o),u},{}),s=a[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}const TGt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:EGt};function kGt(e){var t=e.state,n=e.name;t.modifiersData[n]=n5e({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const OGt={name:"popperOffsets",enabled:!0,phase:"read",fn:kGt,data:{}};function PGt(e){return e==="x"?"y":"x"}function MGt(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,h=n.tether,p=h===void 0?!0:h,m=n.tetherOffset,v=m===void 0?0:m,y=H_(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),S=Uf(t.placement),b=kS(t.placement),C=!b,_=wq(S),T=PGt(_),x=t.modifiersData.popperOffsets,E=t.rects.reference,k=t.rects.popper,M=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,P=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(x){if(o){var A,H=_==="y"?ql:Gl,F=_==="y"?Iu:$u,z=_==="y"?"height":"width",W=x[_],q=W+y[H],Z=W-y[F],N=p?-k[z]/2:0,B=b===_S?E[z]:k[z],V=b===_S?-k[z]:-E[z],Y=t.elements.arrow,ie=p&&Y?xq(Y):{width:0,height:0},ce=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ZTe(),fe=ce[H],ee=ce[F],ne=fw(0,E[z],ie[z]),ue=C?E[z]/2-N-ne-fe-P.mainAxis:B-ne-fe-P.mainAxis,ye=C?-E[z]/2+N+ne+ee+P.mainAxis:V+ne+ee+P.mainAxis,me=t.elements.arrow&&w4(t.elements.arrow),pe=me?_==="y"?me.clientTop||0:me.clientLeft||0:0,he=(A=D==null?void 0:D[_])!=null?A:0,_e=W+ue-he-pe,le=W+ye-he,xe=fw(p?Lk(q,_e):q,W,p?iv(Z,le):Z);x[_]=xe,R[_]=xe-W}if(s){var we,De=_==="x"?ql:Gl,Fe=_==="x"?Iu:$u,Ce=x[T],Te=T==="y"?"height":"width",ke=Ce+y[De],Pe=Ce-y[Fe],Ne=[ql,Gl].indexOf(S)!==-1,We=(we=D==null?void 0:D[T])!=null?we:0,Q=Ne?ke:Ce-E[Te]-k[Te]-We+P.altAxis,K=Ne?Ce+E[Te]+k[Te]-We-P.altAxis:Pe,J=p&&Ne?eGt(Q,Ce,K):fw(p?Q:ke,Ce,p?K:Pe);x[T]=J,R[T]=J-Ce}t.modifiersData[r]=R}}const IGt={name:"preventOverflow",enabled:!0,phase:"main",fn:MGt,requiresIfExists:["offset"]};function $Gt(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function RGt(e){return e===Bc(e)||!Cu(e)?_q(e):$Gt(e)}function AGt(e){var t=e.getBoundingClientRect(),n=ES(t.width)/e.offsetWidth||1,r=ES(t.height)/e.offsetHeight||1;return n!==1||r!==1}function NGt(e,t,n){n===void 0&&(n=!1);var r=Cu(t),i=Cu(t)&&AGt(t),o=Eg(t),a=TS(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Qf(t)!=="body"||Tq(o))&&(s=RGt(t)),Cu(t)?(l=TS(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=Eq(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function DGt(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(s){if(!n.has(s)){var l=t.get(s);l&&i(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function LGt(e){var t=DGt(e);return Yqt.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function FGt(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function jGt(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 sse={placement:"bottom",modifiers:[],strategy:"absolute"};function lse(){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 BGt(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?sse:i;return function(s,l,c){c===void 0&&(c=o);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},sse,o),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},d=[],h=!1,p={state:u,setOptions:function(S){var b=typeof S=="function"?S(u.options):S;v(),u.options=Object.assign({},o,u.options,b),u.scrollParents={reference:Av(s)?hw(s):s.contextElement?hw(s.contextElement):[],popper:hw(l)};var C=LGt(jGt([].concat(r,u.options.modifiers)));return u.orderedModifiers=C.filter(function(_){return _.enabled}),m(),p.update()},forceUpdate:function(){if(!h){var S=u.elements,b=S.reference,C=S.popper;if(lse(b,C)){u.rects={reference:NGt(b,w4(C),u.options.strategy==="fixed"),popper:xq(C)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(P){return u.modifiersData[P.name]=Object.assign({},P.data)});for(var _=0;_<u.orderedModifiers.length;_++){if(u.reset===!0){u.reset=!1,_=-1;continue}var T=u.orderedModifiers[_],x=T.fn,E=T.options,k=E===void 0?{}:E,M=T.name;typeof x=="function"&&(u=x({state:u,options:k,name:M,instance:p})||u)}}}},update:FGt(function(){return new Promise(function(y){p.forceUpdate(),y(u)})}),destroy:function(){v(),h=!0}};if(!lse(s,l))return p;p.setOptions(c).then(function(y){!h&&c.onFirstUpdate&&c.onFirstUpdate(y)});function m(){u.orderedModifiers.forEach(function(y){var S=y.name,b=y.options,C=b===void 0?{}:b,_=y.effect;if(typeof _=="function"){var T=_({state:u,name:S,instance:p,options:C}),x=function(){};d.push(T||x)}})}function v(){d.forEach(function(y){return y()}),d=[]}return p}}var HGt=[uGt,OGt,lGt,YTe,TGt,CGt,IGt,iGt,wGt],zGt=BGt({defaultModifiers:HGt}),UGt="tippy-box",r5e="tippy-content",WGt="tippy-backdrop",i5e="tippy-arrow",o5e="tippy-svg-arrow",bm={passive:!0,capture:!0},a5e=function(){return document.body};function aN(e,t,n){if(Array.isArray(e)){var r=e[t];return r??(Array.isArray(n)?n[t]:n)}return e}function kq(e,t){var n={}.toString.call(e);return n.indexOf("[object")===0&&n.indexOf(t+"]")>-1}function s5e(e,t){return typeof e=="function"?e.apply(void 0,t):e}function cse(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function VGt(e,t){var n=Object.assign({},e);return t.forEach(function(r){delete n[r]}),n}function KGt(e){return e.split(/\s+/).filter(Boolean)}function g1(e){return[].concat(e)}function use(e,t){e.indexOf(t)===-1&&e.push(t)}function qGt(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function GGt(e){return e.split("-")[0]}function Fk(e){return[].slice.call(e)}function dse(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function pw(){return document.createElement("div")}function aI(e){return["Element","Fragment"].some(function(t){return kq(e,t)})}function YGt(e){return kq(e,"NodeList")}function XGt(e){return kq(e,"MouseEvent")}function QGt(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function ZGt(e){return aI(e)?[e]:YGt(e)?Fk(e):Array.isArray(e)?e:Fk(document.querySelectorAll(e))}function sN(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function fse(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function JGt(e){var t,n=g1(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function eYt(e,t){var n=t.clientX,r=t.clientY;return e.every(function(i){var o=i.popperRect,a=i.popperState,s=i.props,l=s.interactiveBorder,c=GGt(a.placement),u=a.modifiersData.offset;if(!u)return!0;var d=c==="bottom"?u.top.y:0,h=c==="top"?u.bottom.y:0,p=c==="right"?u.left.x:0,m=c==="left"?u.right.x:0,v=o.top-r+d>l,y=r-o.bottom-h>l,S=o.left-n+p>l,b=n-o.right-m>l;return v||y||S||b})}function lN(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){e[r](i,n)})}function hse(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 Tf={isTouch:!1},pse=0;function tYt(){Tf.isTouch||(Tf.isTouch=!0,window.performance&&document.addEventListener("mousemove",l5e))}function l5e(){var e=performance.now();e-pse<20&&(Tf.isTouch=!1,document.removeEventListener("mousemove",l5e)),pse=e}function nYt(){var e=document.activeElement;if(QGt(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function rYt(){document.addEventListener("touchstart",tYt,bm),window.addEventListener("blur",nYt)}var iYt=typeof window<"u"&&typeof document<"u",oYt=iYt?!!window.msCrypto:!1,aYt={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},sYt={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},Pc=Object.assign({appendTo:a5e,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},aYt,sYt),lYt=Object.keys(Pc),cYt=function(t){var n=Object.keys(t);n.forEach(function(r){Pc[r]=t[r]})};function c5e(e){var t=e.plugins||[],n=t.reduce(function(r,i){var o=i.name,a=i.defaultValue;if(o){var s;r[o]=e[o]!==void 0?e[o]:(s=Pc[o])!=null?s:a}return r},{});return Object.assign({},e,n)}function uYt(e,t){var n=t?Object.keys(c5e(Object.assign({},Pc,{plugins:t}))):lYt,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 mse(e,t){var n=Object.assign({},t,{content:s5e(t.content,[e])},t.ignoreAttributes?{}:uYt(e,t.plugins));return n.aria=Object.assign({},Pc.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 dYt=function(){return"innerHTML"};function oH(e,t){e[dYt()]=t}function gse(e){var t=pw();return e===!0?t.className=i5e:(t.className=o5e,aI(e)?t.appendChild(e):oH(t,e)),t}function vse(e,t){aI(t.content)?(oH(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?oH(e,t.content):e.textContent=t.content)}function aH(e){var t=e.firstElementChild,n=Fk(t.children);return{box:t,content:n.find(function(r){return r.classList.contains(r5e)}),arrow:n.find(function(r){return r.classList.contains(i5e)||r.classList.contains(o5e)}),backdrop:n.find(function(r){return r.classList.contains(WGt)})}}function u5e(e){var t=pw(),n=pw();n.className=UGt,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=pw();r.className=r5e,r.setAttribute("data-state","hidden"),vse(r,e.props),t.appendChild(n),n.appendChild(r),i(e.props,e.props);function i(o,a){var s=aH(t),l=s.box,c=s.content,u=s.arrow;a.theme?l.setAttribute("data-theme",a.theme):l.removeAttribute("data-theme"),typeof a.animation=="string"?l.setAttribute("data-animation",a.animation):l.removeAttribute("data-animation"),a.inertia?l.setAttribute("data-inertia",""):l.removeAttribute("data-inertia"),l.style.maxWidth=typeof a.maxWidth=="number"?a.maxWidth+"px":a.maxWidth,a.role?l.setAttribute("role",a.role):l.removeAttribute("role"),(o.content!==a.content||o.allowHTML!==a.allowHTML)&&vse(c,e.props),a.arrow?u?o.arrow!==a.arrow&&(l.removeChild(u),l.appendChild(gse(a.arrow))):l.appendChild(gse(a.arrow)):u&&l.removeChild(u)}return{popper:t,onUpdate:i}}u5e.$$tippy=!0;var fYt=1,O5=[],cN=[];function hYt(e,t){var n=mse(e,Object.assign({},Pc,c5e(dse(t)))),r,i,o,a=!1,s=!1,l=!1,c=!1,u,d,h,p=[],m=cse(_e,n.interactiveDebounce),v,y=fYt++,S=null,b=qGt(n.plugins),C={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},_={id:y,reference:e,popper:pw(),popperInstance:S,props:n,state:C,plugins:b,clearDelayTimeouts:Q,setProps:K,setContent:J,show:be,hide:Oe,hideWithInteractivity:Se,enable:Ne,disable:We,unmount:Ke,destroy:tt};if(!n.render)return _;var T=n.render(_),x=T.popper,E=T.onUpdate;x.setAttribute("data-tippy-root",""),x.id="tippy-"+_.id,_.popper=x,e._tippy=_,x._tippy=_;var k=b.map(function(se){return se.fn(_)}),M=e.hasAttribute("aria-expanded");return me(),N(),W(),q("onCreate",[_]),n.showOnCreate&&ke(),x.addEventListener("mouseenter",function(){_.props.interactive&&_.state.isVisible&&_.clearDelayTimeouts()}),x.addEventListener("mouseleave",function(){_.props.interactive&&_.props.trigger.indexOf("mouseenter")>=0&&H().addEventListener("mousemove",m)}),_;function P(){var se=_.props.touch;return Array.isArray(se)?se:[se,0]}function D(){return P()[0]==="hold"}function R(){var se;return!!((se=_.props.render)!=null&&se.$$tippy)}function A(){return v||e}function H(){var se=A().parentNode;return se?JGt(se):document}function F(){return aH(x)}function z(se){return _.state.isMounted&&!_.state.isVisible||Tf.isTouch||u&&u.type==="focus"?0:aN(_.props.delay,se?0:1,Pc.delay)}function W(se){se===void 0&&(se=!1),x.style.pointerEvents=_.props.interactive&&!se?"":"none",x.style.zIndex=""+_.props.zIndex}function q(se,ze,Ye){if(Ye===void 0&&(Ye=!0),k.forEach(function(Je){Je[se]&&Je[se].apply(Je,ze)}),Ye){var Ue;(Ue=_.props)[se].apply(Ue,ze)}}function Z(){var se=_.props.aria;if(se.content){var ze="aria-"+se.content,Ye=x.id,Ue=g1(_.props.triggerTarget||e);Ue.forEach(function(Je){var Ze=Je.getAttribute(ze);if(_.state.isVisible)Je.setAttribute(ze,Ze?Ze+" "+Ye:Ye);else{var rt=Ze&&Ze.replace(Ye,"").trim();rt?Je.setAttribute(ze,rt):Je.removeAttribute(ze)}})}}function N(){if(!(M||!_.props.aria.expanded)){var se=g1(_.props.triggerTarget||e);se.forEach(function(ze){_.props.interactive?ze.setAttribute("aria-expanded",_.state.isVisible&&ze===A()?"true":"false"):ze.removeAttribute("aria-expanded")})}}function B(){H().removeEventListener("mousemove",m),O5=O5.filter(function(se){return se!==m})}function V(se){if(!(Tf.isTouch&&(l||se.type==="mousedown"))){var ze=se.composedPath&&se.composedPath()[0]||se.target;if(!(_.props.interactive&&hse(x,ze))){if(g1(_.props.triggerTarget||e).some(function(Ye){return hse(Ye,ze)})){if(Tf.isTouch||_.state.isVisible&&_.props.trigger.indexOf("click")>=0)return}else q("onClickOutside",[_,se]);_.props.hideOnClick===!0&&(_.clearDelayTimeouts(),_.hide(),s=!0,setTimeout(function(){s=!1}),_.state.isMounted||fe())}}}function Y(){l=!0}function ie(){l=!1}function ce(){var se=H();se.addEventListener("mousedown",V,!0),se.addEventListener("touchend",V,bm),se.addEventListener("touchstart",ie,bm),se.addEventListener("touchmove",Y,bm)}function fe(){var se=H();se.removeEventListener("mousedown",V,!0),se.removeEventListener("touchend",V,bm),se.removeEventListener("touchstart",ie,bm),se.removeEventListener("touchmove",Y,bm)}function ee(se,ze){ue(se,function(){!_.state.isVisible&&x.parentNode&&x.parentNode.contains(x)&&ze()})}function ne(se,ze){ue(se,ze)}function ue(se,ze){var Ye=F().box;function Ue(Je){Je.target===Ye&&(lN(Ye,"remove",Ue),ze())}if(se===0)return ze();lN(Ye,"remove",d),lN(Ye,"add",Ue),d=Ue}function ye(se,ze,Ye){Ye===void 0&&(Ye=!1);var Ue=g1(_.props.triggerTarget||e);Ue.forEach(function(Je){Je.addEventListener(se,ze,Ye),p.push({node:Je,eventType:se,handler:ze,options:Ye})})}function me(){D()&&(ye("touchstart",he,{passive:!0}),ye("touchend",le,{passive:!0})),KGt(_.props.trigger).forEach(function(se){if(se!=="manual")switch(ye(se,he),se){case"mouseenter":ye("mouseleave",le);break;case"focus":ye(oYt?"focusout":"blur",xe);break;case"focusin":ye("focusout",xe);break}})}function pe(){p.forEach(function(se){var ze=se.node,Ye=se.eventType,Ue=se.handler,Je=se.options;ze.removeEventListener(Ye,Ue,Je)}),p=[]}function he(se){var ze,Ye=!1;if(!(!_.state.isEnabled||we(se)||s)){var Ue=((ze=u)==null?void 0:ze.type)==="focus";u=se,v=se.currentTarget,N(),!_.state.isVisible&&XGt(se)&&O5.forEach(function(Je){return Je(se)}),se.type==="click"&&(_.props.trigger.indexOf("mouseenter")<0||a)&&_.props.hideOnClick!==!1&&_.state.isVisible?Ye=!0:ke(se),se.type==="click"&&(a=!Ye),Ye&&!Ue&&Pe(se)}}function _e(se){var ze=se.target,Ye=A().contains(ze)||x.contains(ze);if(!(se.type==="mousemove"&&Ye)){var Ue=Te().concat(x).map(function(Je){var Ze,rt=Je._tippy,qt=(Ze=rt.popperInstance)==null?void 0:Ze.state;return qt?{popperRect:Je.getBoundingClientRect(),popperState:qt,props:n}:null}).filter(Boolean);eYt(Ue,se)&&(B(),Pe(se))}}function le(se){var ze=we(se)||_.props.trigger.indexOf("click")>=0&&a;if(!ze){if(_.props.interactive){_.hideWithInteractivity(se);return}Pe(se)}}function xe(se){_.props.trigger.indexOf("focusin")<0&&se.target!==A()||_.props.interactive&&se.relatedTarget&&x.contains(se.relatedTarget)||Pe(se)}function we(se){return Tf.isTouch?D()!==se.type.indexOf("touch")>=0:!1}function De(){Fe();var se=_.props,ze=se.popperOptions,Ye=se.placement,Ue=se.offset,Je=se.getReferenceClientRect,Ze=se.moveTransition,rt=R()?aH(x).arrow:null,qt=Je?{getBoundingClientRect:Je,contextElement:Je.contextElement||A()}:e,St={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Dt){var an=Dt.state;if(R()){var Vt=F(),Kt=Vt.box;["placement","reference-hidden","escaped"].forEach(function(Qt){Qt==="placement"?Kt.setAttribute("data-placement",an.placement):an.attributes.popper["data-popper-"+Qt]?Kt.setAttribute("data-"+Qt,""):Kt.removeAttribute("data-"+Qt)}),an.attributes.popper={}}}},Ot=[{name:"offset",options:{offset:Ue}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!Ze}},St];R()&&rt&&Ot.push({name:"arrow",options:{element:rt,padding:3}}),Ot.push.apply(Ot,(ze==null?void 0:ze.modifiers)||[]),_.popperInstance=zGt(qt,x,Object.assign({},ze,{placement:Ye,onFirstUpdate:h,modifiers:Ot}))}function Fe(){_.popperInstance&&(_.popperInstance.destroy(),_.popperInstance=null)}function Ce(){var se=_.props.appendTo,ze,Ye=A();_.props.interactive&&se===a5e||se==="parent"?ze=Ye.parentNode:ze=s5e(se,[Ye]),ze.contains(x)||ze.appendChild(x),_.state.isMounted=!0,De()}function Te(){return Fk(x.querySelectorAll("[data-tippy-root]"))}function ke(se){_.clearDelayTimeouts(),se&&q("onTrigger",[_,se]),ce();var ze=z(!0),Ye=P(),Ue=Ye[0],Je=Ye[1];Tf.isTouch&&Ue==="hold"&&Je&&(ze=Je),ze?r=setTimeout(function(){_.show()},ze):_.show()}function Pe(se){if(_.clearDelayTimeouts(),q("onUntrigger",[_,se]),!_.state.isVisible){fe();return}if(!(_.props.trigger.indexOf("mouseenter")>=0&&_.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(se.type)>=0&&a)){var ze=z(!1);ze?i=setTimeout(function(){_.state.isVisible&&_.hide()},ze):o=requestAnimationFrame(function(){_.hide()})}}function Ne(){_.state.isEnabled=!0}function We(){_.hide(),_.state.isEnabled=!1}function Q(){clearTimeout(r),clearTimeout(i),cancelAnimationFrame(o)}function K(se){if(!_.state.isDestroyed){q("onBeforeUpdate",[_,se]),pe();var ze=_.props,Ye=mse(e,Object.assign({},ze,dse(se),{ignoreAttributes:!0}));_.props=Ye,me(),ze.interactiveDebounce!==Ye.interactiveDebounce&&(B(),m=cse(_e,Ye.interactiveDebounce)),ze.triggerTarget&&!Ye.triggerTarget?g1(ze.triggerTarget).forEach(function(Ue){Ue.removeAttribute("aria-expanded")}):Ye.triggerTarget&&e.removeAttribute("aria-expanded"),N(),W(),E&&E(ze,Ye),_.popperInstance&&(De(),Te().forEach(function(Ue){requestAnimationFrame(Ue._tippy.popperInstance.forceUpdate)})),q("onAfterUpdate",[_,se])}}function J(se){_.setProps({content:se})}function be(){var se=_.state.isVisible,ze=_.state.isDestroyed,Ye=!_.state.isEnabled,Ue=Tf.isTouch&&!_.props.touch,Je=aN(_.props.duration,0,Pc.duration);if(!(se||ze||Ye||Ue)&&!A().hasAttribute("disabled")&&(q("onShow",[_],!1),_.props.onShow(_)!==!1)){if(_.state.isVisible=!0,R()&&(x.style.visibility="visible"),W(),ce(),_.state.isMounted||(x.style.transition="none"),R()){var Ze=F(),rt=Ze.box,qt=Ze.content;sN([rt,qt],0)}h=function(){var Ot;if(!(!_.state.isVisible||c)){if(c=!0,x.offsetHeight,x.style.transition=_.props.moveTransition,R()&&_.props.animation){var Bt=F(),Dt=Bt.box,an=Bt.content;sN([Dt,an],Je),fse([Dt,an],"visible")}Z(),N(),use(cN,_),(Ot=_.popperInstance)==null||Ot.forceUpdate(),q("onMount",[_]),_.props.animation&&R()&&ne(Je,function(){_.state.isShown=!0,q("onShown",[_])})}},Ce()}}function Oe(){var se=!_.state.isVisible,ze=_.state.isDestroyed,Ye=!_.state.isEnabled,Ue=aN(_.props.duration,1,Pc.duration);if(!(se||ze||Ye)&&(q("onHide",[_],!1),_.props.onHide(_)!==!1)){if(_.state.isVisible=!1,_.state.isShown=!1,c=!1,a=!1,R()&&(x.style.visibility="hidden"),B(),fe(),W(!0),R()){var Je=F(),Ze=Je.box,rt=Je.content;_.props.animation&&(sN([Ze,rt],Ue),fse([Ze,rt],"hidden"))}Z(),N(),_.props.animation?R()&&ee(Ue,_.unmount):_.unmount()}}function Se(se){H().addEventListener("mousemove",m),use(O5,m),m(se)}function Ke(){_.state.isVisible&&_.hide(),_.state.isMounted&&(Fe(),Te().forEach(function(se){se._tippy.unmount()}),x.parentNode&&x.parentNode.removeChild(x),cN=cN.filter(function(se){return se!==_}),_.state.isMounted=!1,q("onHidden",[_]))}function tt(){_.state.isDestroyed||(_.clearDelayTimeouts(),_.unmount(),pe(),delete e._tippy,_.state.isDestroyed=!0,q("onDestroy",[_]))}}function OS(e,t){t===void 0&&(t={});var n=Pc.plugins.concat(t.plugins||[]);rYt();var r=Object.assign({},t,{plugins:n}),i=ZGt(e),o=i.reduce(function(a,s){var l=s&&hYt(s,r);return l&&a.push(l),a},[]);return aI(e)?o[0]:o}OS.defaultProps=Pc;OS.setDefaultProps=cYt;OS.currentInput=Tf;Object.assign({},YTe,{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 pYt={mouseover:"mouseenter",focusin:"focus",click:"click"};function mYt(e,t){var n=[],r=[],i=!1,o=t.target,a=VGt(t,["target"]),s=Object.assign({},a,{trigger:"manual",touch:!1}),l=Object.assign({touch:Pc.touch},a,{showOnCreate:!0}),c=OS(e,s),u=g1(c);function d(y){if(!(!y.target||i)){var S=y.target.closest(o);if(S){var b=S.getAttribute("data-tippy-trigger")||t.trigger||Pc.trigger;if(!S._tippy&&!(y.type==="touchstart"&&typeof l.touch=="boolean")&&!(y.type!=="touchstart"&&b.indexOf(pYt[y.type])<0)){var C=OS(S,l);C&&(r=r.concat(C))}}}}function h(y,S,b,C){C===void 0&&(C=!1),y.addEventListener(S,b,C),n.push({node:y,eventType:S,handler:b,options:C})}function p(y){var S=y.reference;h(S,"touchstart",d,bm),h(S,"mouseover",d),h(S,"focusin",d),h(S,"click",d)}function m(){n.forEach(function(y){var S=y.node,b=y.eventType,C=y.handler,_=y.options;S.removeEventListener(b,C,_)}),n=[]}function v(y){var S=y.destroy,b=y.enable,C=y.disable;y.destroy=function(_){_===void 0&&(_=!0),_&&r.forEach(function(T){T.destroy()}),r=[],m(),S()},y.enable=function(){b(),r.forEach(function(_){return _.enable()}),i=!1},y.disable=function(){C(),r.forEach(function(_){return _.disable()}),i=!0},p(y)}return u.forEach(v),c}OS.setDefaultProps({render:u5e});const Oq={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}}},kf={}.hasOwnProperty,uN={root:{children:yse},doctype:vYt,comment:yYt,element:{tagName:f5e,properties:bYt,children:yse},text:{value:xYt},"*":{data:bse,position:bse}};function gYt(e,t){let n={type:"root",children:[]};if(e&&typeof e=="object"&&e.type){const r=d5e(Object.assign({},Oq,t||{}),e,[]);r&&(Array.isArray(r)?r.length===1?n=r[0]:n.children=r:n=r)}return n}function d5e(e,t,n){const r=t&&t.type,i={type:t.type};let o;if(kf.call(uN,r)){let a=uN[r];if(typeof a=="function"&&(a=a(e,t)),a){const s=Object.assign({},a,uN["*"]);let l;o=!0;for(l in s)if(kf.call(s,l)){const c=s[l](e,t[l],t,n);c===!1?(o=void 0,i[l]=t[l]):c!=null&&(i[l]=c)}}}return o?i:i.type==="element"&&e.strip&&!e.strip.includes(i.tagName)?i.children:void 0}function yse(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=d5e(e,t[o],r);a&&(Array.isArray(a)?i.push(...a):i.push(a))}n.type==="element"&&r.pop()}return i}function vYt(e){return e.allowDoctypes?{name:SYt}:void 0}function yYt(e){return e.allowComments?{value:CYt}:void 0}function bYt(e,t,n,r){const i=f5e(e,n.tagName,n,r),o=e.attributes||{},a=e.required||{},s=t||{},l=Object.assign({},Sse(o["*"]),Sse(i&&kf.call(o,i)?o[i]:[])),c={};let u;for(u in s)if(kf.call(s,u)){let d=s[u],h;if(kf.call(l,u))h=l[u];else if(EYt(u)&&kf.call(l,"data*"))h=l["data*"];else continue;d=Array.isArray(d)?wYt(e,d,u,h):h5e(e,d,u,h),d!=null&&(c[u]=d)}if(i&&kf.call(a,i))for(u in a[i])kf.call(c,u)||(c[u]=a[i][u]);return c}function SYt(){return"html"}function f5e(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&&kf.call(e.ancestors,i)){for(;++o<e.ancestors[i].length;)if(r.includes(e.ancestors[i][o]))return i;return!1}return i}function CYt(e,t){const n=typeof t=="string"?t:"",r=n.indexOf("-->");return r<0?n:n.slice(0,r)}function xYt(e,t){return typeof t=="string"?t:""}function bse(e,t){return t}function wYt(e,t,n,r){let i=-1;const o=[];for(;++i<t.length;){const a=h5e(e,t[i],n,r);a!=null&&o.push(a)}return o}function h5e(e,t,n,r){if((typeof t=="boolean"||typeof t=="number"||typeof t=="string")&&_Yt(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 _Yt(e,t,n){const r=String(t),i=r.indexOf(":"),o=r.indexOf("?"),a=r.indexOf("#"),s=r.indexOf("/"),l=e.protocols&&kf.call(e.protocols,n)?e.protocols[n].concat():[];let c=-1;if(l.length===0||i<0||s>-1&&i>s||o>-1&&i>o||a>-1&&i>a)return!0;for(;++c<l.length;)if(i===l[c].length&&r.slice(0,l[c].length)===l[c])return!0;return!1}function Sse(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 EYt(e){return e.length>4&&e.slice(0,4).toLowerCase()==="data"}var nf={};const TYt=[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];nf.REPLACEMENT_CHARACTER="<22>";nf.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};nf.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]};nf.isSurrogate=function(e){return e>=55296&&e<=57343};nf.isSurrogatePair=function(e){return e>=56320&&e<=57343};nf.getSurrogatePairCodePoint=function(e,t){return(e-55296)*1024+9216+t};nf.isControlCodePoint=function(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159};nf.isUndefinedCodePoint=function(e){return e>=64976&&e<=65007||TYt.indexOf(e)>-1};var Pq={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 wy=nf,dN=Pq,Zg=wy.CODE_POINTS,kYt=65536;let OYt=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=kYt}_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(wy.isSurrogatePair(n))return this.pos++,this._addGap(),wy.getSurrogatePairCodePoint(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,Zg.EOF;return this._err(dN.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,Zg.EOF;let t=this.html.charCodeAt(this.pos);return this.skipNextNewLine&&t===Zg.LINE_FEED?(this.skipNextNewLine=!1,this._addGap(),this.advance()):t===Zg.CARRIAGE_RETURN?(this.skipNextNewLine=!0,Zg.LINE_FEED):(this.skipNextNewLine=!1,wy.isSurrogate(t)&&(t=this._processSurrogate(t)),t>31&&t<127||t===Zg.LINE_FEED||t===Zg.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){wy.isControlCodePoint(t)?this._err(dN.controlCharacterInInputStream):wy.isUndefinedCodePoint(t)&&this._err(dN.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}};var PYt=OYt,MYt=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 IYt=PYt,Xi=nf,R1=MYt,fn=Pq,lt=Xi.CODE_POINTS,Jg=Xi.CODE_POINT_SEQUENCES,$Yt={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},p5e=1,m5e=2,g5e=4,RYt=p5e|m5e|g5e,ri="DATA_STATE",_y="RCDATA_STATE",R2="RAWTEXT_STATE",$h="SCRIPT_DATA_STATE",v5e="PLAINTEXT_STATE",Cse="TAG_OPEN_STATE",xse="END_TAG_OPEN_STATE",fN="TAG_NAME_STATE",wse="RCDATA_LESS_THAN_SIGN_STATE",_se="RCDATA_END_TAG_OPEN_STATE",Ese="RCDATA_END_TAG_NAME_STATE",Tse="RAWTEXT_LESS_THAN_SIGN_STATE",kse="RAWTEXT_END_TAG_OPEN_STATE",Ose="RAWTEXT_END_TAG_NAME_STATE",Pse="SCRIPT_DATA_LESS_THAN_SIGN_STATE",Mse="SCRIPT_DATA_END_TAG_OPEN_STATE",Ise="SCRIPT_DATA_END_TAG_NAME_STATE",$se="SCRIPT_DATA_ESCAPE_START_STATE",Rse="SCRIPT_DATA_ESCAPE_START_DASH_STATE",ed="SCRIPT_DATA_ESCAPED_STATE",Ase="SCRIPT_DATA_ESCAPED_DASH_STATE",hN="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",P5="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",Nse="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",Dse="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",Lse="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",xh="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",Fse="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",jse="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",M5="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",Bse="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",mf="BEFORE_ATTRIBUTE_NAME_STATE",I5="ATTRIBUTE_NAME_STATE",pN="AFTER_ATTRIBUTE_NAME_STATE",mN="BEFORE_ATTRIBUTE_VALUE_STATE",$5="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",R5="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",A5="ATTRIBUTE_VALUE_UNQUOTED_STATE",gN="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",Qp="SELF_CLOSING_START_TAG_STATE",t2="BOGUS_COMMENT_STATE",Hse="MARKUP_DECLARATION_OPEN_STATE",zse="COMMENT_START_STATE",Use="COMMENT_START_DASH_STATE",Zp="COMMENT_STATE",Wse="COMMENT_LESS_THAN_SIGN_STATE",Vse="COMMENT_LESS_THAN_SIGN_BANG_STATE",Kse="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",qse="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",N5="COMMENT_END_DASH_STATE",D5="COMMENT_END_STATE",Gse="COMMENT_END_BANG_STATE",Yse="DOCTYPE_STATE",L5="BEFORE_DOCTYPE_NAME_STATE",F5="DOCTYPE_NAME_STATE",Xse="AFTER_DOCTYPE_NAME_STATE",Qse="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",Zse="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",vN="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",yN="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",bN="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",Jse="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",ele="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",tle="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",n2="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",r2="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",SN="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",wh="BOGUS_DOCTYPE_STATE",j5="CDATA_SECTION_STATE",nle="CDATA_SECTION_BRACKET_STATE",rle="CDATA_SECTION_END_STATE",fy="CHARACTER_REFERENCE_STATE",ile="NAMED_CHARACTER_REFERENCE_STATE",ole="AMBIGUOS_AMPERSAND_STATE",ale="NUMERIC_CHARACTER_REFERENCE_STATE",sle="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",lle="DECIMAL_CHARACTER_REFERENCE_START_STATE",cle="HEXADEMICAL_CHARACTER_REFERENCE_STATE",ule="DECIMAL_CHARACTER_REFERENCE_STATE",i2="NUMERIC_CHARACTER_REFERENCE_END_STATE";function uo(e){return e===lt.SPACE||e===lt.LINE_FEED||e===lt.TABULATION||e===lt.FORM_FEED}function mw(e){return e>=lt.DIGIT_0&&e<=lt.DIGIT_9}function od(e){return e>=lt.LATIN_CAPITAL_A&&e<=lt.LATIN_CAPITAL_Z}function c1(e){return e>=lt.LATIN_SMALL_A&&e<=lt.LATIN_SMALL_Z}function hm(e){return c1(e)||od(e)}function CN(e){return hm(e)||mw(e)}function y5e(e){return e>=lt.LATIN_CAPITAL_A&&e<=lt.LATIN_CAPITAL_F}function b5e(e){return e>=lt.LATIN_SMALL_A&&e<=lt.LATIN_SMALL_F}function AYt(e){return mw(e)||y5e(e)||b5e(e)}function m8(e){return e+32}function Go(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|e&1023))}function Jp(e){return String.fromCharCode(m8(e))}function dle(e,t){const n=R1[++e];let r=++e,i=r+n-1;for(;r<=i;){const o=r+i>>>1,a=R1[o];if(a<t)r=o+1;else if(a>t)i=o-1;else return R1[o+n]}return-1}let Bu=class kl{constructor(){this.preprocessor=new IYt,this.tokenQueue=[],this.allowCDATA=!1,this.state=ri,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:kl.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 s=0,l=n,c;for(;s<a;s++){if(s>0&&(l=this._consume(),i++),l===lt.EOF){o=!1;break}if(c=t[s],l!==c&&(r||l!==m8(c))){o=!1;break}}if(!o)for(;i--;)this._unconsume();return o}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==Jg.SCRIPT_STRING.length)return!1;for(let t=0;t<this.tempBuff.length;t++)if(this.tempBuff[t]!==Jg.SCRIPT_STRING[t])return!1;return!0}_createStartTagToken(){this.currentToken={type:kl.START_TAG_TOKEN,tagName:"",selfClosing:!1,ackSelfClosing:!1,attrs:[]}}_createEndTagToken(){this.currentToken={type:kl.END_TAG_TOKEN,tagName:"",selfClosing:!1,attrs:[]}}_createCommentToken(){this.currentToken={type:kl.COMMENT_TOKEN,data:""}}_createDoctypeToken(t){this.currentToken={type:kl.DOCTYPE_TOKEN,name:t,forceQuirks:!1,publicId:null,systemId:null}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n}}_createEOFToken(){this.currentToken={type:kl.EOF_TOKEN}}_createAttr(t){this.currentAttr={name:t,value:""}}_leaveAttrName(t){kl.getTokenAttr(this.currentToken,this.currentAttr.name)===null?this.currentToken.attrs.push(this.currentAttr):this._err(fn.duplicateAttribute),this.state=t}_leaveAttrValue(t){this.state=t}_emitCurrentToken(){this._emitCurrentCharacterToken();const t=this.currentToken;this.currentToken=null,t.type===kl.START_TAG_TOKEN?this.lastStartTagName=t.tagName:t.type===kl.END_TAG_TOKEN&&(t.attrs.length>0&&this._err(fn.endTagWithAttributes),t.selfClosing&&this._err(fn.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=kl.CHARACTER_TOKEN;uo(t)?n=kl.WHITESPACE_CHARACTER_TOKEN:t===lt.NULL&&(n=kl.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(n,Go(t))}_emitSeveralCodePoints(t){for(let n=0;n<t.length;n++)this._emitCodePoint(t[n])}_emitChars(t){this._appendCharToCurrentCharacterToken(kl.CHARACTER_TOKEN,t)}_matchNamedCharacterReference(t){let n=null,r=1,i=dle(0,t);for(this.tempBuff.push(t);i>-1;){const o=R1[i],a=o<RYt;a&&o&p5e&&(n=o&m5e?[R1[++i],R1[++i]]:[R1[++i]],r=0);const l=this._consume();if(this.tempBuff.push(l),r++,l===lt.EOF)break;a?i=o&g5e?dle(i,l):-1:i=l===o?++i:-1}for(;r--;)this.tempBuff.pop(),this._unconsume();return n}_isCharacterReferenceInAttribute(){return this.returnState===$5||this.returnState===R5||this.returnState===A5}_isCharacterReferenceAttributeQuirk(t){if(!t&&this._isCharacterReferenceInAttribute()){const n=this._consume();return this._unconsume(),n===lt.EQUALS_SIGN||CN(n)}return!1}_flushCodePointsConsumedAsCharacterReference(){if(this._isCharacterReferenceInAttribute())for(let t=0;t<this.tempBuff.length;t++)this.currentAttr.value+=Go(this.tempBuff[t]);else this._emitSeveralCodePoints(this.tempBuff);this.tempBuff=[]}[ri](t){this.preprocessor.dropParsedChunk(),t===lt.LESS_THAN_SIGN?this.state=Cse:t===lt.AMPERSAND?(this.returnState=ri,this.state=fy):t===lt.NULL?(this._err(fn.unexpectedNullCharacter),this._emitCodePoint(t)):t===lt.EOF?this._emitEOFToken():this._emitCodePoint(t)}[_y](t){this.preprocessor.dropParsedChunk(),t===lt.AMPERSAND?(this.returnState=_y,this.state=fy):t===lt.LESS_THAN_SIGN?this.state=wse:t===lt.NULL?(this._err(fn.unexpectedNullCharacter),this._emitChars(Xi.REPLACEMENT_CHARACTER)):t===lt.EOF?this._emitEOFToken():this._emitCodePoint(t)}[R2](t){this.preprocessor.dropParsedChunk(),t===lt.LESS_THAN_SIGN?this.state=Tse:t===lt.NULL?(this._err(fn.unexpectedNullCharacter),this._emitChars(Xi.REPLACEMENT_CHARACTER)):t===lt.EOF?this._emitEOFToken():this._emitCodePoint(t)}[$h](t){this.preprocessor.dropParsedChunk(),t===lt.LESS_THAN_SIGN?this.state=Pse:t===lt.NULL?(this._err(fn.unexpectedNullCharacter),this._emitChars(Xi.REPLACEMENT_CHARACTER)):t===lt.EOF?this._emitEOFToken():this._emitCodePoint(t)}[v5e](t){this.preprocessor.dropParsedChunk(),t===lt.NULL?(this._err(fn.unexpectedNullCharacter),this._emitChars(Xi.REPLACEMENT_CHARACTER)):t===lt.EOF?this._emitEOFToken():this._emitCodePoint(t)}[Cse](t){t===lt.EXCLAMATION_MARK?this.state=Hse:t===lt.SOLIDUS?this.state=xse:hm(t)?(this._createStartTagToken(),this._reconsumeInState(fN)):t===lt.QUESTION_MARK?(this._err(fn.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(),this._reconsumeInState(t2)):t===lt.EOF?(this._err(fn.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken()):(this._err(fn.invalidFirstCharacterOfTagName),this._emitChars("<"),this._reconsumeInState(ri))}[xse](t){hm(t)?(this._createEndTagToken(),this._reconsumeInState(fN)):t===lt.GREATER_THAN_SIGN?(this._err(fn.missingEndTagName),this.state=ri):t===lt.EOF?(this._err(fn.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken()):(this._err(fn.invalidFirstCharacterOfTagName),this._createCommentToken(),this._reconsumeInState(t2))}[fN](t){uo(t)?this.state=mf:t===lt.SOLIDUS?this.state=Qp:t===lt.GREATER_THAN_SIGN?(this.state=ri,this._emitCurrentToken()):od(t)?this.currentToken.tagName+=Jp(t):t===lt.NULL?(this._err(fn.unexpectedNullCharacter),this.currentToken.tagName+=Xi.REPLACEMENT_CHARACTER):t===lt.EOF?(this._err(fn.eofInTag),this._emitEOFToken()):this.currentToken.tagName+=Go(t)}[wse](t){t===lt.SOLIDUS?(this.tempBuff=[],this.state=_se):(this._emitChars("<"),this._reconsumeInState(_y))}[_se](t){hm(t)?(this._createEndTagToken(),this._reconsumeInState(Ese)):(this._emitChars("</"),this._reconsumeInState(_y))}[Ese](t){if(od(t))this.currentToken.tagName+=Jp(t),this.tempBuff.push(t);else if(c1(t))this.currentToken.tagName+=Go(t),this.tempBuff.push(t);else{if(this.lastStartTagName===this.currentToken.tagName){if(uo(t)){this.state=mf;return}if(t===lt.SOLIDUS){this.state=Qp;return}if(t===lt.GREATER_THAN_SIGN){this.state=ri,this._emitCurrentToken();return}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(_y)}}[Tse](t){t===lt.SOLIDUS?(this.tempBuff=[],this.state=kse):(this._emitChars("<"),this._reconsumeInState(R2))}[kse](t){hm(t)?(this._createEndTagToken(),this._reconsumeInState(Ose)):(this._emitChars("</"),this._reconsumeInState(R2))}[Ose](t){if(od(t))this.currentToken.tagName+=Jp(t),this.tempBuff.push(t);else if(c1(t))this.currentToken.tagName+=Go(t),this.tempBuff.push(t);else{if(this.lastStartTagName===this.currentToken.tagName){if(uo(t)){this.state=mf;return}if(t===lt.SOLIDUS){this.state=Qp;return}if(t===lt.GREATER_THAN_SIGN){this._emitCurrentToken(),this.state=ri;return}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(R2)}}[Pse](t){t===lt.SOLIDUS?(this.tempBuff=[],this.state=Mse):t===lt.EXCLAMATION_MARK?(this.state=$se,this._emitChars("<!")):(this._emitChars("<"),this._reconsumeInState($h))}[Mse](t){hm(t)?(this._createEndTagToken(),this._reconsumeInState(Ise)):(this._emitChars("</"),this._reconsumeInState($h))}[Ise](t){if(od(t))this.currentToken.tagName+=Jp(t),this.tempBuff.push(t);else if(c1(t))this.currentToken.tagName+=Go(t),this.tempBuff.push(t);else{if(this.lastStartTagName===this.currentToken.tagName){if(uo(t)){this.state=mf;return}else if(t===lt.SOLIDUS){this.state=Qp;return}else if(t===lt.GREATER_THAN_SIGN){this._emitCurrentToken(),this.state=ri;return}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState($h)}}[$se](t){t===lt.HYPHEN_MINUS?(this.state=Rse,this._emitChars("-")):this._reconsumeInState($h)}[Rse](t){t===lt.HYPHEN_MINUS?(this.state=hN,this._emitChars("-")):this._reconsumeInState($h)}[ed](t){t===lt.HYPHEN_MINUS?(this.state=Ase,this._emitChars("-")):t===lt.LESS_THAN_SIGN?this.state=P5:t===lt.NULL?(this._err(fn.unexpectedNullCharacter),this._emitChars(Xi.REPLACEMENT_CHARACTER)):t===lt.EOF?(this._err(fn.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(t)}[Ase](t){t===lt.HYPHEN_MINUS?(this.state=hN,this._emitChars("-")):t===lt.LESS_THAN_SIGN?this.state=P5:t===lt.NULL?(this._err(fn.unexpectedNullCharacter),this.state=ed,this._emitChars(Xi.REPLACEMENT_CHARACTER)):t===lt.EOF?(this._err(fn.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=ed,this._emitCodePoint(t))}[hN](t){t===lt.HYPHEN_MINUS?this._emitChars("-"):t===lt.LESS_THAN_SIGN?this.state=P5:t===lt.GREATER_THAN_SIGN?(this.state=$h,this._emitChars(">")):t===lt.NULL?(this._err(fn.unexpectedNullCharacter),this.state=ed,this._emitChars(Xi.REPLACEMENT_CHARACTER)):t===lt.EOF?(this._err(fn.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=ed,this._emitCodePoint(t))}[P5](t){t===lt.SOLIDUS?(this.tempBuff=[],this.state=Nse):hm(t)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(Lse)):(this._emitChars("<"),this._reconsumeInState(ed))}[Nse](t){hm(t)?(this._createEndTagToken(),this._reconsumeInState(Dse)):(this._emitChars("</"),this._reconsumeInState(ed))}[Dse](t){if(od(t))this.currentToken.tagName+=Jp(t),this.tempBuff.push(t);else if(c1(t))this.currentToken.tagName+=Go(t),this.tempBuff.push(t);else{if(this.lastStartTagName===this.currentToken.tagName){if(uo(t)){this.state=mf;return}if(t===lt.SOLIDUS){this.state=Qp;return}if(t===lt.GREATER_THAN_SIGN){this._emitCurrentToken(),this.state=ri;return}}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState(ed)}}[Lse](t){uo(t)||t===lt.SOLIDUS||t===lt.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?xh:ed,this._emitCodePoint(t)):od(t)?(this.tempBuff.push(m8(t)),this._emitCodePoint(t)):c1(t)?(this.tempBuff.push(t),this._emitCodePoint(t)):this._reconsumeInState(ed)}[xh](t){t===lt.HYPHEN_MINUS?(this.state=Fse,this._emitChars("-")):t===lt.LESS_THAN_SIGN?(this.state=M5,this._emitChars("<")):t===lt.NULL?(this._err(fn.unexpectedNullCharacter),this._emitChars(Xi.REPLACEMENT_CHARACTER)):t===lt.EOF?(this._err(fn.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(t)}[Fse](t){t===lt.HYPHEN_MINUS?(this.state=jse,this._emitChars("-")):t===lt.LESS_THAN_SIGN?(this.state=M5,this._emitChars("<")):t===lt.NULL?(this._err(fn.unexpectedNullCharacter),this.state=xh,this._emitChars(Xi.REPLACEMENT_CHARACTER)):t===lt.EOF?(this._err(fn.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=xh,this._emitCodePoint(t))}[jse](t){t===lt.HYPHEN_MINUS?this._emitChars("-"):t===lt.LESS_THAN_SIGN?(this.state=M5,this._emitChars("<")):t===lt.GREATER_THAN_SIGN?(this.state=$h,this._emitChars(">")):t===lt.NULL?(this._err(fn.unexpectedNullCharacter),this.state=xh,this._emitChars(Xi.REPLACEMENT_CHARACTER)):t===lt.EOF?(this._err(fn.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=xh,this._emitCodePoint(t))}[M5](t){t===lt.SOLIDUS?(this.tempBuff=[],this.state=Bse,this._emitChars("/")):this._reconsumeInState(xh)}[Bse](t){uo(t)||t===lt.SOLIDUS||t===lt.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?ed:xh,this._emitCodePoint(t)):od(t)?(this.tempBuff.push(m8(t)),this._emitCodePoint(t)):c1(t)?(this.tempBuff.push(t),this._emitCodePoint(t)):this._reconsumeInState(xh)}[mf](t){uo(t)||(t===lt.SOLIDUS||t===lt.GREATER_THAN_SIGN||t===lt.EOF?this._reconsumeInState(pN):t===lt.EQUALS_SIGN?(this._err(fn.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=I5):(this._createAttr(""),this._reconsumeInState(I5)))}[I5](t){uo(t)||t===lt.SOLIDUS||t===lt.GREATER_THAN_SIGN||t===lt.EOF?(this._leaveAttrName(pN),this._unconsume()):t===lt.EQUALS_SIGN?this._leaveAttrName(mN):od(t)?this.currentAttr.name+=Jp(t):t===lt.QUOTATION_MARK||t===lt.APOSTROPHE||t===lt.LESS_THAN_SIGN?(this._err(fn.unexpectedCharacterInAttributeName),this.currentAttr.name+=Go(t)):t===lt.NULL?(this._err(fn.unexpectedNullCharacter),this.currentAttr.name+=Xi.REPLACEMENT_CHARACTER):this.currentAttr.name+=Go(t)}[pN](t){uo(t)||(t===lt.SOLIDUS?this.state=Qp:t===lt.EQUALS_SIGN?this.state=mN:t===lt.GREATER_THAN_SIGN?(this.state=ri,this._emitCurrentToken()):t===lt.EOF?(this._err(fn.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(I5)))}[mN](t){uo(t)||(t===lt.QUOTATION_MARK?this.state=$5:t===lt.APOSTROPHE?this.state=R5:t===lt.GREATER_THAN_SIGN?(this._err(fn.missingAttributeValue),this.state=ri,this._emitCurrentToken()):this._reconsumeInState(A5))}[$5](t){t===lt.QUOTATION_MARK?this.state=gN:t===lt.AMPERSAND?(this.returnState=$5,this.state=fy):t===lt.NULL?(this._err(fn.unexpectedNullCharacter),this.currentAttr.value+=Xi.REPLACEMENT_CHARACTER):t===lt.EOF?(this._err(fn.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Go(t)}[R5](t){t===lt.APOSTROPHE?this.state=gN:t===lt.AMPERSAND?(this.returnState=R5,this.state=fy):t===lt.NULL?(this._err(fn.unexpectedNullCharacter),this.currentAttr.value+=Xi.REPLACEMENT_CHARACTER):t===lt.EOF?(this._err(fn.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Go(t)}[A5](t){uo(t)?this._leaveAttrValue(mf):t===lt.AMPERSAND?(this.returnState=A5,this.state=fy):t===lt.GREATER_THAN_SIGN?(this._leaveAttrValue(ri),this._emitCurrentToken()):t===lt.NULL?(this._err(fn.unexpectedNullCharacter),this.currentAttr.value+=Xi.REPLACEMENT_CHARACTER):t===lt.QUOTATION_MARK||t===lt.APOSTROPHE||t===lt.LESS_THAN_SIGN||t===lt.EQUALS_SIGN||t===lt.GRAVE_ACCENT?(this._err(fn.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=Go(t)):t===lt.EOF?(this._err(fn.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Go(t)}[gN](t){uo(t)?this._leaveAttrValue(mf):t===lt.SOLIDUS?this._leaveAttrValue(Qp):t===lt.GREATER_THAN_SIGN?(this._leaveAttrValue(ri),this._emitCurrentToken()):t===lt.EOF?(this._err(fn.eofInTag),this._emitEOFToken()):(this._err(fn.missingWhitespaceBetweenAttributes),this._reconsumeInState(mf))}[Qp](t){t===lt.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=ri,this._emitCurrentToken()):t===lt.EOF?(this._err(fn.eofInTag),this._emitEOFToken()):(this._err(fn.unexpectedSolidusInTag),this._reconsumeInState(mf))}[t2](t){t===lt.GREATER_THAN_SIGN?(this.state=ri,this._emitCurrentToken()):t===lt.EOF?(this._emitCurrentToken(),this._emitEOFToken()):t===lt.NULL?(this._err(fn.unexpectedNullCharacter),this.currentToken.data+=Xi.REPLACEMENT_CHARACTER):this.currentToken.data+=Go(t)}[Hse](t){this._consumeSequenceIfMatch(Jg.DASH_DASH_STRING,t,!0)?(this._createCommentToken(),this.state=zse):this._consumeSequenceIfMatch(Jg.DOCTYPE_STRING,t,!1)?this.state=Yse:this._consumeSequenceIfMatch(Jg.CDATA_START_STRING,t,!0)?this.allowCDATA?this.state=j5:(this._err(fn.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=t2):this._ensureHibernation()||(this._err(fn.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(t2))}[zse](t){t===lt.HYPHEN_MINUS?this.state=Use:t===lt.GREATER_THAN_SIGN?(this._err(fn.abruptClosingOfEmptyComment),this.state=ri,this._emitCurrentToken()):this._reconsumeInState(Zp)}[Use](t){t===lt.HYPHEN_MINUS?this.state=D5:t===lt.GREATER_THAN_SIGN?(this._err(fn.abruptClosingOfEmptyComment),this.state=ri,this._emitCurrentToken()):t===lt.EOF?(this._err(fn.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(Zp))}[Zp](t){t===lt.HYPHEN_MINUS?this.state=N5:t===lt.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=Wse):t===lt.NULL?(this._err(fn.unexpectedNullCharacter),this.currentToken.data+=Xi.REPLACEMENT_CHARACTER):t===lt.EOF?(this._err(fn.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=Go(t)}[Wse](t){t===lt.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=Vse):t===lt.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(Zp)}[Vse](t){t===lt.HYPHEN_MINUS?this.state=Kse:this._reconsumeInState(Zp)}[Kse](t){t===lt.HYPHEN_MINUS?this.state=qse:this._reconsumeInState(N5)}[qse](t){t!==lt.GREATER_THAN_SIGN&&t!==lt.EOF&&this._err(fn.nestedComment),this._reconsumeInState(D5)}[N5](t){t===lt.HYPHEN_MINUS?this.state=D5:t===lt.EOF?(this._err(fn.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(Zp))}[D5](t){t===lt.GREATER_THAN_SIGN?(this.state=ri,this._emitCurrentToken()):t===lt.EXCLAMATION_MARK?this.state=Gse:t===lt.HYPHEN_MINUS?this.currentToken.data+="-":t===lt.EOF?(this._err(fn.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(Zp))}[Gse](t){t===lt.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=N5):t===lt.GREATER_THAN_SIGN?(this._err(fn.incorrectlyClosedComment),this.state=ri,this._emitCurrentToken()):t===lt.EOF?(this._err(fn.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(Zp))}[Yse](t){uo(t)?this.state=L5:t===lt.GREATER_THAN_SIGN?this._reconsumeInState(L5):t===lt.EOF?(this._err(fn.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(fn.missingWhitespaceBeforeDoctypeName),this._reconsumeInState(L5))}[L5](t){uo(t)||(od(t)?(this._createDoctypeToken(Jp(t)),this.state=F5):t===lt.NULL?(this._err(fn.unexpectedNullCharacter),this._createDoctypeToken(Xi.REPLACEMENT_CHARACTER),this.state=F5):t===lt.GREATER_THAN_SIGN?(this._err(fn.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=ri):t===lt.EOF?(this._err(fn.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(Go(t)),this.state=F5))}[F5](t){uo(t)?this.state=Xse:t===lt.GREATER_THAN_SIGN?(this.state=ri,this._emitCurrentToken()):od(t)?this.currentToken.name+=Jp(t):t===lt.NULL?(this._err(fn.unexpectedNullCharacter),this.currentToken.name+=Xi.REPLACEMENT_CHARACTER):t===lt.EOF?(this._err(fn.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=Go(t)}[Xse](t){uo(t)||(t===lt.GREATER_THAN_SIGN?(this.state=ri,this._emitCurrentToken()):t===lt.EOF?(this._err(fn.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(Jg.PUBLIC_STRING,t,!1)?this.state=Qse:this._consumeSequenceIfMatch(Jg.SYSTEM_STRING,t,!1)?this.state=ele:this._ensureHibernation()||(this._err(fn.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState(wh)))}[Qse](t){uo(t)?this.state=Zse:t===lt.QUOTATION_MARK?(this._err(fn.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=vN):t===lt.APOSTROPHE?(this._err(fn.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=yN):t===lt.GREATER_THAN_SIGN?(this._err(fn.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=ri,this._emitCurrentToken()):t===lt.EOF?(this._err(fn.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(fn.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(wh))}[Zse](t){uo(t)||(t===lt.QUOTATION_MARK?(this.currentToken.publicId="",this.state=vN):t===lt.APOSTROPHE?(this.currentToken.publicId="",this.state=yN):t===lt.GREATER_THAN_SIGN?(this._err(fn.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=ri,this._emitCurrentToken()):t===lt.EOF?(this._err(fn.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(fn.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(wh)))}[vN](t){t===lt.QUOTATION_MARK?this.state=bN:t===lt.NULL?(this._err(fn.unexpectedNullCharacter),this.currentToken.publicId+=Xi.REPLACEMENT_CHARACTER):t===lt.GREATER_THAN_SIGN?(this._err(fn.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=ri):t===lt.EOF?(this._err(fn.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=Go(t)}[yN](t){t===lt.APOSTROPHE?this.state=bN:t===lt.NULL?(this._err(fn.unexpectedNullCharacter),this.currentToken.publicId+=Xi.REPLACEMENT_CHARACTER):t===lt.GREATER_THAN_SIGN?(this._err(fn.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=ri):t===lt.EOF?(this._err(fn.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=Go(t)}[bN](t){uo(t)?this.state=Jse:t===lt.GREATER_THAN_SIGN?(this.state=ri,this._emitCurrentToken()):t===lt.QUOTATION_MARK?(this._err(fn.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=n2):t===lt.APOSTROPHE?(this._err(fn.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=r2):t===lt.EOF?(this._err(fn.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(fn.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(wh))}[Jse](t){uo(t)||(t===lt.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=ri):t===lt.QUOTATION_MARK?(this.currentToken.systemId="",this.state=n2):t===lt.APOSTROPHE?(this.currentToken.systemId="",this.state=r2):t===lt.EOF?(this._err(fn.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(fn.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(wh)))}[ele](t){uo(t)?this.state=tle:t===lt.QUOTATION_MARK?(this._err(fn.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=n2):t===lt.APOSTROPHE?(this._err(fn.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=r2):t===lt.GREATER_THAN_SIGN?(this._err(fn.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=ri,this._emitCurrentToken()):t===lt.EOF?(this._err(fn.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(fn.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(wh))}[tle](t){uo(t)||(t===lt.QUOTATION_MARK?(this.currentToken.systemId="",this.state=n2):t===lt.APOSTROPHE?(this.currentToken.systemId="",this.state=r2):t===lt.GREATER_THAN_SIGN?(this._err(fn.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=ri,this._emitCurrentToken()):t===lt.EOF?(this._err(fn.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(fn.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(wh)))}[n2](t){t===lt.QUOTATION_MARK?this.state=SN:t===lt.NULL?(this._err(fn.unexpectedNullCharacter),this.currentToken.systemId+=Xi.REPLACEMENT_CHARACTER):t===lt.GREATER_THAN_SIGN?(this._err(fn.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=ri):t===lt.EOF?(this._err(fn.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=Go(t)}[r2](t){t===lt.APOSTROPHE?this.state=SN:t===lt.NULL?(this._err(fn.unexpectedNullCharacter),this.currentToken.systemId+=Xi.REPLACEMENT_CHARACTER):t===lt.GREATER_THAN_SIGN?(this._err(fn.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=ri):t===lt.EOF?(this._err(fn.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=Go(t)}[SN](t){uo(t)||(t===lt.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=ri):t===lt.EOF?(this._err(fn.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(fn.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState(wh)))}[wh](t){t===lt.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=ri):t===lt.NULL?this._err(fn.unexpectedNullCharacter):t===lt.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}[j5](t){t===lt.RIGHT_SQUARE_BRACKET?this.state=nle:t===lt.EOF?(this._err(fn.eofInCdata),this._emitEOFToken()):this._emitCodePoint(t)}[nle](t){t===lt.RIGHT_SQUARE_BRACKET?this.state=rle:(this._emitChars("]"),this._reconsumeInState(j5))}[rle](t){t===lt.GREATER_THAN_SIGN?this.state=ri:t===lt.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(j5))}[fy](t){this.tempBuff=[lt.AMPERSAND],t===lt.NUMBER_SIGN?(this.tempBuff.push(t),this.state=ale):CN(t)?this._reconsumeInState(ile):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[ile](t){const n=this._matchNamedCharacterReference(t);if(this._ensureHibernation())this.tempBuff=[lt.AMPERSAND];else if(n){const r=this.tempBuff[this.tempBuff.length-1]===lt.SEMICOLON;this._isCharacterReferenceAttributeQuirk(r)||(r||this._errOnNextCodePoint(fn.missingSemicolonAfterCharacterReference),this.tempBuff=n),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state=ole}[ole](t){CN(t)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=Go(t):this._emitCodePoint(t):(t===lt.SEMICOLON&&this._err(fn.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}[ale](t){this.charRefCode=0,t===lt.LATIN_SMALL_X||t===lt.LATIN_CAPITAL_X?(this.tempBuff.push(t),this.state=sle):this._reconsumeInState(lle)}[sle](t){AYt(t)?this._reconsumeInState(cle):(this._err(fn.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[lle](t){mw(t)?this._reconsumeInState(ule):(this._err(fn.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[cle](t){y5e(t)?this.charRefCode=this.charRefCode*16+t-55:b5e(t)?this.charRefCode=this.charRefCode*16+t-87:mw(t)?this.charRefCode=this.charRefCode*16+t-48:t===lt.SEMICOLON?this.state=i2:(this._err(fn.missingSemicolonAfterCharacterReference),this._reconsumeInState(i2))}[ule](t){mw(t)?this.charRefCode=this.charRefCode*10+t-48:t===lt.SEMICOLON?this.state=i2:(this._err(fn.missingSemicolonAfterCharacterReference),this._reconsumeInState(i2))}[i2](){if(this.charRefCode===lt.NULL)this._err(fn.nullCharacterReference),this.charRefCode=lt.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(fn.characterReferenceOutsideUnicodeRange),this.charRefCode=lt.REPLACEMENT_CHARACTER;else if(Xi.isSurrogate(this.charRefCode))this._err(fn.surrogateCharacterReference),this.charRefCode=lt.REPLACEMENT_CHARACTER;else if(Xi.isUndefinedCodePoint(this.charRefCode))this._err(fn.noncharacterCharacterReference);else if(Xi.isControlCodePoint(this.charRefCode)||this.charRefCode===lt.CARRIAGE_RETURN){this._err(fn.controlCharacterReference);const t=$Yt[this.charRefCode];t&&(this.charRefCode=t)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}};Bu.CHARACTER_TOKEN="CHARACTER_TOKEN";Bu.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN";Bu.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN";Bu.START_TAG_TOKEN="START_TAG_TOKEN";Bu.END_TAG_TOKEN="END_TAG_TOKEN";Bu.COMMENT_TOKEN="COMMENT_TOKEN";Bu.DOCTYPE_TOKEN="DOCTYPE_TOKEN";Bu.EOF_TOKEN="EOF_TOKEN";Bu.HIBERNATION_TOKEN="HIBERNATION_TOKEN";Bu.MODE={DATA:ri,RCDATA:_y,RAWTEXT:R2,SCRIPT_DATA:$h,PLAINTEXT:v5e};Bu.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 sI=Bu,rf={};const xN=rf.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/"};rf.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"};rf.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};const Rn=rf.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"};rf.SPECIAL_ELEMENTS={[xN.HTML]:{[Rn.ADDRESS]:!0,[Rn.APPLET]:!0,[Rn.AREA]:!0,[Rn.ARTICLE]:!0,[Rn.ASIDE]:!0,[Rn.BASE]:!0,[Rn.BASEFONT]:!0,[Rn.BGSOUND]:!0,[Rn.BLOCKQUOTE]:!0,[Rn.BODY]:!0,[Rn.BR]:!0,[Rn.BUTTON]:!0,[Rn.CAPTION]:!0,[Rn.CENTER]:!0,[Rn.COL]:!0,[Rn.COLGROUP]:!0,[Rn.DD]:!0,[Rn.DETAILS]:!0,[Rn.DIR]:!0,[Rn.DIV]:!0,[Rn.DL]:!0,[Rn.DT]:!0,[Rn.EMBED]:!0,[Rn.FIELDSET]:!0,[Rn.FIGCAPTION]:!0,[Rn.FIGURE]:!0,[Rn.FOOTER]:!0,[Rn.FORM]:!0,[Rn.FRAME]:!0,[Rn.FRAMESET]:!0,[Rn.H1]:!0,[Rn.H2]:!0,[Rn.H3]:!0,[Rn.H4]:!0,[Rn.H5]:!0,[Rn.H6]:!0,[Rn.HEAD]:!0,[Rn.HEADER]:!0,[Rn.HGROUP]:!0,[Rn.HR]:!0,[Rn.HTML]:!0,[Rn.IFRAME]:!0,[Rn.IMG]:!0,[Rn.INPUT]:!0,[Rn.LI]:!0,[Rn.LINK]:!0,[Rn.LISTING]:!0,[Rn.MAIN]:!0,[Rn.MARQUEE]:!0,[Rn.MENU]:!0,[Rn.META]:!0,[Rn.NAV]:!0,[Rn.NOEMBED]:!0,[Rn.NOFRAMES]:!0,[Rn.NOSCRIPT]:!0,[Rn.OBJECT]:!0,[Rn.OL]:!0,[Rn.P]:!0,[Rn.PARAM]:!0,[Rn.PLAINTEXT]:!0,[Rn.PRE]:!0,[Rn.SCRIPT]:!0,[Rn.SECTION]:!0,[Rn.SELECT]:!0,[Rn.SOURCE]:!0,[Rn.STYLE]:!0,[Rn.SUMMARY]:!0,[Rn.TABLE]:!0,[Rn.TBODY]:!0,[Rn.TD]:!0,[Rn.TEMPLATE]:!0,[Rn.TEXTAREA]:!0,[Rn.TFOOT]:!0,[Rn.TH]:!0,[Rn.THEAD]:!0,[Rn.TITLE]:!0,[Rn.TR]:!0,[Rn.TRACK]:!0,[Rn.UL]:!0,[Rn.WBR]:!0,[Rn.XMP]:!0},[xN.MATHML]:{[Rn.MI]:!0,[Rn.MO]:!0,[Rn.MN]:!0,[Rn.MS]:!0,[Rn.MTEXT]:!0,[Rn.ANNOTATION_XML]:!0},[xN.SVG]:{[Rn.TITLE]:!0,[Rn.FOREIGN_OBJECT]:!0,[Rn.DESC]:!0}};const S5e=rf,Fn=S5e.TAG_NAMES,Qi=S5e.NAMESPACES;function fle(e){switch(e.length){case 1:return e===Fn.P;case 2:return e===Fn.RB||e===Fn.RP||e===Fn.RT||e===Fn.DD||e===Fn.DT||e===Fn.LI;case 3:return e===Fn.RTC;case 6:return e===Fn.OPTION;case 8:return e===Fn.OPTGROUP}return!1}function NYt(e){switch(e.length){case 1:return e===Fn.P;case 2:return e===Fn.RB||e===Fn.RP||e===Fn.RT||e===Fn.DD||e===Fn.DT||e===Fn.LI||e===Fn.TD||e===Fn.TH||e===Fn.TR;case 3:return e===Fn.RTC;case 5:return e===Fn.TBODY||e===Fn.TFOOT||e===Fn.THEAD;case 6:return e===Fn.OPTION;case 7:return e===Fn.CAPTION;case 8:return e===Fn.OPTGROUP||e===Fn.COLGROUP}return!1}function B5(e,t){switch(e.length){case 2:if(e===Fn.TD||e===Fn.TH)return t===Qi.HTML;if(e===Fn.MI||e===Fn.MO||e===Fn.MN||e===Fn.MS)return t===Qi.MATHML;break;case 4:if(e===Fn.HTML)return t===Qi.HTML;if(e===Fn.DESC)return t===Qi.SVG;break;case 5:if(e===Fn.TABLE)return t===Qi.HTML;if(e===Fn.MTEXT)return t===Qi.MATHML;if(e===Fn.TITLE)return t===Qi.SVG;break;case 6:return(e===Fn.APPLET||e===Fn.OBJECT)&&t===Qi.HTML;case 7:return(e===Fn.CAPTION||e===Fn.MARQUEE)&&t===Qi.HTML;case 8:return e===Fn.TEMPLATE&&t===Qi.HTML;case 13:return e===Fn.FOREIGN_OBJECT&&t===Qi.SVG;case 14:return e===Fn.ANNOTATION_XML&&t===Qi.MATHML}return!1}let DYt=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===Fn.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Qi.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===Qi.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===Fn.H1||t===Fn.H2||t===Fn.H3||t===Fn.H4||t===Fn.H5||t===Fn.H6&&n===Qi.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===Fn.TD||t===Fn.TH&&n===Qi.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==Fn.TABLE&&this.currentTagName!==Fn.TEMPLATE&&this.currentTagName!==Fn.HTML||this.treeAdapter.getNamespaceURI(this.current)!==Qi.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==Fn.TBODY&&this.currentTagName!==Fn.TFOOT&&this.currentTagName!==Fn.THEAD&&this.currentTagName!==Fn.TEMPLATE&&this.currentTagName!==Fn.HTML||this.treeAdapter.getNamespaceURI(this.current)!==Qi.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==Fn.TR&&this.currentTagName!==Fn.TEMPLATE&&this.currentTagName!==Fn.HTML||this.treeAdapter.getNamespaceURI(this.current)!==Qi.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)===Fn.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===Fn.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===Qi.HTML)return!0;if(B5(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===Fn.H1||n===Fn.H2||n===Fn.H3||n===Fn.H4||n===Fn.H5||n===Fn.H6)&&r===Qi.HTML)return!0;if(B5(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===Qi.HTML)return!0;if((r===Fn.UL||r===Fn.OL)&&i===Qi.HTML||B5(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===Qi.HTML)return!0;if(r===Fn.BUTTON&&i===Qi.HTML||B5(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])===Qi.HTML){if(r===t)return!0;if(r===Fn.TABLE||r===Fn.TEMPLATE||r===Fn.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])===Qi.HTML){if(n===Fn.TBODY||n===Fn.THEAD||n===Fn.TFOOT)return!0;if(n===Fn.TABLE||n===Fn.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])===Qi.HTML){if(r===t)return!0;if(r!==Fn.OPTION&&r!==Fn.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;fle(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;NYt(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;fle(this.currentTagName)&&this.currentTagName!==t;)this.pop()}};var LYt=DYt;const H5=3;let Mq=class pm{constructor(t){this.length=0,this.entries=[],this.treeAdapter=t,this.bookmark=null}_getNoahArkConditionCandidates(t){const n=[];if(this.length>=H5){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 s=this.entries[a];if(s.type===pm.MARKER_ENTRY)break;const l=s.element,c=this.treeAdapter.getAttrList(l);this.treeAdapter.getTagName(l)===i&&this.treeAdapter.getNamespaceURI(l)===o&&c.length===r&&n.push({idx:a,attrs:c})}}return n.length<H5?[]: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 s=0;s<o;s++){const l=i[s];a[l.name]=l.value}for(let s=0;s<o;s++)for(let l=0;l<r;l++){const c=n[l].attrs[s];if(a[c.name]!==c.value&&(n.splice(l,1),r--),n.length<H5)return}for(let s=r-1;s>=H5-1;s--)this.entries.splice(n[s].idx,1),this.length--}}insertMarker(){this.entries.push({type:pm.MARKER_ENTRY}),this.length++}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.push({type:pm.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:pm.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===pm.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(t){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===pm.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===pm.ELEMENT_ENTRY&&r.element===t)return r}return null}};Mq.MARKER_ENTRY="MARKER_ENTRY";Mq.ELEMENT_ENTRY="ELEMENT_ENTRY";var FYt=Mq;let C5e=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")}};C5e.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 Np=C5e;const jYt=Np;let BYt=class extends jYt{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 x5e=BYt;const hle=Np,wN=sI,HYt=x5e;let zYt=class extends hle{constructor(t){super(t),this.tokenizer=t,this.posTracker=hle.install(t.preprocessor,HYt),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===wN.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(wN.MODE).forEach(i=>{const o=wN.MODE[i];r[o]=function(a){t.ctLoc=t._getCurrentLocation(),n[o].call(this,a)}}),r}};var w5e=zYt;const UYt=Np;let WYt=class extends UYt{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 VYt=WYt;const _N=Np,ple=sI,KYt=w5e,qYt=VYt,GYt=rf,EN=GYt.TAG_NAMES;let YYt=class extends _N{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===ple.END_TAG_TOKEN&&o===n.tagName,s={};a?(s.endTag=Object.assign({},i),s.endLine=i.endLine,s.endCol=i.endCol,s.endOffset=i.endOffset):(s.endLine=i.startLine,s.endCol=i.startCol,s.endOffset=i.startOffset),this.treeAdapter.updateNodeSourceCodeLocation(t,s)}}_getOverriddenMethods(t,n){return{_bootstrap(r,i){n._bootstrap.call(this,r,i),t.lastStartTagToken=null,t.lastFosterParentingLocation=null,t.currentToken=null;const o=_N.install(this.tokenizer,KYt);t.posTracker=o.posTracker,_N.install(this.openElements,qYt,{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===ple.END_TAG_TOKEN&&(r.tagName===EN.HTML||r.tagName===EN.BODY&&this.openElements.hasInScope(EN.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 s=i[a];if(this.treeAdapter.isDocumentTypeNode(s)){this.treeAdapter.setNodeSourceCodeLocation(s,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),s=i&&t.lastFosterParentingLocation.beforeElement?a.indexOf(t.lastFosterParentingLocation.beforeElement)-1:a.length-1,l=a[s];if(this.treeAdapter.getNodeSourceCodeLocation(l)){const{endLine:u,endCol:d,endOffset:h}=r.location;this.treeAdapter.updateNodeSourceCodeLocation(l,{endLine:u,endCol:d,endOffset:h})}else this.treeAdapter.setNodeSourceCodeLocation(l,r.location)}}}};var XYt=YYt;const QYt=Np;let ZYt=class extends QYt{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 Iq=ZYt;const JYt=Iq,eXt=x5e,tXt=Np;let nXt=class extends JYt{constructor(t,n){super(t,n),this.posTracker=tXt.install(t,eXt),this.lastErrOffset=-1}_reportError(t){this.lastErrOffset!==this.posTracker.offset&&(this.lastErrOffset=this.posTracker.offset,super._reportError(t))}};var rXt=nXt;const iXt=Iq,oXt=rXt,aXt=Np;let sXt=class extends iXt{constructor(t,n){super(t,n);const r=aXt.install(t.preprocessor,oXt,n);this.posTracker=r.posTracker}};var lXt=sXt;const cXt=Iq,uXt=lXt,dXt=w5e,mle=Np;let fXt=class extends cXt{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),mle.install(this.tokenizer,uXt,t.opts),mle.install(this.tokenizer,dXt)},_processInputToken(r){t.ctLoc=r.location,n._processInputToken.call(this,r)},_err(r,i){t.locBeforeToken=i&&i.beforeToken,t._reportError(r)}}}};var hXt=fXt,Ci={};const{DOCUMENT_MODE:pXt}=rf;Ci.createDocument=function(){return{nodeName:"#document",mode:pXt.NO_QUIRKS,childNodes:[]}};Ci.createDocumentFragment=function(){return{nodeName:"#document-fragment",childNodes:[]}};Ci.createElement=function(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}};Ci.createCommentNode=function(e){return{nodeName:"#comment",data:e,parentNode:null}};const _5e=function(e){return{nodeName:"#text",value:e,parentNode:null}},E5e=Ci.appendChild=function(e,t){e.childNodes.push(t),t.parentNode=e},mXt=Ci.insertBefore=function(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e};Ci.setTemplateContent=function(e,t){e.content=t};Ci.getTemplateContent=function(e){return e.content};Ci.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):E5e(e,{nodeName:"#documentType",name:t,publicId:n,systemId:r})};Ci.setDocumentMode=function(e,t){e.mode=t};Ci.getDocumentMode=function(e){return e.mode};Ci.detachNode=function(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}};Ci.insertText=function(e,t){if(e.childNodes.length){const n=e.childNodes[e.childNodes.length-1];if(n.nodeName==="#text"){n.value+=t;return}}E5e(e,_5e(t))};Ci.insertTextBefore=function(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&r.nodeName==="#text"?r.value+=t:mXt(e,_5e(t),n)};Ci.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])};Ci.getFirstChild=function(e){return e.childNodes[0]};Ci.getChildNodes=function(e){return e.childNodes};Ci.getParentNode=function(e){return e.parentNode};Ci.getAttrList=function(e){return e.attrs};Ci.getTagName=function(e){return e.tagName};Ci.getNamespaceURI=function(e){return e.namespaceURI};Ci.getTextNodeContent=function(e){return e.value};Ci.getCommentNodeContent=function(e){return e.data};Ci.getDocumentTypeNodeName=function(e){return e.name};Ci.getDocumentTypeNodePublicId=function(e){return e.publicId};Ci.getDocumentTypeNodeSystemId=function(e){return e.systemId};Ci.isTextNode=function(e){return e.nodeName==="#text"};Ci.isCommentNode=function(e){return e.nodeName==="#comment"};Ci.isDocumentTypeNode=function(e){return e.nodeName==="#documentType"};Ci.isElementNode=function(e){return!!e.tagName};Ci.setNodeSourceCodeLocation=function(e,t){e.sourceCodeLocation=t};Ci.getNodeSourceCodeLocation=function(e){return e.sourceCodeLocation};Ci.updateNodeSourceCodeLocation=function(e,t){e.sourceCodeLocation=Object.assign(e.sourceCodeLocation,t)};var gXt=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))},lI={};const{DOCUMENT_MODE:hy}=rf,T5e="html",vXt="about:legacy-compat",yXt="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",k5e=["+//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//"],bXt=k5e.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),SXt=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],O5e=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],CXt=O5e.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function gle(e){const t=e.indexOf('"')!==-1?"'":'"';return t+e+t}function vle(e,t){for(let n=0;n<t.length;n++)if(e.indexOf(t[n])===0)return!0;return!1}lI.isConforming=function(e){return e.name===T5e&&e.publicId===null&&(e.systemId===null||e.systemId===vXt)};lI.getDocumentMode=function(e){if(e.name!==T5e)return hy.QUIRKS;const t=e.systemId;if(t&&t.toLowerCase()===yXt)return hy.QUIRKS;let n=e.publicId;if(n!==null){if(n=n.toLowerCase(),SXt.indexOf(n)>-1)return hy.QUIRKS;let r=t===null?bXt:k5e;if(vle(n,r))return hy.QUIRKS;if(r=t===null?O5e:CXt,vle(n,r))return hy.LIMITED_QUIRKS}return hy.NO_QUIRKS};lI.serializeContent=function(e,t,n){let r="!DOCTYPE ";return e&&(r+=e),t?r+=" PUBLIC "+gle(t):n&&(r+=" SYSTEM"),n!==null&&(r+=" "+gle(n)),r};var Tg={};const TN=sI,$q=rf,_r=$q.TAG_NAMES,gs=$q.NAMESPACES,g8=$q.ATTRS,yle={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},xXt="definitionurl",wXt="definitionURL",_Xt={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"},EXt={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:gs.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:gs.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:gs.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:gs.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:gs.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:gs.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:gs.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:gs.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:gs.XML},"xml:space":{prefix:"xml",name:"space",namespace:gs.XML},xmlns:{prefix:"",name:"xmlns",namespace:gs.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:gs.XMLNS}},TXt=Tg.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"},kXt={[_r.B]:!0,[_r.BIG]:!0,[_r.BLOCKQUOTE]:!0,[_r.BODY]:!0,[_r.BR]:!0,[_r.CENTER]:!0,[_r.CODE]:!0,[_r.DD]:!0,[_r.DIV]:!0,[_r.DL]:!0,[_r.DT]:!0,[_r.EM]:!0,[_r.EMBED]:!0,[_r.H1]:!0,[_r.H2]:!0,[_r.H3]:!0,[_r.H4]:!0,[_r.H5]:!0,[_r.H6]:!0,[_r.HEAD]:!0,[_r.HR]:!0,[_r.I]:!0,[_r.IMG]:!0,[_r.LI]:!0,[_r.LISTING]:!0,[_r.MENU]:!0,[_r.META]:!0,[_r.NOBR]:!0,[_r.OL]:!0,[_r.P]:!0,[_r.PRE]:!0,[_r.RUBY]:!0,[_r.S]:!0,[_r.SMALL]:!0,[_r.SPAN]:!0,[_r.STRONG]:!0,[_r.STRIKE]:!0,[_r.SUB]:!0,[_r.SUP]:!0,[_r.TABLE]:!0,[_r.TT]:!0,[_r.U]:!0,[_r.UL]:!0,[_r.VAR]:!0};Tg.causesExit=function(e){const t=e.tagName;return t===_r.FONT&&(TN.getTokenAttr(e,g8.COLOR)!==null||TN.getTokenAttr(e,g8.SIZE)!==null||TN.getTokenAttr(e,g8.FACE)!==null)?!0:kXt[t]};Tg.adjustTokenMathMLAttrs=function(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===xXt){e.attrs[t].name=wXt;break}};Tg.adjustTokenSVGAttrs=function(e){for(let t=0;t<e.attrs.length;t++){const n=_Xt[e.attrs[t].name];n&&(e.attrs[t].name=n)}};Tg.adjustTokenXMLAttrs=function(e){for(let t=0;t<e.attrs.length;t++){const n=EXt[e.attrs[t].name];n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}};Tg.adjustTokenSVGTagName=function(e){const t=TXt[e.tagName];t&&(e.tagName=t)};function OXt(e,t){return t===gs.MATHML&&(e===_r.MI||e===_r.MO||e===_r.MN||e===_r.MS||e===_r.MTEXT)}function PXt(e,t,n){if(t===gs.MATHML&&e===_r.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===g8.ENCODING){const i=n[r].value.toLowerCase();return i===yle.TEXT_HTML||i===yle.APPLICATION_XML}}return t===gs.SVG&&(e===_r.FOREIGN_OBJECT||e===_r.DESC||e===_r.TITLE)}Tg.isIntegrationPoint=function(e,t,n,r){return!!((!r||r===gs.HTML)&&PXt(e,t,n)||(!r||r===gs.MATHML)&&OXt(e,t))};const ht=sI,MXt=LYt,ble=FYt,IXt=XYt,$Xt=hXt,Sle=Np,RXt=Ci,AXt=gXt,Cle=lI,Mf=Tg,Cs=Pq,NXt=nf,d0=rf,Me=d0.TAG_NAMES,sr=d0.NAMESPACES,P5e=d0.ATTRS,DXt={scriptingEnabled:!0,sourceCodeLocationInfo:!1,onParseError:null,treeAdapter:RXt},M5e="hidden",LXt=8,FXt=3,I5e="INITIAL_MODE",Rq="BEFORE_HTML_MODE",cI="BEFORE_HEAD_MODE",DC="IN_HEAD_MODE",$5e="IN_HEAD_NO_SCRIPT_MODE",uI="AFTER_HEAD_MODE",Wf="IN_BODY_MODE",jk="TEXT_MODE",Bs="IN_TABLE_MODE",R5e="IN_TABLE_TEXT_MODE",dI="IN_CAPTION_MODE",_4="IN_COLUMN_GROUP_MODE",xu="IN_TABLE_BODY_MODE",bp="IN_ROW_MODE",fI="IN_CELL_MODE",Aq="IN_SELECT_MODE",Nq="IN_SELECT_IN_TABLE_MODE",Bk="IN_TEMPLATE_MODE",Dq="AFTER_BODY_MODE",hI="IN_FRAMESET_MODE",A5e="AFTER_FRAMESET_MODE",N5e="AFTER_AFTER_BODY_MODE",D5e="AFTER_AFTER_FRAMESET_MODE",jXt={[Me.TR]:bp,[Me.TBODY]:xu,[Me.THEAD]:xu,[Me.TFOOT]:xu,[Me.CAPTION]:dI,[Me.COLGROUP]:_4,[Me.TABLE]:Bs,[Me.BODY]:Wf,[Me.FRAMESET]:hI},BXt={[Me.CAPTION]:Bs,[Me.COLGROUP]:Bs,[Me.TBODY]:Bs,[Me.TFOOT]:Bs,[Me.THEAD]:Bs,[Me.COL]:_4,[Me.TR]:xu,[Me.TD]:bp,[Me.TH]:bp},xle={[I5e]:{[ht.CHARACTER_TOKEN]:a2,[ht.NULL_CHARACTER_TOKEN]:a2,[ht.WHITESPACE_CHARACTER_TOKEN]:ci,[ht.COMMENT_TOKEN]:Fa,[ht.DOCTYPE_TOKEN]:XXt,[ht.START_TAG_TOKEN]:a2,[ht.END_TAG_TOKEN]:a2,[ht.EOF_TOKEN]:a2},[Rq]:{[ht.CHARACTER_TOKEN]:gw,[ht.NULL_CHARACTER_TOKEN]:gw,[ht.WHITESPACE_CHARACTER_TOKEN]:ci,[ht.COMMENT_TOKEN]:Fa,[ht.DOCTYPE_TOKEN]:ci,[ht.START_TAG_TOKEN]:QXt,[ht.END_TAG_TOKEN]:ZXt,[ht.EOF_TOKEN]:gw},[cI]:{[ht.CHARACTER_TOKEN]:vw,[ht.NULL_CHARACTER_TOKEN]:vw,[ht.WHITESPACE_CHARACTER_TOKEN]:ci,[ht.COMMENT_TOKEN]:Fa,[ht.DOCTYPE_TOKEN]:z5,[ht.START_TAG_TOKEN]:JXt,[ht.END_TAG_TOKEN]:eQt,[ht.EOF_TOKEN]:vw},[DC]:{[ht.CHARACTER_TOKEN]:yw,[ht.NULL_CHARACTER_TOKEN]:yw,[ht.WHITESPACE_CHARACTER_TOKEN]:Ol,[ht.COMMENT_TOKEN]:Fa,[ht.DOCTYPE_TOKEN]:z5,[ht.START_TAG_TOKEN]:rs,[ht.END_TAG_TOKEN]:f0,[ht.EOF_TOKEN]:yw},[$5e]:{[ht.CHARACTER_TOKEN]:bw,[ht.NULL_CHARACTER_TOKEN]:bw,[ht.WHITESPACE_CHARACTER_TOKEN]:Ol,[ht.COMMENT_TOKEN]:Fa,[ht.DOCTYPE_TOKEN]:z5,[ht.START_TAG_TOKEN]:tQt,[ht.END_TAG_TOKEN]:nQt,[ht.EOF_TOKEN]:bw},[uI]:{[ht.CHARACTER_TOKEN]:Sw,[ht.NULL_CHARACTER_TOKEN]:Sw,[ht.WHITESPACE_CHARACTER_TOKEN]:Ol,[ht.COMMENT_TOKEN]:Fa,[ht.DOCTYPE_TOKEN]:z5,[ht.START_TAG_TOKEN]:rQt,[ht.END_TAG_TOKEN]:iQt,[ht.EOF_TOKEN]:Sw},[Wf]:{[ht.CHARACTER_TOKEN]:U5,[ht.NULL_CHARACTER_TOKEN]:ci,[ht.WHITESPACE_CHARACTER_TOKEN]:e1,[ht.COMMENT_TOKEN]:Fa,[ht.DOCTYPE_TOKEN]:ci,[ht.START_TAG_TOKEN]:Zl,[ht.END_TAG_TOKEN]:Lq,[ht.EOF_TOKEN]:Eh},[jk]:{[ht.CHARACTER_TOKEN]:Ol,[ht.NULL_CHARACTER_TOKEN]:Ol,[ht.WHITESPACE_CHARACTER_TOKEN]:Ol,[ht.COMMENT_TOKEN]:ci,[ht.DOCTYPE_TOKEN]:ci,[ht.START_TAG_TOKEN]:ci,[ht.END_TAG_TOKEN]:NQt,[ht.EOF_TOKEN]:DQt},[Bs]:{[ht.CHARACTER_TOKEN]:Th,[ht.NULL_CHARACTER_TOKEN]:Th,[ht.WHITESPACE_CHARACTER_TOKEN]:Th,[ht.COMMENT_TOKEN]:Fa,[ht.DOCTYPE_TOKEN]:ci,[ht.START_TAG_TOKEN]:Fq,[ht.END_TAG_TOKEN]:jq,[ht.EOF_TOKEN]:Eh},[R5e]:{[ht.CHARACTER_TOKEN]:KQt,[ht.NULL_CHARACTER_TOKEN]:ci,[ht.WHITESPACE_CHARACTER_TOKEN]:VQt,[ht.COMMENT_TOKEN]:s2,[ht.DOCTYPE_TOKEN]:s2,[ht.START_TAG_TOKEN]:s2,[ht.END_TAG_TOKEN]:s2,[ht.EOF_TOKEN]:s2},[dI]:{[ht.CHARACTER_TOKEN]:U5,[ht.NULL_CHARACTER_TOKEN]:ci,[ht.WHITESPACE_CHARACTER_TOKEN]:e1,[ht.COMMENT_TOKEN]:Fa,[ht.DOCTYPE_TOKEN]:ci,[ht.START_TAG_TOKEN]:qQt,[ht.END_TAG_TOKEN]:GQt,[ht.EOF_TOKEN]:Eh},[_4]:{[ht.CHARACTER_TOKEN]:Hk,[ht.NULL_CHARACTER_TOKEN]:Hk,[ht.WHITESPACE_CHARACTER_TOKEN]:Ol,[ht.COMMENT_TOKEN]:Fa,[ht.DOCTYPE_TOKEN]:ci,[ht.START_TAG_TOKEN]:YQt,[ht.END_TAG_TOKEN]:XQt,[ht.EOF_TOKEN]:Eh},[xu]:{[ht.CHARACTER_TOKEN]:Th,[ht.NULL_CHARACTER_TOKEN]:Th,[ht.WHITESPACE_CHARACTER_TOKEN]:Th,[ht.COMMENT_TOKEN]:Fa,[ht.DOCTYPE_TOKEN]:ci,[ht.START_TAG_TOKEN]:QQt,[ht.END_TAG_TOKEN]:ZQt,[ht.EOF_TOKEN]:Eh},[bp]:{[ht.CHARACTER_TOKEN]:Th,[ht.NULL_CHARACTER_TOKEN]:Th,[ht.WHITESPACE_CHARACTER_TOKEN]:Th,[ht.COMMENT_TOKEN]:Fa,[ht.DOCTYPE_TOKEN]:ci,[ht.START_TAG_TOKEN]:JQt,[ht.END_TAG_TOKEN]:eZt,[ht.EOF_TOKEN]:Eh},[fI]:{[ht.CHARACTER_TOKEN]:U5,[ht.NULL_CHARACTER_TOKEN]:ci,[ht.WHITESPACE_CHARACTER_TOKEN]:e1,[ht.COMMENT_TOKEN]:Fa,[ht.DOCTYPE_TOKEN]:ci,[ht.START_TAG_TOKEN]:tZt,[ht.END_TAG_TOKEN]:nZt,[ht.EOF_TOKEN]:Eh},[Aq]:{[ht.CHARACTER_TOKEN]:Ol,[ht.NULL_CHARACTER_TOKEN]:ci,[ht.WHITESPACE_CHARACTER_TOKEN]:Ol,[ht.COMMENT_TOKEN]:Fa,[ht.DOCTYPE_TOKEN]:ci,[ht.START_TAG_TOKEN]:L5e,[ht.END_TAG_TOKEN]:F5e,[ht.EOF_TOKEN]:Eh},[Nq]:{[ht.CHARACTER_TOKEN]:Ol,[ht.NULL_CHARACTER_TOKEN]:ci,[ht.WHITESPACE_CHARACTER_TOKEN]:Ol,[ht.COMMENT_TOKEN]:Fa,[ht.DOCTYPE_TOKEN]:ci,[ht.START_TAG_TOKEN]:rZt,[ht.END_TAG_TOKEN]:iZt,[ht.EOF_TOKEN]:Eh},[Bk]:{[ht.CHARACTER_TOKEN]:U5,[ht.NULL_CHARACTER_TOKEN]:ci,[ht.WHITESPACE_CHARACTER_TOKEN]:e1,[ht.COMMENT_TOKEN]:Fa,[ht.DOCTYPE_TOKEN]:ci,[ht.START_TAG_TOKEN]:oZt,[ht.END_TAG_TOKEN]:aZt,[ht.EOF_TOKEN]:j5e},[Dq]:{[ht.CHARACTER_TOKEN]:zk,[ht.NULL_CHARACTER_TOKEN]:zk,[ht.WHITESPACE_CHARACTER_TOKEN]:e1,[ht.COMMENT_TOKEN]:YXt,[ht.DOCTYPE_TOKEN]:ci,[ht.START_TAG_TOKEN]:sZt,[ht.END_TAG_TOKEN]:lZt,[ht.EOF_TOKEN]:o2},[hI]:{[ht.CHARACTER_TOKEN]:ci,[ht.NULL_CHARACTER_TOKEN]:ci,[ht.WHITESPACE_CHARACTER_TOKEN]:Ol,[ht.COMMENT_TOKEN]:Fa,[ht.DOCTYPE_TOKEN]:ci,[ht.START_TAG_TOKEN]:cZt,[ht.END_TAG_TOKEN]:uZt,[ht.EOF_TOKEN]:o2},[A5e]:{[ht.CHARACTER_TOKEN]:ci,[ht.NULL_CHARACTER_TOKEN]:ci,[ht.WHITESPACE_CHARACTER_TOKEN]:Ol,[ht.COMMENT_TOKEN]:Fa,[ht.DOCTYPE_TOKEN]:ci,[ht.START_TAG_TOKEN]:dZt,[ht.END_TAG_TOKEN]:fZt,[ht.EOF_TOKEN]:o2},[N5e]:{[ht.CHARACTER_TOKEN]:v8,[ht.NULL_CHARACTER_TOKEN]:v8,[ht.WHITESPACE_CHARACTER_TOKEN]:e1,[ht.COMMENT_TOKEN]:wle,[ht.DOCTYPE_TOKEN]:ci,[ht.START_TAG_TOKEN]:hZt,[ht.END_TAG_TOKEN]:v8,[ht.EOF_TOKEN]:o2},[D5e]:{[ht.CHARACTER_TOKEN]:ci,[ht.NULL_CHARACTER_TOKEN]:ci,[ht.WHITESPACE_CHARACTER_TOKEN]:e1,[ht.COMMENT_TOKEN]:wle,[ht.DOCTYPE_TOKEN]:ci,[ht.START_TAG_TOKEN]:pZt,[ht.END_TAG_TOKEN]:ci,[ht.EOF_TOKEN]:o2}};let HXt=class{constructor(t){this.options=AXt(DXt,t),this.treeAdapter=this.options.treeAdapter,this.pendingScript=null,this.options.sourceCodeLocationInfo&&Sle.install(this,IXt),this.options.onParseError&&Sle.install(this,$Xt,{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(Me.TEMPLATE,sr.HTML,[]));const r=this.treeAdapter.createElement("documentmock",sr.HTML,[]);this._bootstrap(r,n),this.treeAdapter.getTagName(n)===Me.TEMPLATE&&this._pushTmplInsertionMode(Bk),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 ht(this.options),this.stopped=!1,this.insertionMode=I5e,this.originalInsertionMode="",this.document=t,this.fragmentContext=n,this.headElement=null,this.formElement=null,this.openElements=new MXt(this.document,this.treeAdapter),this.activeFormattingElements=new ble(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===ht.HIBERNATION_TOKEN)break;if(this.skipNextNewLine&&(this.skipNextNewLine=!1,n.type===ht.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)!==sr.HTML&&!this._isIntegrationPoint(t)}_switchToTextParsing(t,n){this._insertElement(t,sr.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=jk}switchToPlaintextParsing(){this.insertionMode=jk,this.originalInsertionMode=Wf,this.tokenizer.state=ht.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)===Me.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}while(t)}_initTokenizerForFragmentParsing(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===sr.HTML){const t=this.treeAdapter.getTagName(this.fragmentContext);t===Me.TITLE||t===Me.TEXTAREA?this.tokenizer.state=ht.MODE.RCDATA:t===Me.STYLE||t===Me.XMP||t===Me.IFRAME||t===Me.NOEMBED||t===Me.NOFRAMES||t===Me.NOSCRIPT?this.tokenizer.state=ht.MODE.RAWTEXT:t===Me.SCRIPT?this.tokenizer.state=ht.MODE.SCRIPT_DATA:t===Me.PLAINTEXT&&(this.tokenizer.state=ht.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,sr.HTML,[]);this._attachElementToTree(n),this.openElements.push(n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,sr.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(Me.HTML,sr.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===sr.HTML||this.treeAdapter.getTagName(n)===Me.ANNOTATION_XML&&r===sr.MATHML&&t.type===ht.START_TAG_TOKEN&&t.tagName===Me.SVG)return!1;const i=t.type===ht.CHARACTER_TOKEN||t.type===ht.NULL_CHARACTER_TOKEN||t.type===ht.WHITESPACE_CHARACTER_TOKEN;return(t.type===ht.START_TAG_TOKEN&&t.tagName!==Me.MGLYPH&&t.tagName!==Me.MALIGNMARK||i)&&this._isIntegrationPoint(n,sr.MATHML)||(t.type===ht.START_TAG_TOKEN||i)&&this._isIntegrationPoint(n,sr.HTML)?!1:t.type!==ht.EOF_TOKEN}_processToken(t){xle[this.insertionMode][t.type](this,t)}_processTokenInBodyMode(t){xle[Wf][t.type](this,t)}_processTokenInForeignContent(t){t.type===ht.CHARACTER_TOKEN?gZt(this,t):t.type===ht.NULL_CHARACTER_TOKEN?mZt(this,t):t.type===ht.WHITESPACE_CHARACTER_TOKEN?Ol(this,t):t.type===ht.COMMENT_TOKEN?Fa(this,t):t.type===ht.START_TAG_TOKEN?vZt(this,t):t.type===ht.END_TAG_TOKEN&&yZt(this,t)}_processInputToken(t){this._shouldProcessTokenInForeignContent(t)?this._processTokenInForeignContent(t):this._processToken(t),t.type===ht.START_TAG_TOKEN&&t.selfClosing&&!t.ackSelfClosing&&this._err(Cs.nonVoidHtmlElementStartTagWithTrailingSolidus)}_isIntegrationPoint(t,n){const r=this.treeAdapter.getTagName(t),i=this.treeAdapter.getNamespaceURI(t),o=this.treeAdapter.getAttrList(t);return Mf.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===ble.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=bp}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(Me.P),this.openElements.popUntilTagNamePopped(Me.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=jXt[i];if(o){this.insertionMode=o;break}else if(!n&&(i===Me.TD||i===Me.TH)){this.insertionMode=fI;break}else if(!n&&i===Me.HEAD){this.insertionMode=DC;break}else if(i===Me.SELECT){this._resetInsertionModeForSelect(t);break}else if(i===Me.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}else if(i===Me.HTML){this.insertionMode=this.headElement?uI:cI;break}else if(n){this.insertionMode=Wf;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===Me.TEMPLATE)break;if(i===Me.TABLE){this.insertionMode=Nq;return}}this.insertionMode=Aq}_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===Me.TABLE||n===Me.TBODY||n===Me.TFOOT||n===Me.THEAD||n===Me.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===Me.TEMPLATE&&o===sr.HTML){t.parent=this.treeAdapter.getTemplateContent(r);break}else if(i===Me.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 d0.SPECIAL_ELEMENTS[r][n]}};var zXt=HXt;function UXt(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):ad(e,t),n}function WXt(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 VXt(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 s=e.activeFormattingElements.getElementEntry(a),l=s&&o>=FXt;!s||l?(l&&e.activeFormattingElements.removeEntry(s),e.openElements.remove(a)):(a=KXt(e,s),r===t&&(e.activeFormattingElements.bookmark=s),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(a,r),r=a)}return r}function KXt(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 qXt(e,t,n){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(n);else{const r=e.treeAdapter.getTagName(t),i=e.treeAdapter.getNamespaceURI(t);r===Me.TEMPLATE&&i===sr.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function GXt(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 Sm(e,t){let n;for(let r=0;r<LXt&&(n=UXt(e,t),!!n);r++){const i=WXt(e,n);if(!i)break;e.activeFormattingElements.bookmark=n;const o=VXt(e,i,n.element),a=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(o),qXt(e,a,o),GXt(e,i,n)}}function ci(){}function z5(e){e._err(Cs.misplacedDoctype)}function Fa(e,t){e._appendCommentNode(t,e.openElements.currentTmplContent||e.openElements.current)}function YXt(e,t){e._appendCommentNode(t,e.openElements.items[0])}function wle(e,t){e._appendCommentNode(t,e.document)}function Ol(e,t){e._insertCharacters(t)}function o2(e){e.stopped=!0}function XXt(e,t){e._setDocumentType(t);const n=t.forceQuirks?d0.DOCUMENT_MODE.QUIRKS:Cle.getDocumentMode(t);Cle.isConforming(t)||e._err(Cs.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=Rq}function a2(e,t){e._err(Cs.missingDoctype,{beforeToken:!0}),e.treeAdapter.setDocumentMode(e.document,d0.DOCUMENT_MODE.QUIRKS),e.insertionMode=Rq,e._processToken(t)}function QXt(e,t){t.tagName===Me.HTML?(e._insertElement(t,sr.HTML),e.insertionMode=cI):gw(e,t)}function ZXt(e,t){const n=t.tagName;(n===Me.HTML||n===Me.HEAD||n===Me.BODY||n===Me.BR)&&gw(e,t)}function gw(e,t){e._insertFakeRootElement(),e.insertionMode=cI,e._processToken(t)}function JXt(e,t){const n=t.tagName;n===Me.HTML?Zl(e,t):n===Me.HEAD?(e._insertElement(t,sr.HTML),e.headElement=e.openElements.current,e.insertionMode=DC):vw(e,t)}function eQt(e,t){const n=t.tagName;n===Me.HEAD||n===Me.BODY||n===Me.HTML||n===Me.BR?vw(e,t):e._err(Cs.endTagWithoutMatchingOpenElement)}function vw(e,t){e._insertFakeElement(Me.HEAD),e.headElement=e.openElements.current,e.insertionMode=DC,e._processToken(t)}function rs(e,t){const n=t.tagName;n===Me.HTML?Zl(e,t):n===Me.BASE||n===Me.BASEFONT||n===Me.BGSOUND||n===Me.LINK||n===Me.META?(e._appendElement(t,sr.HTML),t.ackSelfClosing=!0):n===Me.TITLE?e._switchToTextParsing(t,ht.MODE.RCDATA):n===Me.NOSCRIPT?e.options.scriptingEnabled?e._switchToTextParsing(t,ht.MODE.RAWTEXT):(e._insertElement(t,sr.HTML),e.insertionMode=$5e):n===Me.NOFRAMES||n===Me.STYLE?e._switchToTextParsing(t,ht.MODE.RAWTEXT):n===Me.SCRIPT?e._switchToTextParsing(t,ht.MODE.SCRIPT_DATA):n===Me.TEMPLATE?(e._insertTemplate(t,sr.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=Bk,e._pushTmplInsertionMode(Bk)):n===Me.HEAD?e._err(Cs.misplacedStartTagForHeadElement):yw(e,t)}function f0(e,t){const n=t.tagName;n===Me.HEAD?(e.openElements.pop(),e.insertionMode=uI):n===Me.BODY||n===Me.BR||n===Me.HTML?yw(e,t):n===Me.TEMPLATE&&e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagName!==Me.TEMPLATE&&e._err(Cs.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(Me.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode()):e._err(Cs.endTagWithoutMatchingOpenElement)}function yw(e,t){e.openElements.pop(),e.insertionMode=uI,e._processToken(t)}function tQt(e,t){const n=t.tagName;n===Me.HTML?Zl(e,t):n===Me.BASEFONT||n===Me.BGSOUND||n===Me.HEAD||n===Me.LINK||n===Me.META||n===Me.NOFRAMES||n===Me.STYLE?rs(e,t):n===Me.NOSCRIPT?e._err(Cs.nestedNoscriptInHead):bw(e,t)}function nQt(e,t){const n=t.tagName;n===Me.NOSCRIPT?(e.openElements.pop(),e.insertionMode=DC):n===Me.BR?bw(e,t):e._err(Cs.endTagWithoutMatchingOpenElement)}function bw(e,t){const n=t.type===ht.EOF_TOKEN?Cs.openElementsLeftAfterEof:Cs.disallowedContentInNoscriptInHead;e._err(n),e.openElements.pop(),e.insertionMode=DC,e._processToken(t)}function rQt(e,t){const n=t.tagName;n===Me.HTML?Zl(e,t):n===Me.BODY?(e._insertElement(t,sr.HTML),e.framesetOk=!1,e.insertionMode=Wf):n===Me.FRAMESET?(e._insertElement(t,sr.HTML),e.insertionMode=hI):n===Me.BASE||n===Me.BASEFONT||n===Me.BGSOUND||n===Me.LINK||n===Me.META||n===Me.NOFRAMES||n===Me.SCRIPT||n===Me.STYLE||n===Me.TEMPLATE||n===Me.TITLE?(e._err(Cs.abandonedHeadElementChild),e.openElements.push(e.headElement),rs(e,t),e.openElements.remove(e.headElement)):n===Me.HEAD?e._err(Cs.misplacedStartTagForHeadElement):Sw(e,t)}function iQt(e,t){const n=t.tagName;n===Me.BODY||n===Me.HTML||n===Me.BR?Sw(e,t):n===Me.TEMPLATE?f0(e,t):e._err(Cs.endTagWithoutMatchingOpenElement)}function Sw(e,t){e._insertFakeElement(Me.BODY),e.insertionMode=Wf,e._processToken(t)}function e1(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function U5(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function oQt(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function aQt(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function sQt(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,sr.HTML),e.insertionMode=hI)}function _h(e,t){e.openElements.hasInButtonScope(Me.P)&&e._closePElement(),e._insertElement(t,sr.HTML)}function lQt(e,t){e.openElements.hasInButtonScope(Me.P)&&e._closePElement();const n=e.openElements.currentTagName;(n===Me.H1||n===Me.H2||n===Me.H3||n===Me.H4||n===Me.H5||n===Me.H6)&&e.openElements.pop(),e._insertElement(t,sr.HTML)}function _le(e,t){e.openElements.hasInButtonScope(Me.P)&&e._closePElement(),e._insertElement(t,sr.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function cQt(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(Me.P)&&e._closePElement(),e._insertElement(t,sr.HTML),n||(e.formElement=e.openElements.current))}function uQt(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===Me.LI&&o===Me.LI?a=Me.LI:(n===Me.DD||n===Me.DT)&&(o===Me.DD||o===Me.DT)&&(a=o),a){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(o!==Me.ADDRESS&&o!==Me.DIV&&o!==Me.P&&e._isSpecialElement(i))break}e.openElements.hasInButtonScope(Me.P)&&e._closePElement(),e._insertElement(t,sr.HTML)}function dQt(e,t){e.openElements.hasInButtonScope(Me.P)&&e._closePElement(),e._insertElement(t,sr.HTML),e.tokenizer.state=ht.MODE.PLAINTEXT}function fQt(e,t){e.openElements.hasInScope(Me.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(Me.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,sr.HTML),e.framesetOk=!1}function hQt(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(Me.A);n&&(Sm(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,sr.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function py(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,sr.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function pQt(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(Me.NOBR)&&(Sm(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,sr.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Ele(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,sr.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function mQt(e,t){e.treeAdapter.getDocumentMode(e.document)!==d0.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(Me.P)&&e._closePElement(),e._insertElement(t,sr.HTML),e.framesetOk=!1,e.insertionMode=Bs}function Ey(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,sr.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function gQt(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,sr.HTML);const n=ht.getTokenAttr(t,P5e.TYPE);(!n||n.toLowerCase()!==M5e)&&(e.framesetOk=!1),t.ackSelfClosing=!0}function Tle(e,t){e._appendElement(t,sr.HTML),t.ackSelfClosing=!0}function vQt(e,t){e.openElements.hasInButtonScope(Me.P)&&e._closePElement(),e._appendElement(t,sr.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function yQt(e,t){t.tagName=Me.IMG,Ey(e,t)}function bQt(e,t){e._insertElement(t,sr.HTML),e.skipNextNewLine=!0,e.tokenizer.state=ht.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=jk}function SQt(e,t){e.openElements.hasInButtonScope(Me.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,ht.MODE.RAWTEXT)}function CQt(e,t){e.framesetOk=!1,e._switchToTextParsing(t,ht.MODE.RAWTEXT)}function kle(e,t){e._switchToTextParsing(t,ht.MODE.RAWTEXT)}function xQt(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,sr.HTML),e.framesetOk=!1,e.insertionMode===Bs||e.insertionMode===dI||e.insertionMode===xu||e.insertionMode===bp||e.insertionMode===fI?e.insertionMode=Nq:e.insertionMode=Aq}function Ole(e,t){e.openElements.currentTagName===Me.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,sr.HTML)}function Ple(e,t){e.openElements.hasInScope(Me.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,sr.HTML)}function wQt(e,t){e.openElements.hasInScope(Me.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(Me.RTC),e._insertElement(t,sr.HTML)}function _Qt(e,t){e.openElements.hasInButtonScope(Me.P)&&e._closePElement(),e._insertElement(t,sr.HTML)}function EQt(e,t){e._reconstructActiveFormattingElements(),Mf.adjustTokenMathMLAttrs(t),Mf.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,sr.MATHML):e._insertElement(t,sr.MATHML),t.ackSelfClosing=!0}function TQt(e,t){e._reconstructActiveFormattingElements(),Mf.adjustTokenSVGAttrs(t),Mf.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,sr.SVG):e._insertElement(t,sr.SVG),t.ackSelfClosing=!0}function nu(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,sr.HTML)}function Zl(e,t){const n=t.tagName;switch(n.length){case 1:n===Me.I||n===Me.S||n===Me.B||n===Me.U?py(e,t):n===Me.P?_h(e,t):n===Me.A?hQt(e,t):nu(e,t);break;case 2:n===Me.DL||n===Me.OL||n===Me.UL?_h(e,t):n===Me.H1||n===Me.H2||n===Me.H3||n===Me.H4||n===Me.H5||n===Me.H6?lQt(e,t):n===Me.LI||n===Me.DD||n===Me.DT?uQt(e,t):n===Me.EM||n===Me.TT?py(e,t):n===Me.BR?Ey(e,t):n===Me.HR?vQt(e,t):n===Me.RB?Ple(e,t):n===Me.RT||n===Me.RP?wQt(e,t):n!==Me.TH&&n!==Me.TD&&n!==Me.TR&&nu(e,t);break;case 3:n===Me.DIV||n===Me.DIR||n===Me.NAV?_h(e,t):n===Me.PRE?_le(e,t):n===Me.BIG?py(e,t):n===Me.IMG||n===Me.WBR?Ey(e,t):n===Me.XMP?SQt(e,t):n===Me.SVG?TQt(e,t):n===Me.RTC?Ple(e,t):n!==Me.COL&&nu(e,t);break;case 4:n===Me.HTML?oQt(e,t):n===Me.BASE||n===Me.LINK||n===Me.META?rs(e,t):n===Me.BODY?aQt(e,t):n===Me.MAIN||n===Me.MENU?_h(e,t):n===Me.FORM?cQt(e,t):n===Me.CODE||n===Me.FONT?py(e,t):n===Me.NOBR?pQt(e,t):n===Me.AREA?Ey(e,t):n===Me.MATH?EQt(e,t):n===Me.MENU?_Qt(e,t):n!==Me.HEAD&&nu(e,t);break;case 5:n===Me.STYLE||n===Me.TITLE?rs(e,t):n===Me.ASIDE?_h(e,t):n===Me.SMALL?py(e,t):n===Me.TABLE?mQt(e,t):n===Me.EMBED?Ey(e,t):n===Me.INPUT?gQt(e,t):n===Me.PARAM||n===Me.TRACK?Tle(e,t):n===Me.IMAGE?yQt(e,t):n!==Me.FRAME&&n!==Me.TBODY&&n!==Me.TFOOT&&n!==Me.THEAD&&nu(e,t);break;case 6:n===Me.SCRIPT?rs(e,t):n===Me.CENTER||n===Me.FIGURE||n===Me.FOOTER||n===Me.HEADER||n===Me.HGROUP||n===Me.DIALOG?_h(e,t):n===Me.BUTTON?fQt(e,t):n===Me.STRIKE||n===Me.STRONG?py(e,t):n===Me.APPLET||n===Me.OBJECT?Ele(e,t):n===Me.KEYGEN?Ey(e,t):n===Me.SOURCE?Tle(e,t):n===Me.IFRAME?CQt(e,t):n===Me.SELECT?xQt(e,t):n===Me.OPTION?Ole(e,t):nu(e,t);break;case 7:n===Me.BGSOUND?rs(e,t):n===Me.DETAILS||n===Me.ADDRESS||n===Me.ARTICLE||n===Me.SECTION||n===Me.SUMMARY?_h(e,t):n===Me.LISTING?_le(e,t):n===Me.MARQUEE?Ele(e,t):n===Me.NOEMBED?kle(e,t):n!==Me.CAPTION&&nu(e,t);break;case 8:n===Me.BASEFONT?rs(e,t):n===Me.FRAMESET?sQt(e,t):n===Me.FIELDSET?_h(e,t):n===Me.TEXTAREA?bQt(e,t):n===Me.TEMPLATE?rs(e,t):n===Me.NOSCRIPT?e.options.scriptingEnabled?kle(e,t):nu(e,t):n===Me.OPTGROUP?Ole(e,t):n!==Me.COLGROUP&&nu(e,t);break;case 9:n===Me.PLAINTEXT?dQt(e,t):nu(e,t);break;case 10:n===Me.BLOCKQUOTE||n===Me.FIGCAPTION?_h(e,t):nu(e,t);break;default:nu(e,t)}}function kQt(e){e.openElements.hasInScope(Me.BODY)&&(e.insertionMode=Dq)}function OQt(e,t){e.openElements.hasInScope(Me.BODY)&&(e.insertionMode=Dq,e._processToken(t))}function em(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function PQt(e){const t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(Me.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(Me.FORM):e.openElements.remove(n))}function MQt(e){e.openElements.hasInButtonScope(Me.P)||e._insertFakeElement(Me.P),e._closePElement()}function IQt(e){e.openElements.hasInListItemScope(Me.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(Me.LI),e.openElements.popUntilTagNamePopped(Me.LI))}function $Qt(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function RQt(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function Mle(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function AQt(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(Me.BR),e.openElements.pop(),e.framesetOk=!1}function ad(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 Lq(e,t){const n=t.tagName;switch(n.length){case 1:n===Me.A||n===Me.B||n===Me.I||n===Me.S||n===Me.U?Sm(e,t):n===Me.P?MQt(e):ad(e,t);break;case 2:n===Me.DL||n===Me.UL||n===Me.OL?em(e,t):n===Me.LI?IQt(e):n===Me.DD||n===Me.DT?$Qt(e,t):n===Me.H1||n===Me.H2||n===Me.H3||n===Me.H4||n===Me.H5||n===Me.H6?RQt(e):n===Me.BR?AQt(e):n===Me.EM||n===Me.TT?Sm(e,t):ad(e,t);break;case 3:n===Me.BIG?Sm(e,t):n===Me.DIR||n===Me.DIV||n===Me.NAV||n===Me.PRE?em(e,t):ad(e,t);break;case 4:n===Me.BODY?kQt(e):n===Me.HTML?OQt(e,t):n===Me.FORM?PQt(e):n===Me.CODE||n===Me.FONT||n===Me.NOBR?Sm(e,t):n===Me.MAIN||n===Me.MENU?em(e,t):ad(e,t);break;case 5:n===Me.ASIDE?em(e,t):n===Me.SMALL?Sm(e,t):ad(e,t);break;case 6:n===Me.CENTER||n===Me.FIGURE||n===Me.FOOTER||n===Me.HEADER||n===Me.HGROUP||n===Me.DIALOG?em(e,t):n===Me.APPLET||n===Me.OBJECT?Mle(e,t):n===Me.STRIKE||n===Me.STRONG?Sm(e,t):ad(e,t);break;case 7:n===Me.ADDRESS||n===Me.ARTICLE||n===Me.DETAILS||n===Me.SECTION||n===Me.SUMMARY||n===Me.LISTING?em(e,t):n===Me.MARQUEE?Mle(e,t):ad(e,t);break;case 8:n===Me.FIELDSET?em(e,t):n===Me.TEMPLATE?f0(e,t):ad(e,t);break;case 10:n===Me.BLOCKQUOTE||n===Me.FIGCAPTION?em(e,t):ad(e,t);break;default:ad(e,t)}}function Eh(e,t){e.tmplInsertionModeStackTop>-1?j5e(e,t):e.stopped=!0}function NQt(e,t){t.tagName===Me.SCRIPT&&(e.pendingScript=e.openElements.current),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function DQt(e,t){e._err(Cs.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}function Th(e,t){const n=e.openElements.currentTagName;n===Me.TABLE||n===Me.TBODY||n===Me.TFOOT||n===Me.THEAD||n===Me.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=R5e,e._processToken(t)):lu(e,t)}function LQt(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,sr.HTML),e.insertionMode=dI}function FQt(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,sr.HTML),e.insertionMode=_4}function jQt(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Me.COLGROUP),e.insertionMode=_4,e._processToken(t)}function BQt(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,sr.HTML),e.insertionMode=xu}function HQt(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Me.TBODY),e.insertionMode=xu,e._processToken(t)}function zQt(e,t){e.openElements.hasInTableScope(Me.TABLE)&&(e.openElements.popUntilTagNamePopped(Me.TABLE),e._resetInsertionMode(),e._processToken(t))}function UQt(e,t){const n=ht.getTokenAttr(t,P5e.TYPE);n&&n.toLowerCase()===M5e?e._appendElement(t,sr.HTML):lu(e,t),t.ackSelfClosing=!0}function WQt(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,sr.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Fq(e,t){const n=t.tagName;switch(n.length){case 2:n===Me.TD||n===Me.TH||n===Me.TR?HQt(e,t):lu(e,t);break;case 3:n===Me.COL?jQt(e,t):lu(e,t);break;case 4:n===Me.FORM?WQt(e,t):lu(e,t);break;case 5:n===Me.TABLE?zQt(e,t):n===Me.STYLE?rs(e,t):n===Me.TBODY||n===Me.TFOOT||n===Me.THEAD?BQt(e,t):n===Me.INPUT?UQt(e,t):lu(e,t);break;case 6:n===Me.SCRIPT?rs(e,t):lu(e,t);break;case 7:n===Me.CAPTION?LQt(e,t):lu(e,t);break;case 8:n===Me.COLGROUP?FQt(e,t):n===Me.TEMPLATE?rs(e,t):lu(e,t);break;default:lu(e,t)}}function jq(e,t){const n=t.tagName;n===Me.TABLE?e.openElements.hasInTableScope(Me.TABLE)&&(e.openElements.popUntilTagNamePopped(Me.TABLE),e._resetInsertionMode()):n===Me.TEMPLATE?f0(e,t):n!==Me.BODY&&n!==Me.CAPTION&&n!==Me.COL&&n!==Me.COLGROUP&&n!==Me.HTML&&n!==Me.TBODY&&n!==Me.TD&&n!==Me.TFOOT&&n!==Me.TH&&n!==Me.THEAD&&n!==Me.TR&&lu(e,t)}function lu(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=n}function VQt(e,t){e.pendingCharacterTokens.push(t)}function KQt(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function s2(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)lu(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}function qQt(e,t){const n=t.tagName;n===Me.CAPTION||n===Me.COL||n===Me.COLGROUP||n===Me.TBODY||n===Me.TD||n===Me.TFOOT||n===Me.TH||n===Me.THEAD||n===Me.TR?e.openElements.hasInTableScope(Me.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(Me.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Bs,e._processToken(t)):Zl(e,t)}function GQt(e,t){const n=t.tagName;n===Me.CAPTION||n===Me.TABLE?e.openElements.hasInTableScope(Me.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(Me.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Bs,n===Me.TABLE&&e._processToken(t)):n!==Me.BODY&&n!==Me.COL&&n!==Me.COLGROUP&&n!==Me.HTML&&n!==Me.TBODY&&n!==Me.TD&&n!==Me.TFOOT&&n!==Me.TH&&n!==Me.THEAD&&n!==Me.TR&&Lq(e,t)}function YQt(e,t){const n=t.tagName;n===Me.HTML?Zl(e,t):n===Me.COL?(e._appendElement(t,sr.HTML),t.ackSelfClosing=!0):n===Me.TEMPLATE?rs(e,t):Hk(e,t)}function XQt(e,t){const n=t.tagName;n===Me.COLGROUP?e.openElements.currentTagName===Me.COLGROUP&&(e.openElements.pop(),e.insertionMode=Bs):n===Me.TEMPLATE?f0(e,t):n!==Me.COL&&Hk(e,t)}function Hk(e,t){e.openElements.currentTagName===Me.COLGROUP&&(e.openElements.pop(),e.insertionMode=Bs,e._processToken(t))}function QQt(e,t){const n=t.tagName;n===Me.TR?(e.openElements.clearBackToTableBodyContext(),e._insertElement(t,sr.HTML),e.insertionMode=bp):n===Me.TH||n===Me.TD?(e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(Me.TR),e.insertionMode=bp,e._processToken(t)):n===Me.CAPTION||n===Me.COL||n===Me.COLGROUP||n===Me.TBODY||n===Me.TFOOT||n===Me.THEAD?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Bs,e._processToken(t)):Fq(e,t)}function ZQt(e,t){const n=t.tagName;n===Me.TBODY||n===Me.TFOOT||n===Me.THEAD?e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Bs):n===Me.TABLE?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Bs,e._processToken(t)):(n!==Me.BODY&&n!==Me.CAPTION&&n!==Me.COL&&n!==Me.COLGROUP||n!==Me.HTML&&n!==Me.TD&&n!==Me.TH&&n!==Me.TR)&&jq(e,t)}function JQt(e,t){const n=t.tagName;n===Me.TH||n===Me.TD?(e.openElements.clearBackToTableRowContext(),e._insertElement(t,sr.HTML),e.insertionMode=fI,e.activeFormattingElements.insertMarker()):n===Me.CAPTION||n===Me.COL||n===Me.COLGROUP||n===Me.TBODY||n===Me.TFOOT||n===Me.THEAD||n===Me.TR?e.openElements.hasInTableScope(Me.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=xu,e._processToken(t)):Fq(e,t)}function eZt(e,t){const n=t.tagName;n===Me.TR?e.openElements.hasInTableScope(Me.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=xu):n===Me.TABLE?e.openElements.hasInTableScope(Me.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=xu,e._processToken(t)):n===Me.TBODY||n===Me.TFOOT||n===Me.THEAD?(e.openElements.hasInTableScope(n)||e.openElements.hasInTableScope(Me.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=xu,e._processToken(t)):(n!==Me.BODY&&n!==Me.CAPTION&&n!==Me.COL&&n!==Me.COLGROUP||n!==Me.HTML&&n!==Me.TD&&n!==Me.TH)&&jq(e,t)}function tZt(e,t){const n=t.tagName;n===Me.CAPTION||n===Me.COL||n===Me.COLGROUP||n===Me.TBODY||n===Me.TD||n===Me.TFOOT||n===Me.TH||n===Me.THEAD||n===Me.TR?(e.openElements.hasInTableScope(Me.TD)||e.openElements.hasInTableScope(Me.TH))&&(e._closeTableCell(),e._processToken(t)):Zl(e,t)}function nZt(e,t){const n=t.tagName;n===Me.TD||n===Me.TH?e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=bp):n===Me.TABLE||n===Me.TBODY||n===Me.TFOOT||n===Me.THEAD||n===Me.TR?e.openElements.hasInTableScope(n)&&(e._closeTableCell(),e._processToken(t)):n!==Me.BODY&&n!==Me.CAPTION&&n!==Me.COL&&n!==Me.COLGROUP&&n!==Me.HTML&&Lq(e,t)}function L5e(e,t){const n=t.tagName;n===Me.HTML?Zl(e,t):n===Me.OPTION?(e.openElements.currentTagName===Me.OPTION&&e.openElements.pop(),e._insertElement(t,sr.HTML)):n===Me.OPTGROUP?(e.openElements.currentTagName===Me.OPTION&&e.openElements.pop(),e.openElements.currentTagName===Me.OPTGROUP&&e.openElements.pop(),e._insertElement(t,sr.HTML)):n===Me.INPUT||n===Me.KEYGEN||n===Me.TEXTAREA||n===Me.SELECT?e.openElements.hasInSelectScope(Me.SELECT)&&(e.openElements.popUntilTagNamePopped(Me.SELECT),e._resetInsertionMode(),n!==Me.SELECT&&e._processToken(t)):(n===Me.SCRIPT||n===Me.TEMPLATE)&&rs(e,t)}function F5e(e,t){const n=t.tagName;if(n===Me.OPTGROUP){const r=e.openElements.items[e.openElements.stackTop-1],i=r&&e.treeAdapter.getTagName(r);e.openElements.currentTagName===Me.OPTION&&i===Me.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagName===Me.OPTGROUP&&e.openElements.pop()}else n===Me.OPTION?e.openElements.currentTagName===Me.OPTION&&e.openElements.pop():n===Me.SELECT&&e.openElements.hasInSelectScope(Me.SELECT)?(e.openElements.popUntilTagNamePopped(Me.SELECT),e._resetInsertionMode()):n===Me.TEMPLATE&&f0(e,t)}function rZt(e,t){const n=t.tagName;n===Me.CAPTION||n===Me.TABLE||n===Me.TBODY||n===Me.TFOOT||n===Me.THEAD||n===Me.TR||n===Me.TD||n===Me.TH?(e.openElements.popUntilTagNamePopped(Me.SELECT),e._resetInsertionMode(),e._processToken(t)):L5e(e,t)}function iZt(e,t){const n=t.tagName;n===Me.CAPTION||n===Me.TABLE||n===Me.TBODY||n===Me.TFOOT||n===Me.THEAD||n===Me.TR||n===Me.TD||n===Me.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(Me.SELECT),e._resetInsertionMode(),e._processToken(t)):F5e(e,t)}function oZt(e,t){const n=t.tagName;if(n===Me.BASE||n===Me.BASEFONT||n===Me.BGSOUND||n===Me.LINK||n===Me.META||n===Me.NOFRAMES||n===Me.SCRIPT||n===Me.STYLE||n===Me.TEMPLATE||n===Me.TITLE)rs(e,t);else{const r=BXt[n]||Wf;e._popTmplInsertionMode(),e._pushTmplInsertionMode(r),e.insertionMode=r,e._processToken(t)}}function aZt(e,t){t.tagName===Me.TEMPLATE&&f0(e,t)}function j5e(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(Me.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function sZt(e,t){t.tagName===Me.HTML?Zl(e,t):zk(e,t)}function lZt(e,t){t.tagName===Me.HTML?e.fragmentContext||(e.insertionMode=N5e):zk(e,t)}function zk(e,t){e.insertionMode=Wf,e._processToken(t)}function cZt(e,t){const n=t.tagName;n===Me.HTML?Zl(e,t):n===Me.FRAMESET?e._insertElement(t,sr.HTML):n===Me.FRAME?(e._appendElement(t,sr.HTML),t.ackSelfClosing=!0):n===Me.NOFRAMES&&rs(e,t)}function uZt(e,t){t.tagName===Me.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagName!==Me.FRAMESET&&(e.insertionMode=A5e))}function dZt(e,t){const n=t.tagName;n===Me.HTML?Zl(e,t):n===Me.NOFRAMES&&rs(e,t)}function fZt(e,t){t.tagName===Me.HTML&&(e.insertionMode=D5e)}function hZt(e,t){t.tagName===Me.HTML?Zl(e,t):v8(e,t)}function v8(e,t){e.insertionMode=Wf,e._processToken(t)}function pZt(e,t){const n=t.tagName;n===Me.HTML?Zl(e,t):n===Me.NOFRAMES&&rs(e,t)}function mZt(e,t){t.chars=NXt.REPLACEMENT_CHARACTER,e._insertCharacters(t)}function gZt(e,t){e._insertCharacters(t),e.framesetOk=!1}function vZt(e,t){if(Mf.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==sr.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===sr.MATHML?Mf.adjustTokenMathMLAttrs(t):r===sr.SVG&&(Mf.adjustTokenSVGTagName(t),Mf.adjustTokenSVGAttrs(t)),Mf.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function yZt(e,t){for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===sr.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(r).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(r);break}}}const bZt=hi(zXt),E4=B5e("start"),pI=B5e("end");function SZt(e){return{start:E4(e),end:pI(e)}}function B5e(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 T4{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}T4.prototype.property={};T4.prototype.normal={};T4.prototype.space=null;function H5e(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 T4(n,r,t)}function z_(e){return e.toLowerCase()}class Hu{constructor(t,n){this.property=t,this.attribute=n}}Hu.prototype.space=null;Hu.prototype.boolean=!1;Hu.prototype.booleanish=!1;Hu.prototype.overloadedBoolean=!1;Hu.prototype.number=!1;Hu.prototype.commaSeparated=!1;Hu.prototype.spaceSeparated=!1;Hu.prototype.commaOrSpaceSeparated=!1;Hu.prototype.mustUseProperty=!1;Hu.prototype.defined=!1;let CZt=0;const qr=h0(),Ca=h0(),z5e=h0(),$n=h0(),so=h0(),bb=h0(),mc=h0();function h0(){return 2**++CZt}const sH=Object.freeze(Object.defineProperty({__proto__:null,boolean:qr,booleanish:Ca,commaOrSpaceSeparated:mc,commaSeparated:bb,number:$n,overloadedBoolean:z5e,spaceSeparated:so},Symbol.toStringTag,{value:"Module"})),kN=Object.keys(sH);class Bq extends Hu{constructor(t,n,r,i){let o=-1;if(super(t,n),Ile(this,"space",i),typeof r=="number")for(;++o<kN.length;){const a=kN[o];Ile(this,kN[o],(r&sH[a])===sH[a])}}}Bq.prototype.defined=!0;function Ile(e,t,n){n&&(e[t]=n)}const xZt={}.hasOwnProperty;function LC(e){const t={},n={};let r;for(r in e.properties)if(xZt.call(e.properties,r)){const i=e.properties[r],o=new Bq(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[z_(r)]=r,n[z_(o.attribute)]=r}return new T4(t,n,e.space)}const U5e=LC({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}}),W5e=LC({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function V5e(e,t){return t in e?e[t]:t}function K5e(e,t){return V5e(e,t.toLowerCase())}const q5e=LC({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:K5e,properties:{xmlns:null,xmlnsXLink:null}}),G5e=LC({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Ca,ariaAutoComplete:null,ariaBusy:Ca,ariaChecked:Ca,ariaColCount:$n,ariaColIndex:$n,ariaColSpan:$n,ariaControls:so,ariaCurrent:null,ariaDescribedBy:so,ariaDetails:null,ariaDisabled:Ca,ariaDropEffect:so,ariaErrorMessage:null,ariaExpanded:Ca,ariaFlowTo:so,ariaGrabbed:Ca,ariaHasPopup:null,ariaHidden:Ca,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:so,ariaLevel:$n,ariaLive:null,ariaModal:Ca,ariaMultiLine:Ca,ariaMultiSelectable:Ca,ariaOrientation:null,ariaOwns:so,ariaPlaceholder:null,ariaPosInSet:$n,ariaPressed:Ca,ariaReadOnly:Ca,ariaRelevant:null,ariaRequired:Ca,ariaRoleDescription:so,ariaRowCount:$n,ariaRowIndex:$n,ariaRowSpan:$n,ariaSelected:Ca,ariaSetSize:$n,ariaSort:null,ariaValueMax:$n,ariaValueMin:$n,ariaValueNow:$n,ariaValueText:null,role:null}}),wZt=LC({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:K5e,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:bb,acceptCharset:so,accessKey:so,action:null,allow:null,allowFullScreen:qr,allowPaymentRequest:qr,allowUserMedia:qr,alt:null,as:null,async:qr,autoCapitalize:null,autoComplete:so,autoFocus:qr,autoPlay:qr,blocking:so,capture:null,charSet:null,checked:qr,cite:null,className:so,cols:$n,colSpan:null,content:null,contentEditable:Ca,controls:qr,controlsList:so,coords:$n|bb,crossOrigin:null,data:null,dateTime:null,decoding:null,default:qr,defer:qr,dir:null,dirName:null,disabled:qr,download:z5e,draggable:Ca,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:qr,formTarget:null,headers:so,height:$n,hidden:qr,high:$n,href:null,hrefLang:null,htmlFor:so,httpEquiv:so,id:null,imageSizes:null,imageSrcSet:null,inert:qr,inputMode:null,integrity:null,is:null,isMap:qr,itemId:null,itemProp:so,itemRef:so,itemScope:qr,itemType:so,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:qr,low:$n,manifest:null,max:null,maxLength:$n,media:null,method:null,min:null,minLength:$n,multiple:qr,muted:qr,name:null,nonce:null,noModule:qr,noValidate:qr,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:qr,optimum:$n,pattern:null,ping:so,placeholder:null,playsInline:qr,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:qr,referrerPolicy:null,rel:so,required:qr,reversed:qr,rows:$n,rowSpan:$n,sandbox:so,scope:null,scoped:qr,seamless:qr,selected:qr,shadowRootClonable:qr,shadowRootDelegatesFocus:qr,shadowRootMode:null,shape:null,size:$n,sizes:null,slot:null,span:$n,spellCheck:Ca,src:null,srcDoc:null,srcLang:null,srcSet:null,start:$n,step:null,style:null,tabIndex:$n,target:null,title:null,translate:null,type:null,typeMustMatch:qr,useMap:null,value:Ca,width:$n,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:so,axis:null,background:null,bgColor:null,border:$n,borderColor:null,bottomMargin:$n,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:qr,declare:qr,event:null,face:null,frame:null,frameBorder:null,hSpace:$n,leftMargin:$n,link:null,longDesc:null,lowSrc:null,marginHeight:$n,marginWidth:$n,noResize:qr,noHref:qr,noShade:qr,noWrap:qr,object:null,profile:null,prompt:null,rev:null,rightMargin:$n,rules:null,scheme:null,scrolling:Ca,standby:null,summary:null,text:null,topMargin:$n,valueType:null,version:null,vAlign:null,vLink:null,vSpace:$n,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:qr,disableRemotePlayback:qr,prefix:null,property:null,results:$n,security:null,unselectable:null}}),_Zt=LC({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:V5e,properties:{about:mc,accentHeight:$n,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:$n,amplitude:$n,arabicForm:null,ascent:$n,attributeName:null,attributeType:null,azimuth:$n,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:$n,by:null,calcMode:null,capHeight:$n,className:so,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:$n,diffuseConstant:$n,direction:null,display:null,dur:null,divisor:$n,dominantBaseline:null,download:qr,dx:null,dy:null,edgeMode:null,editable:null,elevation:$n,enableBackground:null,end:null,event:null,exponent:$n,externalResourcesRequired:null,fill:null,fillOpacity:$n,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:bb,g2:bb,glyphName:bb,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:$n,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:$n,horizOriginX:$n,horizOriginY:$n,id:null,ideographic:$n,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:$n,k:$n,k1:$n,k2:$n,k3:$n,k4:$n,kernelMatrix:mc,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:$n,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:$n,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:$n,overlineThickness:$n,paintOrder:null,panose1:null,path:null,pathLength:$n,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:so,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:$n,pointsAtY:$n,pointsAtZ:$n,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:mc,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:mc,rev:mc,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:mc,requiredFeatures:mc,requiredFonts:mc,requiredFormats:mc,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:$n,specularExponent:$n,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:$n,strikethroughThickness:$n,string:null,stroke:null,strokeDashArray:mc,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:$n,strokeOpacity:$n,strokeWidth:null,style:null,surfaceScale:$n,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:mc,tabIndex:$n,tableValues:null,target:null,targetX:$n,targetY:$n,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:mc,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:$n,underlineThickness:$n,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:$n,values:null,vAlphabetic:$n,vMathematical:$n,vectorEffect:null,vHanging:$n,vIdeographic:$n,version:null,vertAdvY:$n,vertOriginX:$n,vertOriginY:$n,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:$n,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),EZt=/^data[-\w.:]+$/i,$le=/-[a-z]/g,TZt=/[A-Z]/g;function mI(e,t){const n=z_(t);let r=t,i=Hu;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&EZt.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace($le,OZt);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!$le.test(o)){let a=o.replace(TZt,kZt);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=Bq}return new i(r,t)}function kZt(e){return"-"+e.toLowerCase()}function OZt(e){return e.charAt(1).toUpperCase()}const k4=H5e([W5e,U5e,q5e,G5e,wZt],"html"),FC=H5e([W5e,U5e,q5e,G5e,_Zt],"svg"),Rle=/[#.]/g;function PZt(e,t){const n=e||"",r={};let i=0,o,a;for(;i<n.length;){Rle.lastIndex=i;const s=Rle.exec(n),l=n.slice(i,s?s.index:n.length);l&&(o?o==="#"?r.id=l:Array.isArray(r.className)?r.className.push(l):r.className=[l]:a=l,i+=l.length),s&&(o=s[0],i++)}return{type:"element",tagName:a||t||"div",properties:r,children:[]}}function Ale(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Y5e(e){return e.join(" ").trim()}function Nle(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 X5e(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const MZt=new Set(["menu","submit","reset","button"]),lH={}.hasOwnProperty;function Q5e(e,t,n){const r=n&&AZt(n);return function(o,a,...s){let l=-1,c;if(o==null)c={type:"root",children:[]},s.unshift(a);else if(c=PZt(o,t),c.tagName=c.tagName.toLowerCase(),r&&lH.call(r,c.tagName)&&(c.tagName=r[c.tagName]),IZt(a,c.tagName)){let u;for(u in a)lH.call(a,u)&&$Zt(e,c.properties,u,a[u])}else s.unshift(a);for(;++l<s.length;)cH(c.children,s[l]);return c.type==="element"&&c.tagName==="template"&&(c.content={type:"root",children:c.children},c.children=[]),c}}function IZt(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"?MZt.has(e.type.toLowerCase()):!("value"in e)}function $Zt(e,t,n,r){const i=mI(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=Ale(r):i.commaSeparated?a=Nle(r):i.commaOrSpaceSeparated?a=Ale(Nle(r).join(" ")):a=Dle(i,i.property,r):Array.isArray(r)?a=r.concat():a=i.property==="style"?RZt(r):String(r);if(Array.isArray(a)){const s=[];for(;++o<a.length;)s[o]=Dle(i,i.property,a[o]);a=s}i.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function cH(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;)cH(e,t[n]);else if(typeof t=="object"&&"type"in t)t.type==="root"?cH(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function Dle(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||z_(n)===z_(t)))return!0}return n}function RZt(e){const t=[];let n;for(n in e)lH.call(e,n)&&t.push([n,e[n]].join(": "));return t.join("; ")}function AZt(e){const t={};let n=-1;for(;++n<e.length;)t[e[n].toLowerCase()]=e[n];return t}const NZt=Q5e(k4,"div"),DZt=["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"],LZt=Q5e(FC,"g",DZt);function FZt(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 s=-1;if(typeof a=="number"&&a>-1&&a<n[n.length-1]){for(;++s<n.length;)if(n[s]>a)return{line:s+1,column:a-(s>0?n[s-1]:0)+1,offset:a}}return{line:void 0,column:void 0,offset:void 0}}function o(a){const s=a&&a.line,l=a&&a.column;if(typeof s=="number"&&typeof l=="number"&&!Number.isNaN(s)&&!Number.isNaN(l)&&s-1 in n){const c=(n[s-2]||0)+l-1||0;if(c>-1&&c<n[n.length-1])return c}return-1}}const U_={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/"},Z5e={}.hasOwnProperty,jZt=Object.prototype;function BZt(e,t){const n=t||{};let r,i;return UZt(n)?(i=n,r={}):(i=n.file||void 0,r=n),Hq({schema:r.space==="svg"?FC:k4,file:i,verbose:r.verbose,location:!1},e)}function Hq(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},y8(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:J5e(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){const o=String(e.file),a=FZt(o),s=a.toPoint(0),l=a.toPoint(o.length);n.position={start:s,end:l}}return n}case"#documentType":{const r=t;return n={type:"doctype"},y8(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},y8(e,r,n),n}default:return n=HZt(e,t),n}}function J5e(e,t){let n=-1;const r=[];for(;++n<t.length;)r[n]=Hq(e,t[n]);return r}function HZt(e,t){const n=e.schema;e.schema=t.namespaceURI===U_.svg?FC:k4;let r=-1;const i={};for(;++r<t.attrs.length;){const s=t.attrs[r],l=(s.prefix?s.prefix+":":"")+s.name;Z5e.call(jZt,l)||(i[l]=s.value)}const a=(e.schema.space==="svg"?LZt:NZt)(t.tagName,i,J5e(e,t.childNodes));if(y8(e,t,a),a.tagName==="template"){const s=t,l=s.sourceCodeLocation,c=l&&l.startTag&&Gy(l.startTag),u=l&&l.endTag&&Gy(l.endTag),d=Hq(e,s.content);c&&u&&e.file&&(d.position={start:c.end,end:u.start}),a.content=d}return e.schema=n,a}function y8(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=zZt(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function zZt(e,t,n){const r=Gy(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)Z5e.call(n.attrs,a)&&(o[mI(e.schema,a).property]=Gy(n.attrs[a]));t.data={position:{opening:Gy(n.startTag),closing:n.endTag?Gy(n.endTag):null,properties:o}}}}return r}function Gy(e){const t=Lle({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=Lle({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function Lle(e){return e.line&&e.column?e:void 0}function UZt(e){return"messages"in e}const Fle={}.hasOwnProperty;function zq(e,t){const n=t||{};function r(i,...o){let a=r.invalid;const s=r.handlers;if(i&&Fle.call(i,e)){const l=String(i[e]);a=Fle.call(s,l)?s[l]: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 WZt={}.hasOwnProperty,e3e=zq("type",{handlers:{root:KZt,element:QZt,text:YZt,comment:XZt,doctype:GZt}});function VZt(e,t){return e3e(e,k4)}function KZt(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=Uq(e.children,n,t),jC(e,n),n}function qZt(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=Uq(e.children,n,t),jC(e,n),n}function GZt(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:void 0};return jC(e,t),t}function YZt(e){const t={nodeName:"#text",value:e.value,parentNode:void 0};return jC(e,t),t}function XZt(e){const t={nodeName:"#comment",data:e.value,parentNode:void 0};return jC(e,t),t}function QZt(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=FC);const i=[];let o;if(e.properties){for(o in e.properties)if(o!=="children"&&WZt.call(e.properties,o)){const s=ZZt(r,o,e.properties[o]);s&&i.push(s)}}const a={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:U_[r.space],childNodes:[],parentNode:void 0};return a.childNodes=Uq(e.children,a,r),jC(e,a),e.tagName==="template"&&e.content&&(a.content=qZt(e.content,r)),a}function ZZt(e,t,n){const r=mI(e,t);if(n==null||n===!1||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?X5e(n):Y5e(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=U_[r.space]}return i}function Uq(e,t,n){let r=-1;const i=[];if(e)for(;++r<e.length;){const o=e3e(e[r],n);o.parentNode=t,i.push(o)}return i}function jC(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 t3e=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"],JZt="IN_TEMPLATE_MODE",eJt="DATA_STATE",tJt="CHARACTER_TOKEN",nJt="START_TAG_TOKEN",rJt="END_TAG_TOKEN",iJt="COMMENT_TOKEN",oJt="DOCTYPE_TOKEN",aJt={sourceCodeLocationInfo:!0,scriptingEnabled:!1},n3e=function(e,t,n){let r=-1;const i=new bZt(aJt),o=zq("type",{handlers:{root:v,element:y,text:S,comment:C,doctype:b,raw:_},unknown:uJt});let a,s,l,c,u;if(fJt(t)&&(n=t,t=void 0),n&&n.passThrough)for(;++r<n.passThrough.length;)o.handlers[n.passThrough[r]]=T;const d=BZt(dJt(e)?p():h(),t);if(a&&C4(d,"comment",(E,k,M)=>{const P=E;if(P.value.stitch&&M!==null&&k!==null)return M.children[k]=P.value.stitch,k}),e.type!=="root"&&d.type==="root"&&d.children.length===1)return d.children[0];return d;function h(){const E={nodeName:"template",tagName:"template",attrs:[],namespaceURI:U_.html,childNodes:[]},k={nodeName:"documentmock",tagName:"documentmock",attrs:[],namespaceURI:U_.html,childNodes:[]},M={nodeName:"#document-fragment",childNodes:[]};if(i._bootstrap(k,E),i._pushTmplInsertionMode(JZt),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),s=i.tokenizer,!s)throw new Error("Expected `tokenizer`");return l=s.preprocessor,u=s.__mixins[0],c=u.posTracker,o(e),x(),i._adoptNodes(k.childNodes[0],M),M}function p(){const E=i.treeAdapter.createDocument();if(i._bootstrap(E,void 0),s=i.tokenizer,!s)throw new Error("Expected `tokenizer`");return l=s.preprocessor,u=s.__mixins[0],c=u.posTracker,o(e),x(),E}function m(E){let k=-1;if(E)for(;++k<E.length;)o(E[k])}function v(E){m(E.children)}function y(E){x(),i._processInputToken(sJt(E)),m(E.children),t3e.includes(E.tagName)||(x(),i._processInputToken(cJt(E)))}function S(E){x(),i._processInputToken({type:tJt,chars:E.value,location:Yy(E)})}function b(E){x(),i._processInputToken({type:oJt,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Yy(E)})}function C(E){x(),i._processInputToken({type:iJt,data:E.value,location:Yy(E)})}function _(E){const k=E4(E),M=k.line||1,P=k.column||1,D=k.offset||0;if(!l)throw new Error("Expected `preprocessor`");if(!s)throw new Error("Expected `tokenizer`");if(!c)throw new Error("Expected `posTracker`");if(!u)throw new Error("Expected `locationTracker`");l.html=void 0,l.pos=-1,l.lastGapPos=-1,l.lastCharPos=-1,l.gapStack=[],l.skipNextNewLine=!1,l.lastChunkWritten=!1,l.endOfChunkHit=!1,c.isEol=!1,c.lineStartPos=-P+1,c.droppedBufferSize=D,c.offset=0,c.col=1,c.line=M,u.currentAttrLocation=void 0,u.ctLoc=Yy(E),s.write(E.value),i._runParsingLoop(null),(s.state==="NAMED_CHARACTER_REFERENCE_STATE"||s.state==="NUMERIC_CHARACTER_REFERENCE_END_STATE")&&(l.lastChunkWritten=!0,s[s.state](s._consume()))}function T(E){a=!0;let k;"children"in E?k={...E,children:n3e({type:"root",children:E.children},t,n).children}:k={...E},C({type:"comment",value:{stitch:k}})}function x(){if(!s)throw new Error("Expected `tokenizer`");if(!c)throw new Error("Expected `posTracker`");const E=s.currentCharacterToken;E&&(E.location.endLine=c.line,E.location.endCol=c.col+1,E.location.endOffset=c.offset+1,i._processInputToken(E)),s.tokenQueue=[],s.state=eJt,s.returnState="",s.charRefCode=-1,s.tempBuff=[],s.lastStartTagName="",s.consumedAfterSnapshot=-1,s.active=!1,s.currentCharacterToken=void 0,s.currentToken=void 0,s.currentAttr=void 0}};function sJt(e){const t=Object.assign(Yy(e));return t.startTag=Object.assign({},t),{type:nJt,tagName:e.tagName,selfClosing:!1,attrs:lJt(e),location:t}}function lJt(e){return VZt({tagName:e.tagName,type:"element",properties:e.properties,children:[]}).attrs}function cJt(e){const t=Object.assign(Yy(e));return t.startTag=Object.assign({},t),{type:rJt,tagName:e.tagName,attrs:[],location:t}}function uJt(e){throw new Error("Cannot compile `"+e.type+"` node")}function dJt(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName==="html"))}function Yy(e){const t=E4(e),n=pI(e);return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function fJt(e){return!!(e&&!("message"in e&&"messages"in e))}function hJt(e={}){return(t,n)=>n3e(t,n,e)}function pJt(e=Oq){return t=>gYt(t,e)}const mJt=/["&'<>`]/g,gJt=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,vJt=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,yJt=/[|\\{}()[\]^$+*?.]/g,jle=new WeakMap;function bJt(e,t){if(e=e.replace(t.subset?SJt(t.subset):mJt,r),t.subset||t.escapeOnly)return e;return e.replace(gJt,n).replace(vJt,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 SJt(e){let t=jle.get(e);return t||(t=CJt(e),jle.set(e,t)),t}function CJt(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(yJt,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const xJt=/[\dA-Fa-f]/;function wJt(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!xJt.test(String.fromCharCode(t))?r:r+";"}const _Jt=/\d/;function EJt(e,t,n){const r="&#"+String(e);return n&&t&&!_Jt.test(String.fromCharCode(t))?r:r+";"}const TJt=["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"],ON={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:"€"},kJt=["cent","copy","divide","gt","lt","not","para","times"],r3e={}.hasOwnProperty,uH={};let W5;for(W5 in ON)r3e.call(ON,W5)&&(uH[ON[W5]]=W5);const OJt=/[^\dA-Za-z]/;function PJt(e,t,n,r){const i=String.fromCharCode(e);if(r3e.call(uH,i)){const o=uH[i],a="&"+o;return n&&TJt.includes(o)&&!kJt.includes(o)&&(!r||t&&t!==61&&OJt.test(String.fromCharCode(t)))?a:a+";"}return""}function MJt(e,t,n){let r=wJt(e,t,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=PJt(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){const o=EJt(e,t,n.omitOptionalSemicolons);o.length<r.length&&(r=o)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function Sb(e,t){return bJt(e,Object.assign({format:MJt},t))}function IJt(e,t,n,r){return r.settings.bogusComments?"<?"+Sb(e.value,Object.assign({},r.settings.characterReferences,{subset:[">"]}))+">":"<!--"+e.value.replace(/^>|^->|<!--|-->|--!>|<!-$/g,i)+"-->";function i(o){return Sb(o,Object.assign({},r.settings.characterReferences,{subset:["<",">"]}))}}function $Jt(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function Uk(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 Wq(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 $a=o3e(1),i3e=o3e(-1);function o3e(e){return t;function t(n,r,i){const o=n?n.children:[];let a=(r||0)+e,s=o&&o[a];if(!i)for(;s&&Wq(s);)a+=e,s=o[a];return s}}const RJt={}.hasOwnProperty;function a3e(e){return t;function t(n,r,i){return RJt.call(e,n.tagName)&&e[n.tagName](n,r,i)}}const Vq=a3e({html:AJt,head:PN,body:NJt,p:DJt,li:LJt,dt:FJt,dd:jJt,rt:Ble,rp:Ble,optgroup:BJt,option:HJt,menuitem:zJt,colgroup:PN,caption:PN,thead:UJt,tbody:WJt,tfoot:VJt,tr:KJt,td:Hle,th:Hle});function PN(e,t,n){const r=$a(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&Wq(r.value.charAt(0)))}function AJt(e,t,n){const r=$a(n,t);return!r||r.type!=="comment"}function NJt(e,t,n){const r=$a(n,t);return!r||r.type!=="comment"}function DJt(e,t,n){const r=$a(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 LJt(e,t,n){const r=$a(n,t);return!r||r.type==="element"&&r.tagName==="li"}function FJt(e,t,n){const r=$a(n,t);return r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function jJt(e,t,n){const r=$a(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function Ble(e,t,n){const r=$a(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function BJt(e,t,n){const r=$a(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function HJt(e,t,n){const r=$a(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function zJt(e,t,n){const r=$a(n,t);return!r||r.type==="element"&&(r.tagName==="menuitem"||r.tagName==="hr"||r.tagName==="menu")}function UJt(e,t,n){const r=$a(n,t);return r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function WJt(e,t,n){const r=$a(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function VJt(e,t,n){return!$a(n,t)}function KJt(e,t,n){const r=$a(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function Hle(e,t,n){const r=$a(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const qJt=a3e({html:GJt,head:YJt,body:XJt,colgroup:QJt,tbody:ZJt});function GJt(e){const t=$a(e,-1);return!t||t.type!=="comment"}function YJt(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 XJt(e){const t=$a(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&Wq(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function QJt(e,t,n){const r=i3e(n,t),i=$a(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&Vq(r,n.children.indexOf(r),n)?!1:i&&i.type==="element"&&i.tagName==="col"}function ZJt(e,t,n){const r=i3e(n,t),i=$a(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&Vq(r,n.children.indexOf(r),n)?!1:i&&i.type==="element"&&i.tagName==="tr"}const V5={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 JJt(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 s=[];let l;i.space==="html"&&e.tagName==="svg"&&(r.schema=FC);const c=een(r,e.properties),u=r.all(i.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=i,u&&(a=!1),(c||!o||!qJt(e,t,n))&&(s.push("<",e.tagName,c?" "+c:""),a&&(i.space==="svg"||r.settings.closeSelfClosing)&&(l=c.charAt(c.length-1),(!r.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&s.push(" "),s.push("/")),s.push(">")),s.push(u),!a&&(!o||!Vq(e,t,n))&&s.push("</"+e.tagName+">"),s.join("")}function een(e,t){const n=[];let r=-1,i;if(t){for(i in t)if(t[i]!==void 0&&t[i]!==null){const o=ten(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 ten(e,t,n){const r=mI(e.schema,t),i=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,o=e.settings.allowDangerousCharacters?0:1;let a=e.quote,s;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 l=Sb(r.attribute,Object.assign({},e.settings.characterReferences,{subset:V5.name[i][o]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?X5e:Y5e)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?l:(e.settings.preferUnquoted&&(s=Sb(n,Object.assign({},e.settings.characterReferences,{subset:V5.unquoted[i][o],attribute:!0}))),s!==n&&(e.settings.quoteSmart&&Uk(n,a)>Uk(n,e.alternative)&&(a=e.alternative),s=a+Sb(n,Object.assign({},e.settings.characterReferences,{subset:(a==="'"?V5.single:V5.double)[i][o],attribute:!0}))+a),l+(s&&"="+s))}function s3e(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:Sb(e.value,Object.assign({},r.settings.characterReferences,{subset:["<","&"]}))}function nen(e,t,n,r){return r.settings.allowDangerousHtml?e.value:s3e(e,t,n,r)}function ren(e,t,n,r){return r.all(e)}const ien=zq("type",{invalid:oen,unknown:aen,handlers:{comment:IJt,doctype:$Jt,element:JJt,raw:nen,root:ren,text:s3e}});function oen(e){throw new Error("Expected node, not `"+e+"`")}function aen(e){throw new Error("Cannot compile unknown node `"+e.type+"`")}function sen(e,t){const n=t||{},r=n.quote||'"',i=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:len,all:cen,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||t3e,characterReferences:n.characterReferences||n.entities||{},closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?FC:k4,quote:r,alternative:i}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function len(e,t,n){return ien(e,t,n,this)}function cen(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 uen(e){const t=this.data("settings"),n=Object.assign({},t,e);Object.assign(this,{Compiler:r});function r(i){return sen(i,n)}}const den={};function fen(e,t){const n=den,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return l3e(e,r,i)}function l3e(e,t,n){if(hen(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 zle(e.children,t,n)}return Array.isArray(e)?zle(e,t,n):""}function zle(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=l3e(e[i],t,n);return r.join("")}function hen(e){return!!(e&&typeof e=="object")}function Rc(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 hu(e,t){return e.length>0?(Rc(e,e.length,0,t),e):t}const Ule={}.hasOwnProperty;function c3e(e){const t={};let n=-1;for(;++n<e.length;)pen(t,e[n]);return t}function pen(e,t){let n;for(n in t){const i=(Ule.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let a;if(o)for(a in o){Ule.call(i,a)||(i[a]=[]);const s=o[a];men(i[a],Array.isArray(s)?s:s?[s]:[])}}}function men(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Rc(e,0,0,r)}const gen=/[!-\/:-@\[-`\{-~\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]/,fl=kg(/[A-Za-z]/),zs=kg(/[\dA-Za-z]/),ven=kg(/[#-'*+\--9=?A-Z^-~]/);function Wk(e){return e!==null&&(e<32||e===127)}const dH=kg(/\d/),yen=kg(/[\dA-Fa-f]/),ben=kg(/[!-/:-@[-`{-~]/);function yr(e){return e!==null&&e<-2}function no(e){return e!==null&&(e<0||e===32)}function Zr(e){return e===-2||e===-1||e===32}const gI=kg(gen),Nv=kg(/\s/);function kg(e){return t;function t(n){return n!==null&&e.test(String.fromCharCode(n))}}function bi(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return a;function a(l){return Zr(l)?(e.enter(n),s(l)):t(l)}function s(l){return Zr(l)&&o++<i?(e.consume(l),s):(e.exit(n),t(l))}}const Sen={tokenize:Cen};function Cen(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),bi(e,t,"linePrefix")}function i(s){return e.enter("paragraph"),o(s)}function o(s){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,a(s)}function a(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return yr(s)?(e.consume(s),e.exit("chunkText"),o):(e.consume(s),a)}}const xen={tokenize:wen},Wle={tokenize:_en};function wen(e){const t=this,n=[];let r=0,i,o,a;return s;function s(C){if(r<n.length){const _=n[r];return t.containerState=_[1],e.attempt(_[0].continuation,l,c)(C)}return c(C)}function l(C){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&b();const _=t.events.length;let T=_,x;for(;T--;)if(t.events[T][0]==="exit"&&t.events[T][1].type==="chunkFlow"){x=t.events[T][1].end;break}S(r);let E=_;for(;E<t.events.length;)t.events[E][1].end=Object.assign({},x),E++;return Rc(t.events,T+1,0,t.events.slice(_)),t.events.length=E,c(C)}return s(C)}function c(C){if(r===n.length){if(!i)return h(C);if(i.currentConstruct&&i.currentConstruct.concrete)return m(C);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Wle,u,d)(C)}function u(C){return i&&b(),S(r),h(C)}function d(C){return t.parser.lazy[t.now().line]=r!==n.length,a=t.now().offset,m(C)}function h(C){return t.containerState={},e.attempt(Wle,p,m)(C)}function p(C){return r++,n.push([t.currentConstruct,t.containerState]),h(C)}function m(C){if(C===null){i&&b(),S(0),e.consume(C);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:o,_tokenizer:i}),v(C)}function v(C){if(C===null){y(e.exit("chunkFlow"),!0),S(0),e.consume(C);return}return yr(C)?(e.consume(C),y(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(C),v)}function y(C,_){const T=t.sliceStream(C);if(_&&T.push(null),C.previous=o,o&&(o.next=C),o=C,i.defineSkip(C.start),i.write(T),t.parser.lazy[C.start.line]){let x=i.events.length;for(;x--;)if(i.events[x][1].start.offset<a&&(!i.events[x][1].end||i.events[x][1].end.offset>a))return;const E=t.events.length;let k=E,M,P;for(;k--;)if(t.events[k][0]==="exit"&&t.events[k][1].type==="chunkFlow"){if(M){P=t.events[k][1].end;break}M=!0}for(S(r),x=E;x<t.events.length;)t.events[x][1].end=Object.assign({},P),x++;Rc(t.events,k+1,0,t.events.slice(E)),t.events.length=x}}function S(C){let _=n.length;for(;_-- >C;){const T=n[_];t.containerState=T[1],T[0].exit.call(t,e)}n.length=C}function b(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function _en(e,t,n){return bi(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Vk(e){if(e===null||no(e)||Nv(e))return 1;if(gI(e))return 2}function vI(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 fH={name:"attention",tokenize:Ten,resolveAll:Een};function Een(e,t){let n=-1,r,i,o,a,s,l,c,u;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;l=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 d=Object.assign({},e[r][1].end),h=Object.assign({},e[n][1].start);Vle(d,-l),Vle(h,l),a={type:l>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[r][1].end)},s={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:h},o={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i={type:l>1?"strong":"emphasis",start:Object.assign({},a.start),end:Object.assign({},s.end)},e[r][1].end=Object.assign({},a.start),e[n][1].start=Object.assign({},s.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=hu(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=hu(c,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",o,t]]),c=hu(c,vI(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=hu(c,[["exit",o,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,c=hu(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):u=0,Rc(e,r-1,n-r+3,c),n=r+c.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Ten(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Vk(r);let o;return a;function a(l){return o=l,e.enter("attentionSequence"),s(l)}function s(l){if(l===o)return e.consume(l),s;const c=e.exit("attentionSequence"),u=Vk(l),d=!u||u===2&&i||n.includes(l),h=!i||i===2&&u||n.includes(r);return c._open=!!(o===42?d:d&&(i||!h)),c._close=!!(o===42?h:h&&(u||!d)),t(l)}}function Vle(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const ken={name:"autolink",tokenize:Oen};function Oen(e,t,n){let r=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(p){return fl(p)?(e.consume(p),a):c(p)}function a(p){return p===43||p===45||p===46||zs(p)?(r=1,s(p)):c(p)}function s(p){return p===58?(e.consume(p),r=0,l):(p===43||p===45||p===46||zs(p))&&r++<32?(e.consume(p),s):(r=0,c(p))}function l(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||Wk(p)?n(p):(e.consume(p),l)}function c(p){return p===64?(e.consume(p),u):ven(p)?(e.consume(p),c):n(p)}function u(p){return zs(p)?d(p):n(p)}function d(p){return p===46?(e.consume(p),r=0,u):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):h(p)}function h(p){if((p===45||zs(p))&&r++<63){const m=p===45?h:d;return e.consume(p),m}return n(p)}}const O4={tokenize:Pen,partial:!0};function Pen(e,t,n){return r;function r(o){return Zr(o)?bi(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||yr(o)?t(o):n(o)}}const u3e={name:"blockQuote",tokenize:Men,continuation:{tokenize:Ien},exit:$en};function Men(e,t,n){const r=this;return i;function i(a){if(a===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),o}return n(a)}function o(a){return Zr(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(a))}}function Ien(e,t,n){const r=this;return i;function i(a){return Zr(a)?bi(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):o(a)}function o(a){return e.attempt(u3e,t,n)(a)}}function $en(e){e.exit("blockQuote")}const d3e={name:"characterEscape",tokenize:Ren};function Ren(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 ben(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const Kle=document.createElement("i");function Kq(e){const t="&"+e+";";Kle.innerHTML=t;const n=Kle.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}const f3e={name:"characterReference",tokenize:Aen};function Aen(e,t,n){const r=this;let i=0,o,a;return s;function s(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),l}function l(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),o=31,a=zs,u(d))}function c(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,a=yen,u):(e.enter("characterReferenceValue"),o=7,a=dH,u(d))}function u(d){if(d===59&&i){const h=e.exit("characterReferenceValue");return a===zs&&!Kq(r.sliceSerialize(h))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return a(d)&&i++<o?(e.consume(d),u):n(d)}}const qle={tokenize:Den,partial:!0},Gle={name:"codeFenced",tokenize:Nen,concrete:!0};function Nen(e,t,n){const r=this,i={tokenize:T,partial:!0};let o=0,a=0,s;return l;function l(x){return c(x)}function c(x){const E=r.events[r.events.length-1];return o=E&&E[1].type==="linePrefix"?E[2].sliceSerialize(E[1],!0).length:0,s=x,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u(x)}function u(x){return x===s?(a++,e.consume(x),u):a<3?n(x):(e.exit("codeFencedFenceSequence"),Zr(x)?bi(e,d,"whitespace")(x):d(x))}function d(x){return x===null||yr(x)?(e.exit("codeFencedFence"),r.interrupt?t(x):e.check(qle,v,_)(x)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(x))}function h(x){return x===null||yr(x)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(x)):Zr(x)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),bi(e,p,"whitespace")(x)):x===96&&x===s?n(x):(e.consume(x),h)}function p(x){return x===null||yr(x)?d(x):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(x))}function m(x){return x===null||yr(x)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(x)):x===96&&x===s?n(x):(e.consume(x),m)}function v(x){return e.attempt(i,_,y)(x)}function y(x){return e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),S}function S(x){return o>0&&Zr(x)?bi(e,b,"linePrefix",o+1)(x):b(x)}function b(x){return x===null||yr(x)?e.check(qle,v,_)(x):(e.enter("codeFlowValue"),C(x))}function C(x){return x===null||yr(x)?(e.exit("codeFlowValue"),b(x)):(e.consume(x),C)}function _(x){return e.exit("codeFenced"),t(x)}function T(x,E,k){let M=0;return P;function P(F){return x.enter("lineEnding"),x.consume(F),x.exit("lineEnding"),D}function D(F){return x.enter("codeFencedFence"),Zr(F)?bi(x,R,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):R(F)}function R(F){return F===s?(x.enter("codeFencedFenceSequence"),A(F)):k(F)}function A(F){return F===s?(M++,x.consume(F),A):M>=a?(x.exit("codeFencedFenceSequence"),Zr(F)?bi(x,H,"whitespace")(F):H(F)):k(F)}function H(F){return F===null||yr(F)?(x.exit("codeFencedFence"),E(F)):k(F)}}}function Den(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 MN={name:"codeIndented",tokenize:Fen},Len={tokenize:jen,partial:!0};function Fen(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),bi(e,o,"linePrefix",5)(c)}function o(c){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?a(c):n(c)}function a(c){return c===null?l(c):yr(c)?e.attempt(Len,a,l)(c):(e.enter("codeFlowValue"),s(c))}function s(c){return c===null||yr(c)?(e.exit("codeFlowValue"),a(c)):(e.consume(c),s)}function l(c){return e.exit("codeIndented"),t(c)}}function jen(e,t,n){const r=this;return i;function i(a){return r.parser.lazy[r.now().line]?n(a):yr(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):bi(e,o,"linePrefix",5)(a)}function o(a){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(a):yr(a)?i(a):n(a)}}const Ben={name:"codeText",tokenize:Uen,resolve:Hen,previous:zen};function Hen(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 zen(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Uen(e,t,n){let r=0,i,o;return a;function a(d){return e.enter("codeText"),e.enter("codeTextSequence"),s(d)}function s(d){return d===96?(e.consume(d),r++,s):(e.exit("codeTextSequence"),l(d))}function l(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),l):d===96?(o=e.enter("codeTextSequence"),i=0,u(d)):yr(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),l):(e.enter("codeTextData"),c(d))}function c(d){return d===null||d===32||d===96||yr(d)?(e.exit("codeTextData"),l(d)):(e.consume(d),c)}function u(d){return d===96?(e.consume(d),i++,u):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(o.type="codeTextData",c(d))}}function h3e(e){const t={};let n=-1,r,i,o,a,s,l,c;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"&&(l=r[1]._tokenizer.events,o=0,o<l.length&&l[o][1].type==="lineEndingBlank"&&(o+=2),o<l.length&&l[o][1].type==="content"))for(;++o<l.length&&l[o][1].type!=="content";)l[o][1].type==="chunkText"&&(l[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,Wen(e,n)),n=t[n],c=!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),s=e.slice(i,n),s.unshift(r),Rc(e,i,n-i+1,s))}}return!c}function Wen(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),s=a.events,l=[],c={};let u,d,h=-1,p=n,m=0,v=0;const y=[v];for(;p;){for(;e[++i][1]!==p;);o.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&a.defineSkip(p.start),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(u),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++h<s.length;)s[h][0]==="exit"&&s[h-1][0]==="enter"&&s[h][1].type===s[h-1][1].type&&s[h][1].start.line!==s[h][1].end.line&&(v=h+1,y.push(v),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(a.events=[],p?(p._tokenizer=void 0,p.previous=void 0):y.pop(),h=y.length;h--;){const S=s.slice(y[h],y[h+1]),b=o.pop();l.unshift([b,b+S.length-1]),Rc(e,b,2,S)}for(h=-1;++h<l.length;)c[m+l[h][0]]=m+l[h][1],m+=l[h][1]-l[h][0]-1;return c}const Ven={tokenize:Gen,resolve:qen},Ken={tokenize:Yen,partial:!0};function qen(e){return h3e(e),e}function Gen(e,t){let n;return r;function r(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(s)}function i(s){return s===null?o(s):yr(s)?e.check(Ken,a,o)(s):(e.consume(s),i)}function o(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function a(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function Yen(e,t,n){const r=this;return i;function i(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),bi(e,o,"linePrefix")}function o(a){if(a===null||yr(a))return n(a);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}function p3e(e,t,n,r,i,o,a,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return d;function d(S){return S===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(S),e.exit(o),h):S===null||S===32||S===41||Wk(S)?n(S):(e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),v(S))}function h(S){return S===62?(e.enter(o),e.consume(S),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(S))}function p(S){return S===62?(e.exit("chunkString"),e.exit(s),h(S)):S===null||S===60||yr(S)?n(S):(e.consume(S),S===92?m:p)}function m(S){return S===60||S===62||S===92?(e.consume(S),p):p(S)}function v(S){return!u&&(S===null||S===41||no(S))?(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(S)):u<c&&S===40?(e.consume(S),u++,v):S===41?(e.consume(S),u--,v):S===null||S===32||S===40||Wk(S)?n(S):(e.consume(S),S===92?y:v)}function y(S){return S===40||S===41||S===92?(e.consume(S),v):v(S)}}function m3e(e,t,n,r,i,o){const a=this;let s=0,l;return c;function c(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(o),u}function u(p){return s>999||p===null||p===91||p===93&&!l||p===94&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(p):p===93?(e.exit(o),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):yr(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===null||p===91||p===93||yr(p)||s++>999?(e.exit("chunkString"),u(p)):(e.consume(p),l||(l=!Zr(p)),p===92?h:d)}function h(p){return p===91||p===92||p===93?(e.consume(p),s++,d):d(p)}}function g3e(e,t,n,r,i,o){let a;return s;function s(h){return h===34||h===39||h===40?(e.enter(r),e.enter(i),e.consume(h),e.exit(i),a=h===40?41:h,l):n(h)}function l(h){return h===a?(e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):(e.enter(o),c(h))}function c(h){return h===a?(e.exit(o),l(a)):h===null?n(h):yr(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),bi(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(h))}function u(h){return h===a||h===null||yr(h)?(e.exit("chunkString"),c(h)):(e.consume(h),h===92?d:u)}function d(h){return h===a||h===92?(e.consume(h),u):u(h)}}function Cw(e,t){let n;return r;function r(i){return yr(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Zr(i)?bi(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function Rd(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Xen={name:"definition",tokenize:Zen},Qen={tokenize:Jen,partial:!0};function Zen(e,t,n){const r=this;let i;return o;function o(p){return e.enter("definition"),a(p)}function a(p){return m3e.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function s(p){return i=Rd(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),l):n(p)}function l(p){return no(p)?Cw(e,c)(p):c(p)}function c(p){return p3e(e,u,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function u(p){return e.attempt(Qen,d,d)(p)}function d(p){return Zr(p)?bi(e,h,"whitespace")(p):h(p)}function h(p){return p===null||yr(p)?(e.exit("definition"),r.parser.defined.push(i),t(p)):n(p)}}function Jen(e,t,n){return r;function r(s){return no(s)?Cw(e,i)(s):n(s)}function i(s){return g3e(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function o(s){return Zr(s)?bi(e,a,"whitespace")(s):a(s)}function a(s){return s===null||yr(s)?t(s):n(s)}}const etn={name:"hardBreakEscape",tokenize:ttn};function ttn(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return yr(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const ntn={name:"headingAtx",tokenize:itn,resolve:rtn};function rtn(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"},Rc(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function itn(e,t,n){let r=0;return i;function i(u){return e.enter("atxHeading"),o(u)}function o(u){return e.enter("atxHeadingSequence"),a(u)}function a(u){return u===35&&r++<6?(e.consume(u),a):u===null||no(u)?(e.exit("atxHeadingSequence"),s(u)):n(u)}function s(u){return u===35?(e.enter("atxHeadingSequence"),l(u)):u===null||yr(u)?(e.exit("atxHeading"),t(u)):Zr(u)?bi(e,s,"whitespace")(u):(e.enter("atxHeadingText"),c(u))}function l(u){return u===35?(e.consume(u),l):(e.exit("atxHeadingSequence"),s(u))}function c(u){return u===null||u===35||no(u)?(e.exit("atxHeadingText"),s(u)):(e.consume(u),c)}}const otn=["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"],Yle=["pre","script","style","textarea"],atn={name:"htmlFlow",tokenize:utn,resolveTo:ctn,concrete:!0},stn={tokenize:ftn,partial:!0},ltn={tokenize:dtn,partial:!0};function ctn(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 utn(e,t,n){const r=this;let i,o,a,s,l;return c;function c(Y){return u(Y)}function u(Y){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(Y),d}function d(Y){return Y===33?(e.consume(Y),h):Y===47?(e.consume(Y),o=!0,v):Y===63?(e.consume(Y),i=3,r.interrupt?t:N):fl(Y)?(e.consume(Y),a=String.fromCharCode(Y),y):n(Y)}function h(Y){return Y===45?(e.consume(Y),i=2,p):Y===91?(e.consume(Y),i=5,s=0,m):fl(Y)?(e.consume(Y),i=4,r.interrupt?t:N):n(Y)}function p(Y){return Y===45?(e.consume(Y),r.interrupt?t:N):n(Y)}function m(Y){const ie="CDATA[";return Y===ie.charCodeAt(s++)?(e.consume(Y),s===ie.length?r.interrupt?t:R:m):n(Y)}function v(Y){return fl(Y)?(e.consume(Y),a=String.fromCharCode(Y),y):n(Y)}function y(Y){if(Y===null||Y===47||Y===62||no(Y)){const ie=Y===47,ce=a.toLowerCase();return!ie&&!o&&Yle.includes(ce)?(i=1,r.interrupt?t(Y):R(Y)):otn.includes(a.toLowerCase())?(i=6,ie?(e.consume(Y),S):r.interrupt?t(Y):R(Y)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(Y):o?b(Y):C(Y))}return Y===45||zs(Y)?(e.consume(Y),a+=String.fromCharCode(Y),y):n(Y)}function S(Y){return Y===62?(e.consume(Y),r.interrupt?t:R):n(Y)}function b(Y){return Zr(Y)?(e.consume(Y),b):P(Y)}function C(Y){return Y===47?(e.consume(Y),P):Y===58||Y===95||fl(Y)?(e.consume(Y),_):Zr(Y)?(e.consume(Y),C):P(Y)}function _(Y){return Y===45||Y===46||Y===58||Y===95||zs(Y)?(e.consume(Y),_):T(Y)}function T(Y){return Y===61?(e.consume(Y),x):Zr(Y)?(e.consume(Y),T):C(Y)}function x(Y){return Y===null||Y===60||Y===61||Y===62||Y===96?n(Y):Y===34||Y===39?(e.consume(Y),l=Y,E):Zr(Y)?(e.consume(Y),x):k(Y)}function E(Y){return Y===l?(e.consume(Y),l=null,M):Y===null||yr(Y)?n(Y):(e.consume(Y),E)}function k(Y){return Y===null||Y===34||Y===39||Y===47||Y===60||Y===61||Y===62||Y===96||no(Y)?T(Y):(e.consume(Y),k)}function M(Y){return Y===47||Y===62||Zr(Y)?C(Y):n(Y)}function P(Y){return Y===62?(e.consume(Y),D):n(Y)}function D(Y){return Y===null||yr(Y)?R(Y):Zr(Y)?(e.consume(Y),D):n(Y)}function R(Y){return Y===45&&i===2?(e.consume(Y),z):Y===60&&i===1?(e.consume(Y),W):Y===62&&i===4?(e.consume(Y),B):Y===63&&i===3?(e.consume(Y),N):Y===93&&i===5?(e.consume(Y),Z):yr(Y)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(stn,V,A)(Y)):Y===null||yr(Y)?(e.exit("htmlFlowData"),A(Y)):(e.consume(Y),R)}function A(Y){return e.check(ltn,H,V)(Y)}function H(Y){return e.enter("lineEnding"),e.consume(Y),e.exit("lineEnding"),F}function F(Y){return Y===null||yr(Y)?A(Y):(e.enter("htmlFlowData"),R(Y))}function z(Y){return Y===45?(e.consume(Y),N):R(Y)}function W(Y){return Y===47?(e.consume(Y),a="",q):R(Y)}function q(Y){if(Y===62){const ie=a.toLowerCase();return Yle.includes(ie)?(e.consume(Y),B):R(Y)}return fl(Y)&&a.length<8?(e.consume(Y),a+=String.fromCharCode(Y),q):R(Y)}function Z(Y){return Y===93?(e.consume(Y),N):R(Y)}function N(Y){return Y===62?(e.consume(Y),B):Y===45&&i===2?(e.consume(Y),N):R(Y)}function B(Y){return Y===null||yr(Y)?(e.exit("htmlFlowData"),V(Y)):(e.consume(Y),B)}function V(Y){return e.exit("htmlFlow"),t(Y)}}function dtn(e,t,n){const r=this;return i;function i(a){return yr(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 ftn(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(O4,t,n)}}const htn={name:"htmlText",tokenize:ptn};function ptn(e,t,n){const r=this;let i,o,a;return s;function s(N){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(N),l}function l(N){return N===33?(e.consume(N),c):N===47?(e.consume(N),T):N===63?(e.consume(N),C):fl(N)?(e.consume(N),k):n(N)}function c(N){return N===45?(e.consume(N),u):N===91?(e.consume(N),o=0,m):fl(N)?(e.consume(N),b):n(N)}function u(N){return N===45?(e.consume(N),p):n(N)}function d(N){return N===null?n(N):N===45?(e.consume(N),h):yr(N)?(a=d,W(N)):(e.consume(N),d)}function h(N){return N===45?(e.consume(N),p):d(N)}function p(N){return N===62?z(N):N===45?h(N):d(N)}function m(N){const B="CDATA[";return N===B.charCodeAt(o++)?(e.consume(N),o===B.length?v:m):n(N)}function v(N){return N===null?n(N):N===93?(e.consume(N),y):yr(N)?(a=v,W(N)):(e.consume(N),v)}function y(N){return N===93?(e.consume(N),S):v(N)}function S(N){return N===62?z(N):N===93?(e.consume(N),S):v(N)}function b(N){return N===null||N===62?z(N):yr(N)?(a=b,W(N)):(e.consume(N),b)}function C(N){return N===null?n(N):N===63?(e.consume(N),_):yr(N)?(a=C,W(N)):(e.consume(N),C)}function _(N){return N===62?z(N):C(N)}function T(N){return fl(N)?(e.consume(N),x):n(N)}function x(N){return N===45||zs(N)?(e.consume(N),x):E(N)}function E(N){return yr(N)?(a=E,W(N)):Zr(N)?(e.consume(N),E):z(N)}function k(N){return N===45||zs(N)?(e.consume(N),k):N===47||N===62||no(N)?M(N):n(N)}function M(N){return N===47?(e.consume(N),z):N===58||N===95||fl(N)?(e.consume(N),P):yr(N)?(a=M,W(N)):Zr(N)?(e.consume(N),M):z(N)}function P(N){return N===45||N===46||N===58||N===95||zs(N)?(e.consume(N),P):D(N)}function D(N){return N===61?(e.consume(N),R):yr(N)?(a=D,W(N)):Zr(N)?(e.consume(N),D):M(N)}function R(N){return N===null||N===60||N===61||N===62||N===96?n(N):N===34||N===39?(e.consume(N),i=N,A):yr(N)?(a=R,W(N)):Zr(N)?(e.consume(N),R):(e.consume(N),H)}function A(N){return N===i?(e.consume(N),i=void 0,F):N===null?n(N):yr(N)?(a=A,W(N)):(e.consume(N),A)}function H(N){return N===null||N===34||N===39||N===60||N===61||N===96?n(N):N===47||N===62||no(N)?M(N):(e.consume(N),H)}function F(N){return N===47||N===62||no(N)?M(N):n(N)}function z(N){return N===62?(e.consume(N),e.exit("htmlTextData"),e.exit("htmlText"),t):n(N)}function W(N){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),q}function q(N){return Zr(N)?bi(e,Z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):Z(N)}function Z(N){return e.enter("htmlTextData"),a(N)}}const qq={name:"labelEnd",tokenize:Stn,resolveTo:btn,resolveAll:ytn},mtn={tokenize:Ctn},gtn={tokenize:xtn},vtn={tokenize:wtn};function ytn(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 btn(e,t){let n=e.length,r=0,i,o,a,s;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 l={type:e[o][1].type==="labelLink"?"link":"image",start:Object.assign({},e[o][1].start),end:Object.assign({},e[e.length-1][1].end)},c={type:"label",start:Object.assign({},e[o][1].start),end:Object.assign({},e[a][1].end)},u={type:"labelText",start:Object.assign({},e[o+r+2][1].end),end:Object.assign({},e[a-2][1].start)};return s=[["enter",l,t],["enter",c,t]],s=hu(s,e.slice(o+1,o+r+3)),s=hu(s,[["enter",u,t]]),s=hu(s,vI(t.parser.constructs.insideSpan.null,e.slice(o+r+4,a-3),t)),s=hu(s,[["exit",u,t],e[a-2],e[a-1],["exit",c,t]]),s=hu(s,e.slice(a+1)),s=hu(s,[["exit",l,t]]),Rc(e,o,e.length,s),e}function Stn(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 s;function s(h){return o?o._inactive?d(h):(a=r.parser.defined.includes(Rd(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),l):n(h)}function l(h){return h===40?e.attempt(mtn,u,a?u:d)(h):h===91?e.attempt(gtn,u,a?c:d)(h):a?u(h):d(h)}function c(h){return e.attempt(vtn,u,d)(h)}function u(h){return t(h)}function d(h){return o._balanced=!0,n(h)}}function Ctn(e,t,n){return r;function r(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),i}function i(d){return no(d)?Cw(e,o)(d):o(d)}function o(d){return d===41?u(d):p3e(e,a,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function a(d){return no(d)?Cw(e,l)(d):u(d)}function s(d){return n(d)}function l(d){return d===34||d===39||d===40?g3e(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):u(d)}function c(d){return no(d)?Cw(e,u)(d):u(d)}function u(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function xtn(e,t,n){const r=this;return i;function i(s){return m3e.call(r,e,o,a,"reference","referenceMarker","referenceString")(s)}function o(s){return r.parser.defined.includes(Rd(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function a(s){return n(s)}}function wtn(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 _tn={name:"labelStartImage",tokenize:Etn,resolveAll:qq.resolveAll};function Etn(e,t,n){const r=this;return i;function i(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),o}function o(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),a):n(s)}function a(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const Ttn={name:"labelStartLink",tokenize:ktn,resolveAll:qq.resolveAll};function ktn(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 IN={name:"lineEnding",tokenize:Otn};function Otn(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),bi(e,t,"linePrefix")}}const b8={name:"thematicBreak",tokenize:Ptn};function Ptn(e,t,n){let r=0,i;return o;function o(c){return e.enter("thematicBreak"),a(c)}function a(c){return i=c,s(c)}function s(c){return c===i?(e.enter("thematicBreakSequence"),l(c)):r>=3&&(c===null||yr(c))?(e.exit("thematicBreak"),t(c)):n(c)}function l(c){return c===i?(e.consume(c),r++,l):(e.exit("thematicBreakSequence"),Zr(c)?bi(e,s,"whitespace")(c):s(c))}}const Pl={name:"list",tokenize:$tn,continuation:{tokenize:Rtn},exit:Ntn},Mtn={tokenize:Dtn,partial:!0},Itn={tokenize:Atn,partial:!0};function $tn(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 s;function s(p){const m=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:dH(p)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(b8,n,c)(p):c(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(p)}return n(p)}function l(p){return dH(p)&&++a<10?(e.consume(p),l):(!r.interrupt||a<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),c(p)):n(p)}function c(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(O4,r.interrupt?n:u,e.attempt(Mtn,h,d))}function u(p){return r.containerState.initialBlankLine=!0,o++,h(p)}function d(p){return Zr(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),h):n(p)}function h(p){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function Rtn(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(O4,i,o);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,bi(e,t,"listItemIndent",r.containerState.size+1)(s)}function o(s){return r.containerState.furtherBlankLines||!Zr(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Itn,t,a)(s))}function a(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,bi(e,e.attempt(Pl,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function Atn(e,t,n){const r=this;return bi(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 Ntn(e){e.exit(this.containerState.type)}function Dtn(e,t,n){const r=this;return bi(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!Zr(o)&&a&&a[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const Xle={name:"setextUnderline",tokenize:Ftn,resolveTo:Ltn};function Ltn(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 Ftn(e,t,n){const r=this;let i;return o;function o(c){let u=r.events.length,d;for(;u--;)if(r.events[u][1].type!=="lineEnding"&&r.events[u][1].type!=="linePrefix"&&r.events[u][1].type!=="content"){d=r.events[u][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=c,a(c)):n(c)}function a(c){return e.enter("setextHeadingLineSequence"),s(c)}function s(c){return c===i?(e.consume(c),s):(e.exit("setextHeadingLineSequence"),Zr(c)?bi(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||yr(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const jtn={tokenize:Btn};function Btn(e){const t=this,n=e.attempt(O4,r,e.attempt(this.parser.constructs.flowInitial,i,bi(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Ven,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 Htn={resolveAll:y3e()},ztn=v3e("string"),Utn=v3e("text");function v3e(e){return{tokenize:t,resolveAll:y3e(e==="text"?Wtn:void 0)};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,a,s);return a;function a(u){return c(u)?o(u):s(u)}function s(u){if(u===null){n.consume(u);return}return n.enter("data"),n.consume(u),l}function l(u){return c(u)?(n.exit("data"),o(u)):(n.consume(u),l)}function c(u){if(u===null)return!0;const d=i[u];let h=-1;if(d)for(;++h<d.length;){const p=d[h];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function y3e(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 Wtn(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,s=0,l;for(;o--;){const c=i[o];if(typeof c=="string"){for(a=c.length;c.charCodeAt(a-1)===32;)s++,a--;if(a)break;a=-1}else if(c===-2)l=!0,s++;else if(c!==-1){o++;break}}if(s){const c={type:n===e.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-s,offset:r.end.offset-s,_index:r.start._index+o,_bufferIndex:o?a:r.start._bufferIndex+a},end:Object.assign({},r.end)};r.end=Object.assign({},c.start),r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}function Vtn(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=[],s=[];const l={consume:b,enter:C,exit:_,attempt:E(T),check:E(x),interrupt:E(x,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:p,sliceSerialize:h,now:m,defineSkip:v,write:d};let u=t.tokenize.call(c,l);return t.resolveAll&&o.push(t),c;function d(D){return a=hu(a,D),y(),a[a.length-1]!==null?[]:(k(t,0),c.events=vI(o,c.events,c),c.events)}function h(D,R){return qtn(p(D),R)}function p(D){return Ktn(a,D)}function m(){const{line:D,column:R,offset:A,_index:H,_bufferIndex:F}=r;return{line:D,column:R,offset:A,_index:H,_bufferIndex:F}}function v(D){i[D.line]=D.column,P()}function y(){let D;for(;r._index<a.length;){const R=a[r._index];if(typeof R=="string")for(D=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===D&&r._bufferIndex<R.length;)S(R.charCodeAt(r._bufferIndex));else S(R)}}function S(D){u=u(D)}function b(D){yr(D)?(r.line++,r.column=1,r.offset+=D===-3?2:1,P()):D!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=D}function C(D,R){const A=R||{};return A.type=D,A.start=m(),c.events.push(["enter",A,c]),s.push(A),A}function _(D){const R=s.pop();return R.end=m(),c.events.push(["exit",R,c]),R}function T(D,R){k(D,R.from)}function x(D,R){R.restore()}function E(D,R){return A;function A(H,F,z){let W,q,Z,N;return Array.isArray(H)?V(H):"tokenize"in H?V([H]):B(H);function B(fe){return ee;function ee(ne){const ue=ne!==null&&fe[ne],ye=ne!==null&&fe.null,me=[...Array.isArray(ue)?ue:ue?[ue]:[],...Array.isArray(ye)?ye:ye?[ye]:[]];return V(me)(ne)}}function V(fe){return W=fe,q=0,fe.length===0?z:Y(fe[q])}function Y(fe){return ee;function ee(ne){return N=M(),Z=fe,fe.partial||(c.currentConstruct=fe),fe.name&&c.parser.constructs.disable.null.includes(fe.name)?ce():fe.tokenize.call(R?Object.assign(Object.create(c),R):c,l,ie,ce)(ne)}}function ie(fe){return D(Z,N),F}function ce(fe){return N.restore(),++q<W.length?Y(W[q]):z}}}function k(D,R){D.resolveAll&&!o.includes(D)&&o.push(D),D.resolve&&Rc(c.events,R,c.events.length-R,D.resolve(c.events.slice(R),c)),D.resolveTo&&(c.events=D.resolveTo(c.events,c))}function M(){const D=m(),R=c.previous,A=c.currentConstruct,H=c.events.length,F=Array.from(s);return{restore:z,from:H};function z(){r=D,c.previous=R,c.currentConstruct=A,c.events.length=H,s=F,P()}}function P(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Ktn(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 s=a[0];typeof s=="string"?a[0]=s.slice(r):a.shift()}o>0&&a.push(e[i].slice(0,o))}return a}function qtn(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 Gtn={42:Pl,43:Pl,45:Pl,48:Pl,49:Pl,50:Pl,51:Pl,52:Pl,53:Pl,54:Pl,55:Pl,56:Pl,57:Pl,62:u3e},Ytn={91:Xen},Xtn={[-2]:MN,[-1]:MN,32:MN},Qtn={35:ntn,42:b8,45:[Xle,b8],60:atn,61:Xle,95:b8,96:Gle,126:Gle},Ztn={38:f3e,92:d3e},Jtn={[-5]:IN,[-4]:IN,[-3]:IN,33:_tn,38:f3e,42:fH,60:[ken,htn],91:Ttn,92:[etn,d3e],93:qq,95:fH,96:Ben},enn={null:[fH,Htn]},tnn={null:[42,95]},nnn={null:[]},rnn=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:tnn,contentInitial:Ytn,disable:nnn,document:Gtn,flow:Qtn,flowInitial:Xtn,insideSpan:enn,string:Ztn,text:Jtn},Symbol.toStringTag,{value:"Module"}));function inn(e){const n=c3e([rnn,...(e||{}).extensions||[]]),r={defined:[],lazy:{},constructs:n,content:i(Sen),document:i(xen),flow:i(jtn),string:i(ztn),text:i(Utn)};return r;function i(o){return a;function a(s){return Vtn(r,o,s)}}}const Qle=/[\0\t\n\r]/g;function onn(){let e=1,t="",n=!0,r;return i;function i(o,a,s){const l=[];let c,u,d,h,p;for(o=t+o.toString(a),d=0,t="",n&&(o.charCodeAt(0)===65279&&d++,n=void 0);d<o.length;){if(Qle.lastIndex=d,c=Qle.exec(o),h=c&&c.index!==void 0?c.index:o.length,p=o.charCodeAt(h),!c){t=o.slice(d);break}if(p===10&&d===h&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),d<h&&(l.push(o.slice(d,h)),e+=h-d),p){case 0:{l.push(65533),e++;break}case 9:{for(u=Math.ceil(e/4)*4,l.push(-2);e++<u;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}d=h+1}return s&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}function ann(e){for(;!h3e(e););return e}function b3e(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 snn=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function S3e(e){return e.replace(snn,lnn)}function lnn(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return b3e(n.slice(o?2:1),o?16:10)}return Kq(n)||e}function xw(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Zle(e.position):"start"in e||"end"in e?Zle(e):"line"in e||"column"in e?hH(e):""}function hH(e){return Jle(e&&e.line)+":"+Jle(e&&e.column)}function Zle(e){return hH(e&&e.start)+"-"+hH(e&&e.end)}function Jle(e){return e&&typeof e=="number"?e:1}const C3e={}.hasOwnProperty,cnn=function(e,t,n){return typeof t!="string"&&(n=t,t=void 0),unn(n)(ann(inn(n).document().write(onn()(e,t,!0))))};function unn(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(Ce),autolinkProtocol:D,autolinkEmail:D,atxHeading:s(xe),blockQuote:s(me),characterEscape:D,characterReference:D,codeFenced:s(pe),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:s(pe,l),codeText:s(he,l),codeTextData:D,data:D,codeFlowValue:D,definition:s(_e),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:s(le),hardBreakEscape:s(we),hardBreakTrailing:s(we),htmlFlow:s(De,l),htmlFlowData:D,htmlText:s(De,l),htmlTextData:D,image:s(Fe),label:l,link:s(Ce),listItem:s(ke),listItemValue:m,listOrdered:s(Te,p),listUnordered:s(Te),paragraph:s(Pe),reference:ce,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:s(xe),strong:s(Ne),thematicBreak:s(Q)},exit:{atxHeading:u(),atxHeadingSequence:E,autolink:u(),autolinkEmail:ye,autolinkProtocol:ue,blockQuote:u(),characterEscapeValue:R,characterReferenceMarkerHexadecimal:ee,characterReferenceMarkerNumeric:ee,characterReferenceValue:ne,codeFenced:u(b),codeFencedFence:S,codeFencedFenceInfo:v,codeFencedFenceMeta:y,codeFlowValue:R,codeIndented:u(C),codeText:u(W),codeTextData:R,data:R,definition:u(),definitionDestinationString:x,definitionLabelString:_,definitionTitleString:T,emphasis:u(),hardBreakEscape:u(H),hardBreakTrailing:u(H),htmlFlow:u(F),htmlFlowData:R,htmlText:u(z),htmlTextData:R,image:u(Z),label:B,labelText:N,lineEnding:A,link:u(q),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:fe,resourceDestinationString:V,resourceTitleString:Y,resource:ie,setextHeading:u(P),setextHeadingLineSequence:M,setextHeadingText:k,strong:u(),thematicBreak:u()}};x3e(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(K){let J={type:"root",children:[]};const be={stack:[J],tokenStack:[],config:t,enter:c,exit:d,buffer:l,resume:h,setData:o,getData:a},Oe=[];let Se=-1;for(;++Se<K.length;)if(K[Se][1].type==="listOrdered"||K[Se][1].type==="listUnordered")if(K[Se][0]==="enter")Oe.push(Se);else{const Ke=Oe.pop();Se=i(K,Ke,Se)}for(Se=-1;++Se<K.length;){const Ke=t[K[Se][0]];C3e.call(Ke,K[Se][1].type)&&Ke[K[Se][1].type].call(Object.assign({sliceSerialize:K[Se][2].sliceSerialize},be),K[Se][1])}if(be.tokenStack.length>0){const Ke=be.tokenStack[be.tokenStack.length-1];(Ke[1]||ece).call(be,void 0,Ke[0])}for(J.position={start:tm(K.length>0?K[0][1].start:{line:1,column:1,offset:0}),end:tm(K.length>0?K[K.length-2][1].end:{line:1,column:1,offset:0})},Se=-1;++Se<t.transforms.length;)J=t.transforms[Se](J)||J;return J}function i(K,J,be){let Oe=J-1,Se=-1,Ke=!1,tt,se,ze,Ye;for(;++Oe<=be;){const Ue=K[Oe];if(Ue[1].type==="listUnordered"||Ue[1].type==="listOrdered"||Ue[1].type==="blockQuote"?(Ue[0]==="enter"?Se++:Se--,Ye=void 0):Ue[1].type==="lineEndingBlank"?Ue[0]==="enter"&&(tt&&!Ye&&!Se&&!ze&&(ze=Oe),Ye=void 0):Ue[1].type==="linePrefix"||Ue[1].type==="listItemValue"||Ue[1].type==="listItemMarker"||Ue[1].type==="listItemPrefix"||Ue[1].type==="listItemPrefixWhitespace"||(Ye=void 0),!Se&&Ue[0]==="enter"&&Ue[1].type==="listItemPrefix"||Se===-1&&Ue[0]==="exit"&&(Ue[1].type==="listUnordered"||Ue[1].type==="listOrdered")){if(tt){let Je=Oe;for(se=void 0;Je--;){const Ze=K[Je];if(Ze[1].type==="lineEnding"||Ze[1].type==="lineEndingBlank"){if(Ze[0]==="exit")continue;se&&(K[se][1].type="lineEndingBlank",Ke=!0),Ze[1].type="lineEnding",se=Je}else if(!(Ze[1].type==="linePrefix"||Ze[1].type==="blockQuotePrefix"||Ze[1].type==="blockQuotePrefixWhitespace"||Ze[1].type==="blockQuoteMarker"||Ze[1].type==="listItemIndent"))break}ze&&(!se||ze<se)&&(tt._spread=!0),tt.end=Object.assign({},se?K[se][1].start:Ue[1].end),K.splice(se||Oe,0,["exit",tt,Ue[2]]),Oe++,be++}Ue[1].type==="listItemPrefix"&&(tt={type:"listItem",_spread:!1,start:Object.assign({},Ue[1].start),end:void 0},K.splice(Oe,0,["enter",tt,Ue[2]]),Oe++,be++,ze=void 0,Ye=!0)}}return K[J][1]._spread=Ke,be}function o(K,J){n[K]=J}function a(K){return n[K]}function s(K,J){return be;function be(Oe){c.call(this,K(Oe),Oe),J&&J.call(this,Oe)}}function l(){this.stack.push({type:"fragment",children:[]})}function c(K,J,be){return this.stack[this.stack.length-1].children.push(K),this.stack.push(K),this.tokenStack.push([J,be]),K.position={start:tm(J.start)},K}function u(K){return J;function J(be){K&&K.call(this,be),d.call(this,be)}}function d(K,J){const be=this.stack.pop(),Oe=this.tokenStack.pop();if(Oe)Oe[0].type!==K.type&&(J?J.call(this,K,Oe[0]):(Oe[1]||ece).call(this,K,Oe[0]));else throw new Error("Cannot close `"+K.type+"` ("+xw({start:K.start,end:K.end})+"): it’s not open");return be.position.end=tm(K.end),be}function h(){return fen(this.stack.pop())}function p(){o("expectingFirstListItemValue",!0)}function m(K){if(a("expectingFirstListItemValue")){const J=this.stack[this.stack.length-2];J.start=Number.parseInt(this.sliceSerialize(K),10),o("expectingFirstListItemValue")}}function v(){const K=this.resume(),J=this.stack[this.stack.length-1];J.lang=K}function y(){const K=this.resume(),J=this.stack[this.stack.length-1];J.meta=K}function S(){a("flowCodeInside")||(this.buffer(),o("flowCodeInside",!0))}function b(){const K=this.resume(),J=this.stack[this.stack.length-1];J.value=K.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),o("flowCodeInside")}function C(){const K=this.resume(),J=this.stack[this.stack.length-1];J.value=K.replace(/(\r?\n|\r)$/g,"")}function _(K){const J=this.resume(),be=this.stack[this.stack.length-1];be.label=J,be.identifier=Rd(this.sliceSerialize(K)).toLowerCase()}function T(){const K=this.resume(),J=this.stack[this.stack.length-1];J.title=K}function x(){const K=this.resume(),J=this.stack[this.stack.length-1];J.url=K}function E(K){const J=this.stack[this.stack.length-1];if(!J.depth){const be=this.sliceSerialize(K).length;J.depth=be}}function k(){o("setextHeadingSlurpLineEnding",!0)}function M(K){const J=this.stack[this.stack.length-1];J.depth=this.sliceSerialize(K).charCodeAt(0)===61?1:2}function P(){o("setextHeadingSlurpLineEnding")}function D(K){const J=this.stack[this.stack.length-1];let be=J.children[J.children.length-1];(!be||be.type!=="text")&&(be=We(),be.position={start:tm(K.start)},J.children.push(be)),this.stack.push(be)}function R(K){const J=this.stack.pop();J.value+=this.sliceSerialize(K),J.position.end=tm(K.end)}function A(K){const J=this.stack[this.stack.length-1];if(a("atHardBreak")){const be=J.children[J.children.length-1];be.position.end=tm(K.end),o("atHardBreak");return}!a("setextHeadingSlurpLineEnding")&&t.canContainEols.includes(J.type)&&(D.call(this,K),R.call(this,K))}function H(){o("atHardBreak",!0)}function F(){const K=this.resume(),J=this.stack[this.stack.length-1];J.value=K}function z(){const K=this.resume(),J=this.stack[this.stack.length-1];J.value=K}function W(){const K=this.resume(),J=this.stack[this.stack.length-1];J.value=K}function q(){const K=this.stack[this.stack.length-1];if(a("inReference")){const J=a("referenceType")||"shortcut";K.type+="Reference",K.referenceType=J,delete K.url,delete K.title}else delete K.identifier,delete K.label;o("referenceType")}function Z(){const K=this.stack[this.stack.length-1];if(a("inReference")){const J=a("referenceType")||"shortcut";K.type+="Reference",K.referenceType=J,delete K.url,delete K.title}else delete K.identifier,delete K.label;o("referenceType")}function N(K){const J=this.sliceSerialize(K),be=this.stack[this.stack.length-2];be.label=S3e(J),be.identifier=Rd(J).toLowerCase()}function B(){const K=this.stack[this.stack.length-1],J=this.resume(),be=this.stack[this.stack.length-1];if(o("inReference",!0),be.type==="link"){const Oe=K.children;be.children=Oe}else be.alt=J}function V(){const K=this.resume(),J=this.stack[this.stack.length-1];J.url=K}function Y(){const K=this.resume(),J=this.stack[this.stack.length-1];J.title=K}function ie(){o("inReference")}function ce(){o("referenceType","collapsed")}function fe(K){const J=this.resume(),be=this.stack[this.stack.length-1];be.label=J,be.identifier=Rd(this.sliceSerialize(K)).toLowerCase(),o("referenceType","full")}function ee(K){o("characterReferenceType",K.type)}function ne(K){const J=this.sliceSerialize(K),be=a("characterReferenceType");let Oe;be?(Oe=b3e(J,be==="characterReferenceMarkerNumeric"?10:16),o("characterReferenceType")):Oe=Kq(J);const Se=this.stack.pop();Se.value+=Oe,Se.position.end=tm(K.end)}function ue(K){R.call(this,K);const J=this.stack[this.stack.length-1];J.url=this.sliceSerialize(K)}function ye(K){R.call(this,K);const J=this.stack[this.stack.length-1];J.url="mailto:"+this.sliceSerialize(K)}function me(){return{type:"blockquote",children:[]}}function pe(){return{type:"code",lang:null,meta:null,value:""}}function he(){return{type:"inlineCode",value:""}}function _e(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function le(){return{type:"emphasis",children:[]}}function xe(){return{type:"heading",depth:void 0,children:[]}}function we(){return{type:"break"}}function De(){return{type:"html",value:""}}function Fe(){return{type:"image",title:null,url:"",alt:null}}function Ce(){return{type:"link",title:null,url:"",children:[]}}function Te(K){return{type:"list",ordered:K.type==="listOrdered",start:null,spread:K._spread,children:[]}}function ke(K){return{type:"listItem",spread:K._spread,checked:null,children:[]}}function Pe(){return{type:"paragraph",children:[]}}function Ne(){return{type:"strong",children:[]}}function We(){return{type:"text",value:""}}function Q(){return{type:"thematicBreak"}}}function tm(e){return{line:e.line,column:e.column,offset:e.offset}}function x3e(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?x3e(e,r):dnn(e,r)}}function dnn(e,t){let n;for(n in t)if(C3e.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 ece(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+xw({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+xw({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+xw({start:t.start,end:t.end})+") is still open")}function fnn(e){Object.assign(this,{Parser:n=>{const r=this.data("settings");return cnn(n,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function hnn(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 pnn(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
||
`}]}function mnn(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 gnn(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function vnn(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function BC(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let a="";if(o===37&&zs(e.charCodeAt(n+1))&&zs(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 s=e.charCodeAt(n+1);o<56320&&s>56319&&s<57344?(a=String.fromCharCode(o,s),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 w3e(e,t){const n=String(t.identifier).toUpperCase(),r=BC(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],s={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,s);const l={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,l),e.applyData(t,l)}function ynn(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},w3e(e,{type:"footnoteReference",identifier:i,position:t.position})}function bnn(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 Snn(e,t){if(e.dangerous){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}return null}function _3e(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 Cnn(e,t){const n=e.definition(t.identifier);if(!n)return _3e(e,t);const r={src:BC(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 xnn(e,t){const n={src:BC(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 wnn(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 _nn(e,t){const n=e.definition(t.identifier);if(!n)return _3e(e,t);const r={href:BC(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 Enn(e,t){const n={href:BC(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 Tnn(e,t,n){const r=e.all(t),i=n?knn(n):E3e(t),o={},a=[];if(typeof t.checked=="boolean"){const u=r[0];let d;u&&u.type==="element"&&u.tagName==="p"?d=u:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const u=r[s];(i||s!==0||u.type!=="element"||u.tagName!=="p")&&a.push({type:"text",value:`
|
||
`}),u.type==="element"&&u.tagName==="p"&&!i?a.push(...u.children):a.push(u)}const l=r[r.length-1];l&&(i||l.type!=="element"||l.tagName!=="p")&&a.push({type:"text",value:`
|
||
`});const c={type:"element",tagName:"li",properties:o,children:a};return e.patch(t,c),e.applyData(t,c)}function knn(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=E3e(n[r])}return t}function E3e(e){const t=e.spread;return t??e.children.length>1}function Onn(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 Pnn(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Mnn(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Inn(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function $nn(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)},s=E4(t.children[1]),l=pI(t.children[t.children.length-1]);s.line&&l.line&&(a.position={start:s,end:l}),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 Rnn(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,s=a?a.length:t.children.length;let l=-1;const c=[];for(;++l<s;){const d=t.children[l],h={},p=a?a[l]:void 0;p&&(h.align=p);let m={type:"element",tagName:o,properties:h,children:[]};d&&(m.children=e.all(d),e.patch(d,m),m=e.applyData(t,m)),c.push(m)}const u={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,u),e.applyData(t,u)}function Ann(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const tce=9,nce=32;function Nnn(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(rce(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(rce(t.slice(i),i>0,!1)),o.join("")}function rce(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===tce||o===nce;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===tce||o===nce;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Dnn(e,t){const n={type:"text",value:Nnn(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Lnn(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Fnn={blockquote:hnn,break:pnn,code:mnn,delete:gnn,emphasis:vnn,footnoteReference:w3e,footnote:ynn,heading:bnn,html:Snn,imageReference:Cnn,image:xnn,inlineCode:wnn,linkReference:_nn,link:Enn,listItem:Tnn,list:Onn,paragraph:Pnn,root:Mnn,strong:Inn,table:$nn,tableCell:Ann,tableRow:Rnn,text:Dnn,thematicBreak:Lnn,toml:K5,yaml:K5,definition:K5,footnoteDefinition:K5};function K5(){return null}function jnn(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 ice={}.hasOwnProperty;function Bnn(e){const t=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return C4(e,"definition",r=>{const i=oce(r.identifier);i&&!ice.call(t,i)&&(t[i]=r)}),n;function n(r){const i=oce(r);return i&&ice.call(t,i)?t[i]:null}}function oce(e){return String(e||"").toUpperCase()}const Kk={}.hasOwnProperty;function Hnn(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={...Fnn,...n.handlers},a.definition=Bnn(e),a.footnoteById=i,a.footnoteOrder=[],a.footnoteCounts={},a.patch=znn,a.applyData=Unn,a.one=s,a.all=l,a.wrap=Vnn,a.augment=o,C4(e,"footnoteDefinition",c=>{const u=String(c.identifier).toUpperCase();Kk.call(i,u)||(i[u]=c)}),a;function o(c,u){if(c&&"data"in c&&c.data){const d=c.data;d.hName&&(u.type!=="element"&&(u={type:"element",tagName:"",properties:{},children:[]}),u.tagName=d.hName),u.type==="element"&&d.hProperties&&(u.properties={...u.properties,...d.hProperties}),"children"in u&&u.children&&d.hChildren&&(u.children=d.hChildren)}if(c){const d="type"in c?c:{position:c};jnn(d)||(u.position={start:E4(d),end:pI(d)})}return u}function a(c,u,d,h){return Array.isArray(d)&&(h=d,d={}),o(c,{type:"element",tagName:u,properties:d||{},children:h||[]})}function s(c,u){return T3e(a,c,u)}function l(c){return Gq(a,c)}}function znn(e,t){e.position&&(t.position=SZt(e))}function Unn(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 T3e(e,t,n){const r=t&&t.type;if(!r)throw new Error("Expected node, got `"+t+"`");return Kk.call(e.handlers,r)?e.handlers[r](e,t,n):e.passThrough&&e.passThrough.includes(r)?"children"in t?{...t,children:Gq(e,t)}:t:e.unknownHandler?e.unknownHandler(e,t,n):Wnn(e,t)}function Gq(e,t){const n=[];if("children"in t){const r=t.children;let i=-1;for(;++i<r.length;){const o=T3e(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 Wnn(e,t){const n=t.data||{},r="value"in t&&!(Kk.call(n,"hProperties")||Kk.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:Gq(e,t)};return e.patch(t,r),e.applyData(t,r)}function Vnn(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 Knn(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=BC(o.toLowerCase());let s=0;const l=[];for(;++s<=e.footnoteCounts[o];){const d={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fnref-"+a+(s>1?"-"+s:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};s>1&&d.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(s)}]}),l.length>0&&l.push({type:"text",value:" "}),l.push(d)}const c=i[i.length-1];if(c&&c.type==="element"&&c.tagName==="p"){const d=c.children[c.children.length-1];d&&d.type==="text"?d.value+=" ":c.children.push({type:"text",value:" "}),c.children.push(...l)}else i.push(...l);const u={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+a},children:e.wrap(i,!0)};e.patch(r,u),t.push(u)}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 k3e(e,t){const n=Hnn(e,t),r=n.one(e,null),i=Knn(n);return i&&r.children.push({type:"text",value:`
|
||
`},i),Array.isArray(r)?{type:"root",children:r}:r}const qnn=function(e,t){return e&&"run"in e?Gnn(e,t):Ynn(e||t)};function Gnn(e,t){return(n,r,i)=>{e.run(k3e(n,t),r,o=>{i(o)})}}function Ynn(e){return t=>k3e(t,e)}function ace(e){if(e)throw e}/*!
|
||
* Determine if an object is a Buffer
|
||
*
|
||
* @author Feross Aboukhadijeh <https://feross.org>
|
||
* @license MIT
|
||
*/var Xnn=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)};const O3e=hi(Xnn);var S8=Object.prototype.hasOwnProperty,P3e=Object.prototype.toString,sce=Object.defineProperty,lce=Object.getOwnPropertyDescriptor,cce=function(t){return typeof Array.isArray=="function"?Array.isArray(t):P3e.call(t)==="[object Array]"},uce=function(t){if(!t||P3e.call(t)!=="[object Object]")return!1;var n=S8.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&S8.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||S8.call(t,i)},dce=function(t,n){sce&&n.name==="__proto__"?sce(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},fce=function(t,n){if(n==="__proto__")if(S8.call(t,n)){if(lce)return lce(t,n).value}else return;return t[n]},Qnn=function e(){var t,n,r,i,o,a,s=arguments[0],l=1,c=arguments.length,u=!1;for(typeof s=="boolean"&&(u=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});l<c;++l)if(t=arguments[l],t!=null)for(n in t)r=fce(s,n),i=fce(t,n),s!==i&&(u&&i&&(uce(i)||(o=cce(i)))?(o?(o=!1,a=r&&cce(r)?r:[]):a=r&&uce(r)?r:{},dce(s,{name:n,newValue:e(u,a,i)})):typeof i<"u"&&dce(s,{name:n,newValue:i}));return s};const hce=hi(Qnn);function pH(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 Znn(){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);s(null,...i);function s(l,...c){const u=e[++o];let d=-1;if(l){a(l);return}for(;++d<i.length;)(c[d]===null||c[d]===void 0)&&(c[d]=i[d]);i=c,u?Jnn(u,s)(...c):a(null,...c)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function Jnn(e,t){let n;return r;function r(...a){const s=e.length>a.length;let l;s&&a.push(i);try{l=e.apply(this,a)}catch(c){const u=c;if(s&&n)throw u;return i(u)}s||(l&&l.then&&typeof l.then=="function"?l.then(o,i):l instanceof Error?i(l):o(l))}function i(a,...s){n||(n=!0,t(a,...s))}function o(a){i(null,a)}}class zu 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=xw(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}}zu.prototype.file="";zu.prototype.name="";zu.prototype.reason="";zu.prototype.message="";zu.prototype.stack="";zu.prototype.fatal=null;zu.prototype.column=null;zu.prototype.line=null;zu.prototype.source=null;zu.prototype.ruleId=null;zu.prototype.position=null;const bf={basename:ern,dirname:trn,extname:nrn,join:rrn,sep:"/"};function ern(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');P4(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,s=t.length-1;for(;i--;)if(e.charCodeAt(i)===47){if(o){n=i+1;break}}else a<0&&(o=!0,a=i+1),s>-1&&(e.charCodeAt(i)===t.charCodeAt(s--)?s<0&&(r=i):(s=-1,r=a));return n===r?r=a:r<0&&(r=e.length),e.slice(n,r)}function trn(e){if(P4(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 nrn(e){P4(e);let t=e.length,n=-1,r=0,i=-1,o=0,a;for(;t--;){const s=e.charCodeAt(t);if(s===47){if(a){r=t+1;break}continue}n<0&&(a=!0,n=t+1),s===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 rrn(...e){let t=-1,n;for(;++t<e.length;)P4(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":irn(n)}function irn(e){P4(e);const t=e.charCodeAt(0)===47;let n=orn(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.charCodeAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function orn(e,t){let n="",r=0,i=-1,o=0,a=-1,s,l;for(;++a<=e.length;){if(a<e.length)s=e.charCodeAt(a);else{if(s===47)break;s=47}if(s===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(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),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 s===46&&o>-1?o++:o=-1}return n}function P4(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const arn={cwd:srn};function srn(){return"/"}function mH(e){return e!==null&&typeof e=="object"&&e.href&&e.origin}function lrn(e){if(typeof e=="string")e=new URL(e);else if(!mH(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 crn(e)}function crn(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 $N=["history","path","basename","stem","extname","dirname"];class urn{constructor(t){let n;t?typeof t=="string"||drn(t)?n={value:t}:mH(t)?n={path:t}:n=t:n={},this.data={},this.messages=[],this.history=[],this.cwd=arn.cwd(),this.value,this.stored,this.result,this.map;let r=-1;for(;++r<$N.length;){const o=$N[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)$N.includes(i)||(this[i]=n[i])}get path(){return this.history[this.history.length-1]}set path(t){mH(t)&&(t=lrn(t)),AN(t,"path"),this.path!==t&&this.history.push(t)}get dirname(){return typeof this.path=="string"?bf.dirname(this.path):void 0}set dirname(t){pce(this.basename,"dirname"),this.path=bf.join(t||"",this.basename)}get basename(){return typeof this.path=="string"?bf.basename(this.path):void 0}set basename(t){AN(t,"basename"),RN(t,"basename"),this.path=bf.join(this.dirname||"",t)}get extname(){return typeof this.path=="string"?bf.extname(this.path):void 0}set extname(t){if(RN(t,"extname"),pce(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=bf.join(this.dirname,this.stem+(t||""))}get stem(){return typeof this.path=="string"?bf.basename(this.path,this.extname):void 0}set stem(t){AN(t,"stem"),RN(t,"stem"),this.path=bf.join(this.dirname||"",t+(this.extname||""))}toString(t){return(this.value||"").toString(t||void 0)}message(t,n,r){const i=new zu(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 RN(e,t){if(e&&e.includes(bf.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+bf.sep+"`")}function AN(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function pce(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function drn(e){return O3e(e)}const frn=I3e().freeze(),M3e={}.hasOwnProperty;function I3e(){const e=Znn(),t=[];let n={},r,i=-1;return o.data=a,o.Parser=void 0,o.Compiler=void 0,o.freeze=s,o.attachers=t,o.use=l,o.parse=c,o.stringify=u,o.run=d,o.runSync=h,o.process=p,o.processSync=m,o;function o(){const v=I3e();let y=-1;for(;++y<t.length;)v.use(...t[y]);return v.data(hce(!0,{},n)),v}function a(v,y){return typeof v=="string"?arguments.length===2?(LN("data",r),n[v]=y,o):M3e.call(n,v)&&n[v]||null:v?(LN("data",r),n=v,o):n}function s(){if(r)return o;for(;++i<t.length;){const[v,...y]=t[i];if(y[0]===!1)continue;y[0]===!0&&(y[0]=void 0);const S=v.call(o,...y);typeof S=="function"&&e.use(S)}return r=!0,i=Number.POSITIVE_INFINITY,o}function l(v,...y){let S;if(LN("use",r),v!=null)if(typeof v=="function")T(v,...y);else if(typeof v=="object")Array.isArray(v)?_(v):C(v);else throw new TypeError("Expected usable value, not `"+v+"`");return S&&(n.settings=Object.assign(n.settings||{},S)),o;function b(x){if(typeof x=="function")T(x);else if(typeof x=="object")if(Array.isArray(x)){const[E,...k]=x;T(E,...k)}else C(x);else throw new TypeError("Expected usable value, not `"+x+"`")}function C(x){_(x.plugins),x.settings&&(S=Object.assign(S||{},x.settings))}function _(x){let E=-1;if(x!=null)if(Array.isArray(x))for(;++E<x.length;){const k=x[E];b(k)}else throw new TypeError("Expected a list of plugins, not `"+x+"`")}function T(x,E){let k=-1,M;for(;++k<t.length;)if(t[k][0]===x){M=t[k];break}M?(pH(M[1])&&pH(E)&&(E=hce(!0,M[1],E)),M[1]=E):t.push([...arguments])}}function c(v){o.freeze();const y=l2(v),S=o.Parser;return NN("parse",S),mce(S,"parse")?new S(String(y),y).parse():S(String(y),y)}function u(v,y){o.freeze();const S=l2(y),b=o.Compiler;return DN("stringify",b),gce(v),mce(b,"compile")?new b(v,S).compile():b(v,S)}function d(v,y,S){if(gce(v),o.freeze(),!S&&typeof y=="function"&&(S=y,y=void 0),!S)return new Promise(b);b(null,S);function b(C,_){e.run(v,l2(y),T);function T(x,E,k){E=E||v,x?_(x):C?C(E):S(null,E,k)}}}function h(v,y){let S,b;return o.run(v,y,C),vce("runSync","run",b),S;function C(_,T){ace(_),S=T,b=!0}}function p(v,y){if(o.freeze(),NN("process",o.Parser),DN("process",o.Compiler),!y)return new Promise(S);S(null,y);function S(b,C){const _=l2(v);o.run(o.parse(_),_,(x,E,k)=>{if(x||!E||!k)T(x);else{const M=o.stringify(E,k);M==null||(mrn(M)?k.value=M:k.result=M),T(x,k)}});function T(x,E){x||!E?C(x):b?b(E):y(null,E)}}}function m(v){let y;o.freeze(),NN("processSync",o.Parser),DN("processSync",o.Compiler);const S=l2(v);return o.process(S,b),vce("processSync","process",y),S;function b(C){y=!0,ace(C)}}}function mce(e,t){return typeof e=="function"&&e.prototype&&(hrn(e.prototype)||t in e.prototype)}function hrn(e){let t;for(t in e)if(M3e.call(e,t))return!0;return!1}function NN(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Parser`")}function DN(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Compiler`")}function LN(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 gce(e){if(!pH(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function vce(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function l2(e){return prn(e)?e:new urn(e)}function prn(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function mrn(e){return typeof e=="string"||O3e(e)}var grn="[object Symbol]";function vrn(e){return typeof e=="symbol"||yC(e)&&KE(e)==grn}var yrn=/\s/;function brn(e){for(var t=e.length;t--&&yrn.test(e.charAt(t)););return t}var Srn=/^\s+/;function Crn(e){return e&&e.slice(0,brn(e)+1).replace(Srn,"")}var yce=NaN,xrn=/^[-+]0x[0-9a-f]+$/i,wrn=/^0b[01]+$/i,_rn=/^0o[0-7]+$/i,Ern=parseInt;function bce(e){if(typeof e=="number")return e;if(vrn(e))return yce;if(Vd(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Vd(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Crn(e);var n=wrn.test(e);return n||_rn.test(e)?Ern(e.slice(2),n?2:8):xrn.test(e)?yce:+e}var FN=function(){return t0.Date.now()},Trn="Expected a function",krn=Math.max,Orn=Math.min;function $3e(e,t,n){var r,i,o,a,s,l,c=0,u=!1,d=!1,h=!0;if(typeof e!="function")throw new TypeError(Trn);t=bce(t)||0,Vd(n)&&(u=!!n.leading,d="maxWait"in n,o=d?krn(bce(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h);function p(x){var E=r,k=i;return r=i=void 0,c=x,a=e.apply(k,E),a}function m(x){return c=x,s=setTimeout(S,t),u?p(x):a}function v(x){var E=x-l,k=x-c,M=t-E;return d?Orn(M,o-k):M}function y(x){var E=x-l,k=x-c;return l===void 0||E>=t||E<0||d&&k>=o}function S(){var x=FN();if(y(x))return b(x);s=setTimeout(S,v(x))}function b(x){return s=void 0,h&&r?p(x):(r=i=void 0,a)}function C(){s!==void 0&&clearTimeout(s),c=0,r=l=i=s=void 0}function _(){return s===void 0?a:b(FN())}function T(){var x=FN(),E=y(x);if(r=arguments,i=this,l=x,E){if(s===void 0)return m(l);if(d)return clearTimeout(s),s=setTimeout(S,t),p(l)}return s===void 0&&(s=setTimeout(S,t)),a}return T.cancel=C,T.flush=_,T}var Prn="Expected a function";function Mrn(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(Prn);return Vd(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),$3e(e,t,{leading:r,maxWait:t,trailing:i})}function Hc(){}function R3e(e){return e()}function Sce(){return Object.create(null)}function sh(e){e.forEach(R3e)}function A3e(e){return typeof e=="function"}function N3e(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function yI(e,t){return e!=e?t==t:e!==t}function Irn(e){return Object.keys(e).length===0}function Lr(e,t){e.appendChild(t)}function Ma(e,t,n){e.insertBefore(t,n||null)}function ga(e){e.parentNode&&e.parentNode.removeChild(e)}function W_(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function Wr(e){return document.createElement(e)}function _a(e){return document.createTextNode(e)}function M4(){return _a("")}function Mc(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function PS(e){return function(t){t.target===this&&e.call(this,t)}}function ii(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function $rn(e){return Array.from(e.childNodes)}function vs(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function ka(e,t,n){e.classList[n?"add":"remove"](t)}function Rrn(e,t,{bubbles:n=!1,cancelable:r=!1}={}){const i=document.createEvent("CustomEvent");return i.initCustomEvent(e,n,r,t),i}let V_;function ww(e){V_=e}function bI(){if(!V_)throw new Error("Function called outside component initialization");return V_}function Yq(e){bI().$$.on_mount.push(e)}function Arn(e){bI().$$.after_update.push(e)}function D3e(e){bI().$$.on_destroy.push(e)}function I4(){const e=bI();return(t,n,{cancelable:r=!1}={})=>{const i=e.$$.callbacks[t];if(i){const o=Rrn(t,n,{cancelable:r});return i.slice().forEach(a=>{a.call(e,o)}),!o.defaultPrevented}return!0}}const Ty=[],ov=[];let Cb=[];const Cce=[],L3e=Promise.resolve();let gH=!1;function F3e(){gH||(gH=!0,L3e.then(j3e))}function C8(){return F3e(),L3e}function vH(e){Cb.push(e)}const jN=new Set;let my=0;function j3e(){if(my!==0)return;const e=V_;do{try{for(;my<Ty.length;){const t=Ty[my];my++,ww(t),Nrn(t.$$)}}catch(t){throw Ty.length=0,my=0,t}for(ww(null),Ty.length=0,my=0;ov.length;)ov.pop()();for(let t=0;t<Cb.length;t+=1){const n=Cb[t];jN.has(n)||(jN.add(n),n())}Cb.length=0}while(Ty.length);for(;Cce.length;)Cce.pop()();gH=!1,jN.clear(),ww(e)}function Nrn(e){if(e.fragment!==null){e.update(),sh(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(vH)}}function Drn(e){const t=[],n=[];Cb.forEach(r=>e.indexOf(r)===-1?t.push(r):n.push(r)),n.forEach(r=>r()),Cb=t}const x8=new Set;let A1;function Lrn(){A1={r:0,c:[],p:A1}}function Frn(){A1.r||sh(A1.c),A1=A1.p}function jh(e,t){e&&e.i&&(x8.delete(e),e.i(t))}function u1(e,t,n,r){if(e&&e.o){if(x8.has(e))return;x8.add(e),A1.c.push(()=>{x8.delete(e),r&&(n&&e.d(1),r())}),e.o(t)}else r&&r()}function A2(e){e&&e.c()}function Xy(e,t,n,r){const{fragment:i,after_update:o}=e.$$;i&&i.m(t,n),r||vH(()=>{const a=e.$$.on_mount.map(R3e).filter(A3e);e.$$.on_destroy?e.$$.on_destroy.push(...a):sh(a),e.$$.on_mount=[]}),o.forEach(vH)}function Qy(e,t){const n=e.$$;n.fragment!==null&&(Drn(n.after_update),sh(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function jrn(e,t){e.$$.dirty[0]===-1&&(Ty.push(e),F3e(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function HC(e,t,n,r,i,o,a,s=[-1]){const l=V_;ww(e);const c=e.$$={fragment:null,ctx:[],props:o,update:Hc,not_equal:i,bound:Sce(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:Sce(),dirty:s,skip_bound:!1,root:t.target||l.$$.root};a&&a(c.root);let u=!1;if(c.ctx=n?n(e,t.props||{},(d,h,...p)=>{const m=p.length?p[0]:h;return c.ctx&&i(c.ctx[d],c.ctx[d]=m)&&(!c.skip_bound&&c.bound[d]&&c.bound[d](m),u&&jrn(e,d)),h}):[],c.update(),u=!0,sh(c.before_update),c.fragment=r?r(c.ctx):!1,t.target){if(t.hydrate){const d=$rn(t.target);c.fragment&&c.fragment.l(d),d.forEach(ga)}else c.fragment&&c.fragment.c();t.intro&&jh(e.$$.fragment),Xy(e,t.target,t.anchor,t.customElement),j3e()}ww(l)}class zC{$destroy(){Qy(this,1),this.$destroy=Hc}$on(t,n){if(!A3e(n))return Hc;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&&!Irn(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Brn="Bold",Hrn="bold text",zrn="Markdown Cheatsheet",Urn="Close help",Wrn="Close table of contents",Vrn="Code",Krn="Code block",qrn="lang",Grn="code",Yrn="Exit fullscreen",Xrn="Exit preview only",Qrn="Exit write only",Zrn="Fullscreen",Jrn="Heading 1",ein="Heading 2",tin="Heading 3",nin="Heading 4",rin="Heading 5",iin="Heading 6",oin="heading",ain="Help",sin="Horizontal rule",lin="Image",cin="alt",uin="title",din="Italic",fin="italic text",hin="The maximum character limit has been reached",pin="Lines",min="Link",gin="link text",vin="Ordered list",yin="item",bin="Preview",Sin="Preview only",Cin="Quote",xin="quoted text",win="Shortcuts",_in="Source code",Ein="Scroll sync",Tin="Table of contents",kin="Scroll to top",Oin="Unordered list",Pin="item",Min="Words",Iin="Write",$in="Write only",Rin={bold:Brn,boldText:Hrn,cheatsheet:zrn,closeHelp:Urn,closeToc:Wrn,code:Vrn,codeBlock:Krn,codeLang:qrn,codeText:Grn,exitFullscreen:Yrn,exitPreviewOnly:Xrn,exitWriteOnly:Qrn,fullscreen:Zrn,h1:Jrn,h2:ein,h3:tin,h4:nin,h5:rin,h6:iin,headingText:oin,help:ain,hr:sin,image:lin,imageAlt:cin,imageTitle:uin,italic:din,italicText:fin,limited:hin,lines:pin,link:min,linkText:gin,ol:vin,olItem:yin,preview:bin,previewOnly:Sin,quote:Cin,quotedText:xin,shortcuts:win,source:_in,sync:Ein,toc:Tin,top:kin,ul:Oin,ulItem:Pin,words:Min,write:Iin,writeOnly:$in},po={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 Ain(){const e=yqt();return bqt(e),Cqt(e),_qt(e),wqt(e),xqt(e),Tqt(e),Eqt(e),Sqt(e),e}function Nin(e,t){return{wrapText(n,r=n){const i=t.somethingSelected()?t.listSelections()[0]:t.findWordAt(t.getCursor()),o=i.from(),a=i.to(),s=t.getRange(o,a),l=e.Pos(o.line,o.ch-n.length),c=e.Pos(a.line,a.ch+r.length);if(t.getRange(l,o)===n&&t.getRange(a,c)===r)t.replaceRange(s,l,c),t.setSelection(l,e.Pos(l.line,l.ch+s.length));else{t.replaceRange(n+s+r,o,a);const u=t.getCursor();t.setSelection(e.Pos(u.line,u.ch-r.length-s.length),e.Pos(u.line,u.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:VTe}}function BN(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 nm=(e,t=!1)=>{const n=t?"Shift-":"",r=typeof navigator<"u"&&/Mac/.test(navigator.platform)?"Cmd-":"Ctrl-";return n+r+e};async function B3e({editor:e,appendBlock:t,codemirror:n},r,i){const o=await r(i),a=t(o.map(({url:s,alt:l,title:c},u)=>(l=l??i[u].name,``)).join(`
|
||
|
||
`));e.setSelection(a,n.Pos(a.line+o.length*2-2)),e.focus()}function Din(e,t,n){const r=[{icon:po.H,handler:{type:"dropdown",actions:[1,2,3,4,5,6].map(o=>({title:e[`h${o}`],icon:[po.H1,po.H2,po.H3,po.LevelFourTitle,po.LevelFiveTitle,po.LevelSixTitle][o-1],cheatsheet:o<=3?`${"#".repeat(o)} ${e.headingText}`:void 0,handler:{type:"action",click({replaceLines:a,editor:s}){a(l=>(l=l.trim().replace(/^#*/,"").trim(),l="#".repeat(o)+" "+l,l)),s.focus()}}}))}},{title:e.bold,icon:po.TextBold,cheatsheet:`**${e.boldText}**`,handler:{type:"action",shortcut:nm("B"),click({wrapText:o,editor:a}){o("**"),a.focus()}}},{title:e.italic,icon:po.TextItalic,cheatsheet:`*${e.italicText}*`,handler:{type:"action",shortcut:nm("I"),click({wrapText:o,editor:a}){o("*"),a.focus()}}},{title:e.quote,icon:po.Quote,cheatsheet:`> ${e.quotedText}`,handler:{type:"action",click({replaceLines:o,editor:a}){o(s=>"> "+s),a.focus()}}},{title:e.link,icon:po.LinkOne,cheatsheet:`[${e.linkText}](url)`,handler:{type:"action",shortcut:nm("K"),click({editor:o,wrapText:a,codemirror:s}){a("[","](url)");const l=o.getCursor();o.setSelection(s.Pos(l.line,l.ch+2),s.Pos(l.line,l.ch+5)),o.focus()}}},{title:e.image,icon:po.Pic,cheatsheet:``,handler:n?{type:"action",shortcut:nm("I",!0),async click(o){const a=await VTe({accept:"image/*",multiple:!0});a!=null&&a.length&&await B3e(o,n,Array.from(a))}}:void 0},{title:e.code,icon:po.Code,cheatsheet:"`"+e.codeText+"`",handler:{type:"action",shortcut:nm("K",!0),click({wrapText:o,editor:a}){o("`"),a.focus()}}},{title:e.codeBlock,icon:po.CodeBrackets,cheatsheet:"```"+e.codeLang+"↵",handler:{type:"action",shortcut:nm("C",!0),click({editor:o,appendBlock:a,codemirror:s}){const l=a("```js\n```");o.setSelection(s.Pos(l.line,3),s.Pos(l.line,5)),o.focus()}}},{title:e.ul,icon:po.ListTwo,cheatsheet:`- ${e.ulItem}`,handler:{type:"action",shortcut:nm("U",!0),click({replaceLines:o,editor:a}){o(s=>"- "+s),a.focus()}}},{title:e.ol,icon:po.OrderedList,cheatsheet:`1. ${e.olItem}`,handler:{type:"action",shortcut:nm("O",!0),click({replaceLines:o,editor:a}){o((s,l)=>`${l+1}. ${s}`),a.focus()}}},{title:e.hr,icon:po.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 xce(e,t,n){const r=e.slice();return r[5]=t[n],r}function wce(e,t,n){const r=e.slice();return r[5]=t[n],r}function _ce(e){let t,n,r=e[5].icon+"",i,o=e[5].title+"",a,s,l,c=e[5].cheatsheet+"",u;return{c(){t=Wr("li"),n=Wr("div"),i=Wr("div"),a=_a(o),s=Wr("div"),l=Wr("code"),u=_a(c),ii(n,"class","bytemd-help-icon"),ii(i,"class","bytemd-help-title"),ii(s,"class","bytemd-help-content")},m(d,h){Ma(d,t,h),Lr(t,n),n.innerHTML=r,Lr(t,i),Lr(i,a),Lr(t,s),Lr(s,l),Lr(l,u)},p(d,h){h&4&&r!==(r=d[5].icon+"")&&(n.innerHTML=r),h&4&&o!==(o=d[5].title+"")&&vs(a,o),h&4&&c!==(c=d[5].cheatsheet+"")&&vs(u,c)},d(d){d&&ga(t)}}}function Ece(e){let t,n=e[5].cheatsheet&&_ce(e);return{c(){n&&n.c(),t=M4()},m(r,i){n&&n.m(r,i),Ma(r,t,i)},p(r,i){r[5].cheatsheet?n?n.p(r,i):(n=_ce(r),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(r){n&&n.d(r),r&&ga(t)}}}function Tce(e){let t,n,r=e[5].icon+"",i,o=e[5].title+"",a,s,l,c=e[5].handler.shortcut+"",u;return{c(){t=Wr("li"),n=Wr("div"),i=Wr("div"),a=_a(o),s=Wr("div"),l=Wr("kbd"),u=_a(c),ii(n,"class","bytemd-help-icon"),ii(i,"class","bytemd-help-title"),ii(s,"class","bytemd-help-content")},m(d,h){Ma(d,t,h),Lr(t,n),n.innerHTML=r,Lr(t,i),Lr(i,a),Lr(t,s),Lr(s,l),Lr(l,u)},p(d,h){h&4&&r!==(r=d[5].icon+"")&&(n.innerHTML=r),h&4&&o!==(o=d[5].title+"")&&vs(a,o),h&4&&c!==(c=d[5].handler.shortcut+"")&&vs(u,c)},d(d){d&&ga(t)}}}function kce(e){let t,n=e[5].handler&&e[5].handler.type==="action"&&e[5].handler.shortcut&&Tce(e);return{c(){n&&n.c(),t=M4()},m(r,i){n&&n.m(r,i),Ma(r,t,i)},p(r,i){r[5].handler&&r[5].handler.type==="action"&&r[5].handler.shortcut?n?n.p(r,i):(n=Tce(r),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(r){n&&n.d(r),r&&ga(t)}}}function Lin(e){let t,n,r=e[0].cheatsheet+"",i,o,a,s=e[0].shortcuts+"",l,c,u=e[2],d=[];for(let m=0;m<u.length;m+=1)d[m]=Ece(wce(e,u,m));let h=e[2],p=[];for(let m=0;m<h.length;m+=1)p[m]=kce(xce(e,h,m));return{c(){t=Wr("div"),n=Wr("h2"),i=_a(r),o=Wr("ul");for(let m=0;m<d.length;m+=1)d[m].c();a=Wr("h2"),l=_a(s),c=Wr("ul");for(let m=0;m<p.length;m+=1)p[m].c();ii(t,"class","bytemd-help"),ka(t,"bytemd-hidden",!e[1])},m(m,v){Ma(m,t,v),Lr(t,n),Lr(n,i),Lr(t,o);for(let y=0;y<d.length;y+=1)d[y]&&d[y].m(o,null);Lr(t,a),Lr(a,l),Lr(t,c);for(let y=0;y<p.length;y+=1)p[y]&&p[y].m(c,null)},p(m,[v]){if(v&1&&r!==(r=m[0].cheatsheet+"")&&vs(i,r),v&4){u=m[2];let y;for(y=0;y<u.length;y+=1){const S=wce(m,u,y);d[y]?d[y].p(S,v):(d[y]=Ece(S),d[y].c(),d[y].m(o,null))}for(;y<d.length;y+=1)d[y].d(1);d.length=u.length}if(v&1&&s!==(s=m[0].shortcuts+"")&&vs(l,s),v&4){h=m[2];let y;for(y=0;y<h.length;y+=1){const S=xce(m,h,y);p[y]?p[y].p(S,v):(p[y]=kce(S),p[y].c(),p[y].m(c,null))}for(;y<p.length;y+=1)p[y].d(1);p.length=h.length}v&2&&ka(t,"bytemd-hidden",!m[1])},i:Hc,o:Hc,d(m){m&&ga(t),W_(d,m),W_(p,m)}}}function Fin(e,t,n){let r,{actions:i}=t,{locale:o}=t,{visible:a}=t;function s(l){let c=[];return l.forEach(u=>{const{handler:d,cheatsheet:h}=u;(d==null?void 0:d.type)==="dropdown"&&c.push(...s(d.actions)),h&&c.push(u)}),c}return e.$$set=l=>{"actions"in l&&n(3,i=l.actions),"locale"in l&&n(0,o=l.locale),"visible"in l&&n(1,a=l.visible)},e.$$.update=()=>{e.$$.dirty&8&&n(2,r=s(i))},[o,a,r,i]}class jin extends zC{constructor(t){super(),HC(this,t,Fin,Lin,N3e,{actions:3,locale:0,visible:1})}}function Oce(e){let t,n=e[2].limited+"",r;return{c(){t=Wr("span"),r=_a(n),ii(t,"class","bytemd-status-error")},m(i,o){Ma(i,t,o),Lr(t,r)},p(i,o){o&4&&n!==(n=i[2].limited+"")&&vs(r,n)},d(i){i&&ga(t)}}}function Pce(e){let t,n,r=e[2].sync+"",i,o,a;return{c(){t=Wr("label"),n=Wr("input"),i=_a(r),ii(n,"type","checkbox"),n.checked=e[1]},m(s,l){Ma(s,t,l),Lr(t,n),Lr(t,i),o||(a=Mc(n,"change",e[8]),o=!0)},p(s,l){l&2&&(n.checked=s[1]),l&4&&r!==(r=s[2].sync+"")&&vs(i,r)},d(s){s&&ga(t),o=!1,a()}}}function Bin(e){let t,n,r,i=e[2].words+"",o,a,s,l,c,u=e[2].lines+"",d,h,p,m,v,y,S=e[2].top+"",b,C,_,T=e[3]&&Oce(e),x=e[0]&&Pce(e);return{c(){t=Wr("div"),n=Wr("div"),r=Wr("span"),o=_a(i),a=_a(": "),s=Wr("strong"),l=_a(e[5]),c=Wr("span"),d=_a(u),h=_a(": "),p=Wr("strong"),m=_a(e[4]),T&&T.c(),v=Wr("div"),x&&x.c(),y=Wr("span"),b=_a(S),ii(n,"class","bytemd-status-left"),ii(v,"class","bytemd-status-right"),ii(t,"class","bytemd-status")},m(E,k){Ma(E,t,k),Lr(t,n),Lr(n,r),Lr(r,o),Lr(r,a),Lr(r,s),Lr(s,l),Lr(n,c),Lr(c,d),Lr(c,h),Lr(c,p),Lr(p,m),T&&T.m(n,null),Lr(t,v),x&&x.m(v,null),Lr(v,y),Lr(y,b),C||(_=[Mc(y,"click",e[9]),Mc(y,"keydown",PS(e[10]))],C=!0)},p(E,[k]){k&4&&i!==(i=E[2].words+"")&&vs(o,i),k&32&&vs(l,E[5]),k&4&&u!==(u=E[2].lines+"")&&vs(d,u),k&16&&vs(m,E[4]),E[3]?T?T.p(E,k):(T=Oce(E),T.c(),T.m(n,null)):T&&(T.d(1),T=null),E[0]?x?x.p(E,k):(x=Pce(E),x.c(),x.m(v,y)):x&&(x.d(1),x=null),k&4&&S!==(S=E[2].top+"")&&vs(b,S)},i:Hc,o:Hc,d(E){E&&ga(t),T&&T.d(),x&&x.d(),C=!1,sh(_)}}}function Hin(e,t,n){let r,i,{showSync:o}=t,{value:a}=t,{syncEnabled:s}=t,{locale:l}=t,{islimited:c}=t;const u=I4(),d=()=>u("sync",!s),h=()=>u("top"),p=m=>["Enter","Space"].includes(m.code)&&u("top");return e.$$set=m=>{"showSync"in m&&n(0,o=m.showSync),"value"in m&&n(7,a=m.value),"syncEnabled"in m&&n(1,s=m.syncEnabled),"locale"in m&&n(2,l=m.locale),"islimited"in m&&n(3,c=m.islimited)},e.$$.update=()=>{e.$$.dirty&128&&n(5,r=Mqt(a)),e.$$.dirty&128&&n(4,i=a.split(`
|
||
`).length)},[o,s,l,c,i,r,u,a,d,h,p]}class zin extends zC{constructor(t){super(),HC(this,t,Hin,Bin,N3e,{showSync:0,value:7,syncEnabled:1,locale:2,islimited:3})}}function Mce(e,t,n){const r=e.slice();return r[11]=t[n],r[13]=n,r}function Ice(e){let t,n=e[11].text+"",r,i,o,a,s;function l(){return e[8](e[13])}function c(...u){return e[9](e[13],...u)}return{c(){t=Wr("li"),r=_a(n),ii(t,"class",i=`bytemd-toc-${e[11].level}`),ii(t,"style",o=`padding-left:${(e[11].level-e[3])*16+8}px`),ka(t,"bytemd-toc-active",e[4]===e[13]),ka(t,"bytemd-toc-first",e[11].level===e[3])},m(u,d){Ma(u,t,d),Lr(t,r),a||(s=[Mc(t,"click",l),Mc(t,"keydown",PS(c))],a=!0)},p(u,d){e=u,d&4&&n!==(n=e[11].text+"")&&vs(r,n),d&4&&i!==(i=`bytemd-toc-${e[11].level}`)&&ii(t,"class",i),d&12&&o!==(o=`padding-left:${(e[11].level-e[3])*16+8}px`)&&ii(t,"style",o),d&20&&ka(t,"bytemd-toc-active",e[4]===e[13]),d&12&&ka(t,"bytemd-toc-first",e[11].level===e[3])},d(u){u&&ga(t),a=!1,sh(s)}}}function Uin(e){let t,n,r=e[0].toc+"",i,o,a=e[2],s=[];for(let l=0;l<a.length;l+=1)s[l]=Ice(Mce(e,a,l));return{c(){t=Wr("div"),n=Wr("h2"),i=_a(r),o=Wr("ul");for(let l=0;l<s.length;l+=1)s[l].c();ii(t,"class","bytemd-toc"),ka(t,"bytemd-hidden",!e[1])},m(l,c){Ma(l,t,c),Lr(t,n),Lr(n,i),Lr(t,o);for(let u=0;u<s.length;u+=1)s[u]&&s[u].m(o,null)},p(l,[c]){if(c&1&&r!==(r=l[0].toc+"")&&vs(i,r),c&60){a=l[2];let u;for(u=0;u<a.length;u+=1){const d=Mce(l,a,u);s[u]?s[u].p(d,c):(s[u]=Ice(d),s[u].c(),s[u].m(o,null))}for(;u<s.length;u+=1)s[u].d(1);s.length=a.length}c&2&&ka(t,"bytemd-hidden",!l[1])},i:Hc,o:Hc,d(l){l&&ga(t),W_(s,l)}}}function Win(e,t,n){let{hast:r}=t,{currentBlockIndex:i}=t,{locale:o}=t,{visible:a}=t;const s=I4();let l,c=6,u=0;function d(m){let v="";return C4(m,y=>{y.type==="text"&&(v+=y.value)}),v}const h=m=>{s("click",m)},p=(m,v)=>{["Enter","Space"].includes(v.code)&&s("click",m)};return e.$$set=m=>{"hast"in m&&n(6,r=m.hast),"currentBlockIndex"in m&&n(7,i=m.currentBlockIndex),"locale"in m&&n(0,o=m.locale),"visible"in m&&n(1,a=m.visible)},e.$$.update=()=>{e.$$.dirty&204&&(n(2,l=[]),n(4,u=0),r.children.filter(m=>m.type==="element").forEach((m,v)=>{if(m.tagName[0]==="h"&&m.children.length){const y=Number(m.tagName[1]);n(3,c=Math.min(c,y)),l.push({level:y,text:d(m)})}i>=v&&n(4,u=l.length-1)}))},[o,a,l,c,u,s,r,i,h,p]}class Vin extends zC{constructor(t){super(),HC(this,t,Win,Uin,yI,{hast:6,currentBlockIndex:7,locale:0,visible:1})}}function $ce(e,t,n){const r=e.slice();return r[25]=t[n],r[27]=n,r}function Rce(e,t,n){const r=e.slice();return r[25]=t[n],r[27]=n,r}function Kin(e){let t,n=e[2].write+"",r,i,o=e[2].preview+"",a,s,l;return{c(){t=Wr("div"),r=_a(n),i=Wr("div"),a=_a(o),ii(t,"class","bytemd-toolbar-tab"),ka(t,"bytemd-toolbar-tab-active",e[1]!=="preview"),ii(i,"class","bytemd-toolbar-tab"),ka(i,"bytemd-toolbar-tab-active",e[1]==="preview")},m(c,u){Ma(c,t,u),Lr(t,r),Ma(c,i,u),Lr(i,a),s||(l=[Mc(t,"click",e[16]),Mc(t,"keydown",PS(e[17])),Mc(i,"click",e[18]),Mc(i,"keydown",PS(e[19]))],s=!0)},p(c,u){u&4&&n!==(n=c[2].write+"")&&vs(r,n),u&2&&ka(t,"bytemd-toolbar-tab-active",c[1]!=="preview"),u&4&&o!==(o=c[2].preview+"")&&vs(a,o),u&2&&ka(i,"bytemd-toolbar-tab-active",c[1]==="preview")},d(c){c&&ga(t),c&&ga(i),s=!1,sh(l)}}}function qin(e){let t,n=e[3],r=[];for(let i=0;i<n.length;i+=1)r[i]=Nce(Rce(e,n,i));return{c(){for(let i=0;i<r.length;i+=1)r[i].c();t=M4()},m(i,o){for(let a=0;a<r.length;a+=1)r[a]&&r[a].m(i,o);Ma(i,t,o)},p(i,o){if(o&8){n=i[3];let a;for(a=0;a<n.length;a+=1){const s=Rce(i,n,a);r[a]?r[a].p(s,o):(r[a]=Nce(s),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){W_(r,i),i&&ga(t)}}}function Ace(e){let t,n=e[25].icon+"";return{c(){t=Wr("div"),ii(t,"class",["bytemd-toolbar-icon",qk].join(" ")),ii(t,"bytemd-tippy-path",e[27])},m(r,i){Ma(r,t,i),t.innerHTML=n},p(r,i){i&8&&n!==(n=r[25].icon+"")&&(t.innerHTML=n)},d(r){r&&ga(t)}}}function Nce(e){let t,n=e[25].handler&&Ace(e);return{c(){n&&n.c(),t=M4()},m(r,i){n&&n.m(r,i),Ma(r,t,i)},p(r,i){r[25].handler?n?n.p(r,i):(n=Ace(r),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(r){n&&n.d(r),r&&ga(t)}}}function Dce(e){let t,n=e[25].icon+"";return{c(){t=Wr("div"),ii(t,"class",["bytemd-toolbar-icon",qk,w8].join(" ")),ii(t,"bytemd-tippy-path",e[27]),ka(t,"bytemd-toolbar-icon-active",e[25].active)},m(r,i){Ma(r,t,i),t.innerHTML=n},p(r,i){i&32&&n!==(n=r[25].icon+"")&&(t.innerHTML=n),i&32&&ka(t,"bytemd-toolbar-icon-active",r[25].active)},d(r){r&&ga(t)}}}function Lce(e){let t,n=!e[25].hidden&&Dce(e);return{c(){n&&n.c(),t=M4()},m(r,i){n&&n.m(r,i),Ma(r,t,i)},p(r,i){r[25].hidden?n&&(n.d(1),n=null):n?n.p(r,i):(n=Dce(r),n.c(),n.m(t.parentNode,t))},d(r){n&&n.d(r),r&&ga(t)}}}function Gin(e){let t,n,r,i,o;function a(d,h){return d[0]?qin:Kin}let s=a(e),l=s(e),c=e[5],u=[];for(let d=0;d<c.length;d+=1)u[d]=Lce($ce(e,c,d));return{c(){t=Wr("div"),n=Wr("div"),l.c(),r=Wr("div");for(let d=0;d<u.length;d+=1)u[d].c();ii(n,"class","bytemd-toolbar-left"),ii(r,"class","bytemd-toolbar-right"),ii(t,"class","bytemd-toolbar")},m(d,h){Ma(d,t,h),Lr(t,n),l.m(n,null),Lr(t,r);for(let p=0;p<u.length;p+=1)u[p]&&u[p].m(r,null);e[20](t),i||(o=[Mc(t,"click",e[7]),Mc(t,"keydown",PS(e[21]))],i=!0)},p(d,[h]){if(s===(s=a(d))&&l?l.p(d,h):(l.d(1),l=s(d),l&&(l.c(),l.m(n,null))),h&32){c=d[5];let p;for(p=0;p<c.length;p+=1){const m=$ce(d,c,p);u[p]?u[p].p(m,h):(u[p]=Lce(m),u[p].c(),u[p].m(r,null))}for(;p<u.length;p+=1)u[p].d(1);u.length=c.length}},i:Hc,o:Hc,d(d){d&&ga(t),l.d(),W_(u,d),e[20](null),i=!1,sh(o)}}}const qk="bytemd-tippy",w8="bytemd-tippy-right",HN="bytemd-tippy-path";function Yin(e,t,n){let r,i,o,a,s;const l=I4();let c,{context:u}=t,{split:d}=t,{activeTab:h}=t,{fullscreen:p}=t,{sidebar:m}=t,{locale:v}=t,{actions:y}=t,{rightAfferentActions:S}=t;function b(R){var A,H;const F=(H=(A=R.getAttribute(HN))==null?void 0:A.split("-"))==null?void 0:H.map(W=>parseInt(W,10));if(!F)return;let z={title:"",handler:{type:"dropdown",actions:R.classList.contains(w8)?s:y}};return F==null||F.forEach(W=>{var q;((q=z.handler)==null?void 0:q.type)==="dropdown"&&(z=z.handler.actions[W])}),{paths:F,item:z}}let C;function _(){C=mYt(c,{target:`.${qk}`,onCreate({setProps:R,reference:A}){const H=b(A);if(!H)return;const{item:F,paths:z}=H,{handler:W}=F;if(W){if(W.type==="action")R({content:F.title,onHidden(q){q.destroy()}});else if(W.type==="dropdown"){const q=document.createElement("div");if(q.classList.add("bytemd-dropdown"),F.title){const Z=document.createElement("div");Z.classList.add("bytemd-dropdown-title"),Z.appendChild(document.createTextNode(F.title)),q.appendChild(Z)}W.actions.forEach((Z,N)=>{var B;const V=document.createElement("div");V.classList.add("bytemd-dropdown-item"),V.setAttribute(HN,[...z,N].join("-")),((B=Z.handler)==null?void 0:B.type)==="dropdown"&&V.classList.add(qk),A.classList.contains(w8)&&V.classList.add(w8),V.innerHTML=`${Z.icon?`<div class="bytemd-dropdown-item-icon">${Z.icon}</div>`:""}<div class="bytemd-dropdown-item-title">${Z.title}</div>`,q.appendChild(V)}),R({allowHTML:!0,showOnCreate:!0,theme:"light-border",placement:"bottom-start",interactive:!0,interactiveDebounce:50,arrow:!1,offset:[0,4],content:q.outerHTML,onHidden(Z){Z.destroy()},onCreate(Z){[...Z.popper.querySelectorAll(".bytemd-dropdown-item")].forEach((N,B)=>{var V;const Y=(V=W.actions[B])==null?void 0:V.handler;if((Y==null?void 0:Y.type)==="action"){const{mouseenter:ie,mouseleave:ce}=Y;ie&&N.addEventListener("mouseenter",()=>{ie(u)}),ce&&N.addEventListener("mouseleave",()=>{ce(u)})}})}})}}}})}Yq(()=>{_()});function T(R){var A,H;const F=R.target.closest(`[${HN}]`);if(!F)return;const z=(H=(A=b(F))==null?void 0:A.item)==null?void 0:H.handler;(z==null?void 0:z.type)==="action"&&z.click(u),C==null||C.destroy(),_()}const x=()=>l("tab","write"),E=R=>["Enter","Space"].includes(R.code)&&l("tab","write"),k=()=>l("tab","preview"),M=R=>["Enter","Space"].includes(R.code)&&l("tab","preview");function P(R){ov[R?"unshift":"push"](()=>{c=R,n(4,c)})}const D=R=>["Enter","Space"].includes(R.code)&&T(R);return e.$$set=R=>{"context"in R&&n(8,u=R.context),"split"in R&&n(0,d=R.split),"activeTab"in R&&n(1,h=R.activeTab),"fullscreen"in R&&n(9,p=R.fullscreen),"sidebar"in R&&n(10,m=R.sidebar),"locale"in R&&n(2,v=R.locale),"actions"in R&&n(3,y=R.actions),"rightAfferentActions"in R&&n(11,S=R.rightAfferentActions)},e.$$.update=()=>{e.$$.dirty&1024&&n(15,r=m==="toc"),e.$$.dirty&1024&&n(14,i=m==="help"),e.$$.dirty&2&&n(13,o=h==="write"),e.$$.dirty&2&&n(12,a=h==="preview"),e.$$.dirty&64005&&n(5,s=[{title:r?v.closeToc:v.toc,icon:po.AlignTextLeftOne,handler:{type:"action",click(){l("click","toc")}},active:r},{title:i?v.closeHelp:v.help,icon:po.Helpcenter,handler:{type:"action",click(){l("click","help")}},active:i},{title:o?v.exitWriteOnly:v.writeOnly,icon:po.LeftExpand,handler:{type:"action",click(){l("tab","write")}},active:o,hidden:!d},{title:a?v.exitPreviewOnly:v.previewOnly,icon:po.RightExpand,handler:{type:"action",click(){l("tab","preview")}},active:a,hidden:!d},{title:p?v.exitFullscreen:v.fullscreen,icon:p?po.OffScreen:po.FullScreen,handler:{type:"action",click(){l("click","fullscreen")}}},{title:v.source,icon:po.GithubOne,handler:{type:"action",click(){window.open("https://github.com/bytedance/bytemd")}}},...S])},[d,h,v,y,c,s,l,T,u,p,m,S,a,o,i,r,x,E,k,M,P,D]}class Xin extends zC{constructor(t){super(),HC(this,t,Yin,Gin,yI,{context:8,split:0,activeTab:1,fullscreen:9,sidebar:10,locale:2,actions:3,rightAfferentActions:11})}}const Qin=JSON.stringify(Oq);function H3e({sanitize:e,plugins:t,remarkRehype:n={}}){let r=frn().use(fnn);t==null||t.forEach(({remark:o})=>{o&&(r=o(r))}),r=r.use(qnn,{allowDangerousHtml:!0,...n}).use(hJt);let i=JSON.parse(Qin);return i.attributes["*"].push("className"),typeof e=="function"&&(i=e(i)),r=r.use(pJt,i),t==null||t.forEach(({rehype:o})=>{o&&(r=o(r))}),r.use(uen)}function Zin(e){let t;return{c(){t=Wr("div"),ii(t,"class","markdown-body")},m(n,r){Ma(n,t,r),t.innerHTML=e[1],e[8](t)},p(n,[r]){r&2&&(t.innerHTML=n[1])},i:Hc,o:Hc,d(n){n&&ga(t),e[8](null)}}}function Jin(e,t,n){let r;const i=I4();let{value:o=""}=t,{plugins:a=[]}=t,{sanitize:s=void 0}=t,{remarkRehype:l=void 0}=t,c,u=[];function d(){u=a.map(S=>{var b;return(b=S.viewerEffect)==null?void 0:b.call(S,{markdownBody:c,file:p})})}function h(){u.forEach(S=>S==null?void 0:S())}Yq(()=>{c.addEventListener("click",S=>{var b;const C=S.target;if(C.tagName!=="A")return;const _=C.getAttribute("href");_!=null&&_.startsWith("#")&&((b=c.querySelector("#user-content-"+_.slice(1)))==null||b.scrollIntoView())})}),D3e(h);let p,m=0;const v=()=>(S,b)=>{C8().then(()=>{i("hast",{hast:S,file:b})})};Arn(()=>{h(),d()});function y(S){ov[S?"unshift":"push"](()=>{c=S,n(0,c)})}return e.$$set=S=>{"value"in S&&n(2,o=S.value),"plugins"in S&&n(3,a=S.plugins),"sanitize"in S&&n(4,s=S.sanitize),"remarkRehype"in S&&n(5,l=S.remarkRehype)},e.$$.update=()=>{if(e.$$.dirty&188)try{n(6,p=H3e({sanitize:s,plugins:[...a,{rehype:S=>S.use(v)}],remarkRehype:l}).processSync(o)),n(7,m++,m)}catch(S){console.error(S)}e.$$.dirty&192&&n(1,r=`${p}<!--${m}-->`)},[c,r,o,a,s,l,p,m,y]}let eon=class extends zC{constructor(t){super(),HC(this,t,Jin,Zin,yI,{value:2,plugins:3,sanitize:4,remarkRehype:5})}};function Fce(e){let t,n;return t=new eon({props:{value:e[16],plugins:e[1],sanitize:e[2],remarkRehype:e[3]}}),t.$on("hast",e[35]),{c(){A2(t.$$.fragment)},m(r,i){Xy(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||(jh(t.$$.fragment,r),n=!0)},o(r){u1(t.$$.fragment,r),n=!1},d(r){Qy(t,r)}}}function ton(e){let t,n,r,i,o,a,s,l,c,u=po.Close+"",d,h,p,m,v,y;n=new Xin({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 S=!e[4]&&(e[11]||e[8]==="preview")&&Fce(e);return d=new jin({props:{locale:e[12],actions:e[21].leftActions,visible:e[9]==="help"}}),h=new Vin({props:{hast:e[18],locale:e[12],currentBlockIndex:e[20],visible:e[9]==="toc"}}),h.$on("click",e[39]),p=new zin({props:{locale:e[12],showSync:!e[4]&&e[11],value:e[16],syncEnabled:e[17],islimited:e[0].length>e[5]}}),p.$on("sync",e[40]),p.$on("top",e[41]),{c(){t=Wr("div"),A2(n.$$.fragment),r=Wr("div"),i=Wr("div"),a=Wr("div"),S&&S.c(),l=Wr("div"),c=Wr("div"),A2(d.$$.fragment),A2(h.$$.fragment),A2(p.$$.fragment),ii(i,"class","bytemd-editor"),ii(i,"style",o=e[22].edit),ii(a,"class","bytemd-preview"),ii(a,"style",s=e[22].preview),ii(c,"class","bytemd-sidebar-close"),ii(l,"class","bytemd-sidebar"),ka(l,"bytemd-hidden",e[9]===!1),ii(r,"class","bytemd-body"),ii(t,"class","bytemd"),ka(t,"bytemd-split",e[11]&&e[8]===!1),ka(t,"bytemd-fullscreen",e[15])},m(b,C){Ma(b,t,C),Xy(n,t,null),Lr(t,r),Lr(r,i),e[34](i),Lr(r,a),S&&S.m(a,null),e[36](a),Lr(r,l),Lr(l,c),c.innerHTML=u,Xy(d,l,null),Xy(h,l,null),Xy(p,t,null),e[42](t),m=!0,v||(y=[Mc(c,"click",e[37]),Mc(c,"keydown",PS(e[38]))],v=!0)},p(b,C){const _={};C[0]&1024&&(_.context=b[10]),C[0]&2048&&(_.split=b[11]),C[0]&256&&(_.activeTab=b[8]),C[0]&512&&(_.sidebar=b[9]),C[0]&32768&&(_.fullscreen=b[15]),C[0]&2097152&&(_.rightAfferentActions=b[21].rightActions),C[0]&4096&&(_.locale=b[12]),C[0]&2097152&&(_.actions=b[21].leftActions),n.$set(_),(!m||C[0]&4194304&&o!==(o=b[22].edit))&&ii(i,"style",o),!b[4]&&(b[11]||b[8]==="preview")?S?(S.p(b,C),C[0]&2320&&jh(S,1)):(S=Fce(b),S.c(),jh(S,1),S.m(a,null)):S&&(Lrn(),u1(S,1,1,()=>{S=null}),Frn()),(!m||C[0]&4194304&&s!==(s=b[22].preview))&&ii(a,"style",s);const T={};C[0]&4096&&(T.locale=b[12]),C[0]&2097152&&(T.actions=b[21].leftActions),C[0]&512&&(T.visible=b[9]==="help"),d.$set(T);const x={};C[0]&262144&&(x.hast=b[18]),C[0]&4096&&(x.locale=b[12]),C[0]&1048576&&(x.currentBlockIndex=b[20]),C[0]&512&&(x.visible=b[9]==="toc"),h.$set(x),(!m||C[0]&512)&&ka(l,"bytemd-hidden",b[9]===!1);const E={};C[0]&4096&&(E.locale=b[12]),C[0]&2064&&(E.showSync=!b[4]&&b[11]),C[0]&65536&&(E.value=b[16]),C[0]&131072&&(E.syncEnabled=b[17]),C[0]&33&&(E.islimited=b[0].length>b[5]),p.$set(E),(!m||C[0]&2304)&&ka(t,"bytemd-split",b[11]&&b[8]===!1),(!m||C[0]&32768)&&ka(t,"bytemd-fullscreen",b[15])},i(b){m||(jh(n.$$.fragment,b),jh(S),jh(d.$$.fragment,b),jh(h.$$.fragment,b),jh(p.$$.fragment,b),m=!0)},o(b){u1(n.$$.fragment,b),u1(S),u1(d.$$.fragment,b),u1(h.$$.fragment,b),u1(p.$$.fragment,b),m=!1},d(b){b&&ga(t),Qy(n),e[34](null),S&&S.d(),e[36](null),Qy(d),Qy(h),Qy(p),e[42](null),v=!1,sh(y)}}}function non(e,t,n){let r,i,o,a,s,{value:l=""}=t,{plugins:c=[]}=t,{sanitize:u=void 0}=t,{remarkRehype:d=void 0}=t,{mode:h="auto"}=t,{previewDebounce:p=300}=t,{placeholder:m=void 0}=t,{editorConfig:v=void 0}=t,{locale:y=void 0}=t,{uploadImages:S=void 0}=t,{overridePreview:b=void 0}=t,{maxLength:C=1/0}=t;const _=I4();let T,x,E,k=1/0,M,P,D,R=!1,A=!1,H=[],F={};function z(){H=c.map(Ce=>{var Te;return(Te=Ce.editorEffect)==null?void 0:Te.call(Ce,s)}),F={},i.leftActions.forEach(({handler:Ce})=>{(Ce==null?void 0:Ce.type)==="action"&&Ce.shortcut&&(F[Ce.shortcut]=()=>{Ce.click(s)})}),P.addKeyMap(F)}function W(){H.forEach(Ce=>Ce&&Ce()),P==null||P.removeKeyMap(F)}let q=l;const Z=$3e(Ce=>{n(16,q=Ce),b==null||b(E,{value:q,plugins:c,sanitize:u,remarkRehype:d})},p);let N=!0,B=!1,V=!1,Y,ie,ce={type:"root",children:[]},fe,ee=0;Yq(async()=>{n(30,M=Ain()),n(7,P=M(x,{value:l,mode:"yaml-frontmatter",lineWrapping:!0,tabSize:8,indentUnit:4,extraKeys:{Enter:"newlineAndIndentContinueMarkdownList"},...v,placeholder:m})),P.addKeyMap({Tab:"indentMore","Shift-Tab":"indentLess"}),P.on("change",()=>{_("change",{value:P.getValue()})});const Ce=Mrn(()=>{Y=[],ie=[];const Ne=P.getScrollInfo(),We=E.childNodes[0];if(!(We instanceof HTMLElement))return;const Q=ce.children.filter(J=>J.type==="element"),K=[...We.childNodes].filter(J=>J instanceof HTMLElement);for(let J=0;J<Q.length;J++){const be=Q[J],Oe=K[J];if(!be.position)continue;const Se=P.heightAtLine(be.position.start.line-1,"local")/(Ne.height-Ne.clientHeight),Ke=(Oe.offsetTop-We.offsetTop)/(E.scrollHeight-E.clientHeight);if(Se>=1||Ke>=1)break;Y.push(Se),ie.push(Ke)}Y.push(1),ie.push(1)},1e3),Te=()=>{if(b||!N)return;if(V){V=!1;return}Ce();const Ne=P.getScrollInfo(),We=Ne.top/(Ne.height-Ne.clientHeight),Q=BN(We,Y),K=(We-Y[Q])*(ie[Q+1]-ie[Q])/(Y[Q+1]-Y[Q])+ie[Q];E.scrollTo(0,K*(E.scrollHeight-E.clientHeight)),B=!0},ke=()=>{if(b||(Ce(),n(20,ee=BN(E.scrollTop/(E.scrollHeight-E.offsetHeight),ie)),!N))return;if(B){B=!1;return}const Ne=E.scrollTop/(E.scrollHeight-E.clientHeight),We=BN(Ne,ie),Q=(Ne-ie[We])*(Y[We+1]-Y[We])/(ie[We+1]-ie[We])+Y[We];if(isNaN(Q))return;const K=P.getScrollInfo();P.scrollTo(0,Q*(K.height-K.clientHeight)),V=!0};P.on("scroll",Te),E.addEventListener("scroll",ke,{passive:!0});const Pe=async(Ne,We)=>{if(!S)return;const Q=Array.from(We??[]).map(K=>{if(K.type.startsWith("image/"))return K.getAsFile()}).filter(K=>K!=null);Q.length&&(Ne.preventDefault(),await B3e(s,S,Q))};P.on("drop",async(Ne,We)=>{var Q;Pe(We,(Q=We.dataTransfer)==null?void 0:Q.items)}),P.on("paste",async(Ne,We)=>{var Q;Pe(We,(Q=We.clipboardData)==null?void 0:Q.items)}),new ResizeObserver(Ne=>{n(29,k=Ne[0].contentRect.width)}).observe(T,{box:"border-box"})}),D3e(W);const ne=Ce=>{P.setOption("keyMap",Ce.detail),P.focus()},ue=Ce=>{const Te=Ce.detail;o?n(8,D=D===Te?!1:Te):n(8,D=Te),D==="write"&&C8().then(()=>{P&&P.focus()}),Te==="write"&&C8().then(()=>{P&&P.setSize(null,null)})},ye=Ce=>{switch(Ce.detail){case"fullscreen":n(15,R=!R);break;case"help":n(9,A=A==="help"?!1:"help");break;case"toc":n(9,A=A==="toc"?!1:"toc");break}};function me(Ce){ov[Ce?"unshift":"push"](()=>{x=Ce,n(13,x)})}const pe=Ce=>{n(18,ce=Ce.detail.hast),n(19,fe=Ce.detail.file)};function he(Ce){ov[Ce?"unshift":"push"](()=>{E=Ce,n(14,E)})}const _e=()=>{n(9,A=!1)},le=Ce=>{["Enter","Space"].includes(Ce.code)&&n(9,A=!1)},xe=Ce=>{E.querySelectorAll("h1,h2,h3,h4,h5,h6")[Ce.detail].scrollIntoView()},we=Ce=>{n(17,N=Ce.detail)},De=()=>{P.scrollTo(null,0),E.scrollTo({top:0})};function Fe(Ce){ov[Ce?"unshift":"push"](()=>{T=Ce,n(6,T)})}return e.$$set=Ce=>{"value"in Ce&&n(0,l=Ce.value),"plugins"in Ce&&n(1,c=Ce.plugins),"sanitize"in Ce&&n(2,u=Ce.sanitize),"remarkRehype"in Ce&&n(3,d=Ce.remarkRehype),"mode"in Ce&&n(23,h=Ce.mode),"previewDebounce"in Ce&&n(24,p=Ce.previewDebounce),"placeholder"in Ce&&n(25,m=Ce.placeholder),"editorConfig"in Ce&&n(26,v=Ce.editorConfig),"locale"in Ce&&n(27,y=Ce.locale),"uploadImages"in Ce&&n(28,S=Ce.uploadImages),"overridePreview"in Ce&&n(4,b=Ce.overridePreview),"maxLength"in Ce&&n(5,C=Ce.maxLength)},e.$$.update=()=>{e.$$.dirty[0]&134217728&&n(12,r={...Rin,...y}),e.$$.dirty[0]&268439554&&n(21,i=Din(r,c,S)),e.$$.dirty[0]&545259520&&n(11,o=h==="split"||h==="auto"&&k>=800),e.$$.dirty[0]&2048&&(Ce=>{o&&n(8,D=!1)})(),e.$$.dirty[0]&2816&&n(22,a=(()=>{let Ce,Te;return o&&D===!1?A?(Ce=`width:calc(50% - ${A?140:0}px)`,Te=`width:calc(50% - ${A?140:0}px)`):(Ce="width:50%",Te="width:50%"):D==="preview"?(Ce="display:none",Te=`width:calc(100% - ${A?280:0}px)`):(Ce=`width:calc(100% - ${A?280:0}px)`,Te="display:none"),{edit:Ce,preview:Te}})()),e.$$.dirty[0]&1073742016&&n(10,s={codemirror:M,editor:P,root:T,...Nin(M,P)}),e.$$.dirty[0]&1&&Z(l),e.$$.dirty[0]&129&&P&&l!==P.getValue()&&P.setValue(l),e.$$.dirty[0]&130&&P&&c&&(W(),C8().then(()=>{z()}))},[l,c,u,d,b,C,T,P,D,A,s,o,r,x,E,R,q,N,ce,fe,ee,i,a,h,p,m,v,y,S,k,M,ne,ue,ye,me,pe,he,_e,le,xe,we,De,Fe]}let ron=class extends zC{constructor(t){super(),HC(this,t,non,ton,yI,{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 ion=({onChange:e,...t})=>{const n=f.useRef(),r=f.useRef(null),i=f.useRef();return f.useEffect(()=>{if(!r.current)return;const o=new ron({target:r.current,props:t});return o.$on("change",a=>{var s;(s=i.current)==null||s.call(i,a.detail.value)}),n.current=o,()=>{o.$destroy()}},[]),f.useEffect(()=>{i.current=e},[e]),f.useEffect(()=>{var o;(o=n.current)==null||o.$set(t)},[t]),ge.createElement("div",{ref:r})},oon=({value:e,sanitize:t,plugins:n,remarkRehype:r})=>{var i;const o=f.useRef(null),a=f.useMemo(()=>{try{return H3e({sanitize:t,plugins:n,remarkRehype:r}).processSync(e)}catch(s){console.error(s)}},[e,t,n,r]);return f.useEffect(()=>{const s=o.current;if(!s||!a)return;const l=n==null?void 0:n.map(({viewerEffect:c})=>c==null?void 0:c({markdownBody:s,file:a}));return()=>{l==null||l.forEach(c=>c&&c())}},[a,n]),ge.createElement("div",{onClick:s=>{var l,c;const u=s.target;if(u.tagName!=="A")return;const d=u.getAttribute("href");d!=null&&d.startsWith("#")&&((c=(l=o.current)==null?void 0:l.querySelector("#user-content-"+d.slice(1)))==null||c.scrollIntoView())},ref:o,className:"markdown-body",dangerouslySetInnerHTML:{__html:(i=a==null?void 0:a.toString())!=null?i:""}})},aon={tokenize:fon,partial:!0},z3e={tokenize:hon,partial:!0},U3e={tokenize:pon,partial:!0},W3e={tokenize:mon,partial:!0},son={tokenize:gon,partial:!0},V3e={tokenize:uon,previous:q3e},K3e={tokenize:don,previous:G3e},Dp={tokenize:con,previous:Y3e},lh={},lon={text:lh};let t1=48;for(;t1<123;)lh[t1]=Dp,t1++,t1===58?t1=65:t1===91&&(t1=97);lh[43]=Dp;lh[45]=Dp;lh[46]=Dp;lh[95]=Dp;lh[72]=[Dp,K3e];lh[104]=[Dp,K3e];lh[87]=[Dp,V3e];lh[119]=[Dp,V3e];function con(e,t,n){const r=this;let i,o;return a;function a(d){return!yH(d)||!Y3e.call(r,r.previous)||Xq(r.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(d))}function s(d){return yH(d)?(e.consume(d),s):d===64?(e.consume(d),l):n(d)}function l(d){return d===46?e.check(son,u,c)(d):d===45||d===95||zs(d)?(o=!0,e.consume(d),l):u(d)}function c(d){return e.consume(d),i=!0,l}function u(d){return o&&i&&fl(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function uon(e,t,n){const r=this;return i;function i(a){return a!==87&&a!==119||!q3e.call(r,r.previous)||Xq(r.events)?n(a):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(aon,e.attempt(z3e,e.attempt(U3e,o),n),n)(a))}function o(a){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(a)}}function don(e,t,n){const r=this;let i="",o=!1;return a;function a(d){return(d===72||d===104)&&G3e.call(r,r.previous)&&!Xq(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(d),e.consume(d),s):n(d)}function s(d){if(fl(d)&&i.length<5)return i+=String.fromCodePoint(d),e.consume(d),s;if(d===58){const h=i.toLowerCase();if(h==="http"||h==="https")return e.consume(d),l}return n(d)}function l(d){return d===47?(e.consume(d),o?c:(o=!0,l)):n(d)}function c(d){return d===null||Wk(d)||no(d)||Nv(d)||gI(d)?n(d):e.attempt(z3e,e.attempt(U3e,u),n)(d)}function u(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function fon(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 hon(e,t,n){let r,i,o;return a;function a(c){return c===46||c===95?e.check(W3e,l,s)(c):c===null||no(c)||Nv(c)||c!==45&&gI(c)?l(c):(o=!0,e.consume(c),a)}function s(c){return c===95?r=!0:(i=r,r=void 0),e.consume(c),a}function l(c){return i||r||!o?n(c):t(c)}}function pon(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(W3e,t,o)(a):a===null||no(a)||Nv(a)?t(a):(e.consume(a),i)}function o(a){return a===41&&r++,e.consume(a),i}}function mon(e,t,n){return r;function r(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(e.consume(s),r):s===38?(e.consume(s),o):s===93?(e.consume(s),i):s===60||s===null||no(s)||Nv(s)?t(s):n(s)}function i(s){return s===null||s===40||s===91||no(s)||Nv(s)?t(s):r(s)}function o(s){return fl(s)?a(s):n(s)}function a(s){return s===59?(e.consume(s),r):fl(s)?(e.consume(s),a):n(s)}}function gon(e,t,n){return r;function r(o){return e.consume(o),i}function i(o){return zs(o)?n(o):t(o)}}function q3e(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||no(e)}function G3e(e){return!fl(e)}function Y3e(e){return!(e===47||yH(e))}function yH(e){return e===43||e===45||e===46||e===95||zs(e)}function Xq(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 von={tokenize:Eon,partial:!0};function yon(){return{document:{91:{tokenize:xon,continuation:{tokenize:won},exit:_on}},text:{91:{tokenize:Con},93:{add:"after",tokenize:bon,resolveTo:Son}}}}function bon(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){a=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return s;function s(l){if(!a||!a._balanced)return n(l);const c=Rd(r.sliceSerialize({start:a.end,end:r.now()}));return c.codePointAt(0)!==94||!o.includes(c.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function Son(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)},s=[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,...s),e}function Con(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,a;return s;function s(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),l}function l(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(d){if(o>999||d===93&&!a||d===null||d===91||no(d))return n(d);if(d===93){e.exit("chunkString");const h=e.exit("gfmFootnoteCallString");return i.includes(Rd(r.sliceSerialize(h)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return no(d)||(a=!0),o++,e.consume(d),d===92?u:c}function u(d){return d===91||d===92||d===93?(e.consume(d),o++,c):c(d)}}function xon(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,a=0,s;return l;function l(m){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(m){return m===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(m)}function u(m){if(a>999||m===93&&!s||m===null||m===91||no(m))return n(m);if(m===93){e.exit("chunkString");const v=e.exit("gfmFootnoteDefinitionLabelString");return o=Rd(r.sliceSerialize(v)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return no(m)||(s=!0),a++,e.consume(m),m===92?d:u}function d(m){return m===91||m===92||m===93?(e.consume(m),a++,u):u(m)}function h(m){return m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),i.includes(o)||i.push(o),bi(e,p,"gfmFootnoteDefinitionWhitespace")):n(m)}function p(m){return t(m)}}function won(e,t,n){return e.check(O4,t,e.attempt(von,t,n))}function _on(e){e.exit("gfmFootnoteDefinition")}function Eon(e,t,n){const r=this;return bi(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 Ton(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,s){let l=-1;for(;++l<a.length;)if(a[l][0]==="enter"&&a[l][1].type==="strikethroughSequenceTemporary"&&a[l][1]._close){let c=l;for(;c--;)if(a[c][0]==="exit"&&a[c][1].type==="strikethroughSequenceTemporary"&&a[c][1]._open&&a[l][1].end.offset-a[l][1].start.offset===a[c][1].end.offset-a[c][1].start.offset){a[l][1].type="strikethroughSequence",a[c][1].type="strikethroughSequence";const u={type:"strikethrough",start:Object.assign({},a[c][1].start),end:Object.assign({},a[l][1].end)},d={type:"strikethroughText",start:Object.assign({},a[c][1].end),end:Object.assign({},a[l][1].start)},h=[["enter",u,s],["enter",a[c][1],s],["exit",a[c][1],s],["enter",d,s]],p=s.parser.constructs.insideSpan.null;p&&Rc(h,h.length,0,vI(p,a.slice(c+1,l),s)),Rc(h,h.length,0,[["exit",d,s],["enter",a[l][1],s],["exit",a[l][1],s],["exit",u,s]]),Rc(a,c-1,l-c+3,h),l=c+h.length-2;break}}for(l=-1;++l<a.length;)a[l][1].type==="strikethroughSequenceTemporary"&&(a[l][1].type="data");return a}function o(a,s,l){const c=this.previous,u=this.events;let d=0;return h;function h(m){return c===126&&u[u.length-1][1].type!=="characterEscape"?l(m):(a.enter("strikethroughSequenceTemporary"),p(m))}function p(m){const v=Vk(c);if(m===126)return d>1?l(m):(a.consume(m),d++,p);if(d<2&&!n)return l(m);const y=a.exit("strikethroughSequenceTemporary"),S=Vk(m);return y._open=!S||S===2&&!!v,y._close=!v||v===2&&!!S,s(m)}}}class kon{constructor(){this.map=[]}add(t,n,r){Oon(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 Oon(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 Pon(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 Mon={flow:{null:{tokenize:Ion,resolveAll:$on}}};function Ion(e,t,n){const r=this;let i=0,o=0,a;return s;function s(P){let D=r.events.length-1;for(;D>-1;){const H=r.events[D][1].type;if(H==="lineEnding"||H==="linePrefix")D--;else break}const R=D>-1?r.events[D][1].type:null,A=R==="tableHead"||R==="tableRow"?x:l;return A===x&&r.parser.lazy[r.now().line]?n(P):A(P)}function l(P){return e.enter("tableHead"),e.enter("tableRow"),c(P)}function c(P){return P===124||(a=!0,o+=1),u(P)}function u(P){return P===null?n(P):yr(P)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),p):n(P):Zr(P)?bi(e,u,"whitespace")(P):(o+=1,a&&(a=!1,i+=1),P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),a=!0,u):(e.enter("data"),d(P)))}function d(P){return P===null||P===124||no(P)?(e.exit("data"),u(P)):(e.consume(P),P===92?h:d)}function h(P){return P===92||P===124?(e.consume(P),d):d(P)}function p(P){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(P):(e.enter("tableDelimiterRow"),a=!1,Zr(P)?bi(e,m,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):m(P))}function m(P){return P===45||P===58?y(P):P===124?(a=!0,e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),v):T(P)}function v(P){return Zr(P)?bi(e,y,"whitespace")(P):y(P)}function y(P){return P===58?(o+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),S):P===45?(o+=1,S(P)):P===null||yr(P)?_(P):T(P)}function S(P){return P===45?(e.enter("tableDelimiterFiller"),b(P)):T(P)}function b(P){return P===45?(e.consume(P),b):P===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),C):(e.exit("tableDelimiterFiller"),C(P))}function C(P){return Zr(P)?bi(e,_,"whitespace")(P):_(P)}function _(P){return P===124?m(P):P===null||yr(P)?!a||i!==o?T(P):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(P)):T(P)}function T(P){return n(P)}function x(P){return e.enter("tableRow"),E(P)}function E(P){return P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),E):P===null||yr(P)?(e.exit("tableRow"),t(P)):Zr(P)?bi(e,E,"whitespace")(P):(e.enter("data"),k(P))}function k(P){return P===null||P===124||no(P)?(e.exit("data"),E(P)):(e.consume(P),P===92?M:k)}function M(P){return P===92||P===124?(e.consume(P),k):k(P)}}function $on(e,t){let n=-1,r=!0,i=0,o=[0,0,0,0],a=[0,0,0,0],s=!1,l=0,c,u,d;const h=new kon;for(;++n<e.length;){const p=e[n],m=p[1];p[0]==="enter"?m.type==="tableHead"?(s=!1,l!==0&&(jce(h,t,l,c,u),u=void 0,l=0),c={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},h.add(n,0,[["enter",c,t]])):m.type==="tableRow"||m.type==="tableDelimiterRow"?(r=!0,d=void 0,o=[0,0,0,0],a=[0,n+1,0,0],s&&(s=!1,u={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},h.add(n,0,[["enter",u,t]])),i=m.type==="tableDelimiterRow"?2:u?3:1):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")?(r=!1,a[2]===0&&(o[1]!==0&&(a[0]=a[1],d=q5(h,t,o,i,void 0,d),o=[0,0,0,0]),a[2]=n)):m.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(a[0]=a[1],d=q5(h,t,o,i,void 0,d)),o=a,a=[o[1],n,0,0])):m.type==="tableHead"?(s=!0,l=n):m.type==="tableRow"||m.type==="tableDelimiterRow"?(l=n,o[1]!==0?(a[0]=a[1],d=q5(h,t,o,i,n,d)):a[1]!==0&&(d=q5(h,t,a,i,n,d)),i=0):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(a[3]=n)}for(l!==0&&jce(h,t,l,c,u),h.consume(t.events),n=-1;++n<t.events.length;){const p=t.events[n];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=Pon(t.events,n))}return e}function q5(e,t,n,r,i,o){const a=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",s="tableContent";n[0]!==0&&(o.end=Object.assign({},ky(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const l=ky(t.events,n[1]);if(o={type:a,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",o,t]]),n[2]!==0){const c=ky(t.events,n[2]),u=ky(t.events,n[3]),d={type:s,start:Object.assign({},c),end:Object.assign({},u)};if(e.add(n[2],0,[["enter",d,t]]),r!==2){const h=t.events[n[2]],p=t.events[n[3]];if(h[1].end=Object.assign({},p[1].end),h[1].type="chunkText",h[1].contentType="text",n[3]>n[2]+1){const m=n[2]+1,v=n[3]-n[2]-1;e.add(m,v,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return i!==void 0&&(o.end=Object.assign({},ky(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function jce(e,t,n,r,i){const o=[],a=ky(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 ky(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const Ron={tokenize:Non},Aon={text:{91:Ron}};function Non(e,t,n){const r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),o)}function o(l){return no(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),a):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),a):n(l)}function a(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(l)}function s(l){return yr(l)?t(l):Zr(l)?e.check({tokenize:Don},t,n)(l):n(l)}}function Don(e,t,n){return bi(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function Lon(e){return c3e([lon,yon(),Ton(e),Mon,Aon])}function Fon(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const jon={}.hasOwnProperty,X3e=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=bq(i.ignore||[]),s=Bon(o);let l=-1;for(;++l<s.length;)KTe(e,"text",c);return e;function c(d,h){let p=-1,m;for(;++p<h.length;){const v=h[p];if(a(v,m?m.children.indexOf(v):void 0,m))return;m=v}if(m)return u(d,h)}function u(d,h){const p=h[h.length-1],m=s[l][0],v=s[l][1];let y=0;const S=p.children.indexOf(d);let b=!1,C=[];m.lastIndex=0;let _=m.exec(d.value);for(;_;){const T=_.index,x={index:_.index,input:_.input,stack:[...h,d]};let E=v(..._,x);if(typeof E=="string"&&(E=E.length>0?{type:"text",value:E}:void 0),E!==!1&&(y!==T&&C.push({type:"text",value:d.value.slice(y,T)}),Array.isArray(E)?C.push(...E):E&&C.push(E),y=T+_[0].length,b=!0),!m.global)break;_=m.exec(d.value)}return b?(y<d.value.length&&C.push({type:"text",value:d.value.slice(y)}),p.children.splice(S,1,...C)):C=[d],S+C.length}};function Bon(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([Bce(e[n][0]),Hce(e[n][1])])}else{let n;for(n in e)jon.call(e,n)&&t.push([Bce(n),Hce(e[n])])}return t}function Bce(e){return typeof e=="string"?new RegExp(Fon(e),"g"):e}function Hce(e){return typeof e=="function"?e:()=>e}const zN="phrasing",UN=["autolink","link","image","label"],Hon={transforms:[Gon],enter:{literalAutolink:Uon,literalAutolinkEmail:WN,literalAutolinkHttp:WN,literalAutolinkWww:WN},exit:{literalAutolink:qon,literalAutolinkEmail:Kon,literalAutolinkHttp:Won,literalAutolinkWww:Von}},zon={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:zN,notInConstruct:UN},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:zN,notInConstruct:UN},{character:":",before:"[ps]",after:"\\/",inConstruct:zN,notInConstruct:UN}]};function Uon(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function WN(e){this.config.enter.autolinkProtocol.call(this,e)}function Won(e){this.config.exit.autolinkProtocol.call(this,e)}function Von(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.url="http://"+this.sliceSerialize(e)}function Kon(e){this.config.exit.autolinkEmail.call(this,e)}function qon(e){this.exit(e)}function Gon(e){X3e(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Yon],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,Xon]],{ignore:["link","linkReference"]})}function Yon(e,t,n,r,i){let o="";if(!Q3e(i)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!Qon(n)))return!1;const a=Zon(n+r);if(!a[0])return!1;const s={type:"link",title:null,url:o+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function Xon(e,t,n,r){return!Q3e(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Qon(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 Zon(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=Uk(e,"(");let o=Uk(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 Q3e(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Nv(n)||gI(n))&&(!t||n!==47)}function Z3e(e){return e.label||!e.identifier?e.label||"":S3e(e.identifier)}function Jon(e,t,n){const r=t.indexStack,i=e.children||[],o=t.createTracker(n),a=[];let s=-1;for(r.push(-1);++s<i.length;){const l=i[s];r[r.length-1]=s,a.push(o.move(t.handle(l,e,t,{before:`
|
||
`,after:`
|
||
`,...o.current()}))),l.type!=="list"&&(t.bulletLastUsed=void 0),s<i.length-1&&a.push(o.move(ean(l,i[s+1],e,t)))}return r.pop(),a.join("")}function ean(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 tan=/\r?\n|\r/g;function nan(e,t){const n=[];let r=0,i=0,o;for(;o=tan.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(s){n.push(t(s,i,!s))}}function J3e(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 ran(e,t){return zce(e,t.inConstruct,!0)&&!zce(e,t.notInConstruct,!1)}function zce(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 e8e(e,t,n){const r=(n.before||"")+(t||"")+(n.after||""),i=[],o=[],a={};let s=-1;for(;++s<e.unsafe.length;){const u=e.unsafe[s];if(!ran(e.stack,u))continue;const d=J3e(u);let h;for(;h=d.exec(r);){const p="before"in u||!!u.atBreak,m="after"in u,v=h.index+(p?h[1].length:0);i.includes(v)?(a[v].before&&!p&&(a[v].before=!1),a[v].after&&!m&&(a[v].after=!1)):(i.push(v),a[v]={before:p,after:m})}}i.sort(ian);let l=n.before?n.before.length:0;const c=r.length-(n.after?n.after.length:0);for(s=-1;++s<i.length;){const u=i[s];u<l||u>=c||u+1<c&&i[s+1]===u+1&&a[u].after&&!a[u+1].before&&!a[u+1].after||i[s-1]===u-1&&a[u].before&&!a[u-1].before&&!a[u-1].after||(l!==u&&o.push(Uce(r.slice(l,u),"\\")),l=u,/[!-/:-@[-`{-~]/.test(r.charAt(u))&&(!n.encode||!n.encode.includes(r.charAt(u)))?o.push("\\"):(o.push("&#x"+r.charCodeAt(u).toString(16).toUpperCase()+";"),l++))}return o.push(Uce(r.slice(l,c),n.after)),o.join("")}function ian(e,t){return e-t}function Uce(e,t){const n=/\\(?=[!-/:-@[-`{-~])/g,r=[],i=[],o=e+t;let a=-1,s=0,l;for(;l=n.exec(o);)r.push(l.index);for(;++a<r.length;)s!==r[a]&&i.push(e.slice(s,r[a])),i.push("\\"),s=r[a];return i.push(e.slice(s)),i.join("")}function SI(e){const t=e||{},n=t.now||{};let r=t.lineShift||0,i=n.line||1,o=n.column||1;return{move:l,current:a,shift:s};function a(){return{now:{line:i,column:o},lineShift:r}}function s(c){r+=c}function l(c){const u=c||"",d=u.split(/\r?\n|\r/g),h=d[d.length-1];return i+=d.length-1,o=d.length===1?o+h.length:1+h.length+r,u}}t8e.peek=man;function oan(){return{enter:{gfmFootnoteDefinition:san,gfmFootnoteDefinitionLabelString:lan,gfmFootnoteCall:dan,gfmFootnoteCallString:fan},exit:{gfmFootnoteDefinition:uan,gfmFootnoteDefinitionLabelString:can,gfmFootnoteCall:pan,gfmFootnoteCallString:han}}}function aan(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:gan,footnoteReference:t8e}}}function san(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function lan(){this.buffer()}function can(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Rd(this.sliceSerialize(e)).toLowerCase()}function uan(e){this.exit(e)}function dan(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function fan(){this.buffer()}function han(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Rd(this.sliceSerialize(e)).toLowerCase()}function pan(e){this.exit(e)}function t8e(e,t,n,r){const i=SI(r);let o=i.move("[^");const a=n.enter("footnoteReference"),s=n.enter("reference");return o+=i.move(e8e(n,Z3e(e),{...i.current(),before:o,after:"]"})),s(),a(),o+=i.move("]"),o}function man(){return"["}function gan(e,t,n,r){const i=SI(r);let o=i.move("[^");const a=n.enter("footnoteDefinition"),s=n.enter("label");return o+=i.move(e8e(n,Z3e(e),{...i.current(),before:o,after:"]"})),s(),o+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),o+=i.move(nan(Jon(e,n,i.current()),van)),a(),o}function van(e,t,n){return t===0?e:(n?"":" ")+e}function n8e(e,t,n){const r=t.indexStack,i=e.children||[],o=[];let a=-1,s=n.before;r.push(-1);let l=t.createTracker(n);for(;++a<i.length;){const c=i[a];let u;if(r[r.length-1]=a,a+1<i.length){let d=t.handle.handlers[i[a+1].type];d&&d.peek&&(d=d.peek),u=d?d(i[a+1],e,t,{before:"",after:"",...l.current()}).charAt(0):""}else u=n.after;o.length>0&&(s==="\r"||s===`
|
||
`)&&c.type==="html"&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),s=" ",l=t.createTracker(n),l.move(o.join(""))),o.push(l.move(t.handle(c,e,t,{...l.current(),before:s,after:u}))),s=o[o.length-1].slice(-1)}return r.pop(),o.join("")}const yan=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];r8e.peek=wan;const ban={canContainEols:["delete"],enter:{strikethrough:Can},exit:{strikethrough:xan}},San={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:yan}],handlers:{delete:r8e}};function Can(e){this.enter({type:"delete",children:[]},e)}function xan(e){this.exit(e)}function r8e(e,t,n,r){const i=SI(r),o=n.enter("strikethrough");let a=i.move("~~");return a+=n8e(e,n,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function wan(){return"~"}i8e.peek=_an;function i8e(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],s=J3e(a);let l;if(a.atBreak)for(;l=s.exec(r);){let c=l.index;r.charCodeAt(c)===10&&r.charCodeAt(c-1)===13&&c--,r=r.slice(0,c)+" "+r.slice(l.index+1)}}return i+r+i}function _an(){return"`"}function Ean(e){return e.length}function Tan(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||Ean,o=[],a=[],s=[],l=[];let c=0,u=-1;for(;++u<e.length;){const v=[],y=[];let S=-1;for(e[u].length>c&&(c=e[u].length);++S<e[u].length;){const b=kan(e[u][S]);if(n.alignDelimiters!==!1){const C=i(b);y[S]=C,(l[S]===void 0||C>l[S])&&(l[S]=C)}v.push(b)}a[u]=v,s[u]=y}let d=-1;if(typeof r=="object"&&"length"in r)for(;++d<c;)o[d]=Wce(r[d]);else{const v=Wce(r);for(;++d<c;)o[d]=v}d=-1;const h=[],p=[];for(;++d<c;){const v=o[d];let y="",S="";v===99?(y=":",S=":"):v===108?y=":":v===114&&(S=":");let b=n.alignDelimiters===!1?1:Math.max(1,l[d]-y.length-S.length);const C=y+"-".repeat(b)+S;n.alignDelimiters!==!1&&(b=y.length+b+S.length,b>l[d]&&(l[d]=b),p[d]=b),h[d]=C}a.splice(1,0,h),s.splice(1,0,p),u=-1;const m=[];for(;++u<a.length;){const v=a[u],y=s[u];d=-1;const S=[];for(;++d<c;){const b=v[d]||"";let C="",_="";if(n.alignDelimiters!==!1){const T=l[d]-(y[d]||0),x=o[d];x===114?C=" ".repeat(T):x===99?T%2?(C=" ".repeat(T/2+.5),_=" ".repeat(T/2-.5)):(C=" ".repeat(T/2),_=C):_=" ".repeat(T)}n.delimiterStart!==!1&&!d&&S.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&b==="")&&(n.delimiterStart!==!1||d)&&S.push(" "),n.alignDelimiters!==!1&&S.push(C),S.push(b),n.alignDelimiters!==!1&&S.push(_),n.padding!==!1&&S.push(" "),(n.delimiterEnd!==!1||d!==c-1)&&S.push("|")}m.push(n.delimiterEnd===!1?S.join("").replace(/ +$/,""):S.join(""))}return m.join(`
|
||
`)}function kan(e){return e==null?"":String(e)}function Wce(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 Oan={enter:{table:Pan,tableData:Vce,tableHeader:Vce,tableRow:Ian},exit:{codeText:$an,table:Man,tableData:VN,tableHeader:VN,tableRow:VN}};function Pan(e){const t=e._align;this.enter({type:"table",align:t.map(n=>n==="none"?null:n),children:[]},e),this.setData("inTable",!0)}function Man(e){this.exit(e),this.setData("inTable")}function Ian(e){this.enter({type:"tableRow",children:[]},e)}function VN(e){this.exit(e)}function Vce(e){this.enter({type:"tableCell",children:[]},e)}function $an(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,Ran));const n=this.stack[this.stack.length-1];n.value=t,this.exit(e)}function Ran(e,t){return t==="|"?t:e}function Aan(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:s,tableCell:l,inlineCode:h}};function a(p,m,v,y){return c(u(p,v,y),p.align)}function s(p,m,v,y){const S=d(p,v,y),b=c([S]);return b.slice(0,b.indexOf(`
|
||
`))}function l(p,m,v,y){const S=v.enter("tableCell"),b=v.enter("phrasing"),C=n8e(p,v,{...y,before:o,after:o});return b(),S(),C}function c(p,m){return Tan(p,{align:m,alignDelimiters:r,padding:n,stringLength:i})}function u(p,m,v){const y=p.children;let S=-1;const b=[],C=m.enter("table");for(;++S<y.length;)b[S]=d(y[S],m,v);return C(),b}function d(p,m,v){const y=p.children;let S=-1;const b=[],C=m.enter("tableRow");for(;++S<y.length;)b[S]=l(y[S],p,m,v);return C(),b}function h(p,m,v){let y=i8e(p,m,v);return v.stack.includes("tableCell")&&(y=y.replace(/\|/g,"\\$&")),y}}function Nan(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 Dan(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 Lan(e,t,n,r){const i=Dan(n);let o=n.bulletCurrent||Nan(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 s=n.createTracker(r);s.move(o+" ".repeat(a-o.length)),s.shift(a);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),u);return l(),c;function u(d,h,p){return h?(p?"":" ".repeat(a))+d:(p?o:o+" ".repeat(a-o.length))+d}}const Fan={exit:{taskListCheckValueChecked:Kce,taskListCheckValueUnchecked:Kce,paragraph:Ban}},jan={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Han}};function Kce(e){const t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked"}function Ban(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 s=i[o];if(s.type==="paragraph"){a=s;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 Han(e,t,n,r){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",a="["+(e.checked?"x":" ")+"] ",s=SI(r);o&&s.move(a);let l=Lan(e,t,n,{...r,...s.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),l;function c(u){return u+a}}function zan(){return[Hon,oan(),ban,Oan,Fan]}function Uan(e){return{extensions:[zon,aan(),San,Aan(e),jan]}}function Wan(e={}){const t=this.data();n("micromarkExtensions",Lon(e)),n("fromMarkdownExtensions",zan()),n("toMarkdownExtensions",Uan(e));function n(r,i){(t[r]?t[r]:t[r]=[]).push(i)}}const KN={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>'},Van="Strikethrough",Kan="text",qan="Table",Gan="Heading",Yan="Task list",Xan="todo",Qan={strike:Van,strikeText:Kan,table:qan,tableHeading:Gan,task:Yan,taskText:Xan};function o8e({locale:e,...t}={}){const n={...Qan,...e};return{remark:r=>r.use(Wan,t),actions:[{title:n.strike,icon:KN.Strikethrough,cheatsheet:`~~${n.strikeText}~~`,handler:{type:"action",click({wrapText:r,editor:i}){r("~~"),i.focus()}}},{title:n.task,icon:KN.CheckCorrect,cheatsheet:`- [ ] ${n.taskText}`,handler:{type:"action",click({replaceLines:r,editor:i}){r(o=>"- [ ] "+o),i.focus()}}},{title:n.table,icon:KN.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()}}}]}}function a8e({init:e}={}){let t;return{viewerEffect({markdownBody:n}){(async()=>{const r=n.querySelectorAll("pre>code");r.length!==0&&(t||(t=await qz(()=>import("./index-B3Tq2DlL.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 s8e(e){return typeof e>"u"||e===null}function Zan(e){return typeof e=="object"&&e!==null}function Jan(e){return Array.isArray(e)?e:s8e(e)?[]:[e]}function esn(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 tsn(e,t){var n="",r;for(r=0;r<t;r+=1)n+=e;return n}function nsn(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var rsn=s8e,isn=Zan,osn=Jan,asn=tsn,ssn=nsn,lsn=esn,hl={isNothing:rsn,isObject:isn,toArray:osn,repeat:asn,isNegativeZero:ssn,extend:lsn};function l8e(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 K_(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=l8e(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}K_.prototype=Object.create(Error.prototype);K_.prototype.constructor=K_;K_.prototype.toString=function(t){return this.name+": "+l8e(this,t)};var Wh=K_;function qN(e,t,n,r,i){var o="",a="",s=Math.floor(i/2)-1;return r-t>s&&(o=" ... ",t=r-s+o.length),n-r>s&&(a=" ...",n=r+s-a.length),{str:o+e.slice(t,n).replace(/\t/g,"→")+a,pos:r-t+o.length}}function GN(e,t){return hl.repeat(" ",t-e.length)+e}function csn(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 s="",l,c,u=Math.min(e.line+t.linesAfter,i.length).toString().length,d=t.maxLength-(t.indent+u+3);for(l=1;l<=t.linesBefore&&!(a-l<0);l++)c=qN(e.buffer,r[a-l],i[a-l],e.position-(r[a]-r[a-l]),d),s=hl.repeat(" ",t.indent)+GN((e.line-l+1).toString(),u)+" | "+c.str+`
|
||
`+s;for(c=qN(e.buffer,r[a],i[a],e.position,d),s+=hl.repeat(" ",t.indent)+GN((e.line+1).toString(),u)+" | "+c.str+`
|
||
`,s+=hl.repeat("-",t.indent+u+3+c.pos)+`^
|
||
`,l=1;l<=t.linesAfter&&!(a+l>=i.length);l++)c=qN(e.buffer,r[a+l],i[a+l],e.position-(r[a]-r[a+l]),d),s+=hl.repeat(" ",t.indent)+GN((e.line+l+1).toString(),u)+" | "+c.str+`
|
||
`;return s.replace(/\n$/,"")}var usn=csn,dsn=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],fsn=["scalar","sequence","mapping"];function hsn(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}function psn(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(dsn.indexOf(n)===-1)throw new Wh('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=hsn(t.styleAliases||null),fsn.indexOf(this.kind)===-1)throw new Wh('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var Ws=psn;function qce(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 msn(){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 bH(e){return this.extend(e)}bH.prototype.extend=function(t){var n=[],r=[];if(t instanceof Ws)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 Wh("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(o){if(!(o instanceof Ws))throw new Wh("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(o.loadKind&&o.loadKind!=="scalar")throw new Wh("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 Wh("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 Ws))throw new Wh("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(bH.prototype);return i.implicit=(this.implicit||[]).concat(n),i.explicit=(this.explicit||[]).concat(r),i.compiledImplicit=qce(i,"implicit"),i.compiledExplicit=qce(i,"explicit"),i.compiledTypeMap=msn(i.compiledImplicit,i.compiledExplicit),i};var gsn=bH,vsn=new Ws("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),ysn=new Ws("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),bsn=new Ws("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),Ssn=new gsn({explicit:[vsn,ysn,bsn]});function Csn(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function xsn(){return null}function wsn(e){return e===null}var _sn=new Ws("tag:yaml.org,2002:null",{kind:"scalar",resolve:Csn,construct:xsn,predicate:wsn,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function Esn(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 Tsn(e){return e==="true"||e==="True"||e==="TRUE"}function ksn(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var Osn=new Ws("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Esn,construct:Tsn,predicate:ksn,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 Psn(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function Msn(e){return 48<=e&&e<=55}function Isn(e){return 48<=e&&e<=57}function $sn(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(!Psn(e.charCodeAt(n)))return!1;r=!0}return r&&i!=="_"}if(i==="o"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(!Msn(e.charCodeAt(n)))return!1;r=!0}return r&&i!=="_"}}if(i==="_")return!1;for(;n<t;n++)if(i=e[n],i!=="_"){if(!Isn(e.charCodeAt(n)))return!1;r=!0}return!(!r||i==="_")}function Rsn(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 Asn(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!hl.isNegativeZero(e)}var Nsn=new Ws("tag:yaml.org,2002:int",{kind:"scalar",resolve:$sn,construct:Rsn,predicate:Asn,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"]}}),Dsn=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Lsn(e){return!(e===null||!Dsn.test(e)||e[e.length-1]==="_")}function Fsn(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 jsn=/^[-+]?[0-9]+e/;function Bsn(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(hl.isNegativeZero(e))return"-0.0";return n=e.toString(10),jsn.test(n)?n.replace("e",".e"):n}function Hsn(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||hl.isNegativeZero(e))}var zsn=new Ws("tag:yaml.org,2002:float",{kind:"scalar",resolve:Lsn,construct:Fsn,predicate:Hsn,represent:Bsn,defaultStyle:"lowercase"}),Usn=Ssn.extend({implicit:[_sn,Osn,Nsn,zsn]}),Wsn=Usn,c8e=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),u8e=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 Vsn(e){return e===null?!1:c8e.exec(e)!==null||u8e.exec(e)!==null}function Ksn(e){var t,n,r,i,o,a,s,l=0,c=null,u,d,h;if(t=c8e.exec(e),t===null&&(t=u8e.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],s=+t[6],t[7]){for(l=t[7].slice(0,3);l.length<3;)l+="0";l=+l}return t[9]&&(u=+t[10],d=+(t[11]||0),c=(u*60+d)*6e4,t[9]==="-"&&(c=-c)),h=new Date(Date.UTC(n,r,i,o,a,s,l)),c&&h.setTime(h.getTime()-c),h}function qsn(e){return e.toISOString()}var Gsn=new Ws("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Vsn,construct:Ksn,instanceOf:Date,represent:qsn});function Ysn(e){return e==="<<"||e===null}var Xsn=new Ws("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Ysn}),Qq=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
||
\r`;function Qsn(e){if(e===null)return!1;var t,n,r=0,i=e.length,o=Qq;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 Zsn(e){var t,n,r=e.replace(/[\r\n=]/g,""),i=r.length,o=Qq,a=0,s=[];for(t=0;t<i;t++)t%4===0&&t&&(s.push(a>>16&255),s.push(a>>8&255),s.push(a&255)),a=a<<6|o.indexOf(r.charAt(t));return n=i%4*6,n===0?(s.push(a>>16&255),s.push(a>>8&255),s.push(a&255)):n===18?(s.push(a>>10&255),s.push(a>>2&255)):n===12&&s.push(a>>4&255),new Uint8Array(s)}function Jsn(e){var t="",n=0,r,i,o=e.length,a=Qq;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 eln(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var tln=new Ws("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Qsn,construct:Zsn,predicate:eln,represent:Jsn}),nln=Object.prototype.hasOwnProperty,rln=Object.prototype.toString;function iln(e){if(e===null)return!0;var t=[],n,r,i,o,a,s=e;for(n=0,r=s.length;n<r;n+=1){if(i=s[n],a=!1,rln.call(i)!=="[object Object]")return!1;for(o in i)if(nln.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 oln(e){return e!==null?e:[]}var aln=new Ws("tag:yaml.org,2002:omap",{kind:"sequence",resolve:iln,construct:oln}),sln=Object.prototype.toString;function lln(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],sln.call(r)!=="[object Object]"||(i=Object.keys(r),i.length!==1))return!1;o[t]=[i[0],r[i[0]]]}return!0}function cln(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 uln=new Ws("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:lln,construct:cln}),dln=Object.prototype.hasOwnProperty;function fln(e){if(e===null)return!0;var t,n=e;for(t in n)if(dln.call(n,t)&&n[t]!==null)return!1;return!0}function hln(e){return e!==null?e:{}}var pln=new Ws("tag:yaml.org,2002:set",{kind:"mapping",resolve:fln,construct:hln}),mln=Wsn.extend({implicit:[Gsn,Xsn],explicit:[tln,aln,uln,pln]}),cg=Object.prototype.hasOwnProperty,Gk=1,d8e=2,f8e=3,Yk=4,YN=1,gln=2,Gce=3,vln=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,yln=/[\x85\u2028\u2029]/,bln=/[,\[\]\{\}]/,h8e=/^(?:!|!!|![a-z\-]+!)$/i,p8e=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Yce(e){return Object.prototype.toString.call(e)}function Vf(e){return e===10||e===13}function av(e){return e===9||e===32}function zl(e){return e===9||e===32||e===10||e===13}function Zy(e){return e===44||e===91||e===93||e===123||e===125}function Sln(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function Cln(e){return e===120?2:e===117?4:e===85?8:0}function xln(e){return 48<=e&&e<=57?e-48:-1}function Xce(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 wln(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var m8e=new Array(256),g8e=new Array(256);for(var gy=0;gy<256;gy++)m8e[gy]=Xce(gy)?1:0,g8e[gy]=Xce(gy);function _ln(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||mln,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 v8e(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=usn(n),new Wh(t,n)}function br(e,t){throw v8e(e,t)}function Xk(e,t){e.onWarning&&e.onWarning.call(null,v8e(e,t))}var Qce={YAML:function(t,n,r){var i,o,a;t.version!==null&&br(t,"duplication of %YAML directive"),r.length!==1&&br(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),i===null&&br(t,"ill-formed argument of the YAML directive"),o=parseInt(i[1],10),a=parseInt(i[2],10),o!==1&&br(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=a<2,a!==1&&a!==2&&Xk(t,"unsupported YAML version of the document")},TAG:function(t,n,r){var i,o;r.length!==2&&br(t,"TAG directive accepts exactly two arguments"),i=r[0],o=r[1],h8e.test(i)||br(t,"ill-formed tag handle (first argument) of the TAG directive"),cg.call(t.tagMap,i)&&br(t,'there is a previously declared suffix for "'+i+'" tag handle'),p8e.test(o)||br(t,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch{br(t,"tag prefix is malformed: "+o)}t.tagMap[i]=o}};function Zm(e,t,n,r){var i,o,a,s;if(t<n){if(s=e.input.slice(t,n),r)for(i=0,o=s.length;i<o;i+=1)a=s.charCodeAt(i),a===9||32<=a&&a<=1114111||br(e,"expected valid JSON character");else vln.test(s)&&br(e,"the stream contains non-printable characters");e.result+=s}}function Zce(e,t,n,r){var i,o,a,s;for(hl.isObject(n)||br(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(n),a=0,s=i.length;a<s;a+=1)o=i[a],cg.call(t,o)||(t[o]=n[o],r[o]=!0)}function Jy(e,t,n,r,i,o,a,s,l){var c,u;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),c=0,u=i.length;c<u;c+=1)Array.isArray(i[c])&&br(e,"nested arrays are not supported inside keys"),typeof i=="object"&&Yce(i[c])==="[object Object]"&&(i[c]="[object Object]");if(typeof i=="object"&&Yce(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),r==="tag:yaml.org,2002:merge")if(Array.isArray(o))for(c=0,u=o.length;c<u;c+=1)Zce(e,t,o[c],n);else Zce(e,t,o,n);else!e.json&&!cg.call(n,i)&&cg.call(t,i)&&(e.line=a||e.line,e.lineStart=s||e.lineStart,e.position=l||e.position,br(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 Zq(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++):br(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Pa(e,t,n){for(var r=0,i=e.input.charCodeAt(e.position);i!==0;){for(;av(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(Vf(i))for(Zq(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&&Xk(e,"deficient indentation"),r}function CI(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||zl(n)))}function Jq(e,t){t===1?e.result+=" ":t>1&&(e.result+=hl.repeat(`
|
||
`,t-1))}function Eln(e,t,n){var r,i,o,a,s,l,c,u,d=e.kind,h=e.result,p;if(p=e.input.charCodeAt(e.position),zl(p)||Zy(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(i=e.input.charCodeAt(e.position+1),zl(i)||n&&Zy(i)))return!1;for(e.kind="scalar",e.result="",o=a=e.position,s=!1;p!==0;){if(p===58){if(i=e.input.charCodeAt(e.position+1),zl(i)||n&&Zy(i))break}else if(p===35){if(r=e.input.charCodeAt(e.position-1),zl(r))break}else{if(e.position===e.lineStart&&CI(e)||n&&Zy(p))break;if(Vf(p))if(l=e.line,c=e.lineStart,u=e.lineIndent,Pa(e,!1,-1),e.lineIndent>=t){s=!0,p=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=l,e.lineStart=c,e.lineIndent=u;break}}s&&(Zm(e,o,a,!1),Jq(e,e.line-l),o=a=e.position,s=!1),av(p)||(a=e.position+1),p=e.input.charCodeAt(++e.position)}return Zm(e,o,a,!1),e.result?!0:(e.kind=d,e.result=h,!1)}function Tln(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(Zm(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 Vf(n)?(Zm(e,r,i,!0),Jq(e,Pa(e,!1,t)),r=i=e.position):e.position===e.lineStart&&CI(e)?br(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);br(e,"unexpected end of the stream within a single quoted scalar")}function kln(e,t){var n,r,i,o,a,s;if(s=e.input.charCodeAt(e.position),s!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;(s=e.input.charCodeAt(e.position))!==0;){if(s===34)return Zm(e,n,e.position,!0),e.position++,!0;if(s===92){if(Zm(e,n,e.position,!0),s=e.input.charCodeAt(++e.position),Vf(s))Pa(e,!1,t);else if(s<256&&m8e[s])e.result+=g8e[s],e.position++;else if((a=Cln(s))>0){for(i=a,o=0;i>0;i--)s=e.input.charCodeAt(++e.position),(a=Sln(s))>=0?o=(o<<4)+a:br(e,"expected hexadecimal character");e.result+=wln(o),e.position++}else br(e,"unknown escape sequence");n=r=e.position}else Vf(s)?(Zm(e,n,r,!0),Jq(e,Pa(e,!1,t)),n=r=e.position):e.position===e.lineStart&&CI(e)?br(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}br(e,"unexpected end of the stream within a double quoted scalar")}function Oln(e,t){var n=!0,r,i,o,a=e.tag,s,l=e.anchor,c,u,d,h,p,m=Object.create(null),v,y,S,b;if(b=e.input.charCodeAt(e.position),b===91)u=93,p=!1,s=[];else if(b===123)u=125,p=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),b=e.input.charCodeAt(++e.position);b!==0;){if(Pa(e,!0,t),b=e.input.charCodeAt(e.position),b===u)return e.position++,e.tag=a,e.anchor=l,e.kind=p?"mapping":"sequence",e.result=s,!0;n?b===44&&br(e,"expected the node content, but found ','"):br(e,"missed comma between flow collection entries"),y=v=S=null,d=h=!1,b===63&&(c=e.input.charCodeAt(e.position+1),zl(c)&&(d=h=!0,e.position++,Pa(e,!0,t))),r=e.line,i=e.lineStart,o=e.position,MS(e,t,Gk,!1,!0),y=e.tag,v=e.result,Pa(e,!0,t),b=e.input.charCodeAt(e.position),(h||e.line===r)&&b===58&&(d=!0,b=e.input.charCodeAt(++e.position),Pa(e,!0,t),MS(e,t,Gk,!1,!0),S=e.result),p?Jy(e,s,m,y,v,S,r,i,o):d?s.push(Jy(e,null,m,y,v,S,r,i,o)):s.push(v),Pa(e,!0,t),b=e.input.charCodeAt(e.position),b===44?(n=!0,b=e.input.charCodeAt(++e.position)):n=!1}br(e,"unexpected end of the stream within a flow collection")}function Pln(e,t){var n,r,i=YN,o=!1,a=!1,s=t,l=0,c=!1,u,d;if(d=e.input.charCodeAt(e.position),d===124)r=!1;else if(d===62)r=!0;else return!1;for(e.kind="scalar",e.result="";d!==0;)if(d=e.input.charCodeAt(++e.position),d===43||d===45)YN===i?i=d===43?Gce:gln:br(e,"repeat of a chomping mode identifier");else if((u=xln(d))>=0)u===0?br(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?br(e,"repeat of an indentation width identifier"):(s=t+u-1,a=!0);else break;if(av(d)){do d=e.input.charCodeAt(++e.position);while(av(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!Vf(d)&&d!==0)}for(;d!==0;){for(Zq(e),e.lineIndent=0,d=e.input.charCodeAt(e.position);(!a||e.lineIndent<s)&&d===32;)e.lineIndent++,d=e.input.charCodeAt(++e.position);if(!a&&e.lineIndent>s&&(s=e.lineIndent),Vf(d)){l++;continue}if(e.lineIndent<s){i===Gce?e.result+=hl.repeat(`
|
||
`,o?1+l:l):i===YN&&o&&(e.result+=`
|
||
`);break}for(r?av(d)?(c=!0,e.result+=hl.repeat(`
|
||
`,o?1+l:l)):c?(c=!1,e.result+=hl.repeat(`
|
||
`,l+1)):l===0?o&&(e.result+=" "):e.result+=hl.repeat(`
|
||
`,l):e.result+=hl.repeat(`
|
||
`,o?1+l:l),o=!0,a=!0,l=0,n=e.position;!Vf(d)&&d!==0;)d=e.input.charCodeAt(++e.position);Zm(e,n,e.position,!1)}return!0}function Jce(e,t){var n,r=e.tag,i=e.anchor,o=[],a,s=!1,l;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),l=e.input.charCodeAt(e.position);l!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,br(e,"tab characters must not be used in indentation")),!(l!==45||(a=e.input.charCodeAt(e.position+1),!zl(a))));){if(s=!0,e.position++,Pa(e,!0,-1)&&e.lineIndent<=t){o.push(null),l=e.input.charCodeAt(e.position);continue}if(n=e.line,MS(e,t,f8e,!1,!0),o.push(e.result),Pa(e,!0,-1),l=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&l!==0)br(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return s?(e.tag=r,e.anchor=i,e.kind="sequence",e.result=o,!0):!1}function Mln(e,t,n){var r,i,o,a,s,l,c=e.tag,u=e.anchor,d={},h=Object.create(null),p=null,m=null,v=null,y=!1,S=!1,b;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=d),b=e.input.charCodeAt(e.position);b!==0;){if(!y&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,br(e,"tab characters must not be used in indentation")),r=e.input.charCodeAt(e.position+1),o=e.line,(b===63||b===58)&&zl(r))b===63?(y&&(Jy(e,d,h,p,m,null,a,s,l),p=m=v=null),S=!0,y=!0,i=!0):y?(y=!1,i=!0):br(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,b=r;else{if(a=e.line,s=e.lineStart,l=e.position,!MS(e,n,d8e,!1,!0))break;if(e.line===o){for(b=e.input.charCodeAt(e.position);av(b);)b=e.input.charCodeAt(++e.position);if(b===58)b=e.input.charCodeAt(++e.position),zl(b)||br(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(Jy(e,d,h,p,m,null,a,s,l),p=m=v=null),S=!0,y=!1,i=!1,p=e.tag,m=e.result;else if(S)br(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=u,!0}else if(S)br(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=u,!0}if((e.line===o||e.lineIndent>t)&&(y&&(a=e.line,s=e.lineStart,l=e.position),MS(e,t,Yk,!0,i)&&(y?m=e.result:v=e.result),y||(Jy(e,d,h,p,m,v,a,s,l),p=m=v=null),Pa(e,!0,-1),b=e.input.charCodeAt(e.position)),(e.line===o||e.lineIndent>t)&&b!==0)br(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&Jy(e,d,h,p,m,null,a,s,l),S&&(e.tag=c,e.anchor=u,e.kind="mapping",e.result=d),S}function Iln(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&&br(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)):br(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!zl(a);)a===33&&(r?br(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),h8e.test(i)||br(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),bln.test(o)&&br(e,"tag suffix cannot contain flow indicator characters")}o&&!p8e.test(o)&&br(e,"tag name cannot contain such characters: "+o);try{o=decodeURIComponent(o)}catch{br(e,"tag name is malformed: "+o)}return n?e.tag=o:cg.call(e.tagMap,i)?e.tag=e.tagMap[i]+o:i==="!"?e.tag="!"+o:i==="!!"?e.tag="tag:yaml.org,2002:"+o:br(e,'undeclared tag handle "'+i+'"'),!0}function $ln(e){var t,n;if(n=e.input.charCodeAt(e.position),n!==38)return!1;for(e.anchor!==null&&br(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!zl(n)&&!Zy(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&br(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function Rln(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&&!zl(r)&&!Zy(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&br(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),cg.call(e.anchorMap,n)||br(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],Pa(e,!0,-1),!0}function MS(e,t,n,r,i){var o,a,s,l=1,c=!1,u=!1,d,h,p,m,v,y;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=a=s=Yk===n||f8e===n,r&&Pa(e,!0,-1)&&(c=!0,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)),l===1)for(;Iln(e)||$ln(e);)Pa(e,!0,-1)?(c=!0,s=o,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)):s=!1;if(s&&(s=c||i),(l===1||Yk===n)&&(Gk===n||d8e===n?v=t:v=t+1,y=e.position-e.lineStart,l===1?s&&(Jce(e,y)||Mln(e,y,v))||Oln(e,v)?u=!0:(a&&Pln(e,v)||Tln(e,v)||kln(e,v)?u=!0:Rln(e)?(u=!0,(e.tag!==null||e.anchor!==null)&&br(e,"alias node should not have any properties")):Eln(e,v,Gk===n)&&(u=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):l===0&&(u=s&&Jce(e,y))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&br(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),d=0,h=e.implicitTypes.length;d<h;d+=1)if(m=e.implicitTypes[d],m.resolve(e.result)){e.result=m.construct(e.result),e.tag=m.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(cg.call(e.typeMap[e.kind||"fallback"],e.tag))m=e.typeMap[e.kind||"fallback"][e.tag];else for(m=null,p=e.typeMap.multi[e.kind||"fallback"],d=0,h=p.length;d<h;d+=1)if(e.tag.slice(0,p[d].tag.length)===p[d].tag){m=p[d];break}m||br(e,"unknown tag !<"+e.tag+">"),e.result!==null&&m.kind!==e.kind&&br(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+m.kind+'", not "'+e.kind+'"'),m.resolve(e.result,e.tag)?(e.result=m.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):br(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||u}function Aln(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&&(Pa(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&&!zl(a);)a=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),i=[],r.length<1&&br(e,"directive name must not be less than one character in length");a!==0;){for(;av(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!Vf(a));break}if(Vf(a))break;for(n=e.position;a!==0&&!zl(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}a!==0&&Zq(e),cg.call(Qce,r)?Qce[r](e,r,i):Xk(e,'unknown document directive "'+r+'"')}if(Pa(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,Pa(e,!0,-1)):o&&br(e,"directives end mark is expected"),MS(e,e.lineIndent-1,Yk,!1,!0),Pa(e,!0,-1),e.checkLineBreaks&&yln.test(e.input.slice(t,e.position))&&Xk(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&CI(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Pa(e,!0,-1));return}if(e.position<e.length-1)br(e,"end of the stream or a document separator is expected");else return}function y8e(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 _ln(e,t),r=e.indexOf("\0");for(r!==-1&&(n.position=r,br(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;)Aln(n);return n.documents}function Nln(e,t,n){t!==null&&typeof t=="object"&&typeof n>"u"&&(n=t,t=null);var r=y8e(e,n);if(typeof t!="function")return r;for(var i=0,o=r.length;i<o;i+=1)t(r[i])}function Dln(e,t){var n=y8e(e,t);if(n.length!==0){if(n.length===1)return n[0];throw new Wh("expected a single document in the stream, but found more")}}var Lln=Nln,Fln=Dln,jln={loadAll:Lln,load:Fln},Bln=jln.load,b8e={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,s=[].slice.call(arguments),l=0,c=o.length,u="",d,h=!1,p,m,v=!1,y,S=function(){return s[a++]},b=function(){for(var C="";/\d/.test(o[l]);)C+=o[l++],d=o[l];return C.length>0?parseInt(C):null};l<c;++l)if(d=o[l],h)switch(h=!1,d=="."?(v=!1,d=o[++l]):d=="0"&&o[l+1]=="."?(v=!0,l+=2,d=o[l]):v=!0,y=b(),d){case"b":u+=parseInt(S(),10).toString(2);break;case"c":p=S(),typeof p=="string"||p instanceof String?u+=p:u+=String.fromCharCode(parseInt(p,10));break;case"d":u+=parseInt(S(),10);break;case"f":m=String(parseFloat(S()).toFixed(y||6)),u+=v?m:m.replace(/^0/,"");break;case"j":u+=JSON.stringify(S());break;case"o":u+="0"+parseInt(S(),10).toString(8);break;case"s":u+=S();break;case"x":u+="0x"+parseInt(S(),10).toString(16);break;case"X":u+="0x"+parseInt(S(),10).toString(16).toUpperCase();break;default:u+=d;break}else d==="%"?h=!0:u+=d;return u}})()})(b8e);var Hln=b8e.exports;const zln=hi(Hln),G5=Object.assign(n1(Error),{eval:n1(EvalError),range:n1(RangeError),reference:n1(ReferenceError),syntax:n1(SyntaxError),type:n1(TypeError),uri:n1(URIError)});function n1(e){return t.displayName=e.displayName||e.name,t;function t(n,...r){const i=n&&zln(n,...r);return new e(i)}}const Y5={}.hasOwnProperty,eue={yaml:"-",toml:"+"};function eG(e){const t=[];let n=-1;const r=Array.isArray(e)?e:e?[e]:["yaml"];for(;++n<r.length;)t[n]=Uln(r[n]);return t}function Uln(e){let t=e;if(typeof t=="string"){if(!Y5.call(eue,t))throw G5("Missing matter definition for `%s`",t);t={type:t,marker:eue[t]}}else if(typeof t!="object")throw G5("Expected matter to be an object, not `%j`",t);if(!Y5.call(t,"type"))throw G5("Missing `type` in matter `%j`",t);if(!Y5.call(t,"fence")&&!Y5.call(t,"marker"))throw G5("Missing `marker` or `fence` in matter `%j`",t);return t}function Wln(e){const t=eG(e),n={};let r=-1;for(;++r<t.length;){const i=t[r],o=SH(i,"open").charCodeAt(0),a=Vln(i),s=n[o];Array.isArray(s)?s.push(a):n[o]=[a]}return{flow:n}}function Vln(e){const t=e.anywhere,n=e.type,r=n+"Fence",i=r+"Sequence",o=n+"Value",a={tokenize:u,partial:!0};let s,l=0;return{tokenize:c,concrete:!0};function c(d,h,p){const m=this;return v;function v(E){const k=m.now();return k.column===1&&(k.line===1||t)&&(s=SH(e,"open"),l=0,E===s.charCodeAt(l))?(d.enter(n),d.enter(r),d.enter(i),y(E)):p(E)}function y(E){return l===s.length?(d.exit(i),Zr(E)?(d.enter("whitespace"),S(E)):b(E)):E===s.charCodeAt(l++)?(d.consume(E),y):p(E)}function S(E){return Zr(E)?(d.consume(E),S):(d.exit("whitespace"),b(E))}function b(E){return yr(E)?(d.exit(r),d.enter("lineEnding"),d.consume(E),d.exit("lineEnding"),s=SH(e,"close"),l=0,d.attempt(a,x,C)):p(E)}function C(E){return E===null||yr(E)?T(E):(d.enter(o),_(E))}function _(E){return E===null||yr(E)?(d.exit(o),T(E)):(d.consume(E),_)}function T(E){return E===null?p(E):(d.enter("lineEnding"),d.consume(E),d.exit("lineEnding"),d.attempt(a,x,C))}function x(E){return d.exit(n),h(E)}}function u(d,h,p){let m=0;return v;function v(C){return C===s.charCodeAt(m)?(d.enter(r),d.enter(i),y(C)):p(C)}function y(C){return m===s.length?(d.exit(i),Zr(C)?(d.enter("whitespace"),S(C)):b(C)):C===s.charCodeAt(m++)?(d.consume(C),y):p(C)}function S(C){return Zr(C)?(d.consume(C),S):(d.exit("whitespace"),b(C))}function b(C){return C===null||yr(C)?(d.exit(r),h(C)):p(C)}}}function SH(e,t){return e.marker?tue(e.marker,t).repeat(3):tue(e.fence,t)}function tue(e,t){return typeof e=="string"?e:e[t]}function Kln(e){const t=eG(e),n={},r={};let i=-1;for(;++i<t.length;){const o=t[i];n[o.type]=qln(o),r[o.type]=Gln,r[o.type+"Value"]=Yln}return{enter:n,exit:r}}function qln(e){return t;function t(n){this.enter({type:e.type,value:""},n),this.buffer()}}function Gln(e){const t=this.resume(),n=this.exit(e);n.value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,"")}function Yln(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function Xln(e){const t=[],n={},r=eG(e);let i=-1;for(;++i<r.length;){const o=r[i];n[o.type]=Qln(o),t.push({atBreak:!0,character:CH(o,"open").charAt(0)})}return{unsafe:t,handlers:n}}function Qln(e){const t=CH(e,"open"),n=CH(e,"close");return r;function r(i){return t+(i.value?`
|
||
`+i.value:"")+`
|
||
`+n}}function CH(e,t){return e.marker?nue(e.marker,t).repeat(3):nue(e.fence,t)}function nue(e,t){return typeof e=="string"?e:e[t]}function Zln(e="yaml"){const t=this.data();n("micromarkExtensions",Wln(e)),n("fromMarkdownExtensions",Kln(e)),n("toMarkdownExtensions",Xln(e));function n(r,i){(t[r]?t[r]:t[r]=[]).push(i)}}function Jln({onError:e}={}){return{remark:t=>t.use(Zln).use(()=>(n,r)=>{const i=n.children[0];if((i==null?void 0:i.type)==="yaml")try{r.frontmatter=Bln(i.value)}catch(o){e==null||e(o)}})}}const ecn={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>'},tcn="Entity relationship diagram",ncn="Flow chart",rcn="Gantt chart",icn="Mermaid diagrams",ocn="Mindmaps",acn="Pie chart",scn="Sequence diagram",lcn="State diagram",ccn="Timeline",ucn="User journey diagram",dcn={class:"Class diagram",er:tcn,flowchart:ncn,gantt:rcn,mermaid:icn,mindmap:ocn,pie:acn,sequence:scn,state:lcn,timeline:ccn,uj:ucn};function S8e({locale:e,...t}={}){const n={...dcn,...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 qz(()=>import("./mermaid.core-DmGfg-wx.js").then(s=>s.au),[]).then(s=>s.default),t&&r.initialize(t)),a.forEach((s,l)=>{const c=s.parentElement,u=s.innerText,d=document.createElement("div");d.classList.add("bytemd-mermaid"),d.style.lineHeight="initial",c.replaceWith(d),r.render(`bytemd-mermaid-${Date.now()}-${l}`,u,d).then(h=>{d.innerHTML=h.svg}).catch(h=>{})}))})()},actions:[{title:n.mermaid,icon:ecn.ChartGraph,cheatsheet:"```mermaid",handler:{type:"dropdown",actions:i.map(({title:o,code:a})=>({title:o,handler:{type:"action",click({editor:s,appendBlock:l,codemirror:c}){const{line:u}=l("```mermaid\n"+a+"\n```");s.setSelection(c.Pos(u+1,0),c.Pos(u+a.split(`
|
||
`).length)),s.focus()}}})),...n}}]}}const rue={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:"🏴"},X5=/:(\+1|[-\w]+):/g,fcn={}.hasOwnProperty;function hcn(){return e=>{C4(e,"text",t=>{const n=t.value,r=[];X5.lastIndex=0;let i=X5.exec(n),o=0;for(;i;){const a=i[1],s=i.index;fcn.call(rue,a)?(o!==s&&r.push(n.slice(o,s)),r.push(rue[a]),o=s+i[0].length):X5.lastIndex=s+1,i=X5.exec(n)}r.length>0&&(r.push(n.slice(o)),t.value=r.join(""))})}}function pcn(){return{remark:e=>e.use(hcn)}}function mcn(e){X3e(e,/\r?\n|\r/g,gcn)}function gcn(){return{type:"break"}}function vcn(){return mcn}function ycn(){return{remark:e=>e.use(vcn)}}const bcn="粗体",Scn="粗体文本",Ccn="Markdown 语法",xcn="关闭帮助",wcn="关闭目录",_cn="代码",Ecn="代码块",Tcn="编程语言",kcn="代码",Ocn="退出全屏",Pcn="恢复默认",Mcn="恢复默认",Icn="全屏",$cn="一级标题",Rcn="二级标题",Acn="三级标题",Ncn="四级标题",Dcn="五级标题",Lcn="六级标题",Fcn="标题",jcn="帮助",Bcn="分割线",Hcn="图片",zcn="alt",Ucn="图片描述",Wcn="斜体",Vcn="斜体文本",Kcn="已达最大字符数限制",qcn="行数",Gcn="链接",Ycn="链接描述",Xcn="有序列表",Qcn="项目",Zcn="预览",Jcn="仅预览区",eun="引用",tun="引用文本",nun="快捷键",run="源代码",iun="同步滚动",oun="目录",aun="回到顶部",sun="无序列表",lun="项目",cun="字数",uun="编辑",dun="仅编辑区",fun={bold:bcn,boldText:Scn,cheatsheet:Ccn,closeHelp:xcn,closeToc:wcn,code:_cn,codeBlock:Ecn,codeLang:Tcn,codeText:kcn,exitFullscreen:Ocn,exitPreviewOnly:Pcn,exitWriteOnly:Mcn,fullscreen:Icn,h1:$cn,h2:Rcn,h3:Acn,h4:Ncn,h5:Dcn,h6:Lcn,headingText:Fcn,help:jcn,hr:Bcn,image:Hcn,imageAlt:zcn,imageTitle:Ucn,italic:Wcn,italicText:Vcn,limited:Kcn,lines:qcn,link:Gcn,linkText:Ycn,ol:Xcn,olItem:Qcn,preview:Zcn,previewOnly:Jcn,quote:eun,quotedText:tun,shortcuts:nun,source:run,sync:iun,toc:oun,top:aun,ul:sun,ulItem:lun,words:cun,write:uun,writeOnly:dun},hun=[o8e(),a8e(),Jln(),S8e(),pcn(),ycn()],pun=gi.div`
|
||
height: 100%;
|
||
.bytemd {
|
||
height: 100%;
|
||
}
|
||
`,mun=({value:e,onChange:t})=>U.jsx(pun,{children:U.jsx(ion,{value:e,plugins:hun,onChange:t,locale:fun,uploadImages:async n=>n.map(r=>({url:URL.createObjectURL(r),alt:r.name}))})}),C8e=Wc(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:XN}=bs,gun=({document:e,visible:t,onClose:n})=>{const[r]=Or.useForm(),[i,o]=ge.useState(!1),a=async s=>{try{o(!0),console.log("Updating document settings:",s),ws.success("更新成功"),n()}catch(l){console.error("Update document settings failed:",l),ws.error("更新失败")}finally{o(!1)}};return U.jsx(Ia,{title:"文档设置",open:t,onCancel:n,onOk:()=>r.submit(),confirmLoading:i,children:U.jsxs(Or,{form:r,layout:"vertical",initialValues:{title:e.title,type:e.type},onFinish:a,children:[U.jsx(Or.Item,{name:"title",label:"文档标题",rules:[{required:!0,message:"请输入文档标题"}],children:U.jsx($i,{placeholder:"请输入文档标题"})}),U.jsx(Or.Item,{name:"type",label:"文档类型",rules:[{required:!0,message:"请选择文档类型"}],children:U.jsxs(bs,{children:[U.jsx(XN,{value:"markdown",children:"Markdown"}),U.jsx(XN,{value:"rich-text",children:"富文本"}),U.jsx(XN,{value:"code",children:"代码"})]})})]})})},{Header:vun,Content:yun}=xo,bun=gi(xo)`
|
||
height: 100vh;
|
||
`,Sun=gi(vun)`
|
||
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;
|
||
`,Cun=gi(yun)`
|
||
height: calc(100vh - 64px);
|
||
padding: 24px;
|
||
overflow: auto;
|
||
background: #fff;
|
||
`,xun=()=>{const{documentId:e}=SV(),t=ss(),{currentDocument:n,fetchDocument:r,updateDocument:i,saving:o,setSaving:a}=C8e(),[s,l]=ge.useState(""),[c,u]=ge.useState(!0),[d,h]=ge.useState(!1);ge.useEffect(()=>{(async()=>{if(e)try{await r(e),l((n==null?void 0:n.content)||"")}finally{u(!1)}})()},[e,r,n==null?void 0:n.content]);const p=async()=>{if(n)try{a(!0),await i({...n,content:s}),ws.success("保存成功")}catch(m){console.error("Save document failed:",m),ws.error("保存失败")}finally{a(!1)}};return c||!n?U.jsx("div",{style:{textAlign:"center",padding:"50px"},children:U.jsx(Cl,{size:"large"})}):U.jsxs(bun,{children:[U.jsxs(Sun,{children:[U.jsxs(ma,{children:[U.jsx(hr,{icon:U.jsx(uwe,{}),onClick:()=>t(`/spaces/${n.spaceId}`),children:"返回"}),U.jsx("span",{style:{fontSize:16},children:n.title})]}),U.jsxs(ma,{children:[U.jsx(hr,{icon:U.jsx(awe,{}),children:"预览"}),U.jsx(hr,{icon:U.jsx(UP,{}),onClick:()=>h(!0),children:"设置"}),U.jsx(hr,{type:"primary",icon:U.jsx(cwt,{}),loading:o,onClick:p,children:"保存"})]})]}),U.jsx(Cun,{children:U.jsx(mun,{value:s,onChange:l})}),U.jsx(gun,{document:n,visible:d,onClose:()=>h(!1)})]})},{Header:wun,Content:_un}=xo,Eun=gi(xo)`
|
||
height: 100vh;
|
||
`,Tun=gi(wun)`
|
||
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;
|
||
`,kun=gi(_un)`
|
||
height: calc(100vh - 64px);
|
||
padding: 24px;
|
||
overflow: auto;
|
||
background: #fff;
|
||
`,Oun=[o8e(),a8e(),S8e()],Pun=()=>{const{documentId:e}=SV(),t=ss(),{currentDocument:n,fetchDocument:r}=C8e(),[i,o]=ge.useState(!0),[a,s]=ge.useState(!1);ge.useEffect(()=>{(async()=>{if(e)try{await r(e)}finally{o(!1)}})()},[e,r]);const l=()=>{t(`/documents/${e}/edit`)},c=()=>{ws.info("分享功能开发中")},u=()=>{s(!a),ws.success(a?"已取消收藏":"已收藏")};return i||!n?U.jsx("div",{style:{textAlign:"center",padding:"50px"},children:U.jsx(Cl,{size:"large"})}):U.jsxs(Eun,{children:[U.jsxs(Tun,{children:[U.jsxs(ma,{children:[U.jsx(hr,{icon:U.jsx(uwe,{}),onClick:()=>t(`/spaces/${n.spaceId}`),children:"返回"}),U.jsx("span",{style:{fontSize:16},children:n.title})]}),U.jsxs(ma,{children:[U.jsx(hr,{type:"text",icon:a?U.jsx(O_,{}):U.jsx(P_,{}),onClick:u}),U.jsx(hr,{icon:U.jsx(fwt,{}),onClick:c,children:"分享"}),U.jsx(hr,{type:"primary",icon:U.jsx(pk,{}),onClick:l,children:"编辑"})]})]}),U.jsx(kun,{children:U.jsx(oon,{value:n.content,plugins:Oun})})]})},QN=gi(hr)`
|
||
padding: 0 4px;
|
||
height: 24px;
|
||
line-height: 24px;
|
||
`,Mun=({spaceId:e})=>{const[t,n]=ge.useState(!0),[r,i]=ge.useState([]),o=ss();ge.useEffect(()=>{const s=[{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(s),n(!1)},1e3)},[e]);const a=[{title:"标题",dataIndex:"title",key:"title",render:(s,l)=>U.jsxs(ma,{children:[U.jsx(q2t,{}),U.jsx("a",{onClick:()=>o(`/documents/${l.id}`),children:s}),l.type==="markdown"&&U.jsx(TP,{color:"blue",children:"Markdown"})]})},{title:"更新时间",dataIndex:"updatedAt",key:"updatedAt",render:s=>new Date(s).toLocaleString()},{title:"操作",key:"action",render:(s,l)=>U.jsxs(ma,{size:"small",children:[U.jsx(QN,{type:"link",icon:U.jsx(awe,{}),onClick:()=>o(`/documents/${l.id}`),children:"预览"}),U.jsx(QN,{type:"link",icon:U.jsx(pk,{}),onClick:()=>o(`/documents/${l.id}/edit`),children:"编辑"}),U.jsx(QN,{type:"link",icon:U.jsx(RV,{}),danger:!0,children:"删除"})]})}];return U.jsx(rh,{columns:a,dataSource:r,loading:t,rowKey:"id",pagination:!1})},iue=gi(Zv)`
|
||
margin-bottom: 24px;
|
||
`,Iun=gi.div`
|
||
max-width: 600px;
|
||
`,$un=({space:e})=>{const[t]=Or.useForm(),[n,r]=ge.useState(!1),[i,o]=ge.useState([{uid:"-1",name:"cover",status:"done",url:e.coverImage}]),a=async s=>{var l,c,u;try{r(!0),console.log("Updating space:",{...s,coverImage:((l=i[0])==null?void 0:l.url)||((u=(c=i[0])==null?void 0:c.response)==null?void 0:u.url)}),ws.success("更新成功")}catch(d){console.error("Update space failed:",d),ws.error("更新失败")}finally{r(!1)}};return U.jsx(Iun,{children:U.jsxs(Or,{form:t,layout:"vertical",initialValues:{name:e.name,description:e.description,type:e.type},onFinish:a,children:[U.jsxs(iue,{title:"基本信息",children:[U.jsx(Or.Item,{name:"name",label:"空间名称",rules:[{required:!0,message:"请输入空间名称"}],children:U.jsx($i,{placeholder:"请输入空间名称"})}),U.jsx(Or.Item,{name:"description",label:"空间描述",rules:[{required:!0,message:"请输入空间描述"}],children:U.jsx($i.TextArea,{placeholder:"请输入空间描述",rows:4})}),U.jsx(Or.Item,{name:"type",label:"空间类型",rules:[{required:!0,message:"请选择空间类型"}],children:U.jsxs(ti.Group,{children:[U.jsx(ti,{value:"public",children:"公开空间"}),U.jsx(ti,{value:"private",children:"私有空间"})]})}),U.jsx(Or.Item,{label:"封面图片",children:U.jsx(dC,{listType:"picture-card",maxCount:1,fileList:i,onChange:({fileList:s})=>o(s),action:"/api/upload",accept:"image/*",children:i.length===0&&U.jsxs("div",{children:[U.jsx(XE,{}),U.jsx("div",{style:{marginTop:8},children:"上传图片"})]})})})]}),U.jsxs(iue,{title:"高级设置",children:[U.jsx(Or.Item,{name:"allowComment",valuePropName:"checked",children:U.jsxs(ti.Group,{children:[U.jsx(ti,{value:!0,children:"允许评论"}),U.jsx(ti,{value:!1,children:"禁止评论"})]})}),U.jsx(Or.Item,{name:"allowShare",valuePropName:"checked",children:U.jsxs(ti.Group,{children:[U.jsx(ti,{value:!0,children:"允许分享"}),U.jsx(ti,{value:!1,children:"禁止分享"})]})})]}),U.jsx(Or.Item,{children:U.jsx(hr,{type:"primary",htmlType:"submit",loading:n,children:"保存更改"})})]})})},{Option:c2}=bs,Run=gi(hr)`
|
||
padding: 0 4px;
|
||
height: 24px;
|
||
line-height: 24px;
|
||
`,Aun=gi.div`
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
margin-bottom: 16px;
|
||
`,Nun=({spaceId:e})=>{const[t,n]=ge.useState(!0),[r,i]=ge.useState([]),[o,a]=ge.useState(!1),[s]=Or.useForm();ge.useEffect(()=>{const u=[{id:"1",name:"管理员",email:"admin@example.com",role:"admin"},{id:"2",name:"测试用户",email:"test@example.com",role:"member"}];setTimeout(()=>{i(u),n(!1)},1e3)},[e]);const l=async u=>{try{console.log("Inviting member:",u),ws.success("邀请已发送"),a(!1),s.resetFields()}catch(d){console.error("Invite member failed:",d),ws.error("邀请失败")}},c=[{title:"成员",dataIndex:"name",key:"name",render:(u,d)=>U.jsxs(ma,{children:[U.jsx(DV,{}),u,U.jsxs("span",{style:{color:"#999"},children:["(",d.email,")"]})]})},{title:"角色",dataIndex:"role",key:"role",render:u=>U.jsx(TP,{color:u==="admin"?"blue":"default",children:u==="admin"?"管理员":"成员"})},{title:"操作",key:"action",render:u=>U.jsxs(ma,{size:"small",children:[U.jsxs(bs,{defaultValue:u.role,style:{width:100},bordered:!1,disabled:u.role==="admin",children:[U.jsx(c2,{value:"admin",children:"管理员"}),U.jsx(c2,{value:"member",children:"成员"}),U.jsx(c2,{value:"readonly",children:"只读"})]}),U.jsx(Run,{type:"link",icon:U.jsx(RV,{}),danger:!0,disabled:u.role==="admin",children:"移除"})]})}];return U.jsxs("div",{children:[U.jsxs(Aun,{children:[U.jsxs("span",{children:["共 ",r.length," 名成员"]}),U.jsx(hr,{type:"primary",icon:U.jsx(XE,{}),onClick:()=>a(!0),children:"邀请成员"})]}),U.jsx(rh,{columns:c,dataSource:r,loading:t,rowKey:"id",pagination:!1}),U.jsx(Ia,{title:"邀请成员",open:o,onCancel:()=>a(!1),onOk:()=>s.submit(),children:U.jsxs(Or,{form:s,layout:"vertical",onFinish:l,children:[U.jsx(Or.Item,{name:"email",label:"邮箱地址",rules:[{required:!0,message:"请输入邮箱地址"},{type:"email",message:"请输入有效的邮箱地址"}],children:U.jsx($i,{prefix:U.jsx(Z2t,{}),placeholder:"请输入邮箱地址"})}),U.jsx(Or.Item,{name:"role",label:"角色",initialValue:"member",rules:[{required:!0,message:"请选择角色"}],children:U.jsxs(bs,{children:[U.jsx(c2,{value:"member",children:"成员"}),U.jsx(c2,{value:"readonly",children:"只读"})]})}),U.jsx(Or.Item,{name:"message",label:"邀请消息",children:U.jsx($i.TextArea,{placeholder:"可选:添加一条邀请消息",rows:3})})]})})]})},Dun=gi.div`
|
||
margin-bottom: 24px;
|
||
padding: 16px 24px;
|
||
background: #fff;
|
||
border-radius: 2px;
|
||
box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
|
||
`,Lun=gi(EW)`
|
||
margin-bottom: 16px;
|
||
`,Fun=gi.div`
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
margin-bottom: 16px;
|
||
|
||
h1 {
|
||
margin: 0;
|
||
font-size: 20px;
|
||
line-height: 32px;
|
||
}
|
||
`,jun=gi.div`
|
||
color: rgba(0, 0, 0, 0.45);
|
||
`,Bun=()=>{const{spaceId:e}=SV(),{currentSpace:t,fetchSpaceDetail:n,toggleStarSpace:r}=rI(),[i,o]=ge.useState(!0),[a,s]=ge.useState("documents"),l=ss();if(ge.useEffect(()=>{(async()=>{if(e)try{await n(e)}finally{o(!1)}})()},[e,n]),i||!t)return U.jsx("div",{style:{textAlign:"center",padding:"50px"},children:U.jsx(Cl,{size:"large"})});const c={items:[{key:"edit",icon:U.jsx(pk,{}),label:"编辑空间"},{key:"settings",icon:U.jsx(UP,{}),label:"空间设置"},{type:"divider"},{key:"delete",icon:U.jsx(RV,{}),label:"删除空间",danger:!0}]},u=[{key:"documents",label:"文档",children:U.jsx(Mun,{spaceId:e||""})},{key:"settings",label:"设置",children:U.jsx($un,{space:t})},{key:"members",label:"成员",children:U.jsx(Nun,{spaceId:e||""})}],d=()=>{const h=String(Date.now());l(`/documents/${h}/edit`)};return U.jsxs("div",{children:[U.jsxs(Dun,{children:[U.jsx(Lun,{items:[{title:"所有空间",onClick:h=>{h.preventDefault(),l("/")}},{title:U.jsx(U.Fragment,{children:t==null?void 0:t.name})}]}),U.jsxs(Fun,{children:[U.jsxs(ma,{size:"middle",align:"center",children:[U.jsx("h1",{children:t.name}),U.jsx(hr,{type:"text",icon:t.starred?U.jsx(O_,{}):U.jsx(P_,{}),onClick:()=>r(t.id)}),U.jsx(hr,{type:"primary",icon:U.jsx(pk,{}),onClick:d,children:"新建文档"})]}),U.jsxs(ma,{children:[U.jsx(hr,{icon:U.jsx(AV,{}),children:"邀请成员"}),U.jsx(yP,{menu:c,placement:"bottomRight",children:U.jsx(hr,{icon:U.jsx(nwt,{})})})]})]}),U.jsx(jun,{children:t.description})]}),U.jsx(rC,{activeKey:a,onChange:s,items:u,size:"large"})]})};function Hun({children:e}){const{isLoggedIn:t}=f.useContext(qs),n=pC();return t?e:U.jsx(Hgt,{to:"/auth/login",replace:!0,state:{from:n}})}const oue=[{path:"/",element:U.jsx(U.Fragment,{children:U.jsx(Hun,{children:U.jsx(rKt,{})})}),children:[{path:"",element:U.jsx(Zae,{})},{path:"spaces",element:U.jsx(Zae,{})},{path:"spaces/:spaceId",element:U.jsx(Bun,{})},{path:"documents/:documentId",element:U.jsx(Pun,{})},{path:"documents/:documentId/edit",element:U.jsx(xun,{})},{path:"/setting",element:U.jsx(C4e,{}),children:[{path:"/setting",element:U.jsx(jae,{})},{path:"/setting/profile",element:U.jsx(jae,{})},{path:"/setting/agentProfile",element:U.jsx(xKt,{})},{path:"/setting/memberProfile",element:U.jsx(pKt,{})},{path:"/setting/basic",element:U.jsx(cKt,{})},{path:"/setting/certification",element:U.jsx(SKt,{})},{path:"/setting/qrcode",element:U.jsx(uKt,{})},{path:"/setting/shortcut",element:U.jsx(dKt,{})}]}]},{path:"/auth",element:U.jsx(iKt,{}),children:[{path:"/auth",element:U.jsx(IB,{isModel:!1})},{path:"/auth/login",element:U.jsx(IB,{isModel:!1})},{path:"/auth/register",element:U.jsx(dHt,{})},{path:"/auth/server",element:U.jsx(jEe,{})}]},{path:"/anonymous",element:U.jsx(JKt,{}),children:[{path:"/anonymous",element:U.jsx(YB,{})},{path:"/anonymous/home",element:U.jsx(YB,{})},{path:"/anonymous/setting",element:U.jsx(nqt,{})}]},{path:"*",element:U.jsx(fKt,{})}];let xH;os?xH=Ygt(oue,{future:{v7_normalizeFormMethod:!0,v7_relativeSplatPath:!0,v7_partialHydration:!0,v7_fetcherPersist:!0,v7_skipActionErrorRevalidation:!0}}):xH=Ggt(oue,{basename:"/notebase",future:{v7_normalizeFormMethod:!0,v7_relativeSplatPath:!0,v7_partialHydration:!0,v7_fetcherPersist:!0,v7_skipActionErrorRevalidation:!0}});const zun=xH;var Uun=typeof Element<"u",Wun=typeof Map=="function",Vun=typeof Set=="function",Kun=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function _8(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!_8(e[r],t[r]))return!1;return!0}var o;if(Wun&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;for(o=e.entries();!(r=o.next()).done;)if(!_8(r.value[1],t.get(r.value[0])))return!1;return!0}if(Vun&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(Kun&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(Uun&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!_8(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var qun=function(t,n){try{return _8(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const Gun=hi(qun);var Yun=function(e,t,n,r,i,o,a,s){if(!e){var l;if(t===void 0)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,o,a,s],u=0;l=new Error(t.replace(/%s/g,function(){return c[u++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},Xun=Yun;const aue=hi(Xun);var x8e=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(x8e||{}),ZN={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},sue=Object.values(x8e),tG={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Qun=Object.entries(tG).reduce((e,[t,n])=>(e[n]=t,e),{}),xd="data-rh",xb={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},wb=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},Zun=e=>{let t=wb(e,"title");const n=wb(e,xb.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=wb(e,xb.DEFAULT_TITLE);return t||r||void 0},Jun=e=>wb(e,xb.ON_CHANGE_CLIENT_STATE)||(()=>{}),JN=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,r)=>({...n,...r}),{}),edn=(e,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,r)=>{if(!n.length){const i=Object.keys(r);for(let o=0;o<i.length;o+=1){const s=i[o].toLowerCase();if(e.indexOf(s)!==-1&&r[s])return n.concat(r)}}return n},[]),tdn=e=>console&&typeof console.warn=="function"&&console.warn(e),u2=(e,t,n)=>{const r={};return n.filter(i=>Array.isArray(i[e])?!0:(typeof i[e]<"u"&&tdn(`Helmet: ${e} should be of type "Array". Instead found type "${typeof i[e]}"`),!1)).map(i=>i[e]).reverse().reduce((i,o)=>{const a={};o.filter(l=>{let c;const u=Object.keys(l);for(let h=0;h<u.length;h+=1){const p=u[h],m=p.toLowerCase();t.indexOf(m)!==-1&&!(c==="rel"&&l[c].toLowerCase()==="canonical")&&!(m==="rel"&&l[m].toLowerCase()==="stylesheet")&&(c=m),t.indexOf(p)!==-1&&(p==="innerHTML"||p==="cssText"||p==="itemprop")&&(c=p)}if(!c||!l[c])return!1;const d=l[c].toLowerCase();return r[c]||(r[c]={}),a[c]||(a[c]={}),r[c][d]?!1:(a[c][d]=!0,!0)}).reverse().forEach(l=>i.push(l));const s=Object.keys(a);for(let l=0;l<s.length;l+=1){const c=s[l],u={...r[c],...a[c]};r[c]=u}return i},[]).reverse()},ndn=(e,t)=>{if(Array.isArray(e)&&e.length){for(let n=0;n<e.length;n+=1)if(e[n][t])return!0}return!1},rdn=e=>({baseTag:edn(["href"],e),bodyAttributes:JN("bodyAttributes",e),defer:wb(e,xb.DEFER),encode:wb(e,xb.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:JN("htmlAttributes",e),linkTags:u2("link",["rel","href"],e),metaTags:u2("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:u2("noscript",["innerHTML"],e),onChangeClientState:Jun(e),scriptTags:u2("script",["src","innerHTML"],e),styleTags:u2("style",["cssText"],e),title:Zun(e),titleAttributes:JN("titleAttributes",e),prioritizeSeoTags:ndn(e,xb.PRIORITIZE_SEO_TAGS)}),w8e=e=>Array.isArray(e)?e.join(""):e,idn=(e,t)=>{const n=Object.keys(e);for(let r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1},e7=(e,t)=>Array.isArray(e)?e.reduce((n,r)=>(idn(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},lue=(e,t)=>({...e,[t]:void 0}),odn=["noscript","script","style"],wH=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),_8e=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),adn=(e,t,n,r)=>{const i=_8e(n),o=w8e(t);return i?`<${e} ${xd}="true" ${i}>${wH(o,r)}</${e}>`:`<${e} ${xd}="true">${wH(o,r)}</${e}>`},sdn=(e,t,n=!0)=>t.reduce((r,i)=>{const o=i,a=Object.keys(o).filter(c=>!(c==="innerHTML"||c==="cssText")).reduce((c,u)=>{const d=typeof o[u]>"u"?u:`${u}="${wH(o[u],n)}"`;return c?`${c} ${d}`:d},""),s=o.innerHTML||o.cssText||"",l=odn.indexOf(e)===-1;return`${r}<${e} ${xd}="true" ${a}${l?"/>":`>${s}</${e}>`}`},""),E8e=(e,t={})=>Object.keys(e).reduce((n,r)=>{const i=tG[r];return n[i||r]=e[r],n},t),ldn=(e,t,n)=>{const r={key:t,[xd]:!0},i=E8e(n,r);return[ge.createElement("title",i,t)]},E8=(e,t)=>t.map((n,r)=>{const i={key:r,[xd]:!0};return Object.keys(n).forEach(o=>{const s=tG[o]||o;if(s==="innerHTML"||s==="cssText"){const l=n.innerHTML||n.cssText;i.dangerouslySetInnerHTML={__html:l}}else i[s]=n[o]}),ge.createElement(e,i)}),ou=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>ldn(e,t.title,t.titleAttributes),toString:()=>adn(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>E8e(t),toString:()=>_8e(t)};default:return{toComponent:()=>E8(e,t),toString:()=>sdn(e,t,n)}}},cdn=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const i=e7(e,ZN.meta),o=e7(t,ZN.link),a=e7(n,ZN.script);return{priorityMethods:{toComponent:()=>[...E8("meta",i.priority),...E8("link",o.priority),...E8("script",a.priority)],toString:()=>`${ou("meta",i.priority,r)} ${ou("link",o.priority,r)} ${ou("script",a.priority,r)}`},metaTags:i.default,linkTags:o.default,scriptTags:a.default}},udn=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:i,noscriptTags:o,styleTags:a,title:s="",titleAttributes:l,prioritizeSeoTags:c}=e;let{linkTags:u,metaTags:d,scriptTags:h}=e,p={toComponent:()=>{},toString:()=>""};return c&&({priorityMethods:p,linkTags:u,metaTags:d,scriptTags:h}=cdn(e)),{priority:p,base:ou("base",t,r),bodyAttributes:ou("bodyAttributes",n,r),htmlAttributes:ou("htmlAttributes",i,r),link:ou("link",u,r),meta:ou("meta",d,r),noscript:ou("noscript",o,r),script:ou("script",h,r),style:ou("style",a,r),title:ou("title",{title:s,titleAttributes:l},r)}},_H=udn,Q5=[],T8e=!!(typeof window<"u"&&window.document&&window.document.createElement),EH=class{constructor(e,t){xi(this,"instances",[]);xi(this,"canUseDOM",T8e);xi(this,"context");xi(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?Q5:this.instances,add:e=>{(this.canUseDOM?Q5:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?Q5:this.instances).indexOf(e);(this.canUseDOM?Q5:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=_H({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},ddn={},k8e=ge.createContext(ddn),j1,O8e=(j1=class extends f.Component{constructor(n){super(n);xi(this,"helmetData");this.helmetData=new EH(this.props.context||{},j1.canUseDOM)}render(){return ge.createElement(k8e.Provider,{value:this.helmetData.value},this.props.children)}},xi(j1,"canUseDOM",T8e),j1),vy=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${xd}]`),i=[].slice.call(r),o=[];let a;return t&&t.length&&t.forEach(s=>{const l=document.createElement(e);for(const c in s)if(Object.prototype.hasOwnProperty.call(s,c))if(c==="innerHTML")l.innerHTML=s.innerHTML;else if(c==="cssText")l.styleSheet?l.styleSheet.cssText=s.cssText:l.appendChild(document.createTextNode(s.cssText));else{const u=c,d=typeof s[u]>"u"?"":s[u];l.setAttribute(c,d)}l.setAttribute(xd,"true"),i.some((c,u)=>(a=u,l.isEqualNode(c)))?i.splice(a,1):o.push(l)}),i.forEach(s=>{var l;return(l=s.parentNode)==null?void 0:l.removeChild(s)}),o.forEach(s=>n.appendChild(s)),{oldTags:i,newTags:o}},TH=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(xd),i=r?r.split(","):[],o=[...i],a=Object.keys(t);for(const s of a){const l=t[s]||"";n.getAttribute(s)!==l&&n.setAttribute(s,l),i.indexOf(s)===-1&&i.push(s);const c=o.indexOf(s);c!==-1&&o.splice(c,1)}for(let s=o.length-1;s>=0;s-=1)n.removeAttribute(o[s]);i.length===o.length?n.removeAttribute(xd):n.getAttribute(xd)!==a.join(",")&&n.setAttribute(xd,a.join(","))},fdn=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=w8e(e)),TH("title",t)},cue=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:i,linkTags:o,metaTags:a,noscriptTags:s,onChangeClientState:l,scriptTags:c,styleTags:u,title:d,titleAttributes:h}=e;TH("body",r),TH("html",i),fdn(d,h);const p={baseTag:vy("base",n),linkTags:vy("link",o),metaTags:vy("meta",a),noscriptTags:vy("noscript",s),scriptTags:vy("script",c),styleTags:vy("style",u)},m={},v={};Object.keys(p).forEach(y=>{const{newTags:S,oldTags:b}=p[y];S.length&&(m[y]=S),b.length&&(v[y]=p[y].oldTags)}),t&&t(),l(e,m,v)},d2=null,hdn=e=>{d2&&cancelAnimationFrame(d2),e.defer?d2=requestAnimationFrame(()=>{cue(e,()=>{d2=null})}):(cue(e),d2=null)},pdn=hdn,uue=class extends f.Component{constructor(){super(...arguments);xi(this,"rendered",!1)}shouldComponentUpdate(t){return!WWt(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:n}=this.props.context;let r=null;const i=rdn(t.get().map(o=>{const a={...o.props};return delete a.context,a}));O8e.canUseDOM?pdn(i):_H&&(r=_H(i)),n(r)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},t7,mdn=(t7=class extends f.Component{shouldComponentUpdate(e){return!Gun(lue(this.props,"helmetData"),lue(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(r=>{n={...n,[r]:e[r]}}),n}warnOnInvalidChildren(e,t){return aue(sue.some(n=>e.type===n),typeof e.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${sue.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),aue(!t||typeof t=="string"||Array.isArray(t)&&!t.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return ge.Children.forEach(e,r=>{if(!r||!r.props)return;const{children:i,...o}=r.props,a=Object.keys(o).reduce((l,c)=>(l[Qun[c]||c]=o[c],l),{});let{type:s}=r;switch(typeof s=="symbol"?s=s.toString():this.warnOnInvalidChildren(r,i),s){case"Symbol(react.fragment)":t=this.mapChildrenToProps(i,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,a,i);break;default:t=this.mapObjectTypeChildren(r,t,a,i);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:r}=t;if(e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof EH)){const i=r;r=new EH(i.context,!0),delete n.helmetData}return r?ge.createElement(uue,{...n,context:r.value}):ge.createElement(k8e.Consumer,null,i=>ge.createElement(uue,{...n,context:i}))}},xi(t7,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),t7);const gdn={i18_file_assistant:"文件助手",slogan:"对话即服务","menu.dashboard.chat":"消息","menu.dashboard.contact":"通讯录","menu.dashboard.queue":"排队","menu.dashboard.ticket":"工单","menu.dashboard.leavemsg":"留言","menu.dashboard.visitor":"访客","menu.dashboard.monitor":"监控","menu.dashboard.plugins":"插件","menu.dashboard.mine":"我的","chat.toolbar.emoji":"表情","chat.toolbar.image":"图片","chat.toolbar.file":"文件","chat.toolbar.audio":"录音","chat.toolbar.webrtc":"视频","chat.toolbar.history":"历史消息","chat.toolbar.block":"拉黑","chat.toolbar.screenshot":"截图","chat.toolbar.invite.rate":"邀请评价","chat.toolbar.autoreply":"自动回复","chat.toolbar.autoreply.on":"自动回复(已开启)","chat.navbar.transfer":"转接","chat.navbar.ticket":"工单","chat.navbar.crm":"Crm","chat.navbar.close":"结束","chat.navbar.category":"分类","chat.navbar.ai":"AI","chat.navbar.queue":"排队","chat.right.ai":"Copilot","chat.right.quickreply":"快捷回复","chat.right.ticket":"工单","chat.right.userinfo":"用户信息","chat.right.llm":"大模型","chat.right.docview":"文档预览","chat.right.group":"群详情","chat.right.member":"联系人","chat.ai.summary":"会话小结","chat.ai.switch":"切换AI","chat.thread.nomore":"没有更多了","chat.message.loadmore":"加载更多","dashboard.footbar.logout":"退出",SERVICE:"客服机器人(对外)",MARKETING:"营销机器人(对外)",KNOWLEDGEBASE:"知识库机器人(内部)",QA:"问答机器人(直接调用大模型)",AGENT_ASSISTANT:"客服助手(内部)",loading:"加载中",create:"创建",creating:"创建中...","create.success":"创建成功","create.fail":"创建失败",update:"更新",updating:"更新中...","update.success":"更新成功","update.fail":"更新失败",save:"保存",saving:"正在保存...",email:"邮箱","email.verified":"邮箱(已验证)","email.unverified":"邮箱(待验证)",mobile:"手机号","mobile.verified":"手机号(已验证)","mobile.unverified":"手机号(待验证)",captcha:"验证码",logging:"登录中...","login.success":"登录成功","login.error":"登录失败,请稍后重试",registering:"注册中...","register.success":"注册成功","register.error":"注册失败","username.change.tip":"登录用户名(修改用户名之后,需要重新登录)",createKb:"创建知识库",createDept:"创建部门",upload:"上传",import:"导入",export:"导出","download.template":"下载模板",open:"打开",copy:"复制","copy.success":"复制成功",ok:"确定",cancel:"取消",bind:"绑定",edit:"编辑",editing:"修改中...","edit.success":"修改成功","edit.fail":"修改失败",delete:"删除",deleting:"删除中...",deleteTip:"删除提示",deleteAffirm:"确定要删除","delete.success":"删除成功","delete.fail":"删除失败","process.success":"处理成功","process.fail":"处理失败",preview:"预览",close:"关闭",closing:"关闭中...",closeTip:"关闭提示",closeASure:"确定要关闭","close.success":"关闭成功",choose:"选择","leavemsg.enabled":"留言启用",transfer:"转接","transfer.success":"转接成功","transfer.fail":"转接失败","transfer.reason":"转接原因",refresh:"刷新",noAgent:"暂无客服在线"},vdn={"menu.anonymous.title":"Anonymous Mode","menu.anonymous.home":"Messages","menu.anonymous.contact":"Contacts","menu.anonymous.robot":"Robot","menu.anonymous.setting":"Settings","menu.anonymous.status":"Anonymous Status","menu.anonymous.status.tip":"Anonymous mode only supports communication between online devices in the same LAN","menu.anonymous.login.tip":"Login to access offline messages and more features","menu.anonymous.login":"Login","menu.anonymous.current.users":"Current Users","menu.dashboard.chat":"聊天","menu.dashboard.contact":"联系人","menu.dashboard.ai":"AI助手","menu.dashboard.note":"笔记","menu.dashboard.kbase":"知识库","menu.dashboard.mine":"设置","menu.dashboard.queue":"排队","menu.dashboard.ticket":"工单","menu.dashboard.leavemsg":"留言","menu.dashboard.visitor":"访客","menu.dashboard.monitor":"监控","menu.dashboard.plugins":"插件","menu.settings":"Settings","menu.settings.logout":"Logout","menu.agent.status":"Agent Status","menu.agent.status.available":"Available","menu.agent.status.rest":"Rest","menu.agent.status.offline":"Offline","menu.language":"Language","menu.mode":"Mode","menu.mode.team":"Team Mode","menu.mode.agent":"Agent Mode","menu.mode.personal":"Personal Mode","menu.agent.offline.warning":"Please end all ongoing conversations before going offline","menu.mode.personal.coming":"Coming soon...","menu.dashboard.notebase":"知识库"},ydn={"pages.login.title":"登录","pages.login.subtitle":"欢迎使用微语客服系统","pages.login.accountLogin.tab":"账户密码登录","pages.login.accountLogin.errorMessage":"错误的用户名和密码","pages.login.failure":"登录失败,请检查用户名密码!","pages.login.failureCode":"验证错误","pages.login.success":"登录成功!","pages.login.username.placeholder":"请输入用户名","pages.login.username.required":"用户名是必填项!","pages.login.password.placeholder":"请输入密码","pages.login.repassword.placeholder":"确认密码","pages.login.password.required":"密码是必填项!","pages.login.repassword.required":"确认密码是必填项!","pages.login.phoneLogin.tab":"手机号登录","pages.login.phoneLogin.errorMessage":"验证码错误","pages.login.phoneNumber.placeholder":"请输入手机号!","pages.login.phoneNumber.required":"手机号是必填项!","pages.login.phoneNumber.invalid":"不合法的手机号!","pages.login.captcha.placeholder":"请输入验证码!","pages.login.captcha.required":"验证码是必填项!","pages.login.phoneLogin.getVerificationCode":"获取验证码","pages.login.anonymousLogin":"匿名登录","pages.getCaptchaSecondText":"秒后重新获取","pages.login.scanLogin.tab":"扫码登录","pages.login.rememberMe":"自动登录","pages.login.forgotPassword":"忘记密码","pages.login.submit":"登录","pages.login.loginWith":"其他登录方式 :","pages.login.register":"注册账号","pages.login.registerAccount":"注册账户","pages.login.auto.register":"未注册手机号会自动注册","pages.welcome.link":"欢迎使用","pages.robot.new":"新建","pages.robot.chat":"聊天","pages.robot.edit":"编辑","pages.robot.delete":"删除","pages.robot.upload":"上传","pages.robot.tab.basic":"基本信息","pages.robot.tab.kb":"知识库","pages.robot.tab.channel":"渠道对接","pages.robot.tab.statistic":"数据统计","pages.robot.tab.advanced":"高级设置","pages.robot.tab.flow":"流程设计","pages.robot.tab.avatar":"头像","pages.robot.tab.title":"标题","pages.robot.tab.welcomeTip":"欢迎语","pages.robot.tab.description":"简介","pages.robot.tab.preview":"实时预览","pages.robot.tab.website":"官网","pages.robot.tab.helpdesk":"帮助文档","pages.robot.tab.icp":"京ICP备案 17041763号-1","pages.robot.tab.police":"粤公安备案 44030502008688号","pages.robot.kb.file":"文件","pages.robot.kb.text":"文本","pages.robot.kb.qa":"问答","pages.robot.kb.web":"网站","pages.robot.file.title":"文件名","pages.robot.file.type":"文件类型","pages.robot.file.size":"文件大小","pages.robot.file.action":"操作","pages.robot.file.delete":"删除","pages.robot.file.save":"保存","pages.robot.file.cancel":"取消","pages.robot.file.uploading":"上传中...","pages.robot.file.name_invalid":"文件名不能包含 _ ","pages.robot.file.parse":"解析文件内容","pages.setting":"设置","pages.logout":"退出登录","pages.footer.website":"微语官网","pages.footer.helpcenter":"帮助文档","pages.login.remember":"记住密码","pages.agent.tab.basic":"基本信息","pages.agent.robot":"机器人","pages.agent.service.settings":"服务设置","pages.agent.service.settings.topTip":"顶部提示","pages.agent.service.settings.welcomeTip":"欢迎语","pages.agent.service.settings.leavemsgTip":"离线留言提示","pages.agent.service.settings.autoCloseMin":"自动关闭分钟","pages.agent.service.settings.showLogo":"显示Logo","pages.agent.service.settings.maxThreadCount":"最大线程数","pages.advanced.faq":"常见问题","pages.advanced.quickButton":"快捷按钮","pages.advanced.faqGuess":"智能推荐","pages.advanced.faqHot":"热门问题","pages.advanced.faqShortcut":"快捷回复","pages.advanced.rate":"满意度评价","pages.advanced.autoreply":"自动回复","pages.advanced.leaveMsg":"留言设置","pages.advanced.survey":"调查问卷","pages.advanced.history":"历史记录","pages.advanced.inputAssociation":"输入联想","pages.advanced.antiHarassment":"验证码设置","pages.advanced.captcha":"验证码设置","pages.advanced.showPreForm":"显示预览","pages.advanced.showHistory":"显示历史","pages.advanced.showInputAssociation":"显示输入联想","pages.advanced.showCaptcha":"显示验证码","pages.login.country.placeholder":"选择国家/地区","pages.login.country.china":"中国大陆","pages.login.country.hongkong":"中国香港","pages.login.country.taiwan":"中国台湾","pages.login.country.macao":"中国澳门","pages.login.country.japan":"日本","pages.login.country.korea":"韩国","pages.login.country.usa":"美国","pages.login.country.canada":"加拿大","pages.login.country.uk":"英国","pages.login.country.germany":"德国","pages.login.country.france":"法国","pages.login.country.australia":"澳大利亚","pages.login.country.singapore":"新加坡","pages.login.country.malaysia":"马来西亚","pages.login.country.thailand":"泰国","pages.login.country.vietnam":"越南","pages.login.country.philippines":"菲律宾","pages.login.country.indonesia":"印度尼西亚","pages.login.country.italy":"意大利","pages.login.country.spain":"西班牙","pages.login.country.russia":"俄罗斯","pages.login.country.newzealand":"新西兰","pages.anonymous.title":"匿名模式","pages.anonymous.home":"首页","pages.anonymous.contact":"联系人","pages.anonymous.robot":"机器人","pages.anonymous.setting":"设置","pages.anonymous.welcome":"欢迎使用匿名模式","pages.anonymous.description":"您可以在此模式下匿名使用系统功能","block.title":"拉黑设置","block.type":"拉黑类型","block.user":"拉黑用户","block.ip":"拉黑IP","block.permanent":"永久封禁","block.until":"封禁至","block.until.required":"请选择封禁结束时间","pages.register.title":"注册","pages.register.subtitle":"创建您的账号","pages.register.username":"用户名","pages.register.password":"密码","pages.register.confirm":"确认密码","pages.register.email":"邮箱","pages.register.mobile":"手机号","pages.register.code":"验证码","pages.register.agreement":"我已阅读并同意","pages.register.agreement.terms":"服务条款","pages.register.submit":"注册","pages.register.login":"使用已有账号登录","pages.404.title":"404","pages.404.subtitle":"抱歉,您访问的页面不存在","pages.404.description":"您可以尝试以下操作:","pages.404.actions.back":"返回上一页","pages.404.actions.home":"返回首页","pages.403.title":"403","pages.403.subtitle":"抱歉,您没有访问该页面的权限","pages.403.description":"请联系管理员获取权限","pages.403.actions.back":"返回上一页","pages.500.title":"500","pages.500.subtitle":"抱歉,服务器出错了","pages.500.description":"请稍后再试或联系技术支持","pages.500.actions.back":"返回上一页","pages.500.actions.home":"返回首页","pages.welcome.title":"欢迎","pages.welcome.description":"微语客服系统是一个开源的客服系统","pages.welcome.getting-started":"开始使用","pages.welcome.view-docs":"查看文档"},bdn={"app.title":"微语","app.logout":"登出","app.copyright.produced":"微语出品","app.preview.down.block":"下载此页面到本地项目","app.welcome.link.fetch-blocks":"获取全部区块","app.welcome.link.block-list":"基于 block 开发,快速构建标准页面","navBar.lang":"语言","layout.user.link.help":"帮助","layout.user.link.privacy":"隐私","layout.user.link.terms":"条款","theme.light":"浅色","theme.dark":"深色","theme.system":"自动","setting.lang":"Languages","setting.theme":"主题","app.name":"微语客服","app.description":"新一代智能客服系统","app.welcome":"欢迎使用微语客服系统","app.copyright":"© 2024 微语客服. 保留所有权利.","app.version":"版本","app.action.back":"返回","app.action.confirm":"确认","app.action.cancel":"取消","app.action.save":"保存","app.action.edit":"编辑","app.action.delete":"删除","app.action.refresh":"刷新","app.action.search":"搜索","app.action.more":"更多","app.action.settings":"设置","app.action.help":"帮助","app.tip.loading":"加载中...","app.tip.success":"操作成功","app.tip.error":"操作失败","app.tip.warning":"警告","app.tip.info":"提示","app.tip.confirm":"确认要执行此操作吗?","app.tip.nodata":"暂无数据","app.tip.network.error":"网络连接失败","app.tip.server.error":"服务器错误","app.status.online":"在线","app.status.offline":"离线","app.status.busy":"忙碌","app.status.away":"离开","app.status.invisible":"隐身","app.status.disabled":"已禁用","app.status.expired":"已过期","app.time.today":"今天","app.time.yesterday":"昨天","app.time.tomorrow":"明天","app.time.just":"刚刚","app.time.minutes":"{count} 分钟前","app.time.hours":"{count} 小时前","app.time.days":"{count} 天前","app.file.upload":"上传文件","app.file.download":"下载文件","app.file.preview":"预览文件","app.file.size.limit":"文件大小不能超过 {size}","app.file.type.unsupported":"不支持的文件类型","app.file.upload.success":"上传成功","app.file.upload.failed":"上传失败","app.file.download.success":"下载成功","app.file.download.failed":"下载失败","app.layout.sidebar.collapse":"收起侧边栏","app.layout.sidebar.expand":"展开侧边栏","app.layout.header.profile":"个人中心","app.layout.header.logout":"退出登录","app.layout.footer.copyright":"版权所有","app.layout.footer.terms":"服务条款","app.layout.footer.privacy":"隐私政策"},Sdn={"auth.login.title":"登录","auth.login.subtitle":"欢迎使用微语客服系统","auth.login.username":"用户名","auth.login.username.required":"请输入用户名","auth.login.password":"密码","auth.login.password.required":"请输入密码","auth.login.remember":"记住密码","auth.login.forgot":"忘记密码?","auth.login.submit":"登录","auth.login.other":"其他登录方式","auth.login.register":"注册账号","auth.login.success":"登录成功","auth.login.failed":"登录失败","auth.register.title":"注册","auth.register.subtitle":"创建新账号","auth.register.username":"用户名","auth.register.username.required":"请输入用户名","auth.register.email":"邮箱","auth.register.email.required":"请输入邮箱","auth.register.password":"密码","auth.register.password.required":"请输入密码","auth.register.confirm":"确认密码","auth.register.confirm.required":"请确认密码","auth.register.submit":"注册","auth.register.login":"已有账号?登录","auth.register.success":"注册成功","auth.register.failed":"注册失败","auth.forgot.title":"忘记密码","auth.forgot.subtitle":"重置密码","auth.forgot.email":"邮箱","auth.forgot.email.required":"请输入邮箱","auth.forgot.submit":"提交","auth.forgot.back":"返回登录","auth.forgot.success":"重置密码邮件已发送","auth.forgot.failed":"重置密码失败","auth.reset.title":"重置密码","auth.reset.subtitle":"设置新密码","auth.reset.password":"新密码","auth.reset.password.required":"请输入新密码","auth.reset.confirm":"确认密码","auth.reset.confirm.required":"请确认新密码","auth.reset.submit":"提交","auth.reset.success":"密码重置成功","auth.reset.failed":"密码重置失败","auth.verify.code":"验证码","auth.verify.code.required":"请输入验证码","auth.verify.code.send":"发送验证码","auth.verify.code.resend":"重新发送","auth.verify.code.success":"验证码发送成功","auth.verify.code.failed":"验证码发送失败","auth.password.strength.weak":"密码强度:弱","auth.password.strength.medium":"密码强度:中","auth.password.strength.strong":"密码强度:强","auth.agreement.text":"我已阅读并同意","auth.agreement.terms":"服务条款","auth.agreement.privacy":"隐私政策","server.button.back":"返回","server.button.save":"保存","server.button.reset":"重置","server.button.help":"帮助","server.save.success":"保存成功","server.reset.success":"重置成功,已恢复默认云服务器","server.custom.enable":"启用自定义服务器","server.api.url.label":"API服务器地址 (例如: http://127.0.0.1:9003 或 https://api.bytedesk.com)","server.api.url.placeholder":"http://127.0.0.1:9003","server.websocket.url.label":"WebSocket服务器地址 (例如: ws://127.0.0.1:9885/websocket 或 wss://api.bytedesk.com/websocket)","server.websocket.url.placeholder":"ws://127.0.0.1:9885/websocket","server.input.error":"请输入正确的服务器地址"},Cdn={"chat.title":"会话","chat.empty":"暂无会话","chat.loading":"加载中...","chat.load.error":"加载失败","chat.load.more":"加载更多","chat.no.more":"没有更多了","chat.refresh":"刷新","chat.status.connecting":"连接中...","chat.status.connected":"已连接","chat.status.disconnected":"连接断开","chat.status.reconnecting":"重新连接中...","chat.network.error":"网络连接失败,请检查网络","chat.thread.closing":"结束会话中...","chat.thread.close.success":"结束会话成功","chat.thread.close.failed":"结束会话失败","chat.thread.close.confirm.title":"确定要结束会话?","chat.rate.invite.confirm.title":"确认要邀请评价?","chat.message.send.failed":"发送失败","chat.message.resend":"重新发送","chat.message.recall":"撤回消息","chat.message.copy.success":"复制成功","chat.copy.success":"复制成功","chat.menu.copy":"复制","chat.menu.translate":"翻译","chat.menu.recall":"撤回","chat.menu.enlarge":"放大阅读","chat.menu.quickreply.add":"添加快捷回复...","chat.menu.browser.open":"浏览器打开","chat.menu.forward":"转发...","chat.menu.collect":"收藏","chat.menu.quote":"引用","chat.input.placeholder":"请输入内容, Ctrl+V 粘贴截图/图片","chat.translation.placeholder":"请输入翻译内容...","chat.input.send":"发送","chat.input.sending":"发送中...","chat.toolbar.emoji":"表情","chat.toolbar.image":"图片","chat.toolbar.file":"文件","chat.toolbar.screenshot":"截图","chat.toolbar.autoreply":"自动回复","chat.toolbar.audio":"录音","chat.toolbar.webrtc":"视频会话","chat.toolbar.history":"历史","chat.toolbar.block":"拉黑","chat.toolbar.invite.rate":"邀请评价","chat.navbar.transfer":"转接","chat.navbar.close":"结束","chat.navbar.note":"笔记","chat.navbar.kbase":"知识库","chat.right.quickreply":"快捷回复","chat.right.userinfo":"访客信息","chat.right.ai":"AI助手","chat.right.ticket":"工单","chat.right.llm":"大模型","chat.right.group":"群组信息","chat.right.member":"成员信息","chat.right.docview":"文档查看","chat.upload.size.limit":"文件大小不能超过 {size}","chat.upload.type.unsupported":"不支持的文件类型","chat.upload.failed":"上传失败","chat.upload.success":"上传成功","chat.upload.progress":"上传中 {progress}%","chat.webrtc.calling":"呼叫中...","chat.webrtc.incoming":"来电...","chat.webrtc.connected":"通话中...","chat.webrtc.ended":"通话结束","chat.webrtc.rejected":"对方拒绝","chat.webrtc.busy":"对方忙","chat.webrtc.failed":"通话失败","chat.webrtc.accept":"接受","chat.webrtc.reject":"拒绝","chat.webrtc.hangup":"挂断","chat.group.notice":"群公告","chat.group.members":"群成员","chat.group.admins":"管理员","chat.group.robots":"机器人","chat.group.qrcode":"二维码","chat.group.uid.error":"群组ID错误"},xdn={"common.confirm":"确认","common.cancel":"取消","common.submit":"提交","common.reset":"重置","common.save":"保存","common.delete":"删除","common.edit":"编辑","common.add":"添加","common.search":"搜索","common.back":"返回","common.next":"下一步","common.previous":"上一步","common.more":"更多","common.loading":"加载中...","common.success":"操作成功","common.failed":"操作失败","common.error":"错误","common.warning":"警告","common.info":"提示","common.status.online":"在线","common.status.offline":"离线","common.status.busy":"忙碌","common.status.away":"离开","common.status.invisible":"隐身","common.operation.success":"操作成功","common.operation.failed":"操作失败","common.operation.confirm":"确认要执行此操作吗?","common.operation.processing":"处理中...","common.operation.completed":"处理完成","common.operation.error":"处理出错","common.form.required":"此项为必填项","common.form.optional":"选填","common.form.invalid":"输入无效","common.form.validate.error":"表单验证失败","common.form.validate.success":"表单验证通过"},wdn={"customer.list.title":"客户列表","customer.list.empty":"暂无客户","customer.list.loading":"加载中...","customer.list.load.error":"加载失败","customer.list.load.more":"加载更多","customer.list.no.more":"没有更多了","customer.list.refresh":"刷新","customer.info.basic":"基本信息","customer.info.name":"姓名","customer.info.nickname":"昵称","customer.info.gender":"性别","customer.info.age":"年龄","customer.info.birthday":"生日","customer.info.mobile":"手机号","customer.info.email":"邮箱","customer.info.address":"地址","customer.info.company":"公司","customer.info.position":"职位","customer.info.remark":"备注","customer.info.tags":"标签","customer.info.source":"来源","customer.info.created":"创建时间","customer.info.updated":"更新时间","customer.status.online":"在线","customer.status.offline":"离线","customer.status.away":"离开","customer.status.busy":"忙碌","customer.status.blocked":"已拉黑","customer.action.edit":"编辑","customer.action.delete":"删除","customer.action.block":"拉黑","customer.action.unblock":"取消拉黑","customer.action.transfer":"转移","customer.action.merge":"合并","customer.action.export":"导出","customer.form.name":"姓名","customer.form.name.required":"请输入姓名","customer.form.nickname":"昵称","customer.form.gender":"性别","customer.form.age":"年龄","customer.form.birthday":"生日","customer.form.mobile":"手机号","customer.form.email":"邮箱","customer.form.address":"地址","customer.form.company":"公司","customer.form.position":"职位","customer.form.remark":"备注","customer.form.tags":"标签","customer.form.source":"来源","customer.create.success":"客户创建成功","customer.create.failed":"客户创建失败","customer.update.success":"客户更新成功","customer.update.failed":"客户更新失败","customer.delete.success":"客户删除成功","customer.delete.failed":"客户删除失败","customer.block.success":"客户拉黑成功","customer.block.failed":"客户拉黑失败","customer.unblock.success":"取消拉黑成功","customer.unblock.failed":"取消拉黑失败","customer.transfer.success":"客户转移成功","customer.transfer.failed":"客户转移失败","customer.merge.success":"客户合并成功","customer.merge.failed":"客户合并失败","customer.export.success":"客户导出成功","customer.export.failed":"客户导出失败","black.title":"拉黑设置","black.type":"拉黑类型","black.type.required":"请选择至少一种拉黑类型","black.user":"拉黑用户","black.ip":"拉黑IP","black.permanent":"永久拉黑","black.until":"拉黑截至","black.until.required":"请选择拉黑截至时间","black.reason":"拉黑原因","black.reason.required":"请输入拉黑原因","black.reason.placeholder":"请输入拉黑原因","black.success":"拉黑成功"},_dn={"dashboard.error.message":"获取数据失败","dashboard.init.organization":"初始化组织","dashboard.init.profile":"初始化个人信息","dashboard.init.workgroups":"初始化工作组","dashboard.init.agent":"初始化客服信息","dashboard.transfer.accept":"{nickname} 已接受转接","dashboard.transfer.reject":"{nickname} 已拒绝转接","dashboard.transfer.success":"转接请求已发送,等待对方响应"},Edn={"i18n.lang.en-US":"English","i18n.lang.zh-CN":"简体中文","i18n.lang.zh-TW":"繁体中文","i18n.queue.tip":"排队队列","i18n.queue.message.template":"当前排队人数:{0},大约等待时间:{1} 分钟","i18n.queue.empty":"暂无排队用户","i18n.queue.accept":"接入","i18n.system.notification":"系统通知","i18n.old.password.wrong":"旧密码错误","i18n.change.password":"修改密码","i18n.auth.captcha.send.success":"验证码发送成功","i18n.auth.captcha.error":"验证码错误","i18n.auth.captcha.expired":"验证码过期","i18n.auth.captcha.already.send":"验证码已经发送,请等待","i18n.auth.captcha.validate.failed":"验证码验证失败","i18n.faq":"常见问题","i18n.rate":"评价","i18n.input.placeholder":"请输入内容","i18n.loading":"加载中...","i18n.load.more":"加载更多","i18n.load.nomore":"没有更多了","i18n.typing":"正在输入...","i18n.robot":"[机器人]","i18n.agent":"[一对一]","i18n.workgroup":"[技能组]","i18n.group":"[群聊]","i18n.rate.invite":"邀请评价","i18n.ticket":"[工单]","i18n.notice":"通知","i18n.notice.title":"标题","i18n.notice.content":"内容","i18n.notice.ip":"IP","i18n.notice.ipLocation":"IP地址","i18n.notice.parse.file.success":"解析文件成功","i18n.notice.parse.file.error":"解析文件失败","i18n.DEPT.ALL":"全部","i18n.DEPT.ADMIN":"管理员","i18n.DEPT.HR":"人事部","i18n.DEPT.ORG":"行政部","i18n.DEPT.IT":"技术部","i18n.DEPT.MONEY":"财务部","i18n.DEPT.MARKETING":"市场部","i18n.DEPT.SALES":"销售部","i18n.DEPT.CS":"客服部","i18n.new.message":"新消息","i18n.file.assistant":"文件助手","i18n.clipboard.assistant":"剪切板助手","i18n.thread.content.image":"图片","i18n.thread.content.file":"文件","i18n.top.tip":"默认置顶语","i18n.top.make":"置顶","i18n.top.cancel":"取消置顶","i18n.unread.make":"设置未读","i18n.unread.cancel":"取消未读","i18n.star.make":"星标","i18n.star.cancel":"取消星标","i18n.disturb.make":"免打扰","i18n.disturb.cancel":"取消免打扰","i18n.transfer":"转接","i18n.hide":"隐藏","i18n.network.disconnected":"网络已断开","i18n.message.pulling":"消息拉取中...","i18n.leavemsg.tip":"无客服在线,请留言","i18n.welcome.tip":"您好,有什么可以帮您的?","i18n.reenter.tip":"继续会话","i18n.under.development":"开发中...","i18n.user.description":"默认用户描述","i18n.robot.nickname":"默认机器人","i18n.robot.description":"默认机器人描述","i18n.robot.noreply":"未找到相应答案","i18n.robot.agent.assistant.nickname":"默认机器人助手","i18n.llm.prompt":"你是一个聪明、对人类有帮助的人工智能,你可以对人类提出的问题给出有用、详细、礼貌的回答","i18n.agent.nickname":"默认客服","i18n.agent.description":"默认客服描述","i18n.workgroup.nickname":"默认技能组","i18n.workgroup.description":"默认技能组描述","i18n.contact":"询问联系方式","i18n.thanks":"感谢","i18n.welcome":"问候","i18n.bye":"告别","i18n.tip.title":"提示","i18n.tip.network.disconnected":"网络已断开","i18n.tip.network.connected":"网络已连接","i18n.kb.name":"默认知识库","i18n.kb.platform.name":"平台知识库","i18n.kb.helpcenter.name":"帮助文档知识库","i18n.kb.llm.name":"大模型知识库","i18n.kb.keyword.name":"关键词知识库","i18n.kb.faq.name":"常见问题知识库","i18n.kb.autoreply.name":"自动回复知识库","i18n.kb.quickreply.name":"快捷回复知识库","i18n.kb.taboo.name":"敏感词知识库","i18n.kb.description":"知识库默认描述","i18n.agent.nicknameKb":"默认客服知识库","i18n.contact.title":"方便的话请您提供一下您的联系电话","i18n.contact.content":"方便的话请您提供一下您的联系电话,我电话给您沟通一下,这样更加直观","i18n.thanks.title":"感谢光临","i18n.thanks.content":"感谢光临,欢迎再来","i18n.welcome.title":"您好","i18n.welcome.content":"您好,有什么可以帮您的","i18n.bye.title":"您的满意一直是我们的目标","i18n.bye.content":"您的满意一直是我们的目标,如果有任何疑问欢迎您随时联系","i18n.vip.api":"VIP接口,暂无权限,请联系:weiyuai.cn","i18n.faq.category.demo.1":"常见问题分类Demo1","i18n.faq.category.demo.2":"常见问题分类Demo2","i18n.faq.demo.title.1":"常见问题文字Demo1","i18n.faq.demo.content.1":"常见问题文字Demo1","i18n.faq.demo.title.2":"常见问题图片Demo2","i18n.faq.demo.content.2":"https://www.weiyuai.cn/logo.png","i18n.quick.button.demo.title.1":"快捷按钮文字Demo1","i18n.quick.button.demo.content.1":"快捷按钮文字Demo1","i18n.quick.button.demo.title.2":"快捷按钮链接Demo2","i18n.quick.button.demo.content.2":"https://www.weiyuai.cn","i18n.preview.title":"预览","i18n.cancel":"取消","i18n.confirm":"确定","i18n.send":"发送","i18n.transferToAgent":"转人工服务","i18n.auto.closed":"会话自动关闭","i18n.agent.closed":"客服关闭会话","i18n.online.chat":"在线客服","i18n.JOB":"工作","i18n.LANGUAGE":"语言","i18n.TOOL":"工具","i18n.WRITING":"写作","i18n.RAG":"知识库问答","i18n.module.ai":"AI","i18n.module.void":"空白","i18n.module.service":"客服","i18n.module.ticket":"工单","i18n.black.user.already.exists":"用户已拉黑","i18n.ticket.category.technical_support":"技术支持","i18n.ticket.category.service_request":"服务请求","i18n.ticket.category.consultation":"咨询","i18n.ticket.category.complaint_suggestion":"投诉建议","i18n.ticket.category.operation_maintenance":"运维","i18n.ticket.category.other":"其他","i18n.vip.component":"VIP组件, 联系我们了解更多详情","i18n.vip.contactUs":"联系我们","i18n.vip.contactUrl":"https://www.weiyuai.cn/contact.html"},Tdn={"message.type.text":"文本消息","message.type.image":"图片消息","message.type.file":"文件消息","message.type.voice":"语音消息","message.type.video":"视频消息","message.type.location":"位置消息","message.type.link":"链接消息","message.type.card":"卡片消息","message.type.system":"系统消息","message.type.notification":"通知消息","message.type.custom":"自定义消息","message.status.sending":"发送中","message.status.sent":"已发送","message.status.delivered":"已送达","message.status.read":"已读","message.status.failed":"发送失败","message.status.recalled":"已撤回","message.status.deleted":"已删除","message.action.send":"发送","message.action.recall":"撤回","message.action.delete":"删除","message.action.resend":"重新发送","message.action.forward":"转发","message.action.quote":"引用","message.action.copy":"复制","message.action.translate":"翻译","message.action.download":"下载","message.action.preview":"预览","message.tip.sending":"消息发送中...","message.tip.sent":"消息已发送","message.tip.delivered":"消息已送达","message.tip.read":"消息已读","message.tip.failed":"消息发送失败","message.tip.recalled":"消息已撤回","message.tip.deleted":"消息已删除","message.tip.copy.success":"复制成功","message.tip.download.start":"开始下载...","message.tip.download.success":"下载成功","message.tip.download.failed":"下载失败","message.input.placeholder":"请输入消息","message.input.send.button":"发送","message.input.emoji.button":"表情","message.input.image.button":"图片","message.input.file.button":"文件","message.input.voice.button":"语音","message.input.video.button":"视频","message.input.location.button":"位置","message.list.load.more":"加载更多","message.list.loading":"加载中...","message.list.no.more":"没有更多消息","message.list.empty":"暂无消息","message.list.search.placeholder":"搜索消息","message.list.search.no.result":"未找到相关消息","message.time.just":"刚刚","message.time.minutes":"{count}分钟前","message.time.hours":"{count}小时前","message.time.days":"{count}天前","message.time.weeks":"{count}周前","message.time.months":"{count}个月前","message.time.years":"{count}年前","message.file.size.limit":"文件大小不能超过 {size}","message.file.type.unsupported":"不支持的文件类型","message.file.uploading":"上传中...","message.file.download":"下载文件","message.file.preview":"预览文件","message.image.loading":"图片加载中","message.image.load.error":"图片加载失败","message.image.save":"保存图片","message.image.save.success":"图片保存成功","message.image.save.failed":"图片保存失败","quickreply.search.placeholder":"搜索","quickreply.button.send":"发送","quickreply.button.copy":"复制","quickreply.button.create.category":"创建分类","quickreply.button.create.reply":"创建快捷回复","quickreply.copy.success":"{content} 已复制到剪贴板","category.form.edit.title":"编辑分类","category.form.create.title":"创建分类","category.form.name":"分类名称","category.form.name.required":"请输入分类名称!","category.form.name.placeholder":"输入分类名称","category.create.failed":"创建分类失败","quickreply.drawer.title":"{isEdit, select, true {编辑快捷回复} other {新建快捷回复}}","quickreply.form.category":"分类","quickreply.form.category.required":"请选择分类","quickreply.form.category.placeholder":"选择分类","quickreply.form.type":"类型","quickreply.form.type.required":"请选择类型","quickreply.form.type.placeholder":"选择类型","quickreply.form.title":"标题","quickreply.form.title.required":"请输入标题","quickreply.form.content":"内容","quickreply.type.text":"文本","quickreply.type.image":"图片","quickreply.type.video":"视频","quickreply.type.audio":"音频","quickreply.type.file":"文件","quickreply.upload.text":"点击或拖拽文件上传","quickreply.upload.success":"{filename} 上传成功","quickreply.upload.error":"{filename} 上传失败","quickreply.upload.uploading":"{filename} 上传中","quickreply.form.validate.error":"请检查表单"},kdn={"profile.update.success":"个人信息更新成功","profile.form.avatar":"头像","profile.form.upload":"上传","profile.form.username":"用户名","profile.form.nickname":"昵称","profile.form.description":"描述","profile.button.change.password":"修改密码","profile.button.change.email":"修改邮箱","profile.button.change.mobile":"修改手机号","profile.email.verified":"邮箱已验证","profile.email.unverified":"邮箱未验证","profile.mobile.verified":"手机已验证","profile.mobile.unverified":"手机未验证","profile.email.change.title":"修改邮箱","profile.email.placeholder":"请输入邮箱地址","profile.email.required":"请输入邮箱地址!","profile.email.format.invalid":"邮箱格式不正确","profile.email.length.limit":"邮箱不得超过50字符","profile.email.verification.code.placeholder":"请输入验证码","profile.email.verification.code.countdown":"秒后重新获取","profile.email.verification.code.get":"获取验证码","profile.email.verification.code.required":"请输入验证码!","profile.email.not.changed":"邮箱未更改!","profile.email.change.success":"邮箱修改成功!","profile.email.format.error":"邮箱格式错误","profile.mobile.change.title":"修改手机号","profile.mobile.placeholder":"请输入手机号","profile.mobile.required":"请输入手机号!","profile.mobile.format.invalid":"手机号格式错误!","profile.mobile.verification.code.placeholder":"请输入验证码","profile.mobile.verification.code.countdown":"秒后重新获取","profile.mobile.verification.code.get":"获取验证码","profile.mobile.verification.code.required":"请输入验证码!","profile.mobile.not.changed":"手机号未更改!","profile.mobile.change.success":"手机号修改成功!","profile.mobile.format.error":"手机号格式错误","profile.password.change.title":"修改密码","profile.password.old":"原密码","profile.password.old.empty":"手机号直接登录用户,可以留空","profile.password.new":"新密码","profile.password.confirm":"确认密码","profile.password.length.error":"密码最小长度不能小于6","profile.password.mismatch":"两次输入密码不一致","profile.password.change.success":"密码修改成功!"},Odn={"setting.menu.title":"设置","setting.menu.profile":"个人信息","setting.menu.basic":"基本设置","setting.menu.agent":"客服设置","setting.menu.model":"大模型","setting.menu.certification":"实名认证","setting.menu.qrcode":"二维码","setting.menu.shortcut":"快捷键","setting.menu.click":"菜单点击","setting.save.success":"设置保存成功","setting.save.error":"设置保存失败","setting.load.error":"设置加载失败","setting.header.profile":"个人信息","setting.header.basic":"基本设置","setting.header.agent":"客服设置","setting.header.model":"大模型设置","setting.basic.sound.on":"已开启消息提示音","setting.basic.sound.off":"已关闭消息提示音","setting.basic.notification.on":"已开启网络状态通知","setting.basic.notification.off":"已关闭网络状态通知","setting.basic.connection.status":"长链接状态:","setting.basic.connection.connected":"✅连接正常","setting.basic.connection.disconnected":"❌连接断开","setting.basic.startup":"开机启动:","setting.basic.startup.on":"开机启动","setting.basic.startup.off":"不开机启动","setting.basic.theme":"颜色主题:","setting.basic.language":"语言设置:","setting.basic.mode":"模式设置:","setting.basic.mode.team":"团队模式","setting.basic.mode.agent":"客服模式","setting.basic.mode.personal":"个人模式"},Pdn={"thread.error.message":"获取数据失败","thread.feature.unavailable":"TODO: 该功能暂未开放","thread.menu.top":"置顶","thread.menu.untop":"取消置顶","thread.menu.read":"标记已读","thread.menu.unread":"标记未读","thread.menu.mute":"静音","thread.menu.unmute":"取消静音","thread.menu.transfer":"转接","thread.menu.block":"拉黑","thread.menu.ticket":"创建工单","thread.menu.crm":"查看CRM","thread.menu.summary":"会话总结","thread.status.robot":"[机器人]","thread.status.agent":"[一对一]","thread.status.workgroup":"[工作组]","thread.search.placeholder":"搜索会话...","thread.menu.filter":"会话过滤","thread.menu.groupThread":"群聊会话","thread.menu.robotThread":"机器人会话","thread.menu.workgroupThread":"工作组会话","thread.menu.agentThread":"一对一会话","thread.menu.ticketThread":"工单会话","thread.menu.memberThread":"成员会话","thread.menu.deviceThread":"设备会话","thread.menu.systemThread":"系统会话","thread.dropdown.create.group":"创建群聊","thread.dropdown.create.ai":"创建AI对话","thread.agent.status.online":"😀 - 在线接待","thread.agent.status.offline":"🔻 - 客服下线","thread.agent.status.busy":"🏃♀️ - 客服忙碌","thread.refresh.pull":"↓ 下拉刷新","thread.refresh.release":"↑ 松开刷新","thread.list.no.more":"没有更多了","thread.coming.soon":"即将上线,敬请期待","thread.set.success":"设置成功","thread.set.error":"设置失败","thread.menu.star":"星标","thread.menu.star.1":"星标1","thread.menu.star.2":"星标2","thread.menu.star.3":"星标3","thread.menu.star.4":"星标4","thread.menu.hide":"隐藏","thread.status.text":"{status}","thread.status.online":"😀接待","thread.status.offline":"🔻下线","thread.status.busy":"🏃♀️忙碌","thread.status.loading":"加载中...","thread.status.empty":"暂无会话","thread.status.error":"加载会话失败","thread.status.queue":"排队({count})","thread.status.network.offline":"网络已断开","thread.status.network.online":"网络已连接","thread.status.message.pulling":"消息拉取中...","thread.status.message.empty":"暂无消息","thread.status.message.error":"加载消息失败","thread.status.message.end":"没有更多消息","thread.status.message.typing":"正在输入...","thread.status.message.transfer":"转接中...","thread.status.message.transferred":"已转接","thread.status.message.closed":"会话已关闭","thread.menu.star.cancel":"取消星标","thread.loading.more":"加载更多..."},Mdn={"ticket.create.title":"创建工单","ticket.edit.title":"编辑工单","ticket.form.uid":"编号","ticket.form.title":"标题","ticket.form.title.required":"请输入工单标题","ticket.form.title.placeholder":"请输入工单标题","ticket.form.description":"描述","ticket.form.description.required":"请输入工单描述","ticket.form.description.placeholder":"请输入工单描述","ticket.form.status":"状态","ticket.form.status.required":"请选择工单状态","ticket.form.priority":"优先级","ticket.form.priority.required":"请选择优先级","ticket.form.category":"分类","ticket.form.category.required":"请选择工单分类","ticket.form.category.placeholder":"请选择工单分类","ticket.form.user":"客户","ticket.form.user.placeholder":"请选择客户","ticket.form.assignee":"处理人","ticket.form.assignee.placeholder":"请选择处理人","ticket.form.reporter":"报告人","ticket.form.reporter.placeholder":"请选择报告人","ticket.form.workgroup":"技能组","ticket.form.workgroup.required":"请选择技能组","ticket.form.workgroup.placeholder":"请选择技能组","ticket.workgroup.load.error":"加载技能组失败","ticket.status.all":"全部状态","ticket.status.new":"新建","ticket.status.assigned":"已分配","ticket.status.in_progress":"处理中","ticket.status.pending":"待处理","ticket.status.on_hold":"挂起","ticket.status.reopened":"重新打开","ticket.status.resolved":"已解决","ticket.status.closed":"已关闭","ticket.status.cancelled":"已取消","ticket.priority.all":"全部优先级","ticket.priority.lowest":"最低","ticket.priority.low":"低","ticket.priority.medium":"中","ticket.priority.high":"高","ticket.priority.urgent":"紧急","ticket.priority.critical":"严重","ticket.create.success":"工单创建成功","ticket.create.failed":"工单创建失败","ticket.update.success":"工单更新成功","ticket.update.failed":"工单更新失败","ticket.submit.error":"工单提交失败","ticket.delete.success":"工单删除成功","ticket.delete.error":"工单删除失败","ticket.load.error":"工单数据加载失败","ticket.list.title":"工单列表","ticket.list.empty":"暂无工单","ticket.list.search.placeholder":"搜索工单","ticket.list.filter.all":"全部工单","ticket.list.filter.my":"我的工单","ticket.list.filter.unassigned":"未分配","ticket.list.create":"创建工单","ticket.list.total":"工单总数","ticket.action.edit":"编辑","ticket.action.delete":"删除","ticket.action.assign":"分配","ticket.action.close":"关闭","ticket.action.reopen":"重新打开","ticket.delete.confirm":"确定要删除此工单吗?","ticket.category.load.error":"加载工单分类失败","ticket.conversation.title":"工单对话","ticket.conversation.empty":"请选择工单查看对话","ticket.conversation.input.placeholder":"请输入消息...","ticket.details.title":"工单详情","ticket.details.empty":"请选择工单查看详情","ticket.messages.load.error":"加载工单消息失败","ticket.message.send.error":"发送消息失败","ticket.form.thread":"关联会话","ticket.form.thread.placeholder":"选择关联会话","ticket.form.thread.none":"不关联","ticket.form.createdAt":"创建时间","ticket.form.updatedAt":"更新时间","ticket.type.agent":"指定客服","ticket.type.workgroup":"技能组","ticket.assignee":"处理人","ticket.reporter":"报告人","ticket.type":"类型","ticket.category":"分类","ticket.steps.title":"流转过程","ticket.form.upload.button":"上传附件","ticket.upload.success":"文件上传成功","ticket.upload.failed":"文件上传失败","ticket.current.filters":"当前筛选","ticket.filter.by.status":"按状态筛选","ticket.filter.by.priority":"按优先级筛选","ticket.filter.by.assignment":"按分配筛选","ticket.filter.by.time":"按时间筛选","ticket.filter.status_all":"全部状态","ticket.filter.status_new":"新建","ticket.filter.status_assigned":"已分配","ticket.filter.status_in_progress":"处理中","ticket.filter.status_pending":"待处理","ticket.filter.status_on_hold":"挂起","ticket.filter.status_reopened":"重新打开","ticket.filter.status_resolved":"已解决","ticket.filter.status_closed":"已关闭","ticket.filter.status_cancelled":"已取消","ticket.filter.priority_all":"全部优先级","ticket.filter.priority_lowest":"最低","ticket.filter.priority_low":"低","ticket.filter.priority_medium":"中","ticket.filter.priority_high":"高","ticket.filter.priority_urgent":"紧急","ticket.filter.priority_critical":"严重","ticket.filter.assignment_all":"全部","ticket.filter.assignment_my_tickets":"我的工单","ticket.filter.assignment_unassigned":"未分配","ticket.filter.assignment_my_workgroup":"我的技能组","ticket.filter.assignment_my_created":"我创建的","ticket.filter.assignment_my_assigned":"待我处理","ticket.filter.time_all":"全部时间","ticket.filter.time_today":"今天","ticket.filter.time_yesterday":"昨天","ticket.filter.time_this_week":"本周","ticket.filter.time_last_week":"上周","ticket.filter.time_this_month":"本月","ticket.filter.time_last_month":"上月","ticket.content.title":"工单","ticket.content.number":"编号","ticket.delete.title":"删除工单","ticket.delete.content":"确定要删除此工单吗?","ticket.delete.failed":"工单删除失败","ticket.loading":"加载工单...","ticket.empty":"暂无工单"},Idn={"contact.list.new":"新朋友","contact.list.device":"内网设备","contact.list.group":"群聊","contact.list.channel":"频道","contact.list.company":"企业联系人","contact.list.friend":"联系人","contact.search.placeholder":"搜索联系人...","contact.manager.button":"通讯录管理","contact.manager.coming":"敬请期待","member.detail.nickname":"昵称","member.detail.jobno":"工号","member.detail.seatno":"座位号","member.detail.telephone":"电话","member.detail.loading":"加载中...","member.detail.chat.button":"开始聊天"},$dn={"group.create.title":"发起群聊","group.create.contacts":"好友","group.create.members":"群成员","group.create.members.min":"至少选择2名成员","group.create.creating":"创建群组中...","group.create.org.empty":"未选择组织","group.create.success":"创建群组成功","group.create.failed":"创建群组失败","group.create.loading":"加载成员中...","group.create.error":"加载成员失败"},Rdn={"robot.create.title":"创建机器人","robot.create.available":"可选机器人","robot.create.selected":"已选机器人","robot.create.success":"创建机器人成功","robot.create.failed":"创建机器人失败","robot.create.loading":"创建机器人中...","robot.create.error":"加载机器人失败","robot.create.empty":"暂无可用机器人","robot.create.min":"请至少选择一个机器人"},Adn={"autoreply.title":"自动回复","autoreply.enable.label":"是否启用自动回复","autoreply.type.label":"自动回复类型","autoreply.type.fixed":"固定回复","autoreply.type.keyword":"关键字匹配","autoreply.type.llm":"大模型回复","autoreply.fixed.add":"添加固定回复内容","autoreply.fixed.select":"选择固定回复内容","autoreply.fixed.type":"固定回复类型","autoreply.fixed.content":"固定回复内容","autoreply.content.text":"文本","autoreply.content.image":"图片","autoreply.content.video":"视频","autoreply.content.audio":"音频","autoreply.content.file":"文件","autoreply.save.loading":"正在保存,请稍后...","autoreply.save.success":"保存成功","autoreply.save.error":"保存失败","autoreply.keyword.add":"添加关键词知识库","autoreply.keyword.select":"选择关键词知识库","autoreply.llm.add":"添加大模型知识库","autoreply.llm.select":"选择大模型知识库"},Ndn={"upload.modal.title":"上传文件","upload.drag.text":"点击或拖拽文件至此处上传","upload.drag.hint":"支持单个或批量上传","upload.uploading":"{filename} 上传中...","upload.success":"{filename} 上传成功","upload.failed":"{filename} 上传失败","upload.delete.confirm":"确定要删除此文件吗?","upload.preview.image":"图片预览","upload.preview.file":"文件预览","upload.button.ok":"确定","upload.button.cancel":"取消"},Ddn={...bdn,...Sdn,...Cdn,...xdn,...wdn,..._dn,...Edn,...vdn,...Tdn,...ydn,...kdn,...Odn,...Pdn,...Mdn,...gdn,...Idn,...$dn,...Rdn,...Adn,...Ndn},Ldn={i18_file_assistant:"檔案助手",slogan:"对话即服务","menu.dashboard.chat":"消息","menu.dashboard.contact":"通讯录","menu.dashboard.queue":"排队","menu.dashboard.ticket":"工单","menu.dashboard.leavemsg":"留言","menu.dashboard.visitor":"访客","menu.dashboard.monitor":"监控","menu.dashboard.plugins":"插件","menu.dashboard.mine":"我的","chat.toolbar.emoji":"表情","chat.toolbar.image":"图片","chat.toolbar.file":"文件","chat.toolbar.audio":"录音","chat.toolbar.webrtc":"视频","chat.toolbar.history":"历史消息","chat.toolbar.block":"拉黑","chat.toolbar.screenshot":"截图","chat.toolbar.invite.rate":"邀请评价","chat.toolbar.autoreply":"自动回复","chat.toolbar.autoreply.on":"自动回复(已开启)","chat.navbar.transfer":"转接","chat.navbar.ticket":"工单","chat.navbar.crm":"Crm","chat.navbar.close":"结束","chat.navbar.category":"分类","chat.navbar.ai":"AI","chat.navbar.queue":"排队","chat.right.ai":"Copilot","chat.right.quickreply":"快捷回复","chat.right.ticket":"工单","chat.right.userinfo":"用户信息","chat.right.llm":"大模型","chat.right.docview":"文档预览","chat.right.group":"群详情","chat.right.member":"联系人","chat.ai.summary":"会话小结","chat.ai.switch":"切换AI","chat.thread.nomore":"没有更多了","chat.message.loadmore":"加载更多","dashboard.footbar.logout":"退出",SERVICE:"客服機器人",MARKETING:"營銷機器人",KNOWLEDGEBASE:"知識庫機器人(内部)",QA:"問答機器人(直接调用大模型)",AGENT_ASSISTANT:"客服助手(内部)",loading:"載入中",create:"新增",creating:"新增中...","create.success":"新增成功","create.fail":"新增失敗",update:"更新",updating:"更新中...","update.success":"更新成功","update.fail":"更新失敗",save:"儲存",saving:"正在儲存...",email:"電子郵件","email.verified":"電子郵件(已驗證)","email.unverified":"電子郵件(待驗證)",mobile:"手機號碼","mobile.verified":"手機號碼(已驗證)","mobile.unverified":"手機號碼(待驗證)",captcha:"验证码",logging:"登录中...","login.success":"登录成功","login.error":"登录失败,请稍后重试",registering:"注册中...","register.success":"注册成功","register.error":"注册失败","username.change.tip":"登入用戶名(修改用戶名之後,需要重新登入)",createKb:"创建知识库",createDept:"创建部门",upload:"上传",import:"匯入",export:"匯出","download.template":"下载模板",open:"開啟",copy:"複製","copy.success":"複製成功",ok:"確定",cancel:"取消",bind:"綁定",edit:"編輯",editing:"編輯中...","edit.success":"編輯成功","edit.fail":"編輯失敗",delete:"刪除",deleting:"删除中...",deleteTip:"刪除提示",deleteAffirm:"確定要刪除","delete.success":"刪除成功","delete.fail":"删除失败","process.success":"处理成功","process.fail":"处理失败",preview:"預覽",close:"關閉",closing:"關閉中...",closeTip:"關閉提示",closeASure:"確定要關閉","close.success":"關閉成功",choose:"選擇","leavemsg.enabled":"留言啟用",transfer:"转接","transfer.success":"转接成功","transfer.fail":"转接失败","transfer.reason":"转接原因",refresh:"刷新",noAgent:"无客服在线"},Fdn={"menu.anonymous.title":"匿名模式","menu.anonymous.home":"訊息","menu.anonymous.contact":"聯絡人","menu.anonymous.robot":"機器人","menu.anonymous.setting":"設定","menu.anonymous.status":"匿名狀態","menu.anonymous.status.tip":"匿名模式僅支援同一區域網內的在線設備之間的通訊","menu.anonymous.login.tip":"登入以訪問離線訊息和更多功能","menu.anonymous.login":"登入","menu.anonymous.current.users":"當前用戶","menu.dashboard.chat":"聊天","menu.dashboard.contact":"聯絡人","menu.dashboard.ai":"AI助手","menu.dashboard.note":"筆記","menu.dashboard.kbase":"知識庫","menu.dashboard.mine":"設定","menu.dashboard.queue":"排隊","menu.dashboard.ticket":"工單","menu.dashboard.leavemsg":"留言","menu.dashboard.visitor":"訪客","menu.dashboard.monitor":"監控","menu.dashboard.plugins":"插件","menu.settings":"設定","menu.settings.logout":"登出","menu.agent.status":"客服狀態","menu.agent.status.available":"可用","menu.agent.status.rest":"休息","menu.agent.status.offline":"離線","menu.language":"語言","menu.mode":"模式","menu.mode.team":"團隊模式","menu.mode.agent":"一對一模式","menu.mode.personal":"個人模式","menu.agent.offline.warning":"請在離線前結束所有正在進行中的會話","menu.mode.personal.coming":"即將推出...","menu.dashboard.notebase":"知識庫"},jdn={"pages.login.title":"登錄","pages.login.subtitle":"歡迎使用微語客服系統","pages.layouts.userLayout.title":"對話即服務","pages.login.accountLogin.tab":"帳戶密碼登錄","pages.login.accountLogin.errorMessage":"錯誤的用戶名和密碼","pages.login.failure":"登錄失敗,請檢查用戶名密碼!","pages.login.failureCode":"驗證碼錯誤","pages.login.success":"登錄成功!","pages.login.username.placeholder":"請輸入用戶名","pages.login.username.required":"用戶名是必填項!","pages.login.password.placeholder":"請輸入密碼","pages.login.repassword.placeholder":"確認密碼","pages.login.password.required":"密碼是必填項!","pages.login.repassword.required":"確認密碼是必填項!","pages.login.phoneLogin.tab":"手機號登錄","pages.login.phoneLogin.errorMessage":"驗證碼錯誤","pages.login.phoneNumber.placeholder":"請輸入手機號!","pages.login.phoneNumber.required":"手機號是必填項!","pages.login.phoneNumber.invalid":"不合法的手機號!","pages.login.captcha.placeholder":"請輸入驗證碼!","pages.login.captcha.required":"驗證碼是必填項!","pages.login.phoneLogin.getVerificationCode":"獲取驗證碼","pages.login.anonymousLogin":"匿名登錄","pages.getCaptchaSecondText":"秒後重新獲取","pages.login.scanLogin.tab":"掃碼登錄","pages.login.rememberMe":"自動登錄","pages.login.forgot":"忘記密碼","pages.login.submit":"登錄","pages.login.loginWith":"其他登錄方式 :","pages.login.register":"註冊賬號","pages.login.registerAccount":" 註冊帳戶","pages.login.auto.register":"未註冊手機號會自動註冊","pages.welcome.link":"歡迎使用","pages.welcome.title":"歡迎","pages.welcome.description":"微語客服系統是一個開源的客服系統","pages.welcome.getting-started":"開始使用","pages.welcome.view-docs":"查看文檔","pages.robot.new":"新建","pages.robot.chat":"聊天","pages.robot.edit":"编辑","pages.robot.delete":"刪除","pages.robot.upload":"上傳","pages.robot.tab.basic":"基本信息","pages.robot.tab.kb":"知識庫","pages.robot.tab.channel":"渠道對接","pages.robot.tab.statistic":"數據統計","pages.robot.tab.advanced":"高級設置","pages.robot.tab.flow":"流程設計","pages.robot.tab.avatar":"頭像","pages.robot.tab.title":"標題","pages.robot.tab.welcomeTip":"歡迎語","pages.robot.tab.description":"簡介","pages.robot.tab.preview":"實時預覽","pages.robot.tab.website":"官網","pages.robot.tab.helpdesk":"幫助文檔","pages.robot.tab.icp":"京ICP備案 17041763號-1","pages.robot.tab.police":"粵公安備案 44030502008688號","pages.robot.kb.file":"文件","pages.robot.kb.text":"文本","pages.robot.kb.qa":"問答","pages.robot.kb.web":"網站","pages.robot.file.title":"文件名","pages.robot.file.type":"文件類型","pages.robot.file.size":"文件大小","pages.robot.file.action":"操作","pages.robot.file.delete":"刪除","pages.robot.file.save":"保存","pages.robot.file.cancel":"取消","pages.robot.file.uploading":"上傳中...","pages.robot.file.name_invalid":"文件名不能包含 _ ","pages.robot.file.parse":"解析文件內容","pages.setting":"設置","pages.logout":"退出登錄","pages.footer.website":"微語官網","pages.footer.helpcenter":"帮助文档","pages.login.remember":"記住密碼","pages.agent.tab.basic":"基本信息","pages.agent.robot":"機器人","pages.agent.service.settings":"服务设置","pages.agent.service.settings.topTip":"顶部提示","pages.agent.service.settings.welcomeTip":"欢迎语","pages.agent.service.settings.leavemsgTip":"离线留言提示","pages.agent.service.settings.autoCloseMin":"自动关闭分钟","pages.agent.service.settings.showLogo":"显示Logo","pages.agent.service.settings.maxThreadCount":"最大线程数","pages.advanced.faq":"常見問題","pages.advanced.quickButton":"快捷按鈕","pages.advanced.faqGuess":"智能推薦","pages.advanced.faqHot":"熱門問題","pages.advanced.faqShortcut":"快捷回覆","pages.advanced.rate":"滿意度評價","pages.advanced.autoreply":"自動回覆","pages.advanced.leaveMsg":"留言設置","pages.advanced.survey":"調查問卷","pages.advanced.history":"歷史記錄","pages.advanced.inputAssociation":"輸入聯想","pages.advanced.antiHarassment":"驗證碼設置","pages.advanced.captcha":"驗證碼設置","pages.advanced.showPreForm":"顯示預覽","pages.advanced.showHistory":"顯示歷史","pages.advanced.showInputAssociation":"顯示輸入聯想","pages.advanced.showCaptcha":"顯示驗證碼","pages.login.country.placeholder":"選擇國家/地區","pages.login.country.china":"中國大陸","pages.login.country.hongkong":"中國香港","pages.login.country.taiwan":"中國台灣","pages.login.country.macao":"中國澳門","pages.login.country.japan":"日本","pages.login.country.korea":"韓國","pages.login.country.usa":"美國","pages.login.country.canada":"加拿大","pages.login.country.uk":"英國","pages.login.country.germany":"德國","pages.login.country.france":"法國","pages.login.country.australia":"澳大利亞","pages.login.country.singapore":"新加坡","pages.login.country.malaysia":"馬來西亞","pages.login.country.thailand":"泰國","pages.login.country.vietnam":"越南","pages.login.country.philippines":"菲律賓","pages.login.country.indonesia":"印度尼西亞","pages.login.country.italy":"意大利","pages.login.country.spain":"西班牙","pages.login.country.russia":"俄羅斯","pages.login.country.newzealand":"新西蘭","block.title":"拉黑設置","block.type":"拉黑類型","block.user":"拉黑用戶","block.ip":"拉黑IP","block.permanent":"永久封禁","block.until":"封禁至","block.until.required":"請選擇封禁結束時間","pages.register.title":"註冊","pages.register.subtitle":"創建您的賬號","pages.register.username":"用戶名","pages.register.password":"密碼","pages.register.confirm":"確認密碼","pages.register.email":"郵箱","pages.register.mobile":"手機號","pages.register.code":"驗證碼","pages.register.agreement":"我已閱讀並同意","pages.register.agreement.terms":"服務條款","pages.register.submit":"註冊","pages.register.login":"使用已有賬號登錄","pages.404.title":"404","pages.404.subtitle":"抱歉,您訪問的頁面不存在","pages.404.description":"您可以嘗試以下操作:","pages.404.actions.back":"返回上一頁","pages.404.actions.home":"返回首頁","pages.403.title":"403","pages.403.subtitle":"抱歉,您沒有訪問該頁面的權限","pages.403.description":"請聯繫管理員獲取權限","pages.403.actions.back":"返回上一頁","pages.500.title":"500","pages.500.subtitle":"抱歉,服務器出錯了","pages.500.description":"請稍後再試或聯繫技術支持","pages.500.actions.back":"返回上一頁","pages.500.actions.home":"返回首頁"},Bdn={"app.title":"微語","app.logout":"登出","app.copyright.produced":"微語出品","app.preview.down.block":"下載此頁面到本地項目","app.welcome.link.fetch-blocks":"獲取全部區塊","app.welcome.link.block-list":"基於 block 開發,快速構建標準頁面","navBar.lang":"語言","layout.user.link.help":"幫助","layout.user.link.privacy":"隱私","layout.user.link.terms":"條款","theme.light":"淺色","theme.dark":"深色","theme.system":"自動","setting.lang":"Languages","setting.theme":"主題","app.name":"微語客服","app.description":"新一代智能客服系統","app.welcome":"歡迎使用微語客服系統","app.copyright":"© 2024 微語客服. 保留所有權利.","app.version":"版本","app.action.back":"返回","app.action.confirm":"確認","app.action.cancel":"取消","app.action.save":"保存","app.action.edit":"編輯","app.action.delete":"刪除","app.action.refresh":"刷新","app.action.search":"搜索","app.action.more":"更多","app.action.settings":"設置","app.action.help":"幫助","app.tip.loading":"加載中...","app.tip.success":"操作成功","app.tip.error":"操作失敗","app.tip.warning":"警告","app.tip.info":"提示","app.tip.confirm":"確認要執行此操作嗎?","app.tip.nodata":"暫無數據","app.tip.network.error":"網絡連接失敗","app.tip.server.error":"服務器錯誤","app.status.online":"在線","app.status.offline":"離線","app.status.busy":"忙碌","app.status.away":"離開","app.status.invisible":"隱身","app.status.disabled":"已禁用","app.status.expired":"已過期","app.time.today":"今天","app.time.yesterday":"昨天","app.time.tomorrow":"明天","app.time.just":"剛剛","app.time.minutes":"{count} 分鐘前","app.time.hours":"{count} 小時前","app.time.days":"{count} 天前","app.file.upload":"上傳文件","app.file.download":"下載文件","app.file.preview":"預覽文件","app.file.size.limit":"文件大小不能超過 {size}","app.file.type.unsupported":"不支持的文件類型","app.file.upload.success":"上傳成功","app.file.upload.failed":"上傳失敗","app.file.download.success":"下載成功","app.file.download.failed":"下載失敗","app.layout.sidebar.collapse":"收起側邊欄","app.layout.sidebar.expand":"展開側邊欄","app.layout.header.profile":"個人中心","app.layout.header.logout":"退出登錄","app.layout.footer.copyright":"版權所有","app.layout.footer.terms":"服務條款","app.layout.footer.privacy":"隱私政策"},Hdn={"auth.login.title":"登錄","auth.login.subtitle":"歡迎使用微語客服系統","auth.login.username":"用戶名","auth.login.username.required":"請輸入用戶名","auth.login.password":"密碼","auth.login.password.required":"請輸入密碼","auth.login.remember":"記住密碼","auth.login.forgot":"忘記密碼?","auth.login.submit":"登錄","auth.login.other":"其他登錄方式","auth.login.register":"註冊賬號","auth.login.success":"登錄成功","auth.login.failed":"登錄失敗","auth.register.title":"註冊","auth.register.subtitle":"創建新賬號","auth.register.username":"用戶名","auth.register.username.required":"請輸入用戶名","auth.register.email":"郵箱","auth.register.email.required":"請輸入郵箱","auth.register.password":"密碼","auth.register.password.required":"請輸入密碼","auth.register.confirm":"確認密碼","auth.register.confirm.required":"請確認密碼","auth.register.submit":"註冊","auth.register.login":"已有賬號?登錄","auth.register.success":"註冊成功","auth.register.failed":"註冊失敗","auth.forgot.title":"忘記密碼","auth.forgot.subtitle":"重置密碼","auth.forgot.email":"郵箱","auth.forgot.email.required":"請輸入郵箱","auth.forgot.submit":"提交","auth.forgot.back":"返回登錄","auth.forgot.success":"重置密碼郵件已發送","auth.forgot.failed":"重置密碼失敗","auth.reset.title":"重置密碼","auth.reset.subtitle":"設置新密碼","auth.reset.password":"新密碼","auth.reset.password.required":"請輸入新密碼","auth.reset.confirm":"確認密碼","auth.reset.confirm.required":"請確認新密碼","auth.reset.submit":"提交","auth.reset.success":"密碼重置成功","auth.reset.failed":"密碼重置失敗","auth.verify.code":"驗證碼","auth.verify.code.required":"請輸入驗證碼","auth.verify.code.send":"發送驗證碼","auth.verify.code.resend":"重新發送","auth.verify.code.success":"驗證碼發送成功","auth.verify.code.failed":"驗證碼發送失敗","auth.password.strength.weak":"密碼強度:弱","auth.password.strength.medium":"密碼強度:中","auth.password.strength.strong":"密碼強度:強","auth.agreement.text":"我已閱讀並同意","auth.agreement.terms":"服務條款","auth.agreement.privacy":"隱私政策","server.button.back":"返回","server.button.save":"保存","server.button.reset":"重置","server.button.help":"幫助","server.save.success":"保存成功","server.reset.success":"重置成功,已恢復默認雲服務器","server.custom.enable":"啟用自定義服務器","server.api.url.label":"API服務器地址 (例如: http://127.0.0.1:9003 或 https://api.bytedesk.com)","server.api.url.placeholder":"http://127.0.0.1:9003","server.websocket.url.label":"WebSocket服務器地址 (例如: ws://127.0.0.1:9885/websocket 或 wss://api.bytedesk.com/websocket)","server.websocket.url.placeholder":"ws://127.0.0.1:9885/websocket","server.input.error":"請輸入正確的服務器地址"},zdn={"chat.title":"會話","chat.empty":"暫無會話","chat.loading":"加載中...","chat.load.error":"加載失敗","chat.load.more":"加載更多","chat.no.more":"沒有更多了","chat.refresh":"刷新","chat.status.connecting":"連接中...","chat.status.connected":"已連接","chat.status.disconnected":"連接斷開","chat.status.reconnecting":"重新連接中...","chat.network.error":"網絡連接失敗,請檢查網絡","chat.thread.closing":"結束會話中...","chat.thread.close.success":"結束會話成功","chat.thread.close.failed":"結束會話失敗","chat.thread.close.confirm.title":"確定要結束會話?","chat.rate.invite.confirm.title":"確認要邀請評價?","chat.message.send.failed":"發送失敗","chat.message.resend":"重新發送","chat.message.recall":"撤回消息","chat.message.copy.success":"複製成功","chat.copy.success":"複製成功","chat.menu.copy":"複製","chat.menu.translate":"翻譯","chat.menu.recall":"撤回","chat.menu.enlarge":"放大閱讀","chat.menu.quickreply.add":"添加快捷回復...","chat.menu.browser.open":"瀏覽器打開","chat.menu.forward":"轉發...","chat.menu.collect":"收藏","chat.menu.quote":"引用","chat.input.placeholder":"請輸入內容, Ctrl+V 粘貼截圖/圖片","chat.translation.placeholder":"請輸入翻譯內容...","chat.input.send":"發送","chat.input.sending":"發送中...","chat.toolbar.emoji":"表情","chat.toolbar.image":"圖片","chat.toolbar.file":"文件","chat.toolbar.screenshot":"截圖","chat.toolbar.autoreply":"自動回復","chat.toolbar.audio":"錄音","chat.toolbar.webrtc":"視頻會話","chat.upload.size.limit":"文件大小不能超過 {size}","chat.upload.type.unsupported":"不支持的文件類型","chat.upload.failed":"上傳失敗","chat.upload.success":"上傳成功","chat.upload.progress":"上傳中 {progress}%","chat.webrtc.calling":"呼叫中...","chat.webrtc.incoming":"來電...","chat.webrtc.connected":"通話中...","chat.webrtc.ended":"通話結束","chat.webrtc.rejected":"對方拒絕","chat.webrtc.busy":"對方忙","chat.webrtc.failed":"通話失敗","chat.webrtc.accept":"接受","chat.webrtc.reject":"拒絕","chat.webrtc.hangup":"掛斷","chat.navbar.transfer":"轉接","chat.navbar.close":"結束","chat.navbar.note":"筆記","chat.navbar.kbase":"知識庫","chat.right.quickreply":"快捷回覆","chat.right.userinfo":"訪客信息","chat.right.ai":"AI助手","chat.right.ticket":"工單","chat.right.llm":"大模型","chat.right.docview":"文檔查看","chat.right.group":"群組信息","chat.right.member":"成員信息","chat.group.notice":"群公告","chat.group.members":"群成員","chat.group.admins":"管理員","chat.group.robots":"機器人","chat.group.qrcode":"二維碼","chat.group.uid.error":"群組ID錯誤"},Udn={"common.confirm":"確認","common.cancel":"取消","common.submit":"提交","common.reset":"重置","common.save":"保存","common.delete":"刪除","common.edit":"編輯","common.add":"添加","common.search":"搜索","common.back":"返回","common.next":"下一步","common.previous":"上一步","common.more":"更多","common.loading":"加載中...","common.success":"操作成功","common.failed":"操作失敗","common.error":"錯誤","common.warning":"警告","common.info":"提示","common.status.online":"在線","common.status.offline":"離線","common.status.busy":"忙碌","common.status.away":"離開","common.status.invisible":"隱身","common.operation.success":"操作成功","common.operation.failed":"操作失敗","common.operation.confirm":"確認要執行此操作嗎?","common.operation.processing":"處理中...","common.operation.completed":"處理完成","common.operation.error":"處理出錯","common.form.required":"此項為必填項","common.form.optional":"選填","common.form.invalid":"輸入無效","common.form.validate.error":"表單驗證失敗","common.form.validate.success":"表單驗證通過"},Wdn={"customer.list.title":"客戶列表","customer.list.empty":"暫無客戶","customer.list.loading":"加載中...","customer.list.load.error":"加載失敗","customer.list.load.more":"加載更多","customer.list.no.more":"沒有更多了","customer.list.refresh":"刷新","customer.info.basic":"基本信息","customer.info.name":"姓名","customer.info.nickname":"暱稱","customer.info.gender":"性別","customer.info.age":"年齡","customer.info.birthday":"生日","customer.info.mobile":"手機號","customer.info.email":"郵箱","customer.info.address":"地址","customer.info.company":"公司","customer.info.position":"職位","customer.info.remark":"備註","customer.info.tags":"標籤","customer.info.source":"來源","customer.info.created":"創建時間","customer.info.updated":"更新時間","customer.status.online":"在線","customer.status.offline":"離線","customer.status.away":"離開","customer.status.busy":"忙碌","customer.status.blocked":"已拉黑","customer.action.edit":"編輯","customer.action.delete":"刪除","customer.action.block":"拉黑","customer.action.unblock":"取消拉黑","customer.action.transfer":"轉移","customer.action.merge":"合併","customer.action.export":"導出","customer.form.name":"姓名","customer.form.name.required":"請輸入姓名","customer.form.nickname":"暱稱","customer.form.gender":"性別","customer.form.age":"年齡","customer.form.birthday":"生日","customer.form.mobile":"手機號","customer.form.email":"郵箱","customer.form.address":"地址","customer.form.company":"公司","customer.form.position":"職位","customer.form.remark":"備註","customer.form.tags":"標籤","customer.form.source":"來源","customer.create.success":"客戶創建成功","customer.create.failed":"客戶創建失敗","customer.update.success":"客戶更新成功","customer.update.failed":"客戶更新失敗","customer.delete.success":"客戶刪除成功","customer.delete.failed":"客戶刪除失敗","customer.block.success":"客戶拉黑成功","customer.block.failed":"客戶拉黑失敗","customer.unblock.success":"取消拉黑成功","customer.unblock.failed":"取消拉黑失敗","customer.transfer.success":"客戶轉移成功","customer.transfer.failed":"客戶轉移失敗","customer.merge.success":"客戶合併成功","customer.merge.failed":"客戶合併失敗","customer.export.success":"客戶導出成功","customer.export.failed":"客戶導出失敗","black.title":"拉黑設置","black.type":"拉黑類型","black.type.required":"請選擇至少一種拉黑類型","black.user":"拉黑用戶","black.ip":"拉黑IP","black.permanent":"永久拉黑","black.until":"拉黑截至","black.until.required":"請選擇拉黑截至時間","black.reason":"拉黑原因","black.reason.required":"請輸入拉黑原因","black.reason.placeholder":"請輸入拉黑原因","black.success":"拉黑成功"},Vdn={"dashboard.menu.overview":"總覽","dashboard.menu.workbench":"工作台","dashboard.menu.monitor":"監控台","dashboard.menu.workplace":"工作區","dashboard.menu.message":"消息中心","dashboard.menu.settings":"系統設置","dashboard.overview.title":"總覽","dashboard.overview.total.conversations":"總會話數","dashboard.overview.total.customers":"總客戶數","dashboard.overview.total.tickets":"總工單數","dashboard.overview.total.agents":"總客服數","dashboard.overview.online.agents":"在線客服","dashboard.overview.waiting.customers":"排隊訪客","dashboard.overview.avg.response.time":"平均響應時間","dashboard.overview.avg.handle.time":"平均處理時間","dashboard.stats.title":"數據統計","dashboard.stats.realtime":"實時數據","dashboard.stats.today":"今日統計","dashboard.stats.yesterday":"昨日統計","dashboard.stats.week":"本週統計","dashboard.stats.month":"本月統計","dashboard.stats.custom":"自定義時段","dashboard.workbench.online":"在線狀態","dashboard.workbench.offline":"離線狀態","dashboard.workbench.busy":"忙碌狀態","dashboard.workbench.away":"離開狀態","dashboard.workbench.auto.distribution":"自動分配","dashboard.workbench.manual.distribution":"手動分配","dashboard.workbench.max.session":"最大會話數","dashboard.workbench.current.session":"當前會話數","dashboard.monitor.system":"系統監控","dashboard.monitor.performance":"性能監控","dashboard.monitor.network":"網絡監控","dashboard.monitor.server":"服務器狀態","dashboard.monitor.database":"數據庫狀態","dashboard.monitor.cache":"緩存狀態","dashboard.monitor.queue":"隊列狀態","dashboard.workplace.quick.start":"快速開始","dashboard.workplace.recent":"最近訪問","dashboard.workplace.todo":"待辦事項","dashboard.workplace.announcement":"系統公告","dashboard.workplace.calendar":"工作日曆","dashboard.workplace.links":"常用鏈接","dashboard.message.all":"全部消息","dashboard.message.unread":"未讀消息","dashboard.message.system":"系統消息","dashboard.message.business":"業務消息","dashboard.message.operation":"運營消息","dashboard.monitor.title":"實時監控","dashboard.monitor.online.status":"在線狀態","dashboard.monitor.conversation.status":"會話狀態","dashboard.monitor.queue.status":"排隊狀態","dashboard.monitor.system.status":"系統狀態","dashboard.monitor.refresh":"刷新","dashboard.monitor.auto.refresh":"自動刷新","dashboard.analysis.title":"數據分析","dashboard.analysis.conversation.trend":"會話趨勢","dashboard.analysis.customer.trend":"客戶趨勢","dashboard.analysis.ticket.trend":"工單趨勢","dashboard.analysis.satisfaction.trend":"滿意度趨勢","dashboard.analysis.time.range":"時間範圍","dashboard.analysis.export":"導出數據","dashboard.workplace.title":"工作台","dashboard.workplace.my.conversations":"我的會話","dashboard.workplace.my.tickets":"我的工單","dashboard.workplace.my.tasks":"我的任務","dashboard.workplace.my.performance":"我的績效","dashboard.workplace.quick.actions":"快捷操作","dashboard.workplace.announcements":"公告通知","dashboard.report.title":"統計報表","dashboard.report.conversation":"會話報表","dashboard.report.customer":"客戶報表","dashboard.report.ticket":"工單報表","dashboard.report.agent":"客服報表","dashboard.report.satisfaction":"滿意度報表","dashboard.report.export":"導出報表","dashboard.chart.today":"今日","dashboard.chart.yesterday":"昨日","dashboard.chart.last7days":"最近7天","dashboard.chart.last30days":"最近30天","dashboard.chart.thisMonth":"本月","dashboard.chart.lastMonth":"上月","dashboard.chart.custom":"自定義","dashboard.chart.loading":"加載中...","dashboard.chart.no.data":"暫無數據","dashboard.tip.refresh.success":"刷新成功","dashboard.tip.refresh.failed":"刷新失敗","dashboard.tip.export.success":"導出成功","dashboard.tip.export.failed":"導出失敗","dashboard.tip.data.loading":"數據加載中...","dashboard.tip.data.load.failed":"數據加載失敗"},Kdn={"i18n.lang.en-US":"English","i18n.lang.zh-CN":"简体中文","i18n.lang.zh-TW":"繁體中文","i18n.queue.tip":"排隊隊列","i18n.queue.message.template":"當前排隊人數:{0},大約等待時間:{1} 分鐘","i18n.queue.empty":"隊列為空","i18n.queue.accept":"接入","i18n.system.notification":"系統通知","i18n.system.notification.tip":"系統通知","i18n.old.password.wrong":"舊密碼錯誤","i18n.change.password":"修改密碼","i18n.auth.captcha.send.success":"驗證碼發送成功","i18n.auth.captcha.error":"驗證碼錯誤","i18n.auth.captcha.expired":"驗證碼過期","i18n.auth.captcha.already.send":"驗證碼已發送,請等待","i18n.auth.captcha.validate.failed":"驗證碼驗證失敗","i18n.faq":"常見問題","i18n.rate":"評價","i18n.input.placeholder":"請輸入內容","i18n.loading":"加载中...","i18n.load.more":"加载更多","i18n.load.nomore":"没有更多了","i18n.typing":"正在輸入...","i18n.robot":"[机器人]","i18n.agent":"[一对一]","i18n.workgroup":"[技能组]","i18n.group":"[群聊]","i18n.rate.invite":"邀請評價","i18n.ticket":"[工單]","i18n.notice":"通知","i18n.notice.title":"通知標題","i18n.notice.content":"通知內容","i18n.notice.ip":"IP","i18n.notice.ipLocation":"IP地址","i18n.notice.parse.file.success":"解析文件成功","i18n.notice.parse.file.error":"解析文件失败","i18n.DEPT.ALL":"全部","i18n.DEPT.ADMIN":"管理員","i18n.DEPT.HR":"人事部","i18n.DEPT.ORG":"行政部","i18n.DEPT.IT":"技術部","i18n.DEPT.MONEY":"財務部","i18n.DEPT.MARKETING":"市場部","i18n.DEPT.SALES":"銷售部","i18n.DEPT.CS":"客服部","i18n.new.message":"新消息","i18n.file.assistant":"文件助手","i18n.clipboard.assistant":"剪切板助手","i18n.thread.content.image":"圖片","i18n.thread.content.file":"文件","i18n.top.tip":"默認置顶語","i18n.top.make":"置頂","i18n.top.cancel":"取消置頂","i18n.unread.make":"设置未读","i18n.unread.cancel":"取消未读","i18n.star.make":"星标","i18n.star.cancel":"取消星标","i18n.disturb.make":"免打扰","i18n.disturb.cancel":"取消免打扰","i18n.transfer":"转接","i18n.hide":"隐藏","i18n.network.disconnected":"网络已断开","i18n.message.pulling":"消息拉取中...","i18n.leavemsg.tip":"無客服在線,請留言","i18n.welcome.tip":"您好,有什麼可以幫您的?","i18n.reenter.tip":"继续会话","i18n.under.development":"開發中...","i18n.user.description":"默認用戶描述","i18n.robot.nickname":"默認機器人","i18n.robot.description":"默認機器人描述","i18n.robot.noreply":"未找到相应答案","i18n.robot.agent.assistant.nickname":"默认机器人助手","i18n.llm.prompt":"你是一個聰明、對人類有幫助的人工智能,你可以對人類提出的問題給出有用、詳細、禮貌的回答","i18n.agent.nickname":"默認客服","i18n.agent.description":"默認客服描述","i18n.workgroup.nickname":"預設技能組","i18n.workgroup.description":"預設技能組描述","i18n.contact":"詢問聯繫方式","i18n.thanks":"感謝","i18n.welcome":"問候","i18n.bye":"告別","i18n.tip.title":"提示","i18n.tip.network.disconnected":"网络已断开","i18n.tip.network.connected":"网络已连接","i18n.kb.name":"默认知识库","i18n.kb.platform.name":"平台知识库","i18n.kb.helpcenter.name":"帮助文档知识库","i18n.kb.llm.name":"大模型知识库","i18n.kb.keyword.name":"关键词知识库","i18n.kb.faq.name":"常见问题知识库","i18n.kb.autoreply.name":"自动回复知识库","i18n.kb.quickreply.name":"快捷回复知识库","i18n.kb.taboo.name":"敏感词知识库","i18n.kb.description":"知识库默认描述","i18n.agent.nicknameKb":"默认客服知识库","i18n.contact.title":"方便的話請您提供一下您的聯繫電話","i18n.contact.content":"方便的話請您提供一下您的聯繫電話,我電話給您溝通一下,這樣更加直觀","i18n.thanks.title":"感謝光臨","i18n.thanks.content":"感謝光臨,歡迎再來","i18n.welcome.title":"您好","i18n.welcome.content":"您好,有什麼可以幫您的","i18n.bye.title":"您的滿意一直是我們的目標","i18n.bye.content":"您的滿意一直是我們的目標,如果有任何疑問歡迎您隨時聯繫","i18n.vip.api":"VIP API","i18n.faq.category.demo.1":"常見問題分類Demo1","i18n.faq.category.demo.2":"常見問題分類Demo2","i18n.faq.demo.title.1":"常見問題文字Demo1","i18n.faq.demo.content.1":"常見問題文字Demo1","i18n.faq.demo.title.2":"常見問題圖片Demo2","i18n.faq.demo.content.2":"https://www.weiyuai.cn/logo.png","i18n.quick.button.demo.title.1":"快捷按鈕文字Demo1","i18n.quick.button.demo.content.1":"快捷按鈕文字Demo1","i18n.quick.button.demo.title.2":"快捷按鈕連結Demo2","i18n.quick.button.demo.content.2":"https://www.weiyuai.cn","i18n.preview.title":"預覽","i18n.cancel":"取消","i18n.confirm":"確定","i18n.send":"發送","i18n.transferToAgent":"轉人工服務","i18n.auto.closed":"會話自動關閉","i18n.agent.closed":"客服關閉會話","i18n.online.chat":"在線客服","i18n.JOB":"工作","i18n.LANGUAGE":"語言","i18n.TOOL":"工具","i18n.WRITING":"寫作","i18n.RAG":"知識庫問答","i18n.module.ai":"AI","i18n.module.void":"空白","i18n.module.service":"客服","i18n.module.ticket":"工單","i18n.black.user.already.exists":"用戶已拉黑","i18n.ticket.category.technical_support":"技術支持","i18n.ticket.category.service_request":"服務請求","i18n.ticket.category.consultation":"咨詢","i18n.ticket.category.complaint_suggestion":"投訴建議","i18n.ticket.category.operation_maintenance":"運維","i18n.ticket.category.other":"其他","i18n.vip.component":"VIP組件, 聯繫我們了解更多詳情","i18n.vip.contactUs":"聯繫我們","i18n.vip.contactUrl":"https://www.weiyuai.cn/contact.html"},qdn={"message.type.text":"文本消息","message.type.image":"圖片消息","message.type.file":"文件消息","message.type.voice":"語音消息","message.type.video":"視頻消息","message.type.location":"位置消息","message.type.link":"鏈接消息","message.type.card":"卡片消息","message.type.system":"系統消息","message.type.notification":"通知消息","message.type.custom":"自定義消息","message.status.sending":"發送中","message.status.sent":"已發送","message.status.delivered":"已送達","message.status.read":"已讀","message.status.failed":"發送失敗","message.status.recalled":"已撤回","message.status.deleted":"已刪除","quickreply.search.placeholder":"搜索","quickreply.button.send":"發送","quickreply.button.copy":"複製","quickreply.button.create.category":"創建分類","quickreply.button.create.reply":"創建快捷回復","quickreply.copy.success":"{content} 已複製到剪貼板","category.form.edit.title":"編輯分類","category.form.create.title":"創建分類","category.form.name":"分類名稱","category.form.name.required":"請輸入分類名稱!","category.form.name.placeholder":"輸入分類名稱","category.create.failed":"創建分類失敗","quickreply.drawer.title":"{isEdit, select, true {編輯快捷回復} other {新建快捷回復}}","quickreply.form.category":"分類","quickreply.form.category.required":"請選擇分類","quickreply.form.category.placeholder":"選擇分類","quickreply.form.type":"類型","quickreply.form.type.required":"請選擇類型","quickreply.form.type.placeholder":"選擇類型","quickreply.form.title":"標題","quickreply.form.title.required":"請輸入標題","quickreply.form.content":"內容","quickreply.type.text":"文本","quickreply.type.image":"圖片","quickreply.type.video":"視頻","quickreply.type.audio":"音頻","quickreply.type.file":"文件","quickreply.upload.text":"點擊或拖拽文件上傳","quickreply.upload.success":"{filename} 上傳成功","quickreply.upload.error":"{filename} 上傳失敗","quickreply.upload.uploading":"{filename} 上傳中","quickreply.form.validate.error":"請檢查表單","message.action.send":"發送","message.action.recall":"撤回","message.action.delete":"刪除","message.action.resend":"重新發送","message.action.forward":"轉發","message.action.quote":"引用","message.action.copy":"複製","message.action.translate":"翻譯","message.action.download":"下載","message.action.preview":"預覽","message.tip.sending":"消息發送中...","message.tip.sent":"消息已發送","message.tip.delivered":"消息已送達","message.tip.read":"消息已讀","message.tip.failed":"消息發送失敗","message.tip.recalled":"消息已撤回","message.tip.deleted":"消息已刪除","message.tip.copy.success":"複製成功","message.tip.download.start":"開始下載...","message.tip.download.success":"下載成功","message.tip.download.failed":"下載失敗","message.input.placeholder":"請輸入消息","message.input.send.button":"發送","message.input.emoji.button":"表情","message.input.image.button":"圖片","message.input.file.button":"文件","message.input.voice.button":"語音","message.input.video.button":"視頻","message.input.location.button":"位置","message.list.load.more":"加載更多","message.list.loading":"加載中...","message.list.no.more":"沒有更多消息","message.list.empty":"暫無消息","message.list.search.placeholder":"搜索消息","message.list.search.no.result":"未找到相關消息","message.time.just":"剛剛","message.time.minutes":"{count}分鐘前","message.time.hours":"{count}小時前","message.time.days":"{count}天前","message.time.weeks":"{count}周前","message.time.months":"{count}個月前","message.time.years":"{count}年前","message.file.size.limit":"文件大小不能超過 {size}","message.file.type.unsupported":"不支持的文件類型","message.file.uploading":"上傳中...","message.file.download":"下載文件","message.file.preview":"預覽文件","message.image.loading":"圖片加載中","message.image.load.error":"圖片加載失敗","message.image.save":"保存圖片","message.image.save.success":"圖片保存成功","message.image.save.failed":"圖片保存失敗"},Gdn={"profile.update.success":"個人信息更新成功","profile.form.avatar":"頭像","profile.form.upload":"上傳","profile.form.username":"用戶名","profile.form.nickname":"暱稱","profile.form.description":"描述","profile.button.change.password":"修改密碼","profile.button.change.email":"修改郵箱","profile.button.change.mobile":"修改手機號","profile.email.verified":"郵箱已驗證","profile.email.unverified":"郵箱未驗證","profile.mobile.verified":"手機已驗證","profile.mobile.unverified":"手機未驗證","profile.email.change.title":"修改郵箱","profile.email.placeholder":"請輸入郵箱地址","profile.email.required":"請輸入郵箱地址!","profile.email.format.invalid":"郵箱格式不正確","profile.email.length.limit":"郵箱不得超過50字符","profile.email.verification.code.placeholder":"請輸入驗證碼","profile.email.verification.code.countdown":"秒後重新獲取","profile.email.verification.code.get":"獲取驗證碼","profile.email.verification.code.required":"請輸入驗證碼!","profile.email.not.changed":"郵箱未更改!","profile.email.change.success":"郵箱修改成功!","profile.email.format.error":"郵箱格式錯誤","profile.mobile.change.title":"修改手機號","profile.mobile.placeholder":"請輸入手機號","profile.mobile.required":"請輸入手機號!","profile.mobile.format.invalid":"手機號格式錯誤!","profile.mobile.verification.code.placeholder":"請輸入驗證碼","profile.mobile.verification.code.countdown":"秒後重新獲取","profile.mobile.verification.code.get":"獲取驗證碼","profile.mobile.verification.code.required":"請輸入驗證碼!","profile.mobile.not.changed":"手機號未更改!","profile.mobile.change.success":"手機號修改成功!","profile.mobile.format.error":"手機號格式錯誤","profile.password.change.title":"修改密碼","profile.password.old":"原密碼","profile.password.old.empty":"手機號直接登錄用戶,可以留空","profile.password.new":"新密碼","profile.password.confirm":"確認密碼","profile.password.length.error":"密碼最小長度不能小於6","profile.password.mismatch":"兩次輸入密碼不一致","profile.password.change.success":"密碼修改成功!"},Ydn={"setting.menu.title":"設置","setting.menu.profile":"個人信息","setting.menu.basic":"基本設置","setting.menu.agent":"客服設置","setting.menu.model":"大模型","setting.menu.certification":"實名認證","setting.menu.qrcode":"二維碼","setting.menu.shortcut":"快捷鍵","setting.menu.click":"菜單點擊","setting.save.success":"設置保存成功","setting.save.error":"設置保存失敗","setting.load.error":"設置加載失敗","setting.header.profile":"個人信息","setting.header.basic":"基本設置","setting.header.agent":"客服設置","setting.header.model":"大模型設置","setting.basic.sound.on":"已開啟消息提示音","setting.basic.sound.off":"已關閉消息提示音","setting.basic.notification.on":"已開啟網絡狀態通知","setting.basic.notification.off":"已關閉網絡狀態通知","setting.basic.connection.status":"長鏈接狀態:","setting.basic.connection.connected":"✅連接正常","setting.basic.connection.disconnected":"❌連接斷開","setting.basic.startup":"開機啟動:","setting.basic.startup.on":"開機啟動","setting.basic.startup.off":"不開機啟動","setting.basic.theme":"顏色主題:","setting.basic.language":"語言設置:","setting.basic.mode":"模式設置:","setting.basic.mode.team":"團隊模式","setting.basic.mode.agent":"客服模式","setting.basic.mode.personal":"個人模式"},Xdn={"thread.error.message":"獲取數據失敗","thread.feature.unavailable":"TODO: 該功能暫未開放","thread.menu.top":"置頂","thread.menu.untop":"取消置頂","thread.menu.read":"標記已讀","thread.menu.unread":"標記未讀","thread.menu.mute":"靜音","thread.menu.unmute":"取消靜音","thread.menu.transfer":"轉接","thread.menu.block":"拉黑","thread.menu.ticket":"創建工單","thread.menu.crm":"查看CRM","thread.menu.summary":"會話總結","thread.menu.filter":"會話過濾","thread.menu.groupThread":"群聊會話","thread.menu.robotThread":"機器人會話","thread.menu.workgroupThread":"工作組會話","thread.menu.agentThread":"一對一會話","thread.menu.ticketThread":"工單會話","thread.menu.memberThread":"成員會話","thread.menu.deviceThread":"設備會話","thread.menu.systemThread":"系統會話","thread.status.robot":"[機器人]","thread.status.agent":"[一對一]","thread.status.workgroup":"[工作組]","thread.search.placeholder":"搜索會話...","thread.dropdown.create.group":"創建群聊","thread.dropdown.create.ai":"創建AI對話","thread.agent.status.online":"😀 - 在線接待","thread.agent.status.offline":"🔻 - 客服下線","thread.agent.status.busy":"🏃♀️ - 客服忙碌","thread.refresh.pull":"↓ 下拉刷新","thread.refresh.release":"↑ 鬆開刷新","thread.list.no.more":"沒有更多了","thread.coming.soon":"即將上線,敬請期待","thread.set.success":"設置成功","thread.set.error":"設置失敗","thread.menu.star":"星標","thread.menu.star.1":"星標1","thread.menu.star.2":"星標2","thread.menu.star.3":"星標3","thread.menu.star.4":"星標4","thread.menu.hide":"隱藏","thread.status.text":"{status}","thread.status.online":"😀接待","thread.status.offline":"🔻下線","thread.status.busy":"🏃♀️忙碌","thread.status.loading":"加載中...","thread.status.empty":"暫無會話","thread.status.error":"加載會話失敗","thread.status.queue":"排隊({count})","thread.status.network.offline":"網絡已斷開","thread.status.network.online":"網絡已連接","thread.status.message.pulling":"消息拉取中...","thread.status.message.empty":"暫無消息","thread.status.message.error":"加載消息失敗","thread.status.message.end":"沒有更多消息","thread.status.message.typing":"正在輸入...","thread.status.message.transfer":"轉接中...","thread.status.message.transferred":"已轉接","thread.status.message.closed":"會話已關閉","thread.menu.star.cancel":"取消星標","thread.loading.more":"加載更多..."},Qdn={"ticket.create.title":"創建工單","ticket.edit.title":"編輯工單","ticket.form.uid":"編號","ticket.form.title":"標題","ticket.form.title.required":"請輸入工單標題","ticket.form.title.placeholder":"請輸入工單標題","ticket.form.description":"描述","ticket.form.description.required":"請輸入工單描述","ticket.form.description.placeholder":"請輸入工單描述","ticket.form.status":"狀態","ticket.form.status.required":"請選擇工單狀態","ticket.form.priority":"優先級","ticket.form.priority.required":"請選擇優先級","ticket.form.category":"分類","ticket.form.category.required":"請選擇工單分類","ticket.form.category.placeholder":"請選擇工單分類","ticket.form.user":"客戶","ticket.form.user.placeholder":"請選擇客戶","ticket.form.assignee":"處理人","ticket.form.assignee.placeholder":"請選擇處理人","ticket.form.reporter":"報告人","ticket.form.reporter.placeholder":"請選擇報告人","ticket.form.workgroup":"技能組","ticket.form.workgroup.required":"請選擇技能組","ticket.form.workgroup.placeholder":"請選擇技能組","ticket.workgroup.load.error":"加載技能組失敗","ticket.status.all":"全部狀態","ticket.status.new":"新建","ticket.status.assigned":"已分配","ticket.status.in_progress":"處理中","ticket.status.pending":"待處理","ticket.status.on_hold":"掛起","ticket.status.reopened":"重新打開","ticket.status.resolved":"已解決","ticket.status.closed":"已關閉","ticket.status.cancelled":"已取消","ticket.priority.all":"全部優先級","ticket.priority.lowest":"最低","ticket.priority.low":"低","ticket.priority.medium":"中","ticket.priority.high":"高","ticket.priority.urgent":"緊急","ticket.priority.critical":"嚴重","ticket.create.success":"工單創建成功","ticket.create.failed":"工單創建失敗","ticket.update.success":"工單更新成功","ticket.update.failed":"工單更新失敗","ticket.submit.error":"工單提交失敗","ticket.delete.success":"工單刪除成功","ticket.delete.error":"工單刪除失敗","ticket.load.error":"工單數據加載失敗","ticket.messages.load.error":"工單消息加載失敗","ticket.message.send.error":"消息發送失敗","ticket.category.load.error":"分類加載失敗","ticket.list.title":"工單列表","ticket.list.empty":"暫無工單","ticket.list.search.placeholder":"搜索工單","ticket.list.create":"創建工單","ticket.list.total":"工單總數","ticket.action.edit":"編輯","ticket.action.delete":"刪除","ticket.action.assign":"分配","ticket.action.close":"關閉","ticket.action.reopen":"重新打開","ticket.delete.confirm":"確定要刪除此工單嗎?","ticket.conversation.title":"工單對話","ticket.conversation.empty":"請選擇工單查看對話","ticket.conversation.input.placeholder":"請輸入消息...","ticket.details.title":"工單詳情","ticket.details.empty":"請選擇工單查看詳情","ticket.category.technical_support":"技術支持","ticket.category.service_request":"服務請求","ticket.category.consultation":"咨詢","ticket.category.complaint_suggestion":"投訴建議","ticket.category.operation_maintenance":"運維","ticket.category.other":"其他","ticket.form.thread":"關聯會話","ticket.form.thread.placeholder":"選擇關聯會話","ticket.form.thread.none":"不關聯","ticket.form.createdAt":"創建時間","ticket.form.updatedAt":"更新時間","ticket.type.agent":"指定客服","ticket.type.workgroup":"技能組","ticket.assignee":"處理人","ticket.reporter":"報告人","ticket.type":"類型","ticket.category":"分類","ticket.steps.title":"轉移過程","ticket.filter.by.status":"按狀態篩選","ticket.filter.by.priority":"按優先級篩選","ticket.filter.by.assignment":"按分配篩選","ticket.filter.by.time":"按時間篩選","ticket.filter.status_all":"全部狀態","ticket.filter.status_new":"新建","ticket.filter.status_assigned":"已分配","ticket.filter.status_in_progress":"處理中","ticket.filter.status_pending":"待處理","ticket.filter.status_on_hold":"掛起","ticket.filter.status_reopened":"重新打開","ticket.filter.status_resolved":"已解決","ticket.filter.status_closed":"已關閉","ticket.filter.status_cancelled":"已取消","ticket.filter.priority_all":"全部優先級","ticket.filter.priority_lowest":"最低","ticket.filter.priority_low":"低","ticket.filter.priority_medium":"中","ticket.filter.priority_high":"高","ticket.filter.priority_urgent":"緊急","ticket.filter.priority_critical":"嚴重","ticket.filter.assignment_all":"全部","ticket.filter.assignment_my_tickets":"我的工單","ticket.filter.assignment_unassigned":"未分配","ticket.filter.assignment_my_workgroup":"我的技能組","ticket.filter.assignment_my_created":"我創建的","ticket.filter.assignment_my_assigned":"待我處理","ticket.filter.time_all":"全部時間","ticket.filter.time_today":"今天","ticket.filter.time_yesterday":"昨天","ticket.filter.time_this_week":"本週","ticket.filter.time_last_week":"上週","ticket.filter.time_this_month":"本月","ticket.filter.time_last_month":"上月","ticket.content.title":"工單","ticket.content.number":"編號","ticket.delete.title":"刪除工單","ticket.delete.content":"確定要刪除此工單嗎?","ticket.delete.failed":"工單刪除失敗","ticket.loading":"加載工單...","ticket.empty":"暫無工單"},Zdn={"contact.list.new":"新朋友","contact.list.device":"內網設備","contact.list.group":"群聊","contact.list.channel":"頻道","contact.list.company":"企業聯繫人","contact.list.friend":"聯繫人","contact.search.placeholder":"搜索聯繫人...","contact.manager.button":"通訊錄管理","contact.manager.coming":"敬請期待","member.detail.nickname":"暱稱","member.detail.jobno":"工號","member.detail.seatno":"座位號","member.detail.telephone":"電話","member.detail.loading":"加載中...","member.detail.chat.button":"開始聊天"},Jdn={"group.create.title":"發起群聊","group.create.contacts":"好友","group.create.members":"群成員","group.create.members.min":"至少選擇2名成員","group.create.creating":"創建群組中...","group.create.org.empty":"未選擇組織","group.create.success":"創建群組成功","group.create.failed":"創建群組失敗","group.create.loading":"加載成員中...","group.create.error":"加載成員失敗"},efn={"robot.list.add":"添加智能體","robot.list.loading":"加載中","robot.list.delete.confirm":"刪除【{name}】?","robot.list.deleting":"刪除中","robot.list.delete.success":"刪除成功","robot.list.update.success":"更新成功","robot.list.create.success":"創建成功","robot.list.chat":"對話","robot.list.edit":"編輯","robot.list.delete":"刪除"},tfn={"autoreply.title":"自动回复","autoreply.enable.label":"是否启用自动回复","autoreply.type.label":"自动回复类型","autoreply.type.fixed":"固定回复","autoreply.type.keyword":"关键字匹配","autoreply.type.llm":"大模型回复","autoreply.fixed.add":"添加固定回复内容","autoreply.fixed.select":"选择固定回复内容","autoreply.fixed.type":"固定回复类型","autoreply.fixed.content":"固定回复内容","autoreply.content.text":"文本","autoreply.content.image":"图片","autoreply.content.video":"视频","autoreply.content.audio":"音频","autoreply.content.file":"文件","autoreply.save.loading":"正在保存,请稍后...","autoreply.save.success":"保存成功","autoreply.save.error":"保存失败","autoreply.keyword.add":"添加关键词知识库","autoreply.keyword.select":"选择关键词知识库","autoreply.llm.add":"添加大模型知识库","autoreply.llm.select":"选择大模型知识库"},nfn={"upload.modal.title":"上傳文件","upload.drag.text":"點擊或拖拽文件至此處上傳","upload.drag.hint":"支持單個或批量上傳","upload.uploading":"{filename} 上傳中...","upload.success":"{filename} 上傳成功","upload.failed":"{filename} 上傳失敗","upload.delete.confirm":"確定要刪除此文件嗎?","upload.preview.image":"圖片預覽","upload.preview.file":"文件預覽","upload.button.ok":"確定","upload.button.cancel":"取消"},rfn={...Bdn,...Hdn,...zdn,...Udn,...Wdn,...Vdn,...Kdn,...Fdn,...qdn,...jdn,...Gdn,...Ydn,...Xdn,...Qdn,...Ldn,...Zdn,...Jdn,...efn,...tfn,...nfn},ifn={"app.title":"Bytedesk","app.logout":"Logout","app.copyright.produced":"Produced by Bytedesk.com","app.preview.down.block":"Download this page to your local project","app.welcome.link.fetch-blocks":"Get all block","app.welcome.link.block-list":"Quickly build standard, pages based on `block` development","footbar.network.normal":"Network Normal","footbar.network.disconnected":"Network Disconnected","footbar.anonymous.tip":"Anonymous mode, only supports communication between online devices in the same LAN","footbar.login.tip":"After login, supports offline messages and more features","footbar.login.skip":"Skip Login","footbar.anonymous.status":"Anonymous","footbar.login":"Login","footbar.logout":"Logout","footbar.logout.title":"Logout","footbar.logout.confirm":"Are you sure to logout?","footbar.serving.count":"Current serving count","footbar.serving.text":"Current serving: 0"},ofn={"common.confirm":"Confirm","common.cancel":"Cancel","navBar.lang":"Languages","layout.user.link.help":"Help","layout.user.link.privacy":"Privacy","layout.user.link.terms":"Terms","theme.light":"Light","theme.dark":"Dark","theme.system":"System"},afn={"chat.copy.success":"Copy successful","chat.network.error":"Network connection failed, please check network","chat.thread.closing":"Ending conversation...","chat.thread.close.success":"Conversation ended successfully","chat.thread.close.confirm.title":"Are you sure to end the conversation?","chat.rate.invite.confirm.title":"Confirm to invite rating?","chat.menu.copy":"Copy","chat.menu.translate":"Translate","chat.menu.recall":"Recall","chat.menu.enlarge":"Enlarge","chat.menu.quickreply.add":"Add Quick Reply...","chat.menu.browser.open":"Open in Browser","chat.menu.forward":"Forward...","chat.menu.collect":"Collect","chat.menu.quote":"Quote","chat.translation.placeholder":"Please enter translation content...","chat.input.placeholder":"Please enter content, Ctrl+V to paste screenshot/image","chat.toolbar.emoji":"Emoji","chat.toolbar.image":"Image","chat.toolbar.file":"File","chat.toolbar.screenshot":"Screenshot","chat.toolbar.autoreply":"Auto Reply","chat.toolbar.audio":"Audio","chat.toolbar.webrtc":"Video Call","chat.toolbar.history":"History","chat.toolbar.block":"Block","chat.toolbar.invite.rate":"Invite Rating","chat.navbar.transfer":"Transfer","chat.navbar.close":"End","chat.navbar.note":"Notebase","chat.navbar.kbase":"Knowledge Base","chat.right.quickreply":"Quick Reply","chat.right.userinfo":"User Info","chat.right.ai":"Copilot","chat.right.ticket":"Ticket","chat.right.llm":"LLM","chat.right.group":"Group Info","chat.right.member":"Member Info","chat.right.docview":"Doc View","chat.group.notice":"Notice","chat.group.members":"Members","chat.group.admins":"Admins","chat.group.robots":"Robots","chat.group.qrcode":"QR Code","chat.group.uid.error":"Group ID error"},sfn={"dashboard.error.message":"Failed to get data","dashboard.init.organization":"Initializing organization","dashboard.init.profile":"Initializing profile","dashboard.init.workgroups":"Initializing workgroups","dashboard.init.agent":"Initializing agent profile","dashboard.transfer.accept":"{nickname} has accepted the transfer","dashboard.transfer.reject":"{nickname} has rejected the transfer","dashboard.transfer.success":"Transfer request sent successfully, waiting for response"},lfn={"menu.anonymous.title":"Anonymous Mode","menu.anonymous.home":"Messages","menu.anonymous.contact":"Contacts","menu.anonymous.robot":"Robot","menu.anonymous.setting":"Settings","menu.anonymous.status":"Anonymous Status","menu.anonymous.status.tip":"Anonymous mode only supports communication between online devices in the same LAN","menu.anonymous.login.tip":"Login to access offline messages and more features","menu.anonymous.login":"Login","menu.anonymous.current.users":"Current Users","menu.dashboard.chat":"Chat","menu.dashboard.contact":"Contact","menu.dashboard.ai":"AI Assistant","menu.dashboard.note":"Notebase","menu.dashboard.kbase":"Knowledge Base","menu.dashboard.mine":"Settings","menu.dashboard.queue":"Queue","menu.dashboard.ticket":"Tickets","menu.dashboard.leavemsg":"Messages","menu.dashboard.visitor":"Visitors","menu.dashboard.monitor":"Monitor","menu.dashboard.plugins":"Plugins","menu.settings":"Settings","menu.settings.logout":"Logout","menu.agent.status":"Agent Status","menu.agent.status.available":"Available","menu.agent.status.rest":"Rest","menu.agent.status.offline":"Offline","menu.language":"Language","menu.mode":"Mode","menu.mode.team":"Team Mode","menu.mode.agent":"Agent Mode","menu.mode.personal":"Personal Mode","menu.agent.offline.warning":"Please end all ongoing conversations before going offline","menu.mode.personal.coming":"Coming soon...","menu.dashboard.notebase":"Notebase"},cfn={"profile.update.success":"Profile updated successfully","profile.form.avatar":"Avatar","profile.form.upload":"Upload","profile.form.username":"Username","profile.form.nickname":"Nickname","profile.form.description":"Description","profile.button.change.password":"Change Password","profile.button.change.email":"Change Email","profile.button.change.mobile":"Change Mobile","profile.email.verified":"Email Verified","profile.email.unverified":"Email Unverified","profile.mobile.verified":"Mobile Verified","profile.mobile.unverified":"Mobile Unverified","profile.email.change.title":"Change Email","profile.email.placeholder":"Enter email address","profile.email.required":"Please enter email address!","profile.email.format.invalid":"Invalid email format","profile.email.length.limit":"Email cannot exceed 50 characters","profile.email.verification.code.placeholder":"Enter verification code","profile.email.verification.code.countdown":"seconds","profile.email.verification.code.get":"Get Code","profile.email.verification.code.required":"Please enter verification code!","profile.email.not.changed":"Email is not changed!","profile.email.change.success":"Email changed successfully!","profile.email.format.error":"Invalid email format","profile.mobile.change.title":"Change Mobile","profile.mobile.placeholder":"Enter mobile number","profile.mobile.required":"Please enter mobile number!","profile.mobile.format.invalid":"Invalid mobile format","profile.mobile.verification.code.placeholder":"Enter verification code","profile.mobile.verification.code.countdown":"seconds","profile.mobile.verification.code.get":"Get Code","profile.mobile.verification.code.required":"Please enter verification code!","profile.mobile.not.changed":"Mobile number is not changed!","profile.mobile.change.success":"Mobile number changed successfully!","profile.mobile.format.error":"Invalid mobile format","profile.password.change.title":"Change Password","profile.password.old":"Old Password","profile.password.old.empty":"Old password can be empty for phone login users","profile.password.new":"New Password","profile.password.confirm":"Confirm Password","profile.password.length.error":"Password must be at least 6 characters","profile.password.mismatch":"The two passwords do not match","profile.password.change.success":"Password changed successfully!"},ufn={"setting.menu.title":"Settings","setting.menu.profile":"Profile","setting.menu.basic":"Basic Settings","setting.menu.agent":"Agent Settings","setting.menu.model":"AI Model","setting.menu.certification":"Certification","setting.menu.qrcode":"QR Code","setting.menu.shortcut":"Shortcuts","setting.menu.click":"Menu clicked","setting.save.success":"Settings saved successfully","setting.save.error":"Failed to save settings","setting.load.error":"Failed to load settings","setting.header.profile":"Personal Profile","setting.header.basic":"Basic Settings","setting.header.agent":"Agent Settings","setting.header.model":"AI Model Settings","setting.basic.sound.on":"Message Sound On","setting.basic.sound.off":"Message Sound Off","setting.basic.notification.on":"Network Status Notification On","setting.basic.notification.off":"Network Status Notification Off","setting.basic.connection.status":"Connection Status:","setting.basic.connection.connected":"✅Connected","setting.basic.connection.disconnected":"❌Disconnected","setting.basic.startup":"Start on Boot:","setting.basic.startup.on":"Enable","setting.basic.startup.off":"Disable","setting.basic.theme":"Theme:","setting.basic.language":"Language:","setting.basic.mode":"Mode:","setting.basic.mode.team":"Team Mode","setting.basic.mode.agent":"Agent Mode","setting.basic.mode.personal":"Personal Mode"},dfn={"ticket.create.title":"Create Ticket","ticket.edit.title":"Edit Ticket","ticket.form.uid":"UID","ticket.form.title":"Title","ticket.form.title.required":"Please enter ticket title","ticket.form.title.placeholder":"Enter ticket title","ticket.form.description":"Description","ticket.form.description.required":"Please enter ticket description","ticket.form.description.placeholder":"Enter ticket description","ticket.form.status":"Status","ticket.form.status.required":"Please select ticket status","ticket.form.priority":"Priority","ticket.form.priority.required":"Please select priority","ticket.form.category":"Category","ticket.form.category.required":"Please select category","ticket.form.category.placeholder":"Select category","ticket.form.user":"Customer","ticket.form.user.placeholder":"Select customer","ticket.form.assignee":"Assignee","ticket.form.assignee.placeholder":"Select assignee","ticket.form.reporter":"Reporter","ticket.form.reporter.placeholder":"Select reporter","ticket.form.workgroup":"Workgroup","ticket.form.workgroup.required":"Please select workgroup","ticket.form.workgroup.placeholder":"Select workgroup","ticket.form.thread":"Related Conversation","ticket.form.thread.placeholder":"Select related conversation","ticket.form.thread.none":"No Association","ticket.create.success":"Ticket created successfully","ticket.create.failed":"Failed to create ticket","ticket.update.success":"Ticket updated successfully","ticket.update.failed":"Failed to update ticket","ticket.submit.error":"Failed to submit ticket","ticket.delete.success":"Ticket deleted successfully","ticket.delete.error":"Failed to delete ticket","ticket.load.error":"Failed to load tickets","ticket.messages.load.error":"Failed to load ticket messages","ticket.message.send.error":"Failed to send message","ticket.workgroup.load.error":"Failed to load workgroups","ticket.category.load.error":"Failed to load categories","ticket.list.title":"Tickets","ticket.list.empty":"No tickets found","ticket.list.search.placeholder":"Search tickets","ticket.list.create":"Create Ticket","ticket.list.total":"Total","ticket.action.edit":"Edit","ticket.action.delete":"Delete","ticket.action.assign":"Assign","ticket.action.close":"Close","ticket.action.reopen":"Reopen","ticket.delete.confirm":"Are you sure to delete this ticket?","ticket.conversation.title":"Conversation","ticket.conversation.empty":"Select a ticket to view conversation","ticket.conversation.input.placeholder":"Type your message...","ticket.details.title":"Ticket Details","ticket.details.empty":"Select a ticket to view details","ticket.form.createdAt":"Created At","ticket.form.updatedAt":"Updated At","ticket.type.agent":"Agent","ticket.type.workgroup":"Workgroup","ticket.type":"Type","ticket.assignee":"Assignee","ticket.reporter":"Reporter","ticket.category":"Category","ticket.steps.title":"Processing Steps","ticket.form.upload.button":"Upload Attachments","ticket.upload.success":"File uploaded successfully","ticket.upload.failed":"File upload failed","ticket.current.filters":"Current Filters","ticket.filter.by.status":"Filter by Status","ticket.filter.by.priority":"Filter by Priority","ticket.filter.by.assignment":"Filter by Assignment","ticket.filter.by.time":"Filter by Time","ticket.filter.status_all":"All Status","ticket.filter.status_new":"New","ticket.filter.status_assigned":"Assigned","ticket.filter.status_in_progress":"In Progress","ticket.filter.status_pending":"Pending","ticket.filter.status_on_hold":"On Hold","ticket.filter.status_reopened":"Reopened","ticket.filter.status_resolved":"Resolved","ticket.filter.status_closed":"Closed","ticket.filter.status_cancelled":"Cancelled","ticket.filter.priority_all":"All Priority","ticket.filter.priority_lowest":"Lowest","ticket.filter.priority_low":"Low","ticket.filter.priority_medium":"Medium","ticket.filter.priority_high":"High","ticket.filter.priority_urgent":"Urgent","ticket.filter.priority_critical":"Critical","ticket.filter.assignment_all":"All","ticket.filter.assignment_my_tickets":"My Tickets","ticket.filter.assignment_unassigned":"Unassigned","ticket.filter.assignment_my_workgroup":"My Workgroup","ticket.filter.assignment_my_created":"Created by Me","ticket.filter.assignment_my_assigned":"Assigned to Me","ticket.filter.time_all":"All Time","ticket.filter.time_today":"Today","ticket.filter.time_yesterday":"Yesterday","ticket.filter.time_this_week":"This Week","ticket.filter.time_last_week":"Last Week","ticket.filter.time_this_month":"This Month","ticket.filter.time_last_month":"Last Month","ticket.content.title":"Ticket","ticket.content.number":"No.","ticket.delete.title":"Delete Ticket","ticket.delete.content":"Are you sure you want to delete this ticket?","ticket.delete.failed":"Failed to delete ticket","ticket.loading":"Loading tickets...","ticket.empty":"No tickets found"},ffn={i18_file_assistant:"File Assistant",slogan:"Chat As A Service","menu.dashboard.chat":"Chat","menu.dashboard.contact":"Contact","menu.dashboard.queue":"Queue","menu.dashboard.ticket":"Ticket","menu.dashboard.leavemsg":"Leave Msg","menu.dashboard.visitor":"Visitor","menu.dashboard.monitor":"Monitor","menu.dashboard.plugins":"Plugins","menu.dashboard.mine":"Mine","chat.toolbar.emoji":"Emoji","chat.toolbar.image":"Image","chat.toolbar.file":"File","chat.toolbar.audio":"Audio","chat.toolbar.webrtc":"Webrtc","chat.toolbar.history":"History","chat.toolbar.block":"Block","chat.toolbar.screenshot":"Screenshot","chat.toolbar.invite.rate":"InviteRate","chat.toolbar.autoreply":"AutoReply","chat.toolbar.autoreply.on":"AutoReply(On)","chat.navbar.transfer":"Transfer","chat.navbar.ticket":"Ticket","chat.navbar.crm":"Crm","chat.navbar.close":"Close","chat.navbar.category":"Category","chat.navbar.ai":"AI","chat.navbar.queue":"Queue","chat.right.ai":"Copilot","chat.right.quickreply":"QuickReply","chat.right.ticket":"Ticket","chat.right.userinfo":"UserInfo","chat.right.llm":"Llm","chat.right.docview":"DocView","chat.right.group":"Group","chat.right.member":"Member","chat.ai.summary":"Thread Summary","chat.ai.switch":"Switch","chat.thread.nomore":"No More","chat.message.loadmore":"Load More","dashboard.footbar.logout":"Logout",SERVICE:"Customer Service Robot",MARKETING:"Marketing Robot",KNOWLEDGEBASE:"Knowledgebase Robot",QA:"QA Robot",AGENT_ASSISTANT:"Agent Asistant",loading:"Loading",create:"Create",creating:"Creating","create.success":"Create success","create.fail":"Create fail",update:"Update",updating:"Updating","update.success":"Update success","update.fail":"Update fail",save:"Save",saving:"Saving",email:"Email","email.verified":"Email Verified","email.unverified":"Email Unverified",mobile:"Mobile","mobile.verified":"Mobile Verified","mobile.unverified":"Mobile Unverified",captcha:"Captcha",logging:"Logging","login.success":"Login Success","login.error":"Login Failed",registering:"Registering","register.success":"Register Success","register.error":"Register Failed","username.change.tip":"Username(should re login after changed)",createKb:"Create Knowledge Base",createDept:"Create Department",upload:"Upload",import:"Import",export:"Export","download.template":"Download Template",open:"Open",copy:"Copy","copy.success":"Copy success",ok:"OK",cancel:"Cancel",bind:"Bind",edit:"Edit",editing:"Editing","edit.success":"Edit success","edit.fail":"Edit fail",delete:"Delete",deleting:"Deleting",deleteTip:"Delete Tip",deleteAffirm:"Are u sure to delete","delete.success":"Delete success","delete.fail":"Delete fail","process.success":"Process success","process.fail":"Process fail",preview:"Preview",close:"Close",closing:"Closing",closeTip:"Close Tip",closeASure:"Are u sure to close","close.success":"Close success",choose:"Choose","leavemsg.enabled":"Leave Message Enabled",transfer:"Transfer","transfer.success":"Transfer success","transfer.fail":"Transfer fail","transfer.reason":"Transfer Reason",refresh:"Refresh",noAgent:"No Agent Available"},hfn={"pages.login.title":"Bytedesk","pages.layouts.userLayout.title":"Chat As A Service","pages.login.accountLogin.tab":"Account Login","pages.login.accountLogin.errorMessage":"Incorrect username/password(admin/ant.design)","pages.login.failure":"Login failed, please try again!","pages.login.success":"Login successful!","pages.login.username.placeholder":"Email","pages.login.username.required":"Please input your username!","pages.login.password.placeholder":"Password","pages.login.repassword.placeholder":"RePassword","pages.login.password.required":"Please input your password!","pages.login.repassword.required":"Please input your password!","pages.login.phoneLogin.tab":"Phone Login","pages.login.phoneLogin.errorMessage":"Verification Code Error","pages.login.phoneNumber.placeholder":"Phone Number","pages.login.phoneNumber.required":"Please input your phone number!","pages.login.phoneNumber.invalid":"Phone number is invalid!","pages.login.captcha.placeholder":"Verification Code","pages.login.captcha.required":"Please input verification code!","pages.login.phoneLogin.getVerificationCode":"Get Code","pages.login.anonymousLogin":"Anonymous Login","pages.getCaptchaSecondText":"sec(s)","pages.login.scanLogin.tab":"Scan Login","pages.login.rememberMe":"Remember me","pages.login.forgotPassword":"Forgot Password ?","pages.login.submit":"Login","pages.login.loginWith":"Login with :","pages.login.register":"Register","pages.login.registerAccount":"Register Account","pages.login.auto.register":"Unregisterd Mobile will auto register","pages.welcome.link":"Welcome","pages.robot.new":"New","pages.robot.chat":"Chat","pages.robot.edit":"Edit","pages.robot.delete":"Delete","pages.robot.upload":"Upload","pages.robot.tab.basic":"Basic","pages.robot.tab.kb":"Knowledge Base","pages.robot.tab.channel":"Channel","pages.robot.tab.statistic":"Statistic","pages.robot.tab.advanced":"Advanced","pages.robot.tab.flow":"Flow","pages.robot.tab.avatar":"Avatar","pages.robot.tab.title":"Title","pages.robot.tab.welcomeTip":"welcomeTip","pages.robot.tab.description":"Description","pages.robot.tab.preview":"Preview","pages.robot.tab.website":"Website","pages.robot.tab.helpdesk":"Helpdesk","pages.robot.tab.icp":"ICP 17041763-1","pages.robot.tab.police":"44030502008688","pages.robot.kb.file":"File","pages.robot.kb.text":"Text","pages.robot.kb.qa":"Q&A","pages.robot.kb.web":"Website","pages.robot.file.title":"Title","pages.robot.file.content":"Content","pages.robot.file.type":"Type","pages.robot.file.size":"Size","pages.robot.file.action":"Action","pages.robot.file.delete":"Delete","pages.robot.file.save":"Save","pages.robot.file.cancel":"Cancel","pages.robot.file.uploading":"Uploading...","pages.robot.file.name_invalid":"File name should not contain _","pages.robot.file.parse":"Parse File Content","pages.setting":"Settings","pages.logout":"Logout","pages.footer.website":"Bytedesk","pages.footer.helpcenter":"help","pages.login.remember":"remember me","pages.agent.tab.basic":"Basic","pages.agent.robot":"Robot","pages.agent.service.settings":"Service Settings","pages.agent.service.settings.topTip":"Top Tip","pages.agent.service.settings.welcomeTip":"Welcome Tip","pages.agent.service.settings.leavemsgTip":"Leavemsg Tip","pages.agent.service.settings.autoCloseMin":"Auto Close Min","pages.agent.service.settings.showLogo":"Show Logo","pages.agent.service.settings.maxThreadCount":"Max Thread Count","pages.advanced.faq":"FAQ","pages.advanced.quickButton":"Quick Buttons","pages.advanced.faqGuess":"Smart Suggestions","pages.advanced.faqHot":"Hot Questions","pages.advanced.faqShortcut":"Quick Replies","pages.advanced.rate":"Satisfaction Rating","pages.advanced.autoreply":"Auto Reply","pages.advanced.leaveMsg":"Leave Message","pages.advanced.survey":"Survey","pages.advanced.history":"History","pages.advanced.inputAssociation":"Input Association","pages.advanced.antiHarassment":"Captcha Settings","pages.advanced.captcha":"Captcha Settings","pages.advanced.showPreForm":"Show PreForm","pages.advanced.showHistory":"Show History","pages.advanced.showInputAssociation":"Show Input Association","pages.advanced.showCaptcha":"Show Captcha","pages.login.country.placeholder":"Select Country/Region","pages.login.country.china":"China","pages.login.country.hongkong":"Hong Kong","pages.login.country.taiwan":"Taiwan","pages.login.country.macao":"Macao","pages.login.country.japan":"Japan","pages.login.country.korea":"Korea","pages.login.country.usa":"United States","pages.login.country.canada":"Canada","pages.login.country.uk":"United Kingdom","pages.login.country.germany":"Germany","pages.login.country.france":"France","pages.login.country.australia":"Australia","pages.login.country.singapore":"Singapore","pages.login.country.malaysia":"Malaysia","pages.login.country.thailand":"Thailand","pages.login.country.vietnam":"Vietnam","pages.login.country.philippines":"Philippines","pages.login.country.indonesia":"Indonesia","pages.login.country.italy":"Italy","pages.login.country.spain":"Spain","pages.login.country.russia":"Russia","pages.login.country.newzealand":"New Zealand","pages.anonymous.title":"Anonymous Mode","pages.anonymous.home":"Home","pages.anonymous.contact":"Contacts","pages.anonymous.robot":"Robot","pages.anonymous.setting":"Settings","pages.anonymous.welcome":"Welcome to Anonymous Mode","pages.anonymous.description":"You can use system features anonymously in this mode","block.title":"Block Settings","block.type":"Block Type","block.user":"Block User","block.ip":"Block IP","block.permanent":"Permanent Block","block.until":"Block Until","block.until.required":"Please select block end time"},pfn={"i18n.lang.en-US":"English","i18n.lang.zh-CN":"简体中文","i18n.lang.zh-TW":"繁體中文","i18n.queue.tip":"Queue","i18n.queue.message.template":"Current Queuing: {0} people, Wait {1} minutes","i18n.queue.empty":"Queue empty","i18n.queue.accept":"accept","i18n.system.notification":"System Notification","i18n.old.password.wrong":"Old password is incorrect","i18n.change.password":"Change Password","i18n.auth.captcha.send.success":"Captcha Send success","i18n.auth.captcha.error":"Captcha Error","i18n.auth.captcha.expired":"Captcha Expired","i18n.auth.captcha.already.send":"Captcha Already Send","i18n.auth.captcha.validate.failed":"Captcha Validate Failed","i18n.faq":"Faq","i18n.rate":"Rate","i18n.input.placeholder":"Please input","i18n.loading":"Loading","i18n.load.more":"Load more","i18n.load.nomore":"No more","i18n.typing":"Typing","i18n.robot":"Robot","i18n.agent":"Agent","i18n.workgroup":"WorkGroup","i18n.group":"Group","i18n.rate.invite":"Rate Invite","i18n.ticket":"Ticket","i18n.notice":"Notice","i18n.notice.title":"Notice","i18n.notice.content":"Notice Content","i18n.notice.ip":"IP Address","i18n.notice.ipLocation":"IP Location","i18n.notice.parse.file.success":"Parse file success","i18n.notice.parse.file.error":"Parse file error","i18n.DEPT.ALL":"All","i18n.DEPT.ADMIN":"Admin","i18n.DEPT.HR":"HR","i18n.DEPT.ORG":"Org","i18n.DEPT.IT":"IT","i18n.DEPT.MONEY":"Money","i18n.DEPT.MARKETING":"Marketing","i18n.DEPT.SALES":"Sales","i18n.DEPT.CS":"CustomerService","i18n.new.message":"New Message","i18n.file.assistant":"file assistant","i18n.clipboard.assistant":"clipboard assistant","i18n.thread.content.image":"image","i18n.thread.content.file":"file","i18n.top.tip":"Top Tip","i18n.top.make":"Make Top","i18n.top.cancel":"Cancel Top","i18n.unread.make":"Mark as unread","i18n.unread.cancel":"Mark as read","i18n.star.make":"Make Star","i18n.star.cancel":"Cancel Star","i18n.disturb.make":"Make Disturb","i18n.disturb.cancel":"Cancel Disturb","i18n.transfer":"Transfer","i18n.hide":"Hide","i18n.network.disconnected":"Network disconnected","i18n.message.pulling":"Message pulling","i18n.leavemsg.tip":"Leave a message","i18n.welcome.tip":"What can i help you?","i18n.reenter.tip":"continue chat","i18n.under.development":"Under development","i18n.user.description":"User Description","i18n.robot.nickname":"DefaultRobot","i18n.robot.description":"Default Robot Description","i18n.robot.noreply":"Answer Not Found","i18n.robot.agent.assistant.nickname":"DefaultRobotAgent","i18n.llm.prompt":"You are a smart and helpful artificial intelligence, capable of providing useful, detailed, and polite answers to human questions.","i18n.agent.nickname":"DefaultAgent","i18n.agent.description":"Default Agent Description","i18n.workgroup.nickname":"DefaultWorkgroup","i18n.workgroup.description":"Default Workgroup Description","i18n.contact":"Ask Contact","i18n.thanks":"Thanks","i18n.welcome":"Welcome","i18n.bye":"Bye","i18n.tip.title":"Tip","i18n.tip.network.disconnected":"Network disconnected","i18n.tip.network.connected":"Network connected","i18n.kb.name":"KbName","i18n.kb.platform.name":"Platform KbName","i18n.kb.helpcenter.name":"Helpdoc KbName","i18n.kb.llm.name":"Llm KbName","i18n.kb.keyword.name":"Keyword KbName","i18n.kb.faq.name":"Faq KbName","i18n.kb.autoreply.name":"AutoReply KbName","i18n.kb.quickreply.name":"QuickReply KbName","i18n.kb.taboo.name":"Taboo KbName","i18n.kb.description":"KbDescription","i18n.agent.nicknameKb":"DefaultAgentKbName","i18n.contact.title":"If it's convenient, please provide your contact number so that I can communicate with you via phone for a more intuitive conversation.","i18n.contact.content":"If it's convenient, please provide your contact number so that I can communicate with you via phone for a more intuitive conversation.","i18n.thanks.title":"Thank you for visiting, we look forward to seeing you again.","i18n.thanks.content":"Thank you for visiting, we look forward to seeing you again.","i18n.welcome.title":"Hello, how can I assist you?","i18n.welcome.content":"Hello, how can I assist you?","i18n.bye.title":"Your satisfaction is always our goal. If you have any questions, please feel free to contact us.","i18n.bye.content":"Your satisfaction is always our goal. If you have any questions, please feel free to contact us.","i18n.vip.api":"VIP API","i18n.faq.category.demo.1":"CategoryDemo1","i18n.faq.category.demo.2":"CategoryDemo2","i18n.faq.demo.title.1":"FaqTitleText1","i18n.faq.demo.content.1":"FaqContentText1","i18n.faq.demo.title.2":"FaqTitleImage2","i18n.faq.demo.content.2":"https://www.weiyuai.cn/logo.png","i18n.quick.button.demo.title.1":"QuickButtonTitleText1","i18n.quick.button.demo.content.1":"QuickButtonContentText1","i18n.quick.button.demo.title.2":"QuickButtonTitleUrl2","i18n.quick.button.demo.content.2":"https://www.weiyuai.cn","i18n.preview.title":"Preview","i18n.cancel":"Cancel","i18n.confirm":"Confirm","i18n.send":"Send","i18n.transferToAgent":"Transfer to Agent","i18n.auto.closed":"Auto closed","i18n.agent.closed":"Agent closed","i18n.online.chat":"Online Chat","i18n.JOB":"Job","i18n.LANGUAGE":"Language","i18n.TOOL":"Tool","i18n.WRITING":"Writing","i18n.RAG":"RAG","i18n.module.ai":"AI","i18n.module.void":"Void","i18n.module.service":"Service","i18n.module.ticket":"Ticket","i18n.black.user.already.exists":"User already blocked","i18n.ticket.category.technical_support":"Technical Support","i18n.ticket.category.service_request":"Service Request","i18n.ticket.category.consultation":"Consultation","i18n.ticket.category.complaint_suggestion":"Complaint Suggestion","i18n.ticket.category.operation_maintenance":"Operation Maintenance","i18n.ticket.category.other":"Other","i18n.vip.component":"VIP Component, Contact us for more details","i18n.vip.contactUs":"Contact us","i18n.vip.contactUrl":"https://www.bytedesk.com"},mfn={"login.privacy.required":"Please read and agree to the privacy agreement","login.privacy.agreement":"Agree to Privacy Agreement","login.switch.server":"Switch Server","login.success":"Login successful","login.failed":"Login failed","login.anonymous":"Anonymous Login","login.other.methods":"Other login methods","login.remember":"Remember me","login.forgot":"Forgot password?","login.register":"Register account","server.button.back":"Back","server.button.save":"Save","server.button.reset":"Reset","server.button.help":"Help","server.save.success":"Save successfully","server.reset.success":"Reset successfully, restored to default cloud server","server.custom.enable":"Enable Custom Server","server.api.url.label":"API Server URL (e.g. http://127.0.0.1:9003 or https://api.bytedesk.com)","server.api.url.placeholder":"http://127.0.0.1:9003","server.websocket.url.label":"WebSocket Server URL (e.g. ws://127.0.0.1:9885/websocket or wss://api.bytedesk.com/websocket)","server.websocket.url.placeholder":"ws://127.0.0.1:9885/websocket","server.input.error":"Please enter correct server address"},gfn={"thread.error.message":"Failed to get data","thread.feature.unavailable":"TODO: This feature is not available yet","thread.menu.top":"Pin to Top","thread.menu.untop":"Unpin","thread.menu.read":"Mark as Read","thread.menu.unread":"Mark as Unread","thread.menu.mute":"Mute","thread.menu.unmute":"Unmute","thread.menu.transfer":"Transfer","thread.menu.block":"Block","thread.menu.ticket":"Create Ticket","thread.menu.crm":"View in CRM","thread.menu.summary":"Summary","thread.status.robot":"[Robot]","thread.status.agent":"[1-on-1]","thread.status.workgroup":"[Group]","thread.search.placeholder":"Search conversations...","thread.menu.filter":"Filter Threads","thread.menu.groupThread":"Group Thread","thread.menu.robotThread":"Robot Thread","thread.menu.workgroupThread":"Workgroup Thread","thread.menu.agentThread":"Agent Thread","thread.menu.ticketThread":"Ticket Thread","thread.menu.memberThread":"Member Thread","thread.menu.deviceThread":"Device Thread","thread.menu.systemThread":"System Thread","thread.status.loading":"Loading...","thread.status.empty":"No conversations","thread.status.error":"Failed to load conversations","thread.status.queue":"Queue ({count})","thread.status.network.offline":"Network disconnected","thread.status.network.online":"Network connected","thread.status.message.pulling":"Pulling messages...","thread.status.message.empty":"No messages","thread.status.message.error":"Failed to load messages","thread.status.message.end":"No more messages","thread.status.message.typing":"Typing...","thread.status.message.transfer":"Transferring...","thread.status.message.transferred":"Transferred","thread.status.message.closed":"Conversation closed","thread.dropdown.create.group":"Create Group Chat","thread.dropdown.create.ai":"Create AI Chat","thread.agent.status.online":"Online","thread.agent.status.offline":"Offline","thread.agent.status.busy":"Busy","thread.refresh.pull":"↓ Pull to refresh","thread.refresh.release":"↑ Release to refresh","thread.list.no.more":"No more data","thread.set.success":"Set successfully","thread.set.error":"Set failed","thread.menu.star":"Star","thread.menu.star.1":"Star Level 1","thread.menu.star.2":"Star Level 2","thread.menu.star.3":"Star Level 3","thread.menu.star.4":"Star Level 4","thread.menu.hide":"Hide","thread.status.text":"{status}","thread.status.online":"Online","thread.status.offline":"Offline","thread.status.busy":"🏃♀️Busy","thread.coming.soon":"Coming soon...","thread.menu.star.cancel":"Remove Star","thread.loading.more":"Loading more..."},vfn={"message.status.read":"Read","message.status.delivered":"Delivered","message.status.sending":"Sending","message.status.sent":"Sent","message.status.failed":"Failed to send","message.status.retry":"Retry","quickreply.search.placeholder":"Search","quickreply.button.send":"Send","quickreply.button.copy":"Copy","quickreply.button.create.category":"Create Category","quickreply.button.create.reply":"Create Quick Reply","quickreply.copy.success":"{content} copied to clipboard","category.form.edit.title":"Edit Category","category.form.create.title":"Create Category","category.form.name":"Category Name","category.form.name.required":"Please enter category name!","category.form.name.placeholder":"Enter category name","category.create.failed":"Failed to create category","quickreply.drawer.title":"{isEdit, select, true {Edit Quick Reply} other {New Quick Reply}}","quickreply.form.category":"Category","quickreply.form.category.required":"Please select a category","quickreply.form.category.placeholder":"Select a category","quickreply.form.type":"Type","quickreply.form.type.required":"Please select a type","quickreply.form.type.placeholder":"Select a type","quickreply.form.title":"Title","quickreply.form.title.required":"Please enter a title","quickreply.form.content":"Content","quickreply.type.text":"Text","quickreply.type.image":"Image","quickreply.type.video":"Video","quickreply.type.audio":"Audio","quickreply.type.file":"File","quickreply.upload.text":"Click or drag file to upload","quickreply.upload.success":"{filename} uploaded successfully","quickreply.upload.error":"{filename} upload failed","quickreply.upload.uploading":"{filename} uploading","quickreply.form.validate.error":"Please check the form"},yfn={"customer.info.basic":"Basic Info","customer.info.browser":"Browser Info","customer.info.os":"OS Info","customer.info.device":"Device Info","customer.info.browse.record":"Browse Record","customer.info.tag":"Tag Info","customer.info.load.error":"Failed to load visitor info","customer.info.add.crm":"Add to CRM","customer.info.add.tag":"Add Tag","customer.basic.nickname":"Nickname","customer.basic.location":"IP Location","customer.basic.note":"Note","customer.basic.client":"Client","customer.basic.status":"Status","customer.basic.empty":"N/A","black.title":"Block Settings","black.type":"Block Type","black.type.required":"Please select at least one block type","black.user":"Block User","black.ip":"Block IP","black.permanent":"Permanent Block","black.until":"Block Until","black.until.required":"Please select block end time","black.reason":"Block Reason","black.reason.required":"Please enter block reason","black.reason.placeholder":"Enter reason for blocking","black.success":"Block successfully"},bfn={"contact.list.new":"New Friends","contact.list.device":"LAN Devices","contact.list.group":"Groups","contact.list.channel":"Channels","contact.list.company":"Company Contacts","contact.list.friend":"Contacts","contact.search.placeholder":"Search contacts...","contact.manager.button":"Contact Manager","contact.manager.coming":"Coming soon...","member.detail.nickname":"Nickname","member.detail.jobno":"Job No.","member.detail.seatno":"Seat No.","member.detail.telephone":"Telephone","member.detail.loading":"Loading...","member.detail.chat.button":"Start Chat"},Sfn={"autoreply.title":"Auto Reply","autoreply.enable.label":"Enable Auto Reply","autoreply.type.label":"Auto Reply Type","autoreply.type.fixed":"Fixed Reply","autoreply.type.keyword":"Keyword Match","autoreply.type.llm":"AI Model Reply","autoreply.fixed.add":"Add Fixed Reply","autoreply.fixed.select":"Select Fixed Reply","autoreply.fixed.type":"Fixed Reply Type","autoreply.fixed.content":"Fixed Reply Content","autoreply.content.text":"Text","autoreply.content.image":"Image","autoreply.content.video":"Video","autoreply.content.audio":"Audio","autoreply.content.file":"File","autoreply.save.loading":"Saving...","autoreply.save.success":"Saved successfully","autoreply.save.error":"Failed to save","autoreply.keyword.add":"Add Keyword Knowledge Base","autoreply.keyword.select":"Select Keyword Knowledge Base","autoreply.llm.add":"Add AI Model Knowledge Base","autoreply.llm.select":"Select AI Model Knowledge Base"},Cfn={"queue.accepting":"Accepting...","queue.accept.success":"Accepted successfully","queue.accept.failed":"Failed to accept","queue.accept":"Accept","queue.empty":"No queuing visitors","queue.loading":"Loading queue...","queue.error":"Failed to load queue","queue.count":"{count} visitors queuing","queue.wait.time":"Estimated wait time: {minutes} minutes"},xfn={"group.create.title":"Create Group Chat","group.create.contacts":"Contacts","group.create.members":"Members","group.create.members.min":"Please select at least 2 members","group.create.creating":"Creating group...","group.create.org.empty":"No organization selected","group.create.success":"Group created successfully","group.create.failed":"Failed to create group","group.create.loading":"Loading members...","group.create.error":"Failed to load members"},wfn={"upload.modal.title":"Upload Files","upload.drag.text":"Click or drag files here to upload","upload.drag.hint":"Support for single or bulk upload","upload.uploading":"{filename} uploading...","upload.success":"{filename} uploaded successfully","upload.failed":"{filename} upload failed","upload.delete.confirm":"Are you sure to delete this file?","upload.preview.image":"Image Preview","upload.preview.file":"File Preview","upload.button.ok":"OK","upload.button.cancel":"Cancel"},_fn={...ifn,...ofn,...afn,...sfn,...lfn,...cfn,...ufn,...dfn,...ffn,...hfn,...pfn,...mfn,...gfn,...vfn,...yfn,...bfn,...Sfn,...Cfn,...xfn,...wfn},Efn={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},P8e={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},sa={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},nl={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},mm={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class vn{static getFirstMatch(t,n){const r=n.match(t);return r&&r.length>0&&r[1]||""}static getSecondMatch(t,n){const r=n.match(t);return r&&r.length>1&&r[2]||""}static matchAndReturnConst(t,n,r){if(t.test(n))return r}static getWindowsVersionName(t){switch(t){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(t){const n=t.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(n.push(0),n[0]===10)switch(n[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(t){const n=t.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(n.push(0),!(n[0]===1&&n[1]<5)){if(n[0]===1&&n[1]<6)return"Cupcake";if(n[0]===1&&n[1]>=6)return"Donut";if(n[0]===2&&n[1]<2)return"Eclair";if(n[0]===2&&n[1]===2)return"Froyo";if(n[0]===2&&n[1]>2)return"Gingerbread";if(n[0]===3)return"Honeycomb";if(n[0]===4&&n[1]<1)return"Ice Cream Sandwich";if(n[0]===4&&n[1]<4)return"Jelly Bean";if(n[0]===4&&n[1]>=4)return"KitKat";if(n[0]===5)return"Lollipop";if(n[0]===6)return"Marshmallow";if(n[0]===7)return"Nougat";if(n[0]===8)return"Oreo";if(n[0]===9)return"Pie"}}static getVersionPrecision(t){return t.split(".").length}static compareVersions(t,n,r=!1){const i=vn.getVersionPrecision(t),o=vn.getVersionPrecision(n);let a=Math.max(i,o),s=0;const l=vn.map([t,n],c=>{const u=a-vn.getVersionPrecision(c),d=c+new Array(u+1).join(".0");return vn.map(d.split("."),h=>new Array(20-h.length).join("0")+h).reverse()});for(r&&(s=a-Math.min(i,o)),a-=1;a>=s;){if(l[0][a]>l[1][a])return 1;if(l[0][a]===l[1][a]){if(a===s)return 0;a-=1}else if(l[0][a]<l[1][a])return-1}}static map(t,n){const r=[];let i;if(Array.prototype.map)return Array.prototype.map.call(t,n);for(i=0;i<t.length;i+=1)r.push(n(t[i]));return r}static find(t,n){let r,i;if(Array.prototype.find)return Array.prototype.find.call(t,n);for(r=0,i=t.length;r<i;r+=1){const o=t[r];if(n(o,r))return o}}static assign(t,...n){const r=t;let i,o;if(Object.assign)return Object.assign(t,...n);for(i=0,o=n.length;i<o;i+=1){const a=n[i];typeof a=="object"&&a!==null&&Object.keys(a).forEach(l=>{r[l]=a[l]})}return t}static getBrowserAlias(t){return Efn[t]}static getBrowserTypeByAlias(t){return P8e[t]||""}}const eo=/version\/(\d+(\.?_?\d+)+)/i,Tfn=[{test:[/googlebot/i],describe(e){const t={name:"Googlebot"},n=vn.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||vn.getFirstMatch(eo,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){const t={name:"Opera"},n=vn.getFirstMatch(eo,e)||vn.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){const t={name:"Opera"},n=vn.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||vn.getFirstMatch(eo,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){const t={name:"Samsung Internet for Android"},n=vn.getFirstMatch(eo,e)||vn.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){const t={name:"NAVER Whale Browser"},n=vn.getFirstMatch(eo,e)||vn.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){const t={name:"MZ Browser"},n=vn.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||vn.getFirstMatch(eo,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){const t={name:"Focus"},n=vn.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||vn.getFirstMatch(eo,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){const t={name:"Swing"},n=vn.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||vn.getFirstMatch(eo,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){const t={name:"Opera Coast"},n=vn.getFirstMatch(eo,e)||vn.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){const t={name:"Opera Touch"},n=vn.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||vn.getFirstMatch(eo,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){const t={name:"Yandex Browser"},n=vn.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||vn.getFirstMatch(eo,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){const t={name:"UC Browser"},n=vn.getFirstMatch(eo,e)||vn.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){const t={name:"Maxthon"},n=vn.getFirstMatch(eo,e)||vn.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){const t={name:"Epiphany"},n=vn.getFirstMatch(eo,e)||vn.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){const t={name:"Puffin"},n=vn.getFirstMatch(eo,e)||vn.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){const t={name:"Sleipnir"},n=vn.getFirstMatch(eo,e)||vn.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){const t={name:"K-Meleon"},n=vn.getFirstMatch(eo,e)||vn.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){const t={name:"WeChat"},n=vn.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||vn.getFirstMatch(eo,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){const t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=vn.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||vn.getFirstMatch(eo,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){const t={name:"Internet Explorer"},n=vn.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){const t={name:"Microsoft Edge"},n=vn.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){const t={name:"Microsoft Edge"},n=vn.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){const t={name:"Vivaldi"},n=vn.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){const t={name:"SeaMonkey"},n=vn.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){const t={name:"Sailfish"},n=vn.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){const t={name:"Amazon Silk"},n=vn.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){const t={name:"PhantomJS"},n=vn.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){const t={name:"SlimerJS"},n=vn.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t={name:"BlackBerry"},n=vn.getFirstMatch(eo,e)||vn.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){const t={name:"WebOS Browser"},n=vn.getFirstMatch(eo,e)||vn.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){const t={name:"Bada"},n=vn.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){const t={name:"Tizen"},n=vn.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||vn.getFirstMatch(eo,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){const t={name:"QupZilla"},n=vn.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||vn.getFirstMatch(eo,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){const t={name:"Firefox"},n=vn.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){const t={name:"Electron"},n=vn.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){const t={name:"Miui"},n=vn.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){const t={name:"Chromium"},n=vn.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||vn.getFirstMatch(eo,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){const t={name:"Chrome"},n=vn.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){const t={name:"Google Search"},n=vn.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t={name:"Android Browser"},n=vn.getFirstMatch(eo,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){const t={name:"PlayStation 4"},n=vn.getFirstMatch(eo,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){const t={name:"Safari"},n=vn.getFirstMatch(eo,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){const t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,i=e.search("\\(")!==-1?n:t;return{name:vn.getFirstMatch(i,e),version:vn.getSecondMatch(i,e)}}}],kfn=[{test:[/Roku\/DVP/],describe(e){const t=vn.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:nl.Roku,version:t}}},{test:[/windows phone/i],describe(e){const t=vn.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:nl.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){const t=vn.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=vn.getWindowsVersionName(t);return{name:nl.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){const t={name:nl.iOS},n=vn.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){const t=vn.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=vn.getMacOSVersionName(t),r={name:nl.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(e){const t=vn.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:nl.iOS,version:t}}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t=vn.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=vn.getAndroidVersionName(t),r={name:nl.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(e){const t=vn.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:nl.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t=vn.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||vn.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||vn.getFirstMatch(/\bbb(\d+)/i,e);return{name:nl.BlackBerry,version:t}}},{test:[/bada/i],describe(e){const t=vn.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:nl.Bada,version:t}}},{test:[/tizen/i],describe(e){const t=vn.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:nl.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:nl.Linux}}},{test:[/CrOS/],describe(){return{name:nl.ChromeOS}}},{test:[/PlayStation 4/],describe(e){const t=vn.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:nl.PlayStation4,version:t}}}],Ofn=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){const t=vn.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:sa.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:sa.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:sa.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:sa.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:sa.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:sa.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:sa.tablet}}},{test(e){const t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){const t=vn.getFirstMatch(/(ipod|iphone)/i,e);return{type:sa.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:sa.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:sa.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:sa.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:sa.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:sa.mobile,vendor:"Microsoft"}}},{test(e){const t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:sa.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:sa.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:sa.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:sa.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:sa.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:sa.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:sa.tv}}}],Pfn=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:mm.Blink};const n=vn.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:mm.EdgeHTML,version:n}}},{test:[/trident/i],describe(e){const t={name:mm.Trident},n=vn.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){const t={name:mm.Presto},n=vn.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){const t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){const t={name:mm.Gecko},n=vn.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:mm.Blink}}},{test:[/(apple)?webkit/i],describe(e){const t={name:mm.WebKit},n=vn.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];class due{constructor(t,n=!1){if(t==null||t==="")throw new Error("UserAgent parameter can't be empty");this._ua=t,this.parsedResult={},n!==!0&&this.parse()}getUA(){return this._ua}test(t){return t.test(this._ua)}parseBrowser(){this.parsedResult.browser={};const t=vn.find(Tfn,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(t){return t?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};const t=vn.find(kfn,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os}getOSName(t){const{name:n}=this.getOS();return t?String(n).toLowerCase()||"":n||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(t=!1){const{type:n}=this.getPlatform();return t?String(n).toLowerCase()||"":n||""}parsePlatform(){this.parsedResult.platform={};const t=vn.find(Ofn,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(t){return t?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};const t=vn.find(Pfn,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return vn.assign({},this.parsedResult)}satisfies(t){const n={};let r=0;const i={};let o=0;if(Object.keys(t).forEach(s=>{const l=t[s];typeof l=="string"?(i[s]=l,o+=1):typeof l=="object"&&(n[s]=l,r+=1)}),r>0){const s=Object.keys(n),l=vn.find(s,u=>this.isOS(u));if(l){const u=this.satisfies(n[l]);if(u!==void 0)return u}const c=vn.find(s,u=>this.isPlatform(u));if(c){const u=this.satisfies(n[c]);if(u!==void 0)return u}}if(o>0){const s=Object.keys(i),l=vn.find(s,c=>this.isBrowser(c,!0));if(l!==void 0)return this.compareVersion(i[l])}}isBrowser(t,n=!1){const r=this.getBrowserName().toLowerCase();let i=t.toLowerCase();const o=vn.getBrowserTypeByAlias(i);return n&&o&&(i=o.toLowerCase()),i===r}compareVersion(t){let n=[0],r=t,i=!1;const o=this.getBrowserVersion();if(typeof o=="string")return t[0]===">"||t[0]==="<"?(r=t.substr(1),t[1]==="="?(i=!0,r=t.substr(2)):n=[],t[0]===">"?n.push(1):n.push(-1)):t[0]==="="?r=t.substr(1):t[0]==="~"&&(i=!0,r=t.substr(1)),n.indexOf(vn.compareVersions(o,r,i))>-1}isOS(t){return this.getOSName(!0)===String(t).toLowerCase()}isPlatform(t){return this.getPlatformType(!0)===String(t).toLowerCase()}isEngine(t){return this.getEngineName(!0)===String(t).toLowerCase()}is(t,n=!1){return this.isBrowser(t,n)||this.isOS(t)||this.isPlatform(t)}some(t=[]){return t.some(n=>this.is(n))}}/*!
|
||
* Bowser - a browser detector
|
||
* https://github.com/lancedikson/bowser
|
||
* MIT License | (c) Dustin Diaz 2012-2015
|
||
* MIT License | (c) Denis Demchenko 2015-2019
|
||
*/class Mfn{static getParser(t,n=!1){if(typeof t!="string")throw new Error("UserAgent should be a string");return new due(t,n)}static parse(t){return new due(t).getResult()}static get BROWSER_MAP(){return P8e}static get ENGINE_MAP(){return mm}static get OS_MAP(){return nl}static get PLATFORMS_MAP(){return sa}}const{defaultAlgorithm:Ifn,darkAlgorithm:$fn}=al,Rfn={"zh-cn":Ddn,"zh-tw":rfn,en:_fn},Afn=()=>{const{isDarkMode:e,locale:t}=f.useContext(qs),n=new Tmt({defaultOptions:{queries:{refetchOnWindowFocus:!1}}}),[r,i]=f.useState(!1),o=()=>{const s=Mfn.getParser(window.navigator.userAgent);console.log("browser:",s),os?console.log("OsName:",s.getOSName()):console.log("BrowserName:",s.getBrowserName()),s.getOSName().toLocaleLowerCase().indexOf("mac")===-1&&i(!0)},a=async()=>{if(console.log("getConfig"),await $$e(),os)console.log("is electron");else{await M$e();const s=B6();console.log("Base URL:",s)}};return f.useEffect(()=>{GLe(),o(),a()},[]),U.jsx(or,{locale:t,theme:{algorithm:e?$fn:Ifn},children:U.jsx(Omt,{client:n,children:U.jsx(O8e,{children:U.jsx(f.Suspense,{fallback:U.jsx("div",{children:"loading..."}),children:U.jsxs(QBt,{messages:Rfn[t.locale],locale:t.locale,defaultLocale:"zh-cn",children:[r&&U.jsx(mdn,{children:U.jsx("link",{rel:"stylesheet",type:"text/css",href:NPe})}),U.jsxs(KO,{children:[U.jsx(zpt,{}),U.jsx(r1t,{router:zun})]})]})})})})})},Nfn=()=>U.jsx("div",{className:"App",children:U.jsx(imt,{children:U.jsx(Afn,{})})});n7.createRoot(document.getElementById("root")).render(U.jsx(Nfn,{}));postMessage({payload:"removeLoading"},"*");export{dbt as $,wye as A,bce as B,PSt as C,xSt as D,MSt as E,ISt as F,E2e as G,jP as H,lbt as I,IV as J,vrn as K,k2e as L,h2e as M,Vd as N,_2e as O,sSt as P,rSt as Q,wSt as R,yo as S,fk as T,Rre as U,pSt as V,vC as W,yC as X,lSt as Y,m2e as Z,qz as _,pg as a,fbt as a0,Fre as a1,hbt as a2,ubt as a3,vbt as a4,y2e as a5,xbt as a6,cnn as a7,MV as b,t0 as c,KE as d,$V as e,Uj as f,hi as g,S2e as h,g2e as i,w2e as j,zj as k,gC as l,Fr as m,RSt as n,mbt as o,Dje as p,Fje as q,Wo as r,uF as s,$yt as t,Sd as u,Ibt as v,PV as w,LLe as x,WNt as y,Eye as z};
|